log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
[gnulib.git] / ChangeLog
1 2012-04-01  Bruno Haible  <bruno@clisp.org>
2
3         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
4         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
5         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
6         workaround.
7         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
8         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
9         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
10         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
11         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
12         (Depends-on): Update conditions.
13         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
14         IRIX 6.5, OSF/1 5.1 problems.
15
16 2012-04-01  Bruno Haible  <bruno@clisp.org>
17
18         log10f: Work around OSF/1 5.1 bug.
19         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
20         * lib/log10f.c (log10f): If logf exists, use it and provide just the
21         workaround.
22         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
23         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
24         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
25         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
26         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
27         (Depends-on): Update conditions.
28         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
29
30 2012-04-01  Bruno Haible  <bruno@clisp.org>
31
32         log10: Work around OSF/1 5.1 bug.
33         * lib/math.in.h (log10): New declaration.
34         * lib/log10.c: New file.
35         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
36         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
37         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
38         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
39         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
40         * modules/log10 (Files): Add lib/log10.c.
41         (Depends-on): Add math.
42         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
43         * tests/test-math-c++.cc: Check the declaration of log10.
44         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
45
46 2012-03-31  Bruno Haible  <bruno@clisp.org>
47
48         log10l tests: More tests.
49         * modules/log10l-tests (Files): Add tests/test-log10l.h,
50         tests/minus-zero.h, tests/randoml.c.
51         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
52         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
53         (main): Invoke test_function.
54
55         log10f tests: More tests.
56         * modules/log10f-tests (Files): Add tests/test-log10.h,
57         tests/minus-zero.h, tests/randomf.c.
58         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
59         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
60         (main): Invoke test_function.
61
62         log10 tests: More tests.
63         * tests/test-log10.h: New file.
64         * modules/log10-tests (Files): Add tests/test-log10.h,
65         tests/minus-zero.h, tests/randomd.c.
66         (Makefile.am): Add randomd.c to test_log10_SOURCES.
67         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
68         (main): Invoke test_function.
69
70 2012-03-31  Simon Josefsson  <simon@josefsson.org>
71
72         fflush: Fix syntax error.
73         * lib/fflush.c: Include unused-parameter.h, needed for
74         _GL_UNUSED_PARAMETER.
75         * modules/fflush (Depends-on): Add snippet/unused-parameter.
76
77 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
78
79         regex: pacify GCC when compiling GRUB
80         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
81         a diagnostic.  Reported by Vladimir Serbinenko in
82         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
83
84 2012-03-29  Eric Blake  <eblake@redhat.com>
85
86         stdio: don't assume gets any more
87         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
88         support.
89         * modules/stdio (Makefile.am): Likewise.
90         * lib/stdio-read.c (gets): Likewise.
91         * tests/test-stdio-c++.cc: Likewise.
92         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
93         * lib/stdio.in.h (gets): Make warning occur in more places.
94         * doc/posix-functions/gets.texi (gets): Update documentation.
95         Reported by Christer Solskogen.
96
97         maint.mk: fix syntax checks without exclusions
98         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
99         Reported by Daniel P. Berrange.
100
101         strerror_r: avoid compiler warning
102         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
103         level.
104
105         fflush: avoid compiler warning
106         * lib/fflush.c (update_fpos_cache): Mark variables that are
107         potentially unused.
108
109 2012-03-25  Bruno Haible  <bruno@clisp.org>
110
111         Tests for module 'localeconv'.
112         * modules/localeconv-tests: New file.
113         * tests/test-localeconv.c: New file.
114
115         New module 'localeconv'.
116         * lib/locale.in.h (localeconv): New declaration.
117         * lib/localeconv.c: New file.
118         * m4/localeconv.m4: New file.
119         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
120         REPLACE_LOCALECONV.
121         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
122         REPLACE_LOCALECONV.
123         * modules/localeconv: New file.
124         * modules/nl_langinfo (Depends-on): Add localeconv.
125         * modules/human (Depends-on): Likewise.
126         * doc/posix-functions/localeconv.texi: Mention the new module.
127
128 2012-03-25  Bruno Haible  <bruno@clisp.org>
129
130         locale: Provide a complete 'struct lconv'.
131         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
132         'struct lconv' does not contain int_p_cs_precedes.
133         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
134         * doc/posix-headers/locale.texi: Update.
135
136         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
137         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
138         * doc/posix-headers/locale.texi: Update.
139
140         locale: Provide a working 'struct lconv'.
141         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
142         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
143         'struct lconv' does not even contain decimal_point.
144         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
145         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
146         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
147         * doc/posix-headers/locale.texi: Mention the problems with
148         'struct lconv'.
149         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
150
151 2012-03-24  Bruno Haible  <bruno@clisp.org>
152
153         Enable common subexpression optimization in GCC.
154         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
155         macros.
156         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
157         GCC attribute 'const'.
158         (uc_locale_language): Declare with GCC attribute 'pure'.
159         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
160         with GCC attribute 'const'.
161         * lib/unictype.in.h (uc_is_general_category_withtable,
162         uc_combining_class, uc_combining_class_name,
163         uc_combining_class_long_name, uc_bidi_class_name,
164         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
165         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
166         uc_decimal_value, uc_digit_value, uc_numeric_value,
167         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
168         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
169         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
170         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
171         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
172         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
173         Declare with GCC attribute 'const'.
174         (uc_general_category_name, uc_general_category_long_name,
175         uc_general_category_byname, uc_general_category,
176         uc_is_general_category, uc_combining_class_byname,
177         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
178         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
179         Declare with GCC attribute 'pure'.
180         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
181         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
182         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
183         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
184         with GCC attribute 'pure'.
185         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
186         'const'.
187         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
188         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
189         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
190         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
191         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
192         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
193         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
194         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
195         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
196         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
197         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
198         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
199         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
200         GCC attribute 'pure'.
201         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
202         'const'.
203         * lib/uniwidth.in.h (uc_width): Simplify declaration.
204         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
205         u32_strwidth): Declare with GCC attribute 'pure'.
206
207         Enable common subexpression optimization in GCC.
208         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
209         (alphasort): Declare with GCC attribute 'pure'.
210         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
211         (atoll): Declare with GCC attribute 'pure'.
212         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
213         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
214         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
215         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
216         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
217         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
218         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
219
220 2012-03-24  Bruno Haible  <bruno@clisp.org>
221
222         gnulib-tool: Avoid unintended error output from 'cmp'.
223         * gnulib-tool (func_add_file, func_update_file, func_import): Use
224         "cmp -s", not "cmp > /dev/null".
225
226 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
227
228         gnulib-tool: fix imprecise comments w.r.t. an automake bug
229
230         It's not just Automake versions < 1.9b that creates an empty
231         pkgdatadir at installation time if pkgdata_DATA is specified
232         to empty; modern automake versions do this as well, at least
233         until automake 1.11.4 (not yet released at the moment of writing,
234         but soon to appear).  That behaviour was generally considered a
235         feature rather than a bug, at least until this discussion:
236         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
237
238         See also automake bugs #10997 and #11030.
239
240         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
241         reference to relevant automake bug numbers.
242         (func_emit_tests_Makefile_am): Likewise.
243
244 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
245
246         announce-gen: use Digest::SHA when possible
247         * build-aux/announce-gen: Use Digest::SHA when possible, falling
248         back to Digest::SHA1 if necessary.
249
250 2012-03-20  Jim Meyering  <meyering@redhat.com>
251
252         tests: avoid gcc warnings about argv vs. const initializers
253         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
254         warnings about discarding 'const' qualifier from pointer target type.
255         * tests/test-posix_spawn2.c (main): Likewise.
256
257 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
258
259         README-release: simplify slightly
260         * top/README-release: Run "git checkout master" only once.
261
262 2012-03-15  Mark Wielaard  <mark@klomp.org>
263
264         git-merge-changelog: add specific example on how to use with hg.
265         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
266
267 2012-03-18  Mark Wielaard  <mark@klomp.org>
268
269         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
270
271 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
272
273         git-version-gen: don't let "prefix" envvar cause trouble
274         * build-aux/git-version-gen (prefix): Initialize properly,
275         so as not to use a value specified via the environment.
276         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
277
278 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
279
280         regex: diagnose too-large repeat counts in EREs
281         Previously, the code did not diagnose the too-large repeat count
282         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
283         as if it were 'b\{1000000000}', which is unexpected.
284         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
285         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
286         is a reasonable one for this problem.  Another option would be to
287         create a new REG_OVERFLOW error for repeat counts that are too large.
288         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
289         count is too large, so that the caller can distinguish the two cases.
290         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
291         "Too large" return code, and that repeat counts are one example of this.
292
293 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
294
295         doc: some glibc x32 integer width issues
296         * doc/posix-headers/sys_types.texi (sys/types.h):
297         * doc/posix-headers/time.texi (time.h):
298         Mention that glibc x32 does not conform to POSIX in a couple of
299         areas related to integer widths.
300
301 2012-03-15  Bruno Haible  <bruno@clisp.org>
302
303         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
304         * lib/fma.c (VOLATILE): New macro.
305         (FUNC): Use it to work around a GCC compiler bug.
306
307 2012-03-13  Bruno Haible  <bruno@clisp.org>
308
309         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
310         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
311         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
312         REPLACE_HYPOTL to 1.
313         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
314
315 2012-03-13  Bruno Haible  <bruno@clisp.org>
316
317         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
318         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
319         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
320         REPLACE_REMAINDERL to 1.
321         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
322         bug.
323
324 2012-03-13  Bruno Haible  <bruno@clisp.org>
325
326         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
327         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
328         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
329         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
330         too big rounding errors.
331         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
332         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
333         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
334         (Depends-on): Update conditions.
335         * tests/test-sqrtl.c (my_ldexpl): New function.
336         (main): Add test of a particular value.
337         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
338
339 2012-03-13  Pádraig Brady  <P@draigBrady.com>
340
341         doc: Update timer_* platform portability notes.
342         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
343         that always return ENOSYS.
344         * doc/posix-functions/timer_delete.texi: Likewise.
345         * doc/posix-functions/timer_gettime.texi: Likewise.
346         * doc/posix-functions/timer_settime.texi: Likewise.
347
348 2012-03-13  Bruno Haible  <bruno@clisp.org>
349
350         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
351         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
352         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
353         REPLACE_CBRTL to 1.
354         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
355
356 2012-03-13  Bruno Haible  <bruno@clisp.org>
357
358         remainderl: Avoid compilation error on AIX >= 5.2.
359         * lib/math.in.h (remainderl): Undefine macro from the system header.
360
361 2012-03-13  Bruno Haible  <bruno@clisp.org>
362
363         Avoid compilation errors with MSVC option -fp:strict.
364         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
365         * lib/cbrtf.c: Likewise.
366         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
367
368 2012-03-12  Bruno Haible  <bruno@clisp.org>
369
370         uninorm: Don't crash in out-of-memory conditions.
371         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
372         gracefully.
373         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
374         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
375
376 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
377
378         quote: fix syntax-check
379         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
380         also exports quote_quoting_options.
381
382 2012-03-12  Simon Josefsson  <simon@josefsson.org>
383
384         Collapse list of copyright years to ranges.  See
385         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
386         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
387         build-aux/csharpexec.sh.in, build-aux/gnupload,
388         build-aux/install-reloc, build-aux/javacomp.sh.in,
389         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
390         build-aux/move-if-change, build-aux/reloc-ldflags,
391         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
392
393 2012-03-11  Bruno Haible  <bruno@clisp.org>
394
395         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
396         * m4/log2f-ieee.m4: New file.
397         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
398         whether log2f works with a minus zero argument. Replace it if not.
399         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
400         (Depends-on): Add log2-ieee.
401         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
402         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
403
404         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
405         * m4/log2-ieee.m4: New file.
406         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
407         whether log2 works with a minus zero argument. Replace it if not.
408         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
409         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
410         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
411
412         Tests for module 'log2l-ieee'.
413         * modules/log2l-ieee-tests: New file.
414         * tests/test-log2l-ieee.c: New file.
415
416         New module 'log2l-ieee'.
417         * modules/log2l-ieee: New file.
418
419         Tests for module 'log2-ieee'.
420         * modules/log2-ieee-tests: New file.
421         * tests/test-log2-ieee.c: New file.
422
423         New module 'log2-ieee'.
424         * modules/log2-ieee: New file.
425
426         Tests for module 'log2f-ieee'.
427         * modules/log2f-ieee-tests: New file.
428         * tests/test-log2f-ieee.c: New file.
429         * tests/test-log2-ieee.h: New file.
430
431         New module 'log2f-ieee'.
432         * modules/log2f-ieee: New file.
433
434 2012-03-11  Bruno Haible  <bruno@clisp.org>
435
436         Tests for module 'log2l'.
437         * modules/log2l-tests: New file.
438         * tests/test-log2l.c: New file.
439
440         New module 'log2l'.
441         * lib/math.in.h (log2l): New declaration.
442         * lib/log2l.c: New file.
443         * m4/log2l.m4: New file.
444         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
445         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
446         REPLACE_LOG2L.
447         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
448         REPLACE_LOG2L.
449         * modules/log2l: New file.
450         * tests/test-math-c++.cc: Check the declaration of log2l.
451         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
452         and OSF/1 problems.
453
454 2012-03-11  Bruno Haible  <bruno@clisp.org>
455
456         Tests for module 'log2f'.
457         * modules/log2f-tests: New file.
458         * tests/test-log2f.c: New file.
459
460         New module 'log2f'.
461         * lib/math.in.h (log2f): New declaration.
462         * lib/log2f.c: New file.
463         * m4/log2f.m4: New file.
464         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
465         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
466         REPLACE_LOG2F.
467         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
468         REPLACE_LOG2F.
469         * modules/log2f: New file.
470         * tests/test-math-c++.cc: Check the declaration of log2f.
471         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
472         and OSF/1 and Cygwin problems.
473
474 2012-03-11  Bruno Haible  <bruno@clisp.org>
475
476         Tests for module 'log2'.
477         * modules/log2-tests: New file.
478         * tests/test-log2.c: New file.
479         * tests/test-log2.h: New file.
480
481         New module 'log2'.
482         * lib/math.in.h (log2): New declaration.
483         * lib/log2.c: New file.
484         * m4/log2.m4: New file.
485         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
486         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
487         REPLACE_LOG2.
488         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
489         REPLACE_LOG2.
490         * modules/log2: New file.
491         * tests/test-math-c++.cc: Check the declaration of log2.
492         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
493         and OSF/1 and Cygwin problems.
494
495 2012-03-11  Bruno Haible  <bruno@clisp.org>
496
497         exp2* tests: More tests.
498         * tests/test-exp2.h (test_function): Test all integral arguments that
499         don't need to overflow or denormalized numbers.
500         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
501         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
502         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
503
504 2012-03-10  Bruno Haible  <bruno@clisp.org>
505
506         log1pl-ieee: Work around test failure on AIX 7.1.
507         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
508
509         log1pl-ieee: Work around test failure on IRIX 6.5.
510         * m4/log1pl-ieee.m4: New file.
511         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
512         test whether log1pl works with a minus zero argument. Replace it if
513         not.
514         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
515         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
516         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
517         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
518         (Depends-on): Update conditions.
519         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
520         m4/signbit.m4.
521         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
522         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
523
524         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
525         * m4/log1pf-ieee.m4: New file.
526         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
527         test whether log1pf works with a minus zero argument. Replace it if
528         not.
529         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
530         m4/signbit.m4.
531         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
532         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
533
534         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
535         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
536         (configure.ac): Require gl_FUNC_LOG1PF.
537
538         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
539         * m4/log1p-ieee.m4: New file.
540         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
541         whether log1p works with a minus zero argument. Replace it if not.
542         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
543         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
544         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
545         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
546         (Depends-on): Update conditions.
547         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
548         m4/signbit.m4.
549         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
550         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
551
552         Tests for module 'log1pl-ieee'.
553         * modules/log1pl-ieee-tests: New file.
554         * tests/test-log1pl-ieee.c: New file.
555
556         New module 'log1pl-ieee'.
557         * modules/log1pl-ieee: New file.
558
559         Tests for module 'log1p-ieee'.
560         * modules/log1p-ieee-tests: New file.
561         * tests/test-log1p-ieee.c: New file.
562
563         New module 'log1p-ieee'.
564         * modules/log1p-ieee: New file.
565
566         Tests for module 'log1pf-ieee'.
567         * modules/log1pf-ieee-tests: New file.
568         * tests/test-log1pf-ieee.c: New file.
569         * tests/test-log1p-ieee.h: New file.
570
571         New module 'log1pf-ieee'.
572         * modules/log1pf-ieee: New file.
573
574 2012-03-10  Bruno Haible  <bruno@clisp.org>
575
576         Tests for module 'log1pl'.
577         * modules/log1pl-tests: New file.
578         * tests/test-log1pl.c: New file.
579
580         New module 'log1pl'.
581         * lib/math.in.h (log1pl): New declaration.
582         * lib/log1pl.c: New file.
583         * m4/log1pl.m4: New file.
584         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
585         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
586         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
587         * modules/log1pl: New file.
588         * tests/test-math-c++.cc: Check the declaration of log1pl.
589         * doc/posix-functions/log1pl.texi: Mention the new module.
590
591 2012-03-10  Bruno Haible  <bruno@clisp.org>
592
593         Tests for module 'log1pf'.
594         * modules/log1pf-tests: New file.
595         * tests/test-log1pf.c: New file.
596
597         New module 'log1pf'.
598         * lib/math.in.h (log1pf): New declaration.
599         * lib/log1pf.c: New file.
600         * m4/log1pf.m4: New file.
601         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
602         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
603         REPLACE_LOG1PF.
604         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
605         REPLACE_LOG1PF.
606         * modules/log1pf: New file.
607         * tests/test-math-c++.cc: Check the declaration of log1pf.
608         * doc/posix-functions/log1pf.texi: Mention the new module.
609
610 2012-03-10  Bruno Haible  <bruno@clisp.org>
611
612         log1p tests: More tests.
613         * tests/test-log1p.h: New file.
614         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
615         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
616         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
617         (main): Invoke test_function.
618
619         log1p: Provide replacement for Minix and MSVC.
620         * lib/math.in.h (log1p): New declaration.
621         * lib/log1p.c: New file.
622         * m4/log1p.m4: New file.
623         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
624         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
625         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
626         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
627         (Depends-on): Add math, isnand, log, round.
628         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
629         HAVE_LOG1P is 0.
630         * tests/test-math-c++.cc: Check the declaration of log1p.
631         * doc/posix-functions/log1p.texi: Mention the replacement.
632
633 2012-03-10  Bruno Haible  <bruno@clisp.org>
634
635         math tests: Small simplification.
636         * tests/test-exp.h (test_function): Use the same err_bound for
637         'double' on platforms with sizeof (long double) == sizeof (double)
638         than on platforms with sizeof (long double) > sizeof (double).
639         * tests/test-exp2.h (test_function): Likewise.
640         * tests/test-expm1.h (test_function): Likewise.
641         * tests/test-log.h (test_function): Likewise.
642
643 2012-03-10  Bruno Haible  <bruno@clisp.org>
644
645         Fix some comments.
646         * lib/expl.c: Fix an ambiguous comment.
647         * lib/expm1.c: Likewise.
648         * lib/expm1l.c: Likewise.
649         * lib/exp2.c: Likewise.
650         * lib/exp2l.c: Likewise.
651
652 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
653
654         regex: allow inclusion of <regex.h> before <limits.h>
655         Without this patch, portable programs had to include <limits.h> before
656         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
657         I ran into this problem with a test version of GNU grep on Solaris 8.
658         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
659         This is done conditionally so that this change can be merged
660         back to glibc.
661         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
662         using the included regex.
663
664         fts: depend on fdopendir
665         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
666         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
667         problem was introduced when fdopendir was split out.
668
669 2012-03-10  Bruno Haible  <bruno@clisp.org>
670
671         Remove unused variables.
672         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
673         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
674
675 2012-03-10  Bruno Haible  <bruno@clisp.org>
676
677         isnanf-nolibm: Fix last commit.
678         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
679
680         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
681         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
682
683 2012-03-10  Bruno Haible  <bruno@clisp.org>
684
685         logf-ieee: Work around test failure on NetBSD 5.1.
686         * m4/logf-ieee.m4: New file.
687         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
688         whether logf works with a negative argument. Replace it if not.
689         * lib/logf.c (logf): For negative arguments, return NaN.
690         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
691         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
692         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
693
694         logf-ieee: Work around test failure on Solaris 9.
695         * modules/logf-ieee (Depends-on): Add log-ieee.
696         (configure.ac): Require gl_FUNC_LOGF.
697
698         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
699         * m4/log-ieee.m4: New file.
700         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
701         log works with a negative argument. Replace it if not.
702         * lib/log.c (log): For negative arguments, return NaN.
703         * modules/log-ieee (Files): Add m4/log-ieee.m4.
704         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
705         * doc/posix-functions/log.texi: Mention the log-ieee module.
706
707         Tests for module 'logl-ieee'.
708         * modules/logl-ieee-tests: New file.
709         * tests/test-logl-ieee.c: New file.
710
711         New module 'logl-ieee'.
712         * modules/logl-ieee: New file.
713
714         Tests for module 'log-ieee'.
715         * modules/log-ieee-tests: New file.
716         * tests/test-log-ieee.c: New file.
717
718         New module 'log-ieee'.
719         * modules/log-ieee: New file.
720
721         Tests for module 'logf-ieee'.
722         * modules/logf-ieee-tests: New file.
723         * tests/test-logf-ieee.c: New file.
724         * tests/test-log-ieee.h: New file.
725
726         New module 'logf-ieee'.
727         * modules/logf-ieee: New file.
728
729 2012-03-10  Bruno Haible  <bruno@clisp.org>
730
731         log: Fix bug introduced on 2012-03-09.
732         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
733
734 2012-03-10  Pádraig Brady  <P@draigBrady.com>
735
736         timer-time: link explicitly with pthreads on glibc
737         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
738         to support static linking, when newer glibc is
739         detected, as that contains pthread emulation of
740         POSIX timer functions where required.
741         * modules/timer-time: Depend on threadlib to
742         pull in the appropriate library to link.
743
744 2012-03-10  Bruno Haible  <bruno@clisp.org>
745
746         log* tests: More tests.
747         * tests/test-log.h: New file.
748         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
749         (main): Invoke test_function.
750         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
751         (main): Invoke test_function.
752         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
753         (main): Invoke test_function.
754         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
755         tests/randomd.c.
756         (Makefile.am): Add randomd.c to test_log_SOURCES.
757         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
758         tests/randomf.c.
759         (Makefile.am): Add randomf.c to test_logf_SOURCES.
760         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
761         tests/randoml.c.
762         (Depends-on): Add 'float'.
763         (Makefile.am): Add randoml.c to test_logl_SOURCES.
764
765 2012-03-09  Bruno Haible  <bruno@clisp.org>
766
767         logl: Work around OSF/1 5.1 bug.
768         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
769         * lib/logl.c (logl): If logl exists, use it and provide just the
770         workaround.
771         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
772         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
773         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
774         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
775         * modules/logl (configure.ac): Consider REPLACE_LOGL.
776         (Depends-on): Update conditions.
777         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
778
779 2012-03-09  Bruno Haible  <bruno@clisp.org>
780
781         logf: Work around OSF/1 5.1 bug.
782         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
783         * lib/logf.c (logf): If logf exists, use it and provide just the
784         workaround.
785         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
786         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
787         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
788         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
789         * modules/logf (configure.ac): Consider REPLACE_LOGF.
790         (Depends-on): Update conditions.
791         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
792
793 2012-03-09  Bruno Haible  <bruno@clisp.org>
794
795         log: Work around OSF/1 5.1 bug.
796         * lib/math.in.h (log): New declaration.
797         * lib/log.c: New file.
798         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
799         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
800         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
801         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
802         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
803         * modules/log (Files): Add lib/log.c.
804         (Depends-on): Add math.
805         (configure.ac): If REPLACE_LOG is 1, compile an override.
806         * tests/test-math-c++.cc: Check the declaration of log.
807         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
808
809 2012-03-09  Jim Meyering  <meyering@redhat.com>
810
811         readtokens.c: adjust wording in a comment
812         * lib/readtokens.c: Insert omitted "that" in a comment.
813
814 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
815
816         modechange: add notations +40, 00440, etc.
817         * lib/modechange.c (mode_compile): Support new notations
818         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
819
820 2012-03-08  Bruno Haible  <bruno@clisp.org>
821
822         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
823         * m4/exp2l-ieee.m4: New file.
824         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
825         test whether exp2l works with a NaN argument and with a negative
826         infinity argument. Replace it if not.
827         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
828         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
829         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
830         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
831         (Depends-on): Update conditions.
832         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
833         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
834         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
835
836         Tests for module 'exp2l-ieee'.
837         * modules/exp2l-ieee-tests: New file.
838         * tests/test-exp2l-ieee.c: New file.
839
840         New module 'exp2l-ieee'.
841         * modules/exp2l-ieee: New file.
842
843         Tests for module 'exp2-ieee'.
844         * modules/exp2-ieee-tests: New file.
845         * tests/test-exp2-ieee.c: New file.
846
847         New module 'exp2-ieee'.
848         * modules/exp2-ieee: New file.
849
850         Tests for module 'exp2f-ieee'.
851         * modules/exp2f-ieee-tests: New file.
852         * tests/test-exp2f-ieee.c: New file.
853         * tests/test-exp2-ieee.h: New file.
854
855         New module 'exp2f-ieee'.
856         * modules/exp2f-ieee: New file.
857
858 2012-03-08  Bruno Haible  <bruno@clisp.org>
859
860         Tests for module 'exp2l'.
861         * modules/exp2l-tests: New file.
862         * tests/test-exp2l.c: New file.
863
864         New module 'exp2l'.
865         * lib/math.in.h (exp2l): New declaration.
866         * lib/exp2l.c: New file.
867         * lib/expl-table.c: New file, extracted from lib/expl.c.
868         * lib/expl.c (gl_expl_table): New declaration.
869         (expl): Remove expl_table. Update reference.
870         * m4/exp2l.m4: New file.
871         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
872         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
873         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
874         * modules/exp2l: New file.
875         * modules/expl (Files): Add lib/expl-table.c.
876         (configure.ac): Compile also expl-table.c.
877         * tests/test-math-c++.cc: Check the declaration of exp2l.
878         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
879         problem.
880
881 2012-03-08  Bruno Haible  <bruno@clisp.org>
882
883         Tests for module 'exp2f'.
884         * modules/exp2f-tests: New file.
885         * tests/test-exp2f.c: New file.
886
887         New module 'exp2f'.
888         * lib/math.in.h (exp2f): New declaration.
889         * lib/exp2f.c: New file.
890         * m4/exp2f.m4: New file.
891         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
892         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
893         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
894         * modules/exp2f: New file.
895         * tests/test-math-c++.cc: Check the declaration of exp2f.
896         * doc/posix-functions/exp2f.texi: Mention the new module and the
897         IRIX problem.
898
899 2012-03-08  Bruno Haible  <bruno@clisp.org>
900
901         Tests for module 'exp2'.
902         * modules/exp2-tests: New file.
903         * tests/test-exp2.c: New file.
904         * tests/test-exp2.h: New file.
905
906         New module 'exp2'.
907         * lib/math.in.h (exp2): New declaration.
908         * lib/exp2.c: New file.
909         * m4/exp2.m4: New file.
910         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
911         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
912         REPLACE_EXP2.
913         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
914         REPLACE_EXP2.
915         * modules/exp2: New file.
916         * tests/test-math-c++.cc: Check the declaration of exp2.
917         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
918         and OpenBSD problems.
919
920 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
921
922         savedir: fix comment typo
923         * lib/savedir.c (savedirstream): Fix typo in comment.
924
925 2012-03-08  Bruno Haible  <bruno@clisp.org>
926
927         test-readtokens.c: use const; remove unwarranted cast
928         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
929
930 2012-03-08  Bruno Haible  <bruno@clisp.org>
931
932         fmal: Avoid compilation error on AIX.
933         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
934         AIX 5.2..7.1.
935
936 2012-03-08  Bruno Haible  <bruno@clisp.org>
937
938         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
939         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
940         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
941         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
942         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
943         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
944         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
945
946 2012-03-08  Bruno Haible  <bruno@clisp.org>
947
948         remainderf: Override buggy system function on IRIX 6.5.
949         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
950         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
951         when it exists.
952         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
953
954 2012-03-08  Jim Meyering  <meyering@redhat.com>
955
956         test-readtokens.c: avoid const-related compilation warnings
957         * tests/test-readtokens.c: Avoid const-related compilation warnings.
958
959 2012-03-07  Jim Meyering  <meyering@redhat.com>
960             Bruno Haible  <bruno@clisp.org>
961
962         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
963         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
964         tests/randomd.c.
965         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
966         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
967         tests/randoml.c.
968         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
969
970 2012-03-07  Bruno Haible  <bruno@clisp.org>
971
972         expm1l: Avoid compilation error on AIX.
973         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
974         AIX 5.2..7.1.
975
976 2012-03-07  Bruno Haible  <bruno@clisp.org>
977
978         expm1l: Don't override undeclared system function on IRIX 6.5.
979         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
980         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
981         it exists. Set HAVE_DECL_EXPM1L.
982         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
983         HAVE_EXPM1L.
984         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
985         HAVE_EXPM1L.
986         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
987
988 2012-03-07  Bruno Haible  <bruno@clisp.org>
989
990         remainderl: Don't override undeclared system function on IRIX 6.5.
991         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
992         HAVE_REMAINDERL.
993         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
994         declared when it exists. Set HAVE_DECL_REMAINDERL.
995         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
996         not HAVE_REMAINDERL.
997         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
998         HAVE_REMAINDERL.
999         * doc/posix-functions/remainderl.texi: Mention missing declaration
1000         problem.
1001
1002 2012-03-07  Bruno Haible  <bruno@clisp.org>
1003
1004         rintf: Don't override undeclared system function on IRIX 6.5.
1005         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
1006         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
1007         exists. Set HAVE_DECL_RINTF.
1008         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
1009         HAVE_RINTF.
1010         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
1011         HAVE_RINTF.
1012         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
1013
1014 2012-03-07  Bruno Haible  <bruno@clisp.org>
1015
1016         roundl: Avoid compilation error on AIX.
1017         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
1018         AIX 5.2..7.1.
1019
1020 2012-03-07  Bruno Haible  <bruno@clisp.org>
1021
1022         roundl: Don't override undeclared system function on IRIX 6.5.
1023         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
1024         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
1025         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1026         * modules/roundl (configure.ac): For replacement code, test
1027         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1028         (Depends-on): Update conditions.
1029         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
1030
1031 2012-03-07  Bruno Haible  <bruno@clisp.org>
1032
1033         roundf: Don't override undeclared system function on IRIX 6.5.
1034         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
1035         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
1036         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1037         * modules/roundf (configure.ac): For replacement code, test
1038         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1039         (Depends-on): Update conditions.
1040         * modules/roundf-ieee (Depends-on): Update conditions.
1041         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
1042
1043 2012-03-07  Bruno Haible  <bruno@clisp.org>
1044
1045         round: Don't override undeclared system function on IRIX 6.5.
1046         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
1047         argument.
1048         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
1049         also when it is not declared. Set HAVE_ROUND. For replacement code,
1050         test HAVE_ROUND, not HAVE_DECL_ROUND.
1051         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
1052         not HAVE_DECL_ROUND.
1053         (Depends-on): Update conditions.
1054         * modules/round-ieee (Depends-on): Update conditions.
1055         * doc/posix-functions/round.texi: Mention the IRIX problem.
1056
1057 2012-03-07  Bruno Haible  <bruno@clisp.org>
1058
1059         copysignf: Don't override undeclared system function on IRIX 6.5.
1060         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
1061         HAVE_COPYSIGNF.
1062         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
1063         declared when it exists. Set HAVE_DECL_COPYSIGNF.
1064         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
1065         not HAVE_COPYSIGNF.
1066         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
1067         HAVE_COPYSIGNF.
1068         * doc/posix-functions/copysignf.texi: Mention missing declaration
1069         problem.
1070
1071 2012-03-07  Jim Meyering  <meyering@redhat.com>
1072
1073         readtokens: add tests
1074         * modules/readtokens-tests: New file.
1075         * tests/test-readtokens.c: New file.
1076
1077 2012-03-07  Jim Meyering  <meyering@redhat.com>
1078
1079         quotearg: the module must now include quote.h
1080         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
1081         So must the module.
1082         * modules/quotearg (Files): Add quote.h.
1083
1084 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
1085
1086         readtokens: avoid core dumps with unusual calling patterns
1087         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
1088         * lib/readtokens.c: Include limits.h.
1089         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
1090         (readtoken): Don't cache the delimiters; the cache code was buggy
1091         if !delim && saved_delim, or if the new n_delim differs from the old.
1092         Also, it wasn't thread-safe.
1093
1094 2012-03-07  Bruno Haible  <bruno@clisp.org>
1095
1096         quote: Adhere to common module description layout.
1097         * modules/quote (Makefile.am): Add back empty section.
1098
1099 2012-03-06  Akim Demaille  <demaille@gostai.com>
1100
1101         quote: fuse into quotearg
1102         This patch is made for the benefit of Bison.
1103         quote does not leave the choice of the quoting style to the user.
1104         quoting_style provides poor customizability, yet quoting_options,
1105         which is very rich, is hidden inside quotearg.c.  So in order to
1106         allow quote customization, move its implementation to quotearg.c.
1107         * lib/quote.c: Remove.
1108         * modules/quote: Adjust.
1109         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
1110         warning: provide all the members of literal structs.
1111         (quote_quoting_options): New.
1112         (quote, quote_n): Import implementation from quote.c.
1113         * lib/quote.h: Import the comments from quote.c.
1114         (quote_quoting_options): New.
1115
1116 2012-03-06  Bruno Haible  <bruno@clisp.org>
1117
1118         Tests for module 'expm1l-ieee'.
1119         * modules/expm1l-ieee-tests: New file.
1120         * tests/test-expm1l-ieee.c: New file.
1121
1122         New module 'expm1l-ieee'.
1123         * modules/expm1l-ieee: New file.
1124
1125         Tests for module 'expm1f-ieee'.
1126         * modules/expm1f-ieee-tests: New file.
1127         * tests/test-expm1f-ieee.c: New file.
1128
1129         New module 'expm1f-ieee'.
1130         * modules/expm1f-ieee: New file.
1131
1132         Tests for module 'expm1-ieee'.
1133         * modules/expm1-ieee-tests: New file.
1134         * tests/test-expm1-ieee.c: New file.
1135         * tests/test-expm1-ieee.h: New file.
1136
1137         New module 'expm1-ieee'.
1138         * modules/expm1-ieee: New file.
1139         * m4/expm1-ieee.m4: New file.
1140         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
1141         whether expm1 works with a minus zero argument. Replace it if not.
1142         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
1143         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
1144         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
1145         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
1146         (Depends-on): Update conditions.
1147         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
1148         AIX problem.
1149
1150 2012-03-06  Bruno Haible  <bruno@clisp.org>
1151
1152         Work around expm1f bug on IRIX 6.5.
1153         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
1154         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
1155         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
1156         not work.
1157         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
1158         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
1159         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
1160         (Depends-on): Update conditions.
1161         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
1162
1163 2012-03-06  Bruno Haible  <bruno@clisp.org>
1164
1165         Tests for module 'expm1l'.
1166         * modules/expm1l-tests: New file.
1167         * tests/test-expm1l.c: New file.
1168
1169         New module 'expm1l'.
1170         * lib/math.in.h (expm1l): New declaration.
1171         * lib/expm1l.c: New file.
1172         * m4/expm1l.m4: New file.
1173         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
1174         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
1175         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
1176         * modules/expm1l: New file.
1177         * tests/test-math-c++.cc: Check the declaration of expm1l.
1178         * doc/posix-functions/expm1l.texi: Mention the new module.
1179
1180 2012-03-06  Bruno Haible  <bruno@clisp.org>
1181
1182         Tests for module 'expm1f'.
1183         * modules/expm1f-tests: New file.
1184         * tests/test-expm1f.c: New file.
1185
1186         New module 'expm1f'.
1187         * lib/math.in.h (expm1f): New declaration.
1188         * lib/expm1f.c: New file.
1189         * m4/expm1f.m4: New file.
1190         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
1191         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
1192         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
1193         * modules/expm1f: New file.
1194         * tests/test-math-c++.cc: Check the declaration of expm1f.
1195         * doc/posix-functions/expm1f.texi: Mention the new module.
1196
1197 2012-03-06  Bruno Haible  <bruno@clisp.org>
1198
1199         Tests for module 'expm1'.
1200         * modules/expm1-tests: New file.
1201         * tests/test-expm1.c: New file.
1202         * tests/test-expm1.h: New file.
1203
1204         New module 'expm1'.
1205         * lib/math.in.h (expm1): New declaration.
1206         * lib/expm1.c: New file.
1207         * m4/expm1.m4: New file.
1208         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
1209         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
1210         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
1211         * modules/expm1: New file.
1212         * tests/test-math-c++.cc: Check the declaration of expm1.
1213         * doc/posix-functions/expm1.texi: Mention the new module.
1214
1215 2012-03-06  Bruno Haible  <bruno@clisp.org>
1216
1217         math: Ensure declarations of math functions.
1218         * modules/acosf (Depends-on): Add 'extensions'.
1219         * modules/asinf (Depends-on): Likewise.
1220         * modules/atan2f (Depends-on): Likewise.
1221         * modules/atanf (Depends-on): Likewise.
1222         * modules/cbrt (Depends-on): Likewise.
1223         * modules/cbrtf (Depends-on): Likewise.
1224         * modules/cbrtl (Depends-on): Likewise.
1225         * modules/copysignf (Depends-on): Likewise.
1226         * modules/copysignl (Depends-on): Likewise.
1227         * modules/cosf (Depends-on): Likewise.
1228         * modules/coshf (Depends-on): Likewise.
1229         * modules/expf (Depends-on): Likewise.
1230         * modules/fabsf (Depends-on): Likewise.
1231         * modules/fabsl (Depends-on): Likewise.
1232         * modules/fmaf (Depends-on): Likewise.
1233         * modules/fmal (Depends-on): Likewise.
1234         * modules/fmodf (Depends-on): Likewise.
1235         * modules/fmodl (Depends-on): Likewise.
1236         * modules/frexpf (Depends-on): Likewise.
1237         * modules/frexpl (Depends-on): Likewise.
1238         * modules/hypot (Depends-on): Likewise.
1239         * modules/hypotf (Depends-on): Likewise.
1240         * modules/hypotl (Depends-on): Likewise.
1241         * modules/ldexpf (Depends-on): Likewise.
1242         * modules/ldexpl (Depends-on): Likewise.
1243         * modules/log10f (Depends-on): Likewise.
1244         * modules/log10l (Depends-on): Likewise.
1245         * modules/log1p (Depends-on): Likewise.
1246         * modules/logb (Depends-on): Likewise.
1247         * modules/logf (Depends-on): Likewise.
1248         * modules/modff (Depends-on): Likewise.
1249         * modules/modfl (Depends-on): Likewise.
1250         * modules/powf (Depends-on): Likewise.
1251         * modules/remainderf (Depends-on): Likewise.
1252         * modules/remainderl (Depends-on): Likewise.
1253         * modules/rintf (Depends-on): Likewise.
1254         * modules/rintl (Depends-on): Likewise.
1255         * modules/sinf (Depends-on): Likewise.
1256         * modules/sinhf (Depends-on): Likewise.
1257         * modules/sqrtf (Depends-on): Likewise.
1258         * modules/tanf (Depends-on): Likewise.
1259         * modules/tanhf (Depends-on): Likewise.
1260         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
1261         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
1262         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
1263         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
1264         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
1265         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
1266         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
1267         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
1268         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
1269         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
1270         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
1271         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
1272         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
1273         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
1274         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
1275         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
1276         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
1277         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
1278         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
1279         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
1280         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
1281         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
1282         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
1283         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
1284         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
1285         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
1286         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
1287         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1288         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
1289         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
1290         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
1291         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
1292         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1293         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
1294         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1295         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1296         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
1297         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
1298         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
1299         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
1300         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
1301
1302 2012-03-06  Bruno Haible  <bruno@clisp.org>
1303
1304         math: Update module names in warnings.
1305         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
1306         tanl): Use specific module name in warn-on-use warning.
1307
1308 2012-03-06  Bruno Haible  <bruno@clisp.org>
1309
1310         expl: Simplify computation.
1311         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
1312
1313 2012-03-05  Bruno Haible  <bruno@clisp.org>
1314
1315         exp* tests: More tests.
1316         * tests/test-exp.h: New file.
1317         * tests/test-exp.c: Include <float.h> and test-exp.h.
1318         (main): Invoke test_function.
1319         * tests/test-expf.c: Include <float.h> and test-exp.h.
1320         (main): Invoke test_function.
1321         * tests/test-expl.c: Include <float.h> and test-exp.h.
1322         (main): Invoke test_function.
1323         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
1324         (Makefile.am): Add randomd.c to test_exp_SOURCES.
1325         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
1326         (Makefile.am): Add randomf.c to test_expf_SOURCES.
1327         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
1328         (Depends-on): Add 'float'.
1329         (Makefile.am): Add randoml.c to test_expl_SOURCES.
1330
1331         expl: Fix precision of computed result.
1332         * lib/expl.c: Completely rewritten.
1333         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
1334         (Maintainer): Add me.
1335         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
1336
1337 2012-03-05  Bruno Haible  <bruno@clisp.org>
1338
1339         cbrt* tests: More tests.
1340         * tests/test-cbrt.h: New file.
1341         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
1342         (main): Invoke test_function.
1343         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
1344         (main): Invoke test_function.
1345         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
1346         (main): Invoke test_function.
1347         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
1348         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
1349         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
1350         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
1351         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
1352         (Depends-on): Add 'float'.
1353         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
1354
1355 2012-03-05  Bruno Haible  <bruno@clisp.org>
1356
1357         hypot* tests: More tests.
1358         * tests/test-hypot.h: New file, partially extracted from
1359         tests/test-hypotl.c.
1360         * tests/test-hypot.c: Include test-hypot.h.
1361         (main): Invoke test_function.
1362         * tests/test-hypotf.c: Include test-hypot.h.
1363         (main): Invoke test_function.
1364         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
1365         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
1366         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
1367         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
1368         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
1369         tests/randomf.c.
1370         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
1371         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
1372         tests/randoml.c.
1373         (Depends-on): Add 'fpucw', 'float'.
1374         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
1375
1376 2012-03-05  Bruno Haible  <bruno@clisp.org>
1377
1378         fpucw: Doc about FreeBSD.
1379         * lib/fpucw.h: Mention FreeBSD in comments.
1380
1381 2012-03-04  Bruno Haible  <bruno@clisp.org>
1382
1383         sqrt* tests: More tests.
1384         * tests/test-sqrt.h: New file.
1385         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
1386         (main): Invoke test_function.
1387         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
1388         (main): Invoke test_function.
1389         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
1390         (main): Invoke test_function.
1391         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
1392         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
1393         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
1394         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
1395         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
1396         (Depends-on): Add 'float'.
1397         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
1398
1399 2012-03-04  Bruno Haible  <bruno@clisp.org>
1400
1401         remainder* tests: More tests.
1402         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
1403         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
1404         (main): Invoke test_function.
1405         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
1406         (main): Invoke test_function.
1407         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
1408         (main): Invoke test_function.
1409         * modules/remainder-tests (Files): Add tests/test-remainder.h,
1410         tests/randomd.c.
1411         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
1412         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
1413         tests/randomf.c.
1414         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
1415         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
1416         tests/randoml.c.
1417         (Depends-on): Add 'float'.
1418         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
1419
1420 2012-03-04  Bruno Haible  <bruno@clisp.org>
1421
1422         remainder, remainderf, remainderl: Fix computation for large quotients.
1423         * lib/remainder.c: Completely rewritten.
1424         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
1425         USE_FLOAT.
1426         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
1427         USE_LONG_DOUBLE.
1428         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
1429         isnand, isinf. Remove round, fma.
1430         * modules/remainderf (Files): Add lib/remainder.c.
1431         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
1432         Remove roundf, fmaf.
1433         * modules/remainderl (Files): Add lib/remainder.c.
1434         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
1435         isinf. Remove roundl, fmal.
1436         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
1437         REMAINDER_LIBM.
1438         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
1439         REMAINDERF_LIBM.
1440         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
1441         REMAINDERL_LIBM.
1442
1443 2012-03-04  Bruno Haible  <bruno@clisp.org>
1444
1445         fmod* tests: More tests.
1446         * tests/test-fmod.h (my_ldexp): New function.
1447         (test_function): Reduce amount of random numbers to test. Add tests
1448         of very large quotients x / y.
1449         * tests/test-fmod.c (MAX_EXP): New macro.
1450         * tests/test-fmodf.c (MAX_EXP): Likewise.
1451         * tests/test-fmodl.c (MAX_EXP): Likewise.
1452
1453 2012-03-04  Bruno Haible  <bruno@clisp.org>
1454
1455         fmod, fmodl: Fix computation for large quotients x / y.
1456         * lib/fmod.c: Completely rewritten.
1457         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
1458         USE_LONG_DOUBLE.
1459         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
1460         isnand. Remove fma.
1461         * modules/fmodl (Files): Add lib/fmod.c.
1462         (Depends-on): Add float, isfinite, signbit, fabsl,
1463         frexpl, ldexpl, isnanl. Remove fma.
1464         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
1465         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
1466
1467 2012-03-03  Bruno Haible  <bruno@clisp.org>
1468
1469         fmod* tests: More tests.
1470         * tests/test-fmod.h: New file.
1471         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
1472         (main): Invoke test_function.
1473         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
1474         (main): Invoke test_function.
1475         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
1476         (main): Invoke test_function.
1477         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
1478         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
1479         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
1480         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
1481         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
1482         (Depends-on): Add 'float'.
1483         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
1484
1485 2012-03-03  Bruno Haible  <bruno@clisp.org>
1486
1487         rint* tests: More tests.
1488         * tests/test-rint.h: New file, partially extracted from
1489         tests/test-rintl.c.
1490         * tests/test-rint.c: Include test-rint.h.
1491         (main): Invoke test_function.
1492         * tests/test-rintf.c: Include test-rint.h.
1493         (main): Invoke test_function.
1494         * tests/test-rintl.c: Include test-rint.h.
1495         (main): Invoke test_function.
1496         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
1497         (Makefile.am): Add randomd.c to test_rint_SOURCES.
1498         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
1499         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
1500         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
1501         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
1502
1503 2012-03-03  Bruno Haible  <bruno@clisp.org>
1504
1505         modf* tests: More tests.
1506         * tests/test-modf.h: New file.
1507         * tests/test-modf.c: Include <float.h> and test-modf.h.
1508         (main): Invoke test_function.
1509         * tests/test-modff.c: Include <float.h> and test-modf.h.
1510         (main): Invoke test_function.
1511         * tests/test-modfl.c: Include <float.h> and test-modf.h.
1512         (main): Invoke test_function.
1513         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
1514         (Makefile.am): Add randomd.c to test_modf_SOURCES.
1515         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
1516         (Makefile.am): Add randomf.c to test_modff_SOURCES.
1517         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
1518         (Depends-on): Add 'float'.
1519         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
1520
1521 2012-03-03  Bruno Haible  <bruno@clisp.org>
1522
1523         fabs* tests: More tests.
1524         * tests/test-fabs.h: New file, partially extracted from
1525         tests/test-fabsl.c.
1526         * tests/test-fabs.c (RANDOM): New macro.
1527         * tests/test-fabsf.c (RANDOM): New macro.
1528         * tests/test-fabsl.c (RANDOM): New macro.
1529         * modules/fabs-tests (Files): Add tests/randomd.c.
1530         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
1531         * modules/fabsf-tests (Files): Add tests/randomf.c.
1532         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
1533         * modules/fabsl-tests (Files): Add tests/randoml.c.
1534         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
1535
1536 2012-03-03  Bruno Haible  <bruno@clisp.org>
1537
1538         ldexp* tests: More tests.
1539         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
1540         * tests/test-ldexp.c (RANDOM): New macro.
1541         * tests/test-ldexpf.c (RANDOM): New macro.
1542         * tests/test-ldexpl.c (RANDOM): New macro.
1543         * modules/ldexp-tests (Files): Add tests/randomd.c.
1544         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
1545         * modules/ldexpf-tests (Files): Add tests/randomf.c.
1546         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
1547         * modules/ldexpl-tests (Files): Add tests/randoml.c.
1548         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
1549
1550 2012-03-03  Bruno Haible  <bruno@clisp.org>
1551
1552         frexp* tests: More tests.
1553         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
1554         * tests/test-frexp.c (RANDOM): New macro.
1555         * tests/test-frexpf.c (RANDOM): New macro.
1556         * tests/test-frexpl.c (RANDOM): New macro.
1557         * modules/frexp-tests (Files): Add tests/randomd.c.
1558         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
1559         * modules/frexpf-tests (Files): Add tests/randomf.c.
1560         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
1561         * modules/frexpl-tests (Files): Add tests/randoml.c.
1562         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
1563
1564 2012-03-03  Bruno Haible  <bruno@clisp.org>
1565
1566         Support for pseudo-random numbers in tests.
1567         * tests/randomf.c: New file.
1568         * tests/randomd.c: New file.
1569         * tests/randoml.c: New file.
1570         * tests/macros.h (randomf, randomd, randoml): New declarations.
1571
1572 2012-03-03  Bruno Haible  <bruno@clisp.org>
1573
1574         frexp* tests: Refactor.
1575         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
1576         * tests/test-frexp.c: Include and use it.
1577         * tests/test-frexpf.c: Likewise.
1578         * tests/test-frexpl.c: Likewise.
1579         * modules/frexp-tests (Files): Add tests/test-frexp.h.
1580         * modules/frexpf-tests (Files): Likewise.
1581         * modules/frexpl-tests (Files): Likewise.
1582
1583 2012-03-02  Jim Meyering  <meyering@redhat.com>
1584
1585         maint: don't specify XZ_OPT=-9ev in dist-related rule
1586         Using xz's -9 option is warranted only if you have a very large
1587         tarball (see xz's documentation for the sizes vs. presets), and
1588         requires 64MiB of memory at decompression time.
1589         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
1590         Automake's default of just "-e" is fine.  Override on a
1591         per-package basis by setting XZ_OPT e.g., in cfg.mk.
1592
1593 2012-03-01  Eric Blake  <eblake@redhat.com>
1594
1595         maint.mk: allow announcement for non-gnulib project
1596         * maint.mk (announcement): Skip gnulib version if not used.
1597
1598 2012-03-01  Jim Meyering  <meyering@redhat.com>
1599
1600         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
1601         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
1602         envvar settings cannot interfere.  Otherwise, setting envvars like
1603         prohibit=foo require=bar, etc. would cause spurious test failures.
1604
1605 2012-03-01  Eric Blake  <eblake@redhat.com>
1606
1607         maint.mk: add per-line exclusions to prohibitions
1608         * maint.mk (_sc_search_regexp): Add $exclude parameter.
1609         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
1610         (sc_const_long_option): Use it.
1611
1612 2012-03-01  Bruno Haible  <bruno@clisp.org>
1613
1614         Tests for module 'expl-ieee'.
1615         * modules/expl-ieee-tests: New file.
1616         * tests/test-expl-ieee.c: New file.
1617
1618         New module 'expl-ieee'.
1619         * modules/expl-ieee: New file.
1620
1621         Tests for module 'exp-ieee'.
1622         * modules/exp-ieee-tests: New file.
1623         * tests/test-exp-ieee.c: New file.
1624
1625         New module 'exp-ieee'.
1626         * modules/exp-ieee: New file.
1627
1628         Tests for module 'expf-ieee'.
1629         * modules/expf-ieee-tests: New file.
1630         * tests/test-expf-ieee.c: New file.
1631         * tests/test-exp-ieee.h: New file.
1632
1633         New module 'expf-ieee'.
1634         * modules/expf-ieee: New file.
1635
1636 2012-02-29  Bruno Haible  <bruno@clisp.org>
1637
1638         cbrtl-ieee: Work around test failure on IRIX 6.5.
1639         * m4/cbrtl-ieee.m4: New file.
1640         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
1641         test whether cbrtl works with a minus zero argument. Replace it if not.
1642         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
1643         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
1644         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
1645         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
1646         (Depends-on): Update conditions.
1647         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
1648         m4/signbit.m4.
1649         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
1650         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
1651         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
1652
1653         Tests for module 'cbrtl-ieee'.
1654         * modules/cbrtl-ieee-tests: New file.
1655         * tests/test-cbrtl-ieee.c: New file.
1656
1657         New module 'cbrtl-ieee'.
1658         * modules/cbrtl-ieee: New file.
1659
1660         Tests for module 'cbrt-ieee'.
1661         * modules/cbrt-ieee-tests: New file.
1662         * tests/test-cbrt-ieee.c: New file.
1663
1664         New module 'cbrt-ieee'.
1665         * modules/cbrt-ieee: New file.
1666
1667         Tests for module 'cbrtf-ieee'.
1668         * modules/cbrtf-ieee-tests: New file.
1669         * tests/test-cbrtf-ieee.c: New file.
1670         * tests/test-cbrt-ieee.h: New file.
1671
1672         New module 'cbrtf-ieee'.
1673         * modules/cbrtf-ieee: New file.
1674
1675 2012-02-29  Bruno Haible  <bruno@clisp.org>
1676
1677         cbrtf: Work around bug in IRIX 6.5 system function.
1678         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
1679         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
1680         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
1681         work.
1682         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
1683         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
1684         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
1685         (Depends-on): Update conditions.
1686         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
1687
1688 2012-02-29  Bruno Haible  <bruno@clisp.org>
1689
1690         Tests for module 'cbrtl'.
1691         * modules/cbrtl-tests: New file.
1692         * tests/test-cbrtl.c: New file.
1693
1694         New module 'cbrtl'.
1695         * lib/math.in.h (cbrtl): New declaration.
1696         * lib/cbrtl.c: New file.
1697         * m4/cbrtl.m4: New file.
1698         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
1699         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
1700         HAVE_DECL_CBRTL.
1701         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
1702         HAVE_DECL_CBRTL.
1703         * modules/cbrtl: New file.
1704         * tests/test-math-c++.cc: Check the declaration of cbrtl.
1705         * doc/posix-functions/cbrtl.texi: Mention the new module.
1706
1707 2012-02-29  Bruno Haible  <bruno@clisp.org>
1708
1709         Tests for module 'cbrtf'.
1710         * modules/cbrtf-tests: New file.
1711         * tests/test-cbrtf.c: New file.
1712
1713         New module 'cbrtf'.
1714         * lib/math.in.h (cbrtf): New declaration.
1715         * lib/cbrtf.c: New file.
1716         * m4/cbrtf.m4: New file.
1717         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
1718         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
1719         HAVE_DECL_CBRTF.
1720         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
1721         HAVE_DECL_CBRTF.
1722         * modules/cbrtf: New file.
1723         * tests/test-math-c++.cc: Check the declaration of cbrtf.
1724         * doc/posix-functions/cbrtf.texi: Mention the new module.
1725
1726 2012-02-29  Bruno Haible  <bruno@clisp.org>
1727
1728         cbrt: Provide replacement on MSVC and Minix.
1729         * lib/math.in.h (cbrt): New declaration.
1730         * lib/cbrt.c: New file.
1731         * m4/cbrt.m4: New file.
1732         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
1733         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
1734         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
1735         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
1736         (Depends-on): Add dependencies.
1737         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
1738         * tests/test-math-c++.cc: Check the declaration of cbrt.
1739         * doc/posix-functions/cbrt.texi: Mention that the module provides a
1740         replacement.
1741
1742 2012-02-29  Bruno Haible  <bruno@clisp.org>
1743
1744         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
1745         * m4/hypotl-ieee.m4: New file.
1746         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
1747         test whether hypotl works with mixed NaN and Infinity arguments.
1748         Replace it if not.
1749         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
1750         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
1751         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
1752         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
1753         (Depends-on): Update conditions.
1754         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
1755         (Depends-on): Add hypot-ieee.
1756         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
1757         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
1758
1759         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
1760         * m4/hypotf-ieee.m4: New file.
1761         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
1762         test whether hypotf works with mixed NaN and Infinity arguments.
1763         Replace it if not.
1764         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
1765         (Depends-on): Add hypot-ieee.
1766         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
1767         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
1768
1769         hypot-ieee: Work around test failure on OSF/1 and native Windows.
1770         * lib/math.in.h (hypot): New declaration.
1771         * lib/hypot.c: New file.
1772         * m4/hypot-ieee.m4: New file.
1773         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
1774         whether hypot works with mixed NaN and Infinity arguments. Replace it
1775         if not.
1776         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
1777         REPLACE_HYPOT.
1778         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
1779         * modules/hypot (Files): Add lib/hypot.c.
1780         (Depends-on): Add dependencies.
1781         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
1782         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
1783         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
1784         * tests/test-math-c++.cc: Check the declaration of hypot.
1785         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
1786
1787         Tests for module 'hypotl-ieee'.
1788         * modules/hypotl-ieee-tests: New file.
1789         * tests/test-hypotl-ieee.c: New file.
1790
1791         New module 'hypotl-ieee'.
1792         * modules/hypotl-ieee: New file.
1793
1794         Tests for module 'hypot-ieee'.
1795         * modules/hypot-ieee-tests: New file.
1796         * tests/test-hypot-ieee.c: New file.
1797
1798         New module 'hypot-ieee'.
1799         * modules/hypot-ieee: New file.
1800
1801         Tests for module 'hypotf-ieee'.
1802         * modules/hypotf-ieee-tests: New file.
1803         * tests/test-hypotf-ieee.c: New file.
1804         * tests/test-hypot-ieee.h: New file.
1805
1806         New module 'hypotf-ieee'.
1807         * modules/hypotf-ieee: New file.
1808
1809 2012-02-29  Bruno Haible  <bruno@clisp.org>
1810
1811         Remove unused variables.
1812         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
1813         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
1814         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
1815         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
1816
1817 2012-02-29  Eric Blake  <eblake@redhat.com>
1818
1819         termios: fix pid_t always, not just for tcgetsid
1820         * doc/posix-headers/termios.texi (termios.h): Mention problem.
1821         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
1822         just when building tcgetsid.
1823
1824 2012-02-29  Bruno Haible  <bruno@clisp.org>
1825
1826         Tests for module 'hypotl'.
1827         * modules/hypotl-tests: New file.
1828         * tests/test-hypotl.c: New file.
1829
1830         New module 'hypotl'.
1831         * lib/math.in.h (hypotl): New declaration.
1832         * lib/hypotl.c: New file.
1833         * m4/hypotl.m4: New file.
1834         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
1835         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
1836         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
1837         * modules/hypotl: New file.
1838         * tests/test-math-c++.cc: Check the hypotl declaration.
1839         * doc/posix-functions/hypotl.texi: Mention the new module.
1840
1841 2012-02-29  Eric Blake  <eblake@redhat.com>
1842
1843         tcgetsid: fix cygwin header bug
1844         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
1845
1846         docs: update cygwin progress
1847         * doc/posix-functions/llround.texi (llround): Added in cygwin
1848         1.7.8.
1849         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
1850         * doc/glibc-functions/program_invocation_name.texi
1851         (program_invocation_name): Likewise.
1852         * doc/glibc-functions/program_invocation_short_name.texi
1853         (program_invocation_short_name): Likewise.
1854         * doc/glibc-functions/madvise.texi (madvise): Likewise.
1855         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
1856         Likewise.
1857         * doc/posix-functions/pthread_spin_destroy.texi
1858         (pthread_spin_destroy): Added in cygwin 1.7.10.
1859         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
1860         Likewise.
1861         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
1862         Likewise.
1863         * doc/posix-functions/pthread_spin_trylock.texi
1864         (pthread_spin_trylock): Likewise.
1865         * doc/posix-functions/pthread_spin_unlock.texi
1866         (pthread_spin_unlock): Likewise.
1867         * doc/posix-functions/pthread_setschedprio.texi
1868         (pthread_setschedprio): Likewise.
1869         * doc/posix-functions/pthread_attr_getstack.texi
1870         (pthread_attr_getstack): Likewise.
1871         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
1872         (pthread_attr_getstackaddr): Likewise.
1873         * doc/glibc-functions/pthread_getattr_np.texi
1874         (pthread_getattr_np): Likewise.
1875         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
1876         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
1877         * doc/posix-functions/clock_settime.texi (clock_settime):
1878         Likewise.
1879         * doc/posix-functions/pthread_attr_getguardsize.texi
1880         (pthread_attr_getguardsize): Likewise.
1881         * doc/posix-functions/pthread_attr_setguardsize.texi
1882         (pthread_attr_setguardsize): Likewise.
1883         * doc/posix-functions/pthread_attr_setstack.texi
1884         (pthread_attr_setstack): Likewise.
1885         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
1886         (pthread_attr_setstackaddr): Likewise.
1887         * doc/posix-functions/clock_getcpuclockid.texi
1888         (clock_getcpuclockid): Likewise.
1889         * doc/posix-functions/pthread_getcpuclockid.texi
1890         (pthread_getcpuclockid): Likewise.
1891         * doc/glibc-functions/error.texi (error): Likewise.
1892         * doc/glibc-functions/error_at_line.texi (error_at_line):
1893         Likewise.
1894         * doc/glibc-functions/error_message_count.texi
1895         (error_message_count): Likewise.
1896         * doc/glibc-functions/error_one_per_line.texi
1897         (error_one_per_line): Likewise.
1898         * doc/glibc-functions/error_print_progname.texi
1899         (error_print_progname): Likewise.
1900         * doc/posix-functions/pthread_condattr_getclock.texi
1901         (pthread_condattr_getclock): Likewise.
1902         * doc/posix-functions/pthread_condattr_setclock.texi
1903         (pthread_condattr_setclock): Likewise.
1904         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
1905         Likewise.
1906         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
1907         * doc/glibc-functions/getpt.texi (getpt): Likewise.
1908         * doc/glibc-functions/get_current_dir_name.texi
1909         (get_current_dir_name): Likewise.
1910         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
1911         Likewise.
1912         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
1913         wrong return type.
1914         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
1915         1.7.11.
1916
1917 2012-02-29  Bruno Haible  <bruno@clisp.org>
1918
1919         Tests for module 'hypotf'.
1920         * modules/hypotf-tests: New file.
1921         * tests/test-hypotf.c: New file.
1922
1923         New module 'hypotf'.
1924         * lib/math.in.h (hypotf): New declaration.
1925         * lib/hypotf.c: New file.
1926         * m4/hypotf.m4: New file.
1927         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
1928         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
1929         REPLACE_HYPOTF.
1930         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
1931         REPLACE_HYPOTF.
1932         * modules/hypotf: New file.
1933         * tests/test-math-c++.cc: Check the hypotf declaration.
1934         * doc/posix-functions/hypotf.texi: Mention the new module.
1935
1936         hypot: Prepare for hypotf module.
1937         * m4/hypot.m4: New file.
1938         * modules/hypot (Files): Add m4/hypot.m4.
1939         (configure.ac): Invoke gl_FUNC_HYPOT.
1940
1941 2012-02-29  Bruno Haible  <bruno@clisp.org>
1942
1943         hypot tests: More tests.
1944         * tests/test-hypot.c: Include <float.h>.
1945         (main): Add tests about overflow and underflow.
1946
1947 2012-02-29  Bruno Haible  <bruno@clisp.org>
1948
1949         math code: Add comments.
1950         * lib/acosl.c: Add comment about related glibc source files.
1951         * lib/asinl.c: Likewise.
1952         * lib/atanl.c: Likewise.
1953         * lib/expl.c: Likewise.
1954         * lib/logl.c: Likewise.
1955         * lib/sincosl.c: Likewise.
1956         * lib/sinl.c: Likewise.
1957         * lib/tanl.c: Likewise.
1958         * lib/trigl.c: Likewise.
1959         * lib/cosl.c: Likewise. Fix comments.
1960
1961 2012-02-28  Bruno Haible  <bruno@clisp.org>
1962
1963         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
1964         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
1965         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
1966         HUGE_VALL are defined.
1967         (numeric_equald): Renamed from numeric_equal.
1968         (numeric_equalf, numeric_equall): New functions.
1969         (main): Check also HUGE_VALF, HUGE_VALL.
1970         * modules/math-tests (Files): Add tests/macros.h.
1971         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
1972         HUGE_VALL.
1973
1974 2012-02-28  Bruno Haible  <bruno@clisp.org>
1975
1976         doc: Move ISO C11 feature notes into POSIX chapters.
1977         * doc/posix-functions/aligned_alloc.texi: Renamed from
1978         doc/glibc-functions/aligned_alloc.texi.
1979         * doc/posix-functions/quick_exit.texi: Renamed from
1980         doc/glibc-functions/quick_exit.texi.
1981         * doc/posix-headers/uchar.texi: Renamed from
1982         doc/glibc-headers/uchar.texi.
1983         * doc/posix-functions/c16rtomb.texi: Renamed from
1984         doc/glibc-functions/c16rtomb.texi.
1985         * doc/posix-functions/c32rtomb.texi: Renamed from
1986         doc/glibc-functions/c32rtomb.texi.
1987         * doc/posix-functions/mbrtoc16.texi: Renamed from
1988         doc/glibc-functions/mbrtoc16.texi.
1989         * doc/posix-functions/mbrtoc32.texi: Renamed from
1990         doc/glibc-functions/mbrtoc32.texi.
1991         * doc/gnulib.texi: Update.
1992         (Glibc uchar.h): Remove section.
1993         Suggested by Eric Blake.
1994
1995 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
1996
1997         stdnoreturn: port to MSVC better
1998         MSVC standard headers use __declspec(noreturn), so #define noreturn
1999         to empty on that platform.  Reported by Bruno Haible in
2000         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
2001         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
2002         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
2003
2004 2012-02-28  Bruno Haible  <bruno@clisp.org>
2005
2006         doc: Mention new glibc headers and functions.
2007         * doc/glibc-headers/uchar.texi: New file.
2008         * doc/glibc-functions/aligned_alloc.texi: New file.
2009         * doc/glibc-functions/c16rtomb.texi: New file.
2010         * doc/glibc-functions/c32rtomb.texi: New file.
2011         * doc/glibc-functions/clock_adjtime.texi: New file.
2012         * doc/glibc-functions/fanotify_init.texi: New file.
2013         * doc/glibc-functions/fanotify_mark.texi: New file.
2014         * doc/glibc-functions/inet6_opt_append.texi: New file.
2015         * doc/glibc-functions/inet6_opt_find.texi: New file.
2016         * doc/glibc-functions/inet6_opt_finish.texi: New file.
2017         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
2018         * doc/glibc-functions/inet6_opt_init.texi: New file.
2019         * doc/glibc-functions/inet6_opt_next.texi: New file.
2020         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
2021         * doc/glibc-functions/inet6_rth_add.texi: New file.
2022         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
2023         * doc/glibc-functions/inet6_rth_init.texi: New file.
2024         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
2025         * doc/glibc-functions/inet6_rth_segments.texi: New file.
2026         * doc/glibc-functions/inet6_rth_space.texi: New file.
2027         * doc/glibc-functions/login.texi: New file.
2028         * doc/glibc-functions/mbrtoc16.texi: New file.
2029         * doc/glibc-functions/mbrtoc32.texi: New file.
2030         * doc/glibc-functions/name_to_handle_at.texi: New file.
2031         * doc/glibc-functions/ntp_gettimex.texi: New file.
2032         * doc/glibc-functions/open_by_handle_at.texi: New file.
2033         * doc/glibc-functions/prlimit.texi: New file.
2034         * doc/glibc-functions/process_vm_readv.texi: New file.
2035         * doc/glibc-functions/process_vm_writev.texi: New file.
2036         * doc/glibc-functions/recvmmsg.texi: New file.
2037         * doc/glibc-functions/scandirat.texi: New file.
2038         * doc/glibc-functions/sendmmsg.texi: New file.
2039         * doc/glibc-functions/setns.texi: New file.
2040         * doc/glibc-functions/timespec_get.texi: New file.
2041         * doc/gnulib.texi: Include them.
2042         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
2043         sections.
2044         Reported by Eric Blake.
2045
2046 2012-02-28  Bruno Haible  <bruno@clisp.org>
2047
2048         Avoid compilation errors with MSVC option -fp:strict.
2049         * lib/floor.c: Use MSVC specific pragma fenv_access.
2050         * lib/ceil.c: Likewise.
2051         * lib/trunc.c: Likewise.
2052         * lib/round.c: Likewise.
2053         * lib/rint.c: Likewise.
2054         * lib/fma.c: Likewise.
2055         * lib/integer_length.c: Likewise.
2056         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2057         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2058         * tests/test-floor2.c: Likewise.
2059         * tests/test-floorf2.c: Likewise.
2060         * tests/test-ceil2.c: Likewise.
2061         * tests/test-ceilf2.c: Likewise.
2062         * tests/test-trunc2.c: Likewise.
2063         * tests/test-truncf2.c: Likewise.
2064         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2065
2066 2012-02-27  Bruno Haible  <bruno@clisp.org>
2067
2068         Tests for module 'sqrtl-ieee'.
2069         * modules/sqrtl-ieee-tests: New file.
2070         * tests/test-sqrtl-ieee.c: New file.
2071
2072         New module 'sqrtl-ieee'.
2073         * modules/sqrtl-ieee: New file.
2074
2075         Tests for module 'sqrt-ieee'.
2076         * modules/sqrt-ieee-tests: New file.
2077         * tests/test-sqrt-ieee.c: New file.
2078
2079         New module 'sqrt-ieee'.
2080         * modules/sqrt-ieee: New file.
2081
2082         Tests for module 'sqrtf-ieee'.
2083         * modules/sqrtf-ieee-tests: New file.
2084         * tests/test-sqrtf-ieee.c: New file.
2085         * tests/test-sqrt-ieee.h: New file.
2086
2087         New module 'sqrtf-ieee'.
2088         * modules/sqrtf-ieee: New file.
2089
2090 2012-02-27  Bruno Haible  <bruno@clisp.org>
2091
2092         remainderl-ieee: Work around test failure on OSF/1.
2093         * m4/remainderl-ieee.m4: New file.
2094         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
2095         present, test whether remainderl works with a zero second argument.
2096         Replace it if not.
2097         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
2098         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
2099         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
2100         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
2101         (Depends-on): Update conditions.
2102         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
2103         (Depends-on): Add remainder-ieee.
2104         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
2105         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
2106         module.
2107
2108         remainderf-ieee: Work around test failure on OSF/1.
2109         * m4/remainderf-ieee.m4: New file.
2110         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
2111         present, test whether remainderf works with a zero second argument.
2112         Replace it if not.
2113         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
2114         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
2115         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
2116         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
2117         (Depends-on): Update conditions.
2118         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
2119         (Depends-on): Add remainder-ieee.
2120         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
2121         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
2122         module.
2123
2124         remainder-ieee: Work around test failure on OSF/1.
2125         * m4/remainder-ieee.m4: New file.
2126         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
2127         present, test whether remainder works with a zero second argument.
2128         Replace it if not.
2129         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
2130         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
2131         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
2132         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
2133         (Depends-on): Update dependencies.
2134         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
2135         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
2136         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
2137
2138         Tests for module 'remainderl-ieee'.
2139         * modules/remainderl-ieee-tests: New file.
2140         * tests/test-remainderl-ieee.c: New file.
2141
2142         New module 'remainderl-ieee'.
2143         * modules/remainderl-ieee: New file.
2144
2145         Tests for module 'remainder-ieee'.
2146         * modules/remainder-ieee-tests: New file.
2147         * tests/test-remainder-ieee.c: New file.
2148
2149         New module 'remainder-ieee'.
2150         * modules/remainder-ieee: New file.
2151
2152         Tests for module 'remainderf-ieee'.
2153         * modules/remainderf-ieee-tests: New file.
2154         * tests/test-remainderf-ieee.c: New file.
2155         * tests/test-remainder-ieee.h: New file.
2156
2157         New module 'remainderf-ieee'.
2158         * modules/remainderf-ieee: New file.
2159
2160 2012-02-27  Bruno Haible  <bruno@clisp.org>
2161
2162         modff, modfl: Fix configure syntax error.
2163         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
2164         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2165
2166 2012-02-27  Bruno Haible  <bruno@clisp.org>
2167
2168         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
2169         * m4/fmodl-ieee.m4: New file.
2170         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
2171         whether fmodl works with zero arguments. Replace it if not.
2172         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
2173         (Depends-on): Add fmod-ieee.
2174         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
2175         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
2176
2177         fmodf-ieee: Work around test failure on OSF/1.
2178         * m4/fmodf-ieee.m4: New file.
2179         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
2180         whether fmodf works with zero arguments. Replace it if not.
2181         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
2182         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
2183         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
2184         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
2185         (Depends-on): Update dependencies.
2186         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
2187         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
2188         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
2189
2190         fmodf-ieee: Work around test failure on MSVC 9.
2191         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
2192         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
2193
2194         fmod-ieee: Work around test failures on OSF/1, mingw.
2195         * m4/fmod-ieee.m4: New file.
2196         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
2197         whether fmod works with zero arguments. Replace it if not.
2198         * lib/math.in.h (fmod): New declaration.
2199         * lib/fmod.c: New file.
2200         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
2201         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
2202         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
2203         * modules/fmod (Files): Add lib/fmod.c.
2204         (Depends-on): Add math, isinf, trunc, fma.
2205         (configure.ac): Arrange to compile lib/fmod.c if needed.
2206         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
2207         m4/signbit.m4.
2208         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
2209         * tests/test-math-c++.cc: Check the declaration of fmod.
2210         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
2211
2212         fmodl-ieee: Fix test failures.
2213         * lib/fmodl.c (fmodl): Treat Inf specially.
2214         * modules/fmodl (Depends-on): Add isinf.
2215
2216         Tests for module 'fmodl-ieee'.
2217         * modules/fmodl-ieee-tests: New file.
2218         * tests/test-fmodl-ieee.c: New file.
2219
2220         New module 'fmodl-ieee'.
2221         * modules/fmodl-ieee: New file.
2222
2223         Tests for module 'fmod-ieee'.
2224         * modules/fmod-ieee-tests: New file.
2225         * tests/test-fmod-ieee.c: New file.
2226
2227         New module 'fmod-ieee'.
2228         * modules/fmod-ieee: New file.
2229
2230         Tests for module 'fmodf-ieee'.
2231         * modules/fmodf-ieee-tests: New file.
2232         * tests/test-fmodf-ieee.c: New file.
2233         * tests/test-fmod-ieee.h: New file.
2234
2235         New module 'fmodf-ieee'.
2236         * modules/fmodf-ieee: New file.
2237
2238 2012-02-27  Bruno Haible  <bruno@clisp.org>
2239
2240         Tests for module 'rintl-ieee'.
2241         * modules/rintl-ieee-tests: New file.
2242         * tests/test-rintl-ieee.c: New file.
2243
2244         New module 'rintl-ieee'.
2245         * modules/rintl-ieee: New file.
2246
2247         Tests for module 'rint-ieee'.
2248         * modules/rint-ieee-tests: New file.
2249         * tests/test-rint-ieee.c: New file.
2250
2251         New module 'rint-ieee'.
2252         * modules/rint-ieee: New file.
2253
2254         Tests for module 'rintf-ieee'.
2255         * modules/rintf-ieee-tests: New file.
2256         * tests/test-rintf-ieee.c: New file.
2257         * tests/test-rint-ieee.h: New file.
2258
2259         New module 'rintf-ieee'.
2260         * modules/rintf-ieee: New file.
2261
2262 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
2263
2264         regex: re_search etc. should return -2 when memory exhausted
2265         This bug was uncovered when testing 'grep'.  Without the fix,
2266         re_search and friends return -1 when memory is exhausted, but -1
2267         means no match, and this causes grep to falsely report no-match
2268         instead of memory-exhaustion.  See
2269         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
2270         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
2271         trouble; this can occur if re_search_internal ran out of memory.
2272
2273 2012-02-26  Bruno Haible  <bruno@clisp.org>
2274
2275         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
2276         * m4/modfl-ieee.m4: New file.
2277         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
2278         whether modfl works with Inf. Replace it if not.
2279         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
2280         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
2281         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
2282         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
2283         (Depends-on): Update dependencies.
2284         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
2285         m4/signbit.m4.
2286         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
2287         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
2288
2289         modfl-ieee: Fix dependencies.
2290         * modules/modfl-ieee (Depends-on): Add modf-ieee.
2291
2292         modfl-ieee: Fix test failures.
2293         * lib/modfl.c (modfl): Treat NaN and Inf specially.
2294         * modules/modfl (Depends-on): Add isfinite, isinf.
2295
2296         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
2297         * m4/modff-ieee.m4: New file.
2298         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
2299         whether modff works with NaN and Inf. Replace it if not.
2300         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
2301         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
2302         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
2303         * modules/modff (configure.ac): Consider REPLACE_MODFF.
2304         (Depends-on): Update dependencies.
2305         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
2306         m4/signbit.m4.
2307         (Depends-on): Add modf-ieee.
2308         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
2309         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
2310
2311         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
2312         * m4/modf-ieee.m4: New file.
2313         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
2314         whether modf works with NaN and Inf. Replace it if not.
2315         * lib/math.in.h (modf): New declaration.
2316         * lib/modf.c: New file.
2317         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
2318         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
2319         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
2320         * modules/modf (Files): Add lib/modf.c.
2321         (Depends-on): Add math, isfinite, trunc, isinf.
2322         (configure.ac): Addrange to compile lib/modf.c if needed.
2323         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
2324         m4/signbit.m4.
2325         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
2326         * tests/test-math-c++.cc: Check the declaration of modf.
2327         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
2328
2329         Tests for module 'modfl-ieee'.
2330         * modules/modfl-ieee-tests: New file.
2331         * tests/test-modfl-ieee.c: New file.
2332
2333         New module 'modfl-ieee'.
2334         * modules/modfl-ieee: New file.
2335
2336         Tests for module 'modf-ieee'.
2337         * modules/modf-ieee-tests: New file.
2338         * tests/test-modf-ieee.c: New file.
2339
2340         New module 'modf-ieee'.
2341         * modules/modf-ieee: New file.
2342
2343         Tests for module 'modff-ieee'.
2344         * modules/modff-ieee-tests: New file.
2345         * tests/test-modff-ieee.c: New file.
2346         * tests/test-modf-ieee.h: New file.
2347
2348         New module 'modff-ieee'.
2349         * modules/modff-ieee: New file.
2350
2351 2012-02-26  Bruno Haible  <bruno@clisp.org>
2352
2353         Tests for module 'fabsl-ieee'.
2354         * modules/fabsl-ieee-tests: New file.
2355         * tests/test-fabsl-ieee.c: New file.
2356
2357         New module 'fabsl-ieee'.
2358         * modules/fabsl-ieee: New file.
2359
2360         Tests for module 'fabs-ieee'.
2361         * modules/fabs-ieee-tests: New file.
2362         * tests/test-fabs-ieee.c: New file.
2363
2364         New module 'fabs-ieee'.
2365         * modules/fabs-ieee: New file.
2366
2367         Tests for module 'fabsf-ieee'.
2368         * modules/fabsf-ieee-tests: New file.
2369         * tests/test-fabsf-ieee.c: New file.
2370         * tests/test-fabs-ieee.h: New file.
2371
2372         New module 'fabsf-ieee'.
2373         * modules/fabsf-ieee: New file.
2374
2375 2012-02-26  Bruno Haible  <bruno@clisp.org>
2376
2377         Tests for module 'fmal-ieee'.
2378         * modules/fmal-ieee-tests: New file.
2379         * tests/test-fmal-ieee.c: New file.
2380
2381         New module 'fmal-ieee'.
2382         * modules/fmal-ieee: New file.
2383
2384         Tests for module 'fma-ieee'.
2385         * modules/fma-ieee-tests: New file.
2386         * tests/test-fma-ieee.c: New file.
2387
2388         New module 'fma-ieee'.
2389         * modules/fma-ieee: New file.
2390
2391         Tests for module 'fmaf-ieee'.
2392         * modules/fmaf-ieee-tests: New file.
2393         * tests/test-fmaf-ieee.c: New file.
2394         * tests/test-fma-ieee.h: New file.
2395
2396         New module 'fmaf-ieee'.
2397         * modules/fmaf-ieee: New file.
2398
2399 2012-02-26  Bruno Haible  <bruno@clisp.org>
2400
2401         Tests for module 'ldexpl-ieee'.
2402         * modules/ldexpl-ieee-tests: New file.
2403         * tests/test-ldexpl-ieee.c: New file.
2404
2405         New module 'ldexpl-ieee'.
2406         * modules/ldexpl-ieee: New file.
2407
2408         Tests for module 'ldexp-ieee'.
2409         * modules/ldexp-ieee-tests: New file.
2410         * tests/test-ldexp-ieee.c: New file.
2411
2412         New module 'ldexp-ieee'.
2413         * modules/ldexp-ieee: New file.
2414
2415         Tests for module 'ldexpf-ieee'.
2416         * modules/ldexpf-ieee-tests: New file.
2417         * tests/test-ldexpf-ieee.c: New file.
2418         * tests/test-ldexp-ieee.h: New file.
2419
2420         New module 'ldexpf-ieee'.
2421         * modules/ldexpf-ieee: New file.
2422
2423 2012-02-26  Bruno Haible  <bruno@clisp.org>
2424
2425         Refactor frexp*-ieee tests.
2426         * tests/test-frexp-ieee.h: New file.
2427         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
2428         (main): Just call test_function.
2429         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
2430         (main): Just call test_function.
2431         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
2432         (main): Just call test_function.
2433         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
2434         * modules/frexp-ieee-tests (Files): Likewise.
2435         * modules/frexpl-ieee-tests (Files): Likewise.
2436
2437         Tests for module 'frexpl-ieee'.
2438         * modules/frexpl-ieee-tests: New file.
2439         * tests/test-frexpl-ieee.c: New file.
2440
2441         New module 'frexpl-ieee'.
2442         * modules/frexpl-ieee: New file.
2443
2444         Tests for module 'frexp-ieee'.
2445         * modules/frexp-ieee-tests: New file.
2446         * tests/test-frexp-ieee.c: New file.
2447
2448         New module 'frexp-ieee'.
2449         * modules/frexp-ieee: New file.
2450
2451         Tests for module 'frexpf-ieee'.
2452         * modules/frexpf-ieee-tests: New file.
2453         * tests/test-frexpf-ieee.c: New file.
2454
2455         New module 'frexpf-ieee'.
2456         * modules/frexpf-ieee: New file.
2457
2458 2012-02-26  Bruno Haible  <bruno@clisp.org>
2459
2460         roundl-ieee tests: More tests.
2461         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2462         (main): Add tests for [MX] shaded specification in POSIX.
2463         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2464         (Depends-on): Add isnanl-nolibm.
2465
2466         round-ieee tests: More tests.
2467         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2468         (main): Add tests for [MX] shaded specification in POSIX.
2469         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2470         (Depends-on): Add isnand-nolibm.
2471
2472         roundf-ieee tests: More tests.
2473         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2474         (main): Add tests for [MX] shaded specification in POSIX.
2475         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2476         (Depends-on): Add isnanf-nolibm.
2477
2478         truncl-ieee tests: More tests.
2479         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2480         (main): Add tests for [MX] shaded specification in POSIX.
2481         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2482         (Depends-on): Add isnanl-nolibm.
2483
2484         trunc-ieee tests: More tests.
2485         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2486         (main): Add tests for [MX] shaded specification in POSIX.
2487         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2488         (Depends-on): Add isnand-nolibm.
2489
2490         truncf-ieee tests: More tests.
2491         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2492         (main): Add tests for [MX] shaded specification in POSIX.
2493         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2494         (Depends-on): Add isnanf-nolibm.
2495
2496         ceill-ieee tests: More tests.
2497         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2498         (main): Add tests for [MX] shaded specification in POSIX.
2499         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2500         (Depends-on): Add isnanl-nolibm.
2501
2502         ceil-ieee tests: More tests.
2503         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2504         (main): Add tests for [MX] shaded specification in POSIX.
2505         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2506         (Depends-on): Add isnand-nolibm.
2507
2508         ceilf-ieee tests: More tests.
2509         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2510         (main): Add tests for [MX] shaded specification in POSIX.
2511         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2512         (Depends-on): Add isnanf-nolibm.
2513
2514         floorl-ieee tests: More tests.
2515         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2516         (main): Add tests for [MX] shaded specification in POSIX.
2517         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2518         (Depends-on): Add isnanl-nolibm.
2519
2520         floor-ieee tests: More tests.
2521         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2522         (main): Add tests for [MX] shaded specification in POSIX.
2523         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2524         (Depends-on): Add isnand-nolibm.
2525
2526         floorf-ieee tests: More tests.
2527         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2528         (main): Add tests for [MX] shaded specification in POSIX.
2529         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2530         (Depends-on): Add isnanf-nolibm.
2531
2532 2012-02-26  Bruno Haible  <bruno@clisp.org>
2533
2534         fpieee: More comments.
2535         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
2536
2537 2012-02-25  Bruno Haible  <bruno@clisp.org>
2538
2539         Tests for module 'log10l'.
2540         * modules/log10l-tests: New file.
2541         * tests/test-log10l.c: New file.
2542         * tests/test-math-c++.cc: Check the declaration of log10l.
2543
2544         New module 'log10l'.
2545         * lib/math.in.h (log10l): New declaration.
2546         * lib/log10l.c: New file.
2547         * m4/log10l.m4: New file.
2548         * modules/log10l: New file.
2549         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
2550         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
2551         HAVE_DECL_LOG10L.
2552         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
2553         HAVE_DECL_LOG10L.
2554         * doc/posix-functions/log10l.texi: Mention the new module.
2555
2556 2012-02-25  Bruno Haible  <bruno@clisp.org>
2557
2558         fmodl, remainder*: Avoid wrong results due to rounding errors.
2559         * lib/fmodl.c (fmodl): Correct the result if it is not within the
2560         expected bounds.
2561         * lib/remainderf.c (remainderf): Likewise.
2562         * lib/remainder.c (remainder): Likewise.
2563         * lib/remainderl.c (remainderl): Likewise.
2564
2565 2012-02-25  Bruno Haible  <bruno@clisp.org>
2566
2567         Tests for module 'remainderl'.
2568         * modules/remainderl-tests: New file.
2569         * tests/test-remainderl.c: New file.
2570         * tests/test-math-c++.cc: Check the declaration of remainderl.
2571
2572         New module 'remainderl'.
2573         * lib/math.in.h (remainderl): New declaration.
2574         * lib/remainderl.c: New file.
2575         * m4/remainderl.m4: New file.
2576         * modules/remainderl: New file.
2577         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
2578         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
2579         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
2580         HAVE_REMAINDERL.
2581         * doc/posix-functions/remainderl.texi: Mention the new module.
2582
2583 2012-02-25  Bruno Haible  <bruno@clisp.org>
2584
2585         Tests for module 'remainderf'.
2586         * modules/remainderf-tests: New file.
2587         * tests/test-remainderf.c: New file.
2588         * tests/test-math-c++.cc: Check the declaration of remainderf.
2589
2590         New module 'remainderf'.
2591         * lib/math.in.h (remainderf): New declaration.
2592         * lib/remainderf.c: New file.
2593         * m4/remainderf.m4: New file.
2594         * modules/remainderf: New file.
2595         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
2596         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
2597         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
2598         HAVE_REMAINDERF.
2599         * doc/posix-functions/remainderf.texi: Mention the new module.
2600
2601 2012-02-25  Bruno Haible  <bruno@clisp.org>
2602
2603         remainder: Support for MSVC.
2604         * lib/math.in.h (remainder): New declaration.
2605         * lib/remainder.c: New file.
2606         * m4/remainder.m4: New file.
2607         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
2608         (Depends-on): Add math, round, fma.
2609         (configure.ac): Use results of gl_FUNC_REMAINDER.
2610         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
2611         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
2612         HAVE_DECL_REMAINDER.
2613         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
2614         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
2615         * tests/test-math-c++.cc: Check the declaration of remainder.
2616         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
2617         problems are fixed.
2618
2619 2012-02-25  Bruno Haible  <bruno@clisp.org>
2620
2621         Tests for module 'fmodl'.
2622         * modules/fmodl-tests: New file.
2623         * tests/test-fmodl.c: New file.
2624         * tests/test-math-c++.cc: Check the declaration of fmodl.
2625
2626         New module 'fmodl'.
2627         * lib/math.in.h (fmodl): New declaration.
2628         * lib/fmodl.c: New file.
2629         * m4/fmodl.m4: New file.
2630         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
2631         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
2632         REPLACE_FMODL.
2633         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
2634         REPLACE_FMODL.
2635         * modules/fmodl: New file.
2636         * doc/posix-functions/fmodl.texi: Mention the new module.
2637
2638 2012-02-25  Bruno Haible  <bruno@clisp.org>
2639
2640         Tests for module 'modfl'.
2641         * modules/modfl-tests: New file.
2642         * tests/test-modfl.c: New file.
2643         * tests/test-math-c++.cc: Check the declaration of modfl.
2644
2645         New module 'modfl'.
2646         * lib/math.in.h (modfl): New declaration.
2647         * lib/modfl.c: New file.
2648         * m4/modfl.m4: New file.
2649         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
2650         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
2651         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
2652         * modules/modfl: New file.
2653         * doc/posix-functions/modfl.texi: Mention the new module.
2654
2655 2012-02-25  Bruno Haible  <bruno@clisp.org>
2656
2657         Tests for module 'fabsl'.
2658         * modules/fabsl-tests: New file.
2659         * tests/test-fabsl.c: New file.
2660         * tests/test-math-c++.cc: Check the declaration of fabsl.
2661
2662         New module 'fabsl'.
2663         * lib/math.in.h (fabsl): New declaration.
2664         * lib/fabsl.c: New file.
2665         * m4/fabsl.m4: New file.
2666         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
2667         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
2668         REPLACE_FABSL.
2669         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
2670         REPLACE_FABSL.
2671         * modules/fabsl: New file.
2672         * doc/posix-functions/fabsl.texi: Mention the new module.
2673
2674 2012-02-25  Bruno Haible  <bruno@clisp.org>
2675
2676         fabs tests: More tests.
2677         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
2678         (zero): New variable.
2679         (main): Add tests for signed zero.
2680         * modules/fabs-tests (Files): Add tests/minus-zero.h.
2681
2682         fabsf tests: More tests.
2683         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
2684         (zero): New variable.
2685         (main): Add tests for signed zero.
2686         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
2687
2688 2012-02-24  Bruno Haible  <bruno@clisp.org>
2689
2690         atanl: Provide function definition on MSVC.
2691         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
2692         function pointer.
2693         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
2694
2695 2012-02-24  Bruno Haible  <bruno@clisp.org>
2696
2697         acosl: Provide function definition on MSVC.
2698         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
2699         function pointer.
2700         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
2701
2702 2012-02-24  Bruno Haible  <bruno@clisp.org>
2703
2704         asinl: Provide function definition on MSVC.
2705         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
2706         function pointer.
2707         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
2708
2709 2012-02-24  Bruno Haible  <bruno@clisp.org>
2710
2711         tanl: Provide function definition on MSVC.
2712         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
2713         function pointer.
2714         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
2715
2716 2012-02-24  Bruno Haible  <bruno@clisp.org>
2717
2718         cosl: Provide function definition on MSVC.
2719         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
2720         function pointer.
2721         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
2722
2723 2012-02-24  Bruno Haible  <bruno@clisp.org>
2724
2725         sinl: Provide function definition on MSVC.
2726         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
2727         function pointer.
2728         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
2729
2730 2012-02-24  Bruno Haible  <bruno@clisp.org>
2731
2732         logl: Provide function definition on MSVC.
2733         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
2734         function pointer.
2735         * lib/math.in.h (logl): Undefine if it does not exist as a function.
2736
2737 2012-02-24  Bruno Haible  <bruno@clisp.org>
2738
2739         expl: Provide function definition on MSVC.
2740         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
2741         function pointer.
2742         * lib/math.in.h (expl): Undefine if it does not exist as a function.
2743
2744 2012-02-24  Bruno Haible  <bruno@clisp.org>
2745
2746         sqrtl: Provide function definition on MSVC.
2747         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
2748         a function pointer.
2749         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
2750
2751 2012-02-24  Bruno Haible  <bruno@clisp.org>
2752
2753         ceill: Provide function definition on MSVC.
2754         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
2755         used as a function pointer.
2756         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
2757
2758 2012-02-24  Bruno Haible  <bruno@clisp.org>
2759
2760         floorl: Provide function definition on MSVC.
2761         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
2762         used as a function pointer.
2763         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
2764
2765 2012-02-24  Bruno Haible  <bruno@clisp.org>
2766
2767         ceilf: Provide function definition on MSVC.
2768         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
2769         used as a function pointer.
2770         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
2771
2772 2012-02-24  Bruno Haible  <bruno@clisp.org>
2773
2774         floorf: Provide function definition on MSVC.
2775         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
2776         used as a function pointer.
2777         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
2778
2779 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
2780
2781         stdnoreturn: new module
2782         This implements a replacement for C11's <stdnoreturn.h>.
2783         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
2784         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
2785         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
2786         * tests/test-stdnoreturn.c: New files.
2787
2788 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
2789
2790         regex: fix false multibyte matches in some regular expressions
2791         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
2792         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
2793         * lib/regex_internal.c (re_string_skip_chars):
2794         Fix miscomputation of remain_len that may cause incomplete
2795         multi-byte character and false match.
2796
2797 2012-02-24  Jim Meyering  <meyering@redhat.com>
2798
2799         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
2800         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
2801         uses with "==" *before* the call, e.g., 0 == strcmp (...)
2802         Remove now-unnecessary str''cmp obfuscation.
2803         Suggested by Akim Demaille.
2804
2805 2012-02-24  Bruno Haible  <bruno@clisp.org>
2806
2807         streq: Rename macro.
2808         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
2809         * NEWS: Mention the change.
2810         * lib/mbrtowc.c (mbrtowc): Update.
2811         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
2812         * lib/wcwidth.c (wcwidth): Update.
2813         Suggested by Akim Demaille and Jim Meyering.
2814
2815 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
2816
2817         regex: fix typo in definition of MIN
2818         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
2819         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
2820
2821 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
2822             Bruno Haible  <bruno@clisp.org>
2823
2824         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
2825         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
2826         entries into a stack-allocated buffer directly.
2827         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
2828
2829 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
2830             Bruno Haible  <bruno@clisp.org>
2831
2832         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
2833
2834          - There were several instances of this pattern:
2835
2836              for (;;) {
2837                n = acl (f, GETACLCNT, 0, NULL);
2838                [ allocate an array A of size N ]
2839                if (acl (f, GETACL, n, a) == n)
2840                  break;
2841              }
2842
2843            This loop might never terminate if some other process is constantly
2844            manipulating the file's ACL.  The loop should be rewritten to
2845            terminate.
2846
2847          - The acl (... GETACLNT ...) call is merely an optimization; its value
2848            is merely a hint as to how big to make the array.  A better
2849            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
2850            and just guess a reasonably-big size, growing the size and trying
2851            again if it's not large enough.  This guarantees termination, and
2852            saves a system call.
2853
2854         * lib/acl-internal.h: Include <limits.h>.
2855         (MIN, SIZE_MAX): New macros.
2856         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
2857         a stack-allocated buffer, and use malloc if it does not fit. Don't
2858         use GETACLCNT.
2859         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
2860
2861 2012-02-19  Bruno Haible  <bruno@clisp.org>
2862
2863         acl: Fix endless loop on Solaris with vxfs.
2864         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
2865         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
2866         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
2867         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
2868         * tests/test-sameacls.c (main)[Solaris]: Likewise.
2869         Reported by Bill Jones in
2870         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
2871
2872 2012-02-19  Bruno Haible  <bruno@clisp.org>
2873
2874         acl: Fix copy-acl test failure on Solaris 11 2011-11.
2875         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
2876         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
2877         that this function returns 0 in some more cases.
2878
2879 2012-02-19  Bruno Haible  <bruno@clisp.org>
2880
2881         acl: Update doc references.
2882         * doc/acl-resources.txt: Update links to Solaris documentation.
2883
2884 2012-02-19  Bruno Haible  <bruno@clisp.org>
2885
2886         Fix test failure in many locales on Solaris 11.
2887         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
2888         'tr' arguments.
2889         * tests/test-pipe-filter-ii1.c (main): Likewise.
2890         * build-aux/bootstrap (check_versions): Run 'tr' command with range
2891         expressions in the C locale.
2892         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
2893         * m4/host-os.m4 (gl_HOST_OS): Likewise.
2894
2895 2012-02-19  Bruno Haible  <bruno@clisp.org>
2896
2897         gnulib-tool: Improve usage message.
2898         * gnulib-tool (func_usage): Move doc of --help and --version to the
2899         section "Operation modes".
2900
2901 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
2902
2903         README-release: make it easier to execute commands
2904         * top/README-release: break commands out on to separate lines.
2905
2906 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
2907
2908         GNUmakefile: simplify detection of unconfigured trees
2909         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
2910         whether the tree make is being run from is already configured or
2911         not.  Related simplifications.
2912
2913 2012-02-13  Simon Josefsson  <simon@josefsson.org>
2914
2915         * gnulib-tool (func_usage): Document --help and --version.
2916
2917 2012-02-11  Jim Meyering  <meyering@redhat.com>
2918
2919         bootstrap: don't exit 0 upon gnulib-tool failure
2920         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
2921         its exit status, not 0.
2922
2923 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
2924
2925         README-release: various improvements
2926         * top/README-release: Give a command to push changes for the
2927         release.  Add "distcheck" to list of other pre-release checks.
2928         Fix instance of "make stable" which should be "make TYPE".
2929
2930 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
2931
2932         maint: replace FSF snail-mail addresses with URLs
2933         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
2934         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
2935         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
2936         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
2937         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
2938         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
2939         * lib/check-version.c, lib/check-version.h, lib/config.charset:
2940         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
2941         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
2942         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
2943         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
2944         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
2945         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
2946         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
2947         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
2948         * lib/glthread/thread.c, lib/glthread/thread.h:
2949         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
2950         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
2951         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
2952         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
2953         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
2954         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
2955         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
2956         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
2957         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
2958         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
2959         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
2960         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
2961         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
2962         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
2963         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
2964         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
2965         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
2966         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
2967         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
2968         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
2969         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
2970         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
2971         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
2972         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
2973         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
2974         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
2975         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
2976         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
2977         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
2978         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
2979         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
2980         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
2981         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
2982         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
2983         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
2984         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
2985         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
2986         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
2987         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
2988         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
2989         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
2990         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
2991         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
2992         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
2993         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
2994         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
2995         * tests/test-poll.c, tests/test-quotearg-simple.c:
2996         * tests/test-quotearg.c, tests/test-quotearg.h:
2997         * tests/test-round-ieee.c, tests/test-round1.c:
2998         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
2999         * tests/test-roundl-ieee.c, tests/test-roundl.c:
3000         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
3001         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
3002         * tests/test-strerror.c, tests/test-strerror_r.c:
3003         * tests/test-strsignal.c, tests/test-strverscmp.c:
3004         * tests/test-xmemdup0.c:
3005         Replace FSF snail mail addresses with URLs, as per GNU coding
3006         standards.  See glibc bug
3007         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
3008
3009 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
3010
3011         README-release: capitalize a word and split a line
3012         * top/README-release: Fix punctuation and spacing.
3013
3014 2012-02-08  Akim Demaille  <demaille@gostai.com>
3015
3016         fatal-signal: use C prototypes (with explicit void).
3017         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3018         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
3019
3020 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3021
3022         regex: spelling fix
3023         * lib/regexec.c: spelling fix
3024
3025         regex: rely on stdint.h for SIZE_MAX
3026         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
3027
3028 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3029
3030         regex: merge glibc changes
3031
3032         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
3033         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
3034         (init_word_char): Work even if bitset words are not exactly 32 or
3035         64 bits wide.  Don't assume there are no padding bits.
3036         * lib/regex.c [_LIBC]: Do not include <config.h>.
3037         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
3038         and -Wtype-limits.
3039         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
3040         needless disagreement with glibc.  All uses changed.  Define it to
3041         1 only if _GNU_SOURCE, to match glibc.
3042         (_REG_RM_NAME): Remove; no longer needed, since the names in
3043         question are now all protected by __USE_GNU.
3044         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
3045         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
3046         * lib/regex_internal.h (MIN): New macro.
3047
3048         2012-01-03 Ulrich Drepper <drepper@gmail.com>
3049         * lib/regcomp.c (init_word_char): Optimize regex a bit.
3050
3051         2011-12-30 Jakub Jelinek <jakub@redhat.com>
3052         * lib/regex_internal.c (re_string_fetch_byte_case):
3053         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
3054         is miscompiled, and it turns out it is because of an incorrect
3055         attribute on re_string_fetch_byte_case.  Unlike
3056         re_string_peek_byte_case, this one is really not pure, it modifies
3057         memory (increments pstr->cur_idx), and with the pure attribute GCC
3058         assumed it doesn't and it cached the presumed value of
3059         regexp->cur_idx in a variable across the
3060          for (;; ++i)
3061            {
3062              if (i >= BRACKET_NAME_BUF_SIZE)
3063                return REG_EBRACK;
3064              if (token->type == OP_OPEN_CHAR_CLASS)
3065                ch = re_string_fetch_byte_case (regexp);
3066              else
3067                ch = re_string_fetch_byte (regexp);
3068              if (re_string_eoi(regexp))
3069                return REG_EBRACK;
3070              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
3071                break;
3072              elem->opr.name[i] = ch;
3073            }
3074
3075         2011-11-29 Andreas Schwab <schwab@redhat.com>
3076         * lib/regcomp.c (build_equiv_class):
3077         Fix access after end of search string in regex matcher.
3078
3079         2011-11-12 Ulrich Drepper <drepper@redhat.com>
3080         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
3081
3082         2011-10-12 Ulrich Drepper <drepper@redhat.com>
3083         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
3084
3085         2011-10-11 Ulrich Drepper <drepper@redhat.com>
3086         * lib/regcomp.c (parse_branch, parse_sub_exp):
3087         More regex memory leak fixes and tests.
3088         (parse_sub_exp, parse_bracket_exp):
3089         Fix memory leak for some invalid regular expressions.
3090
3091         2011-05-28 Ulrich Drepper <drepper@gmail.com>
3092         * lib/regex_internal.c, lib/regexec.c:
3093         Fix unnecessary overallocation due to incomplete character.  When
3094         incomplete characters are found at the end of a string the code
3095         ran amok and allocated lots of memory.  Stricter limits are now in
3096         place.
3097
3098         2011-05-20 Reuben Thomas <rrt@sc3d.org>
3099         * lib/regex.h: Update documentation.
3100
3101         2011-05-16 Aharon Robbins <arnold@skeeve.com>
3102         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
3103
3104         2010-05-05 Andreas Schwab <schwab@redhat.com>
3105         * lib/regexec.c (find_collation_sequence_value):
3106         Fix lookup of collation sequence value during regexp matching.
3107
3108         2010-01-22 Ulrich Drepper <drepper@redhat.com>
3109         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
3110
3111         2008-01-16 Ulrich Drepper <drepper@redhat.com>
3112         * lib/regex.h: Cleanup namespace.
3113
3114         2007-11-26 Ulrich Drepper <drepper@redhat.com>
3115         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
3116
3117         2007-08-26 Ulrich Drepper <drepper@redhat.com>
3118         * lib/regex_internal.h: Prevent some declarations and definitions
3119         to be seen when used in tests.
3120
3121         2005-05-06 Ulrich Drepper <drepper@redhat.com>
3122         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
3123         __libc_lock_* macros if not _LIBC.
3124         (struct re_dfa_t): Add lock.
3125
3126 2012-02-07  Eric Blake  <eblake@redhat.com>
3127
3128         maint.mk: also prohibit lower-case @var@
3129         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
3130         lower case, like @top_srcdir@.
3131
3132 2012-02-04  Eric Blake  <eblake@redhat.com>
3133
3134         canonicalize: avoid uninitialized memory use
3135         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
3136         random '/' left in dest.
3137         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
3138
3139 2012-02-04  Bruno Haible  <bruno@clisp.org>
3140
3141         isatty: Fix test failure of ptsname_r on native Windows.
3142         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
3143         and don't set errno.
3144         (isatty): Test first whether fd is valid. Set errno when returning 0.
3145
3146 2012-02-04  Bruno Haible  <bruno@clisp.org>
3147
3148         spawn-pipe tests: Fix a NULL program name in a diagnostic.
3149         * tests/test-spawn-pipe-main.c: Include progname.h.
3150         (main): Invoke set_program_name.
3151         * modules/spawn-pipe-tests (Depends-on): Add progname.
3152
3153         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
3154         * tests/test-nonblocking-socket-main.c: Include progname.h.
3155         (main): Invoke set_program_name.
3156         * modules/nonblocking-socket-tests (Depends-on): Add progname.
3157
3158         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
3159         * tests/test-nonblocking-pipe-main.c: Include progname.h.
3160         (main): Invoke set_program_name.
3161         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
3162
3163 2012-02-04  Eric Blake  <eblake@redhat.com>
3164
3165         canonicalize-lgpl: fix // handling
3166         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
3167
3168         canonicalize: fix // handling
3169         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
3170         /// to //, since only // is special.
3171
3172 2012-02-04  Bruno Haible  <bruno@clisp.org>
3173
3174         ioctl: Fix test failure on native Windows.
3175         * lib/ioctl.c: Include msvc-nothrow.h.
3176         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
3177
3178 2012-02-04  Bruno Haible  <bruno@clisp.org>
3179
3180         fsync: Avoid test failure on native Windows.
3181         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
3182         read-only.
3183
3184 2012-02-04  Bruno Haible  <bruno@clisp.org>
3185
3186         sys_select: Avoid syntax error on OpenBSD 5.0.
3187         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
3188         currently being included, just include the system's <sys/select.h>.
3189
3190 2012-02-04  Bruno Haible  <bruno@clisp.org>
3191
3192         sys_select: Avoid syntax error on OpenBSD 5.0.
3193         * lib/sys_select.in.h: Include <signal.h> only after the include_next
3194         <sys/select.h>, not before.
3195         Reported by Jiri B <jirib@devio.us>.
3196
3197 2012-02-04  Bruno Haible  <bruno@clisp.org>
3198
3199         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
3200         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
3201         global variables.
3202         * tests/test-get-rusage-data.c (main): Likewise.
3203         Reported by Jim Meyering.
3204
3205 2012-02-04  Bruno Haible  <bruno@clisp.org>
3206
3207         stdioext: Fix last commit.
3208         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
3209
3210 2012-02-03  Bruno Haible  <bruno@clisp.org>
3211
3212         stdioext: Add tentative support for Plan9.
3213         * lib/stdio-impl.h: Include <errno.h>.
3214         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
3215         * lib/freadable.c (freadable): Likewise.
3216         * lib/fwritable.c (fwritable): Likewise.
3217         * lib/fbufmode.c (fbufmode): Likewise.
3218         * lib/freading.c (freading): Likewise.
3219         * lib/fwriting.c (fwriting): Likewise.
3220         * lib/freadptr.c (freadptr): Likewise.
3221         * lib/freadseek.c (freadptrinc): Likewise.
3222         * lib/freadahead.c (freadahead): Likewise.
3223         * lib/fpurge.c (fpurge): Likewise.
3224         * lib/fseeko.c (rpl_fseeko): Likewise.
3225         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
3226         Reported by Jens Staal <staal1978@gmail.com>.
3227
3228 2012-02-02  Jim Meyering  <meyering@redhat.com>
3229
3230         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
3231         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
3232         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
3233         not even to try to add the attribute.  Instead, add a pragma to suppress
3234         the suggestion/warning.
3235
3236 2012-01-31  Karl Berry  <karl@gnu.org>
3237
3238         setstate doc: typo.
3239         * doc/posix-functions/setstate.texi (setstate): { not (.
3240
3241 2012-01-31  Bruno Haible  <bruno@clisp.org>
3242
3243         popen: Make more robust on Windows.
3244         * lib/popen.c: On native Windows, use the _popen based code even if
3245         HAVE_POPEN is set.
3246         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
3247         environment variable on native Windows.
3248
3249 2012-01-30  Bruno Haible  <bruno@clisp.org>
3250
3251         pclose: Fix typo.
3252         * lib/stdio.in.h (pclose): Fix typo in warning message.
3253
3254 2012-01-30  Bruno Haible  <bruno@clisp.org>
3255
3256         doc about getlogin_r, setstate.
3257         * doc/posix-functions/getlogin_r.texi: List the incompatible
3258         declaration problem under "not fixed by gnulib".
3259         * doc/posix-functions/setstate.texi: Mention incompatible declaration
3260         problem on Solaris 11 and other platforms.
3261
3262 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
3263             Bruno Haible  <bruno@clisp.org>
3264
3265         poll tests: Make test more robust.
3266         * tests/test-poll.c: Include macros.h.
3267         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
3268         return value of various I/O operations.
3269         * modules/poll-tests (Files): Add tests/macros.h.
3270
3271 2012-01-30  Bruno Haible  <bruno@clisp.org>
3272
3273         sys_stat: Fix support for mingw64 and MSVC.
3274         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
3275         header files already do it.
3276         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
3277         stat itself.
3278         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3279
3280 2012-01-30  Bruno Haible  <bruno@clisp.org>
3281
3282         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
3283         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
3284         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
3285
3286 2012-01-29  Bruno Haible  <bruno@clisp.org>
3287
3288         quotearg: Fix test failure on MacOS X 10.5.
3289         * tests/test-quotearg-simple.c: Include localcharset.h.
3290         (main): If the locale encoding is not ASCII, bypass the tests of
3291         locale_quoting_style and clocale_quoting_style.
3292         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
3293
3294 2012-01-29  Jim Meyering  <meyering@redhat.com>
3295
3296         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
3297         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
3298         detect uses of canonicalize_file_name.
3299
3300 2012-01-28  Bruno Haible  <bruno@clisp.org>
3301
3302         test-framework-sh: Fix test failure with AIX 7.1 diff.
3303         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
3304         in column 1, like 'diff -c' does.
3305         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
3306         whether 'diff -u' is used. Instead, test whether the output contains
3307         some '@' character.
3308
3309 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
3310
3311         strtoimax: eliminate need for stdint.h, inttypes.h checks
3312         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
3313         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
3314         the prerequisites for a recently-introduced strtoimax test.
3315         I guess this might cause strtoimax to be replaced when not
3316         strictly necessary on older hosts, but this shouldn't introduce
3317         any bugs and it should make Emacs 'configure' faster on typical
3318         modern hosts.  Problem discovered when importing the latest gnulib
3319         to an Emacs test version.
3320         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
3321
3322 2012-01-28  Bruno Haible  <bruno@clisp.org>
3323
3324         sys_time: Override 'struct timeval' on some native Windows platforms.
3325         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
3326         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
3327         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
3328         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
3329         needs to be overridden.
3330         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
3331         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
3332         * tests/test-sys_select.c: Check that the tv_sec member has the same
3333         size as a 'time_t'.
3334         * tests/test-sys_time.c: Likewise.
3335         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
3336         is set, set also REPLACE_GETTIMEOFDAY.
3337         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
3338         convert the resulting 'struct timeval' before returning.
3339         * lib/select.c: Include <sys/time.h>.
3340         (select, timeval): Undefine at the right place.
3341         * modules/select (Depends-on): Add sys_time.
3342         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
3343         some Windows platforms.
3344         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3345
3346 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3347
3348         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
3349         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
3350         an integer.
3351         * lib/fcntl.c (dupfd): Likewise.
3352         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
3353
3354 2012-01-28  Bruno Haible  <bruno@clisp.org>
3355
3356         fcntl: Avoid compilation error on native Windows.
3357         * modules/fcntl (Depends-on): Add 'close'.
3358
3359 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3360
3361         select, poll, isatty: Avoid warnings on x86_64 mingw64.
3362         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
3363         pointer to an integer.
3364         * lib/poll.c (IsConsoleHandle): Likewise.
3365         * lib/isatty.c (IsConsoleHandle): Likewise.
3366
3367 2012-01-28  Jim Meyering  <meyering@redhat.com>
3368
3369         doc: clarify README-release
3370         * top/README-release: Clarify: you should make a point to have
3371         the latest stable versions of build tools in your PATH, and the
3372         reference to buildreq is solely for its list of tool names, not
3373         for its minimal-functional version numbers.
3374         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
3375
3376         maint.mk: use more readable (yet functionally equivalent) quoting
3377         It is common to quote a single quote in a single quoted string like
3378         this:  '...'\''...'.  Unless you know the idiom, that looks like
3379         gibberish, so prefer to double-quote the string when possible.
3380         Then you can use a more readable, lone single quote: "...'..."
3381         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
3382         "don't" is more readable than the equivalent 'don'\''t'.
3383         (sc_cast_of_x_alloc_return_value): Likewise.
3384         (sc_cast_of_alloca_return_value): Likewise.
3385         (sc_makefile_path_separator_check): Similar: use ":" in '...',
3386         rather than '\'':'\''.
3387
3388 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3389
3390         stdalign: relax _Alignof and tighten _Alignas test
3391         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
3392         as it was too strict: alignof must divide offsetof, but it need
3393         not equal offsetof.  Inspired by Joseph S. Myers's comment
3394         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
3395         Conversely, tighten the _Alignas test a bit, as the resulting
3396         alignment must be exactly 8.
3397
3398 2012-01-27  Bruno Haible  <bruno@clisp.org>
3399
3400         stdalign: Document the last change.
3401         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
3402
3403 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3404
3405         stdalign: check that alignof and offsetof are consistent
3406         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
3407         Problem reported for gnulib by Richard W.M. Jones in
3408         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
3409
3410 2012-01-27  Jim Meyering  <meyering@redhat.com>
3411
3412         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
3413         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
3414         convert a sequence with gaps to the minimal containing range.
3415         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
3416         * tests/test-update-copyright.sh: Test for this.
3417         The FSF confirmed it is ok to do this, assuming there is at
3418         least one significant change per year in the affected range:
3419         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
3420
3421 2012-01-26  Bruno Haible  <bruno@clisp.org>
3422
3423         pipe2: refine doc about thread-safety
3424         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
3425         multithread-safety problem.
3426         * doc/glibc-functions/accept4.texi: Likewise.
3427
3428 2012-01-26  Bruno Haible  <bruno@clisp.org>
3429
3430         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
3431         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
3432         In the test program, include <fcntl.h>, for O_RDONLY.
3433
3434 2012-01-26  Eric Blake  <eblake@redhat.com>
3435
3436         pipe2: document lack of thread-safety in replacement
3437         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
3438         issue in replacement.
3439         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3440         Based on a report by Eric Wong.
3441
3442 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3443             Bruno Haible  <bruno@clisp.org>
3444
3445         malloca: Avoid warnings on x86_64 mingw64.
3446         * lib/malloca.c: Include <stdint.h>.
3447         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
3448         * modules/malloca (Depends-on): Add stdint.
3449         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
3450
3451 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
3452
3453         obstack: remove __STDC__ conditionals
3454         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
3455         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
3456         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
3457         m4/include_next.m4 as the only gnulib-maintained places that still
3458         refer to __STDC__.
3459
3460 2012-01-24  Bruno Haible  <bruno@clisp.org>
3461
3462         havelib: Modern quoting.
3463         * build-aux/config.rpath: Quote 'like this', not `like this', as per
3464         the recent change to the GNU coding standards.
3465
3466 2012-01-24  Bruno Haible  <bruno@clisp.org>
3467
3468         stdint: Improve support for Android.
3469         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
3470         Reported by Simon Josefsson <simon@josefsson.org>.
3471
3472 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
3473
3474         doc: omit trailing empty lines from INSTALL etc.
3475         * doc/Makefile (INSTALL): Omit trailing empty lines.
3476         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
3477         omit trailing empty lines.  This simplifies the build procedure.
3478
3479 2012-01-23  Jim Meyering  <meyering@redhat.com>
3480
3481         tests: avoid spurious warnings about gl_sockets_startup
3482         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
3483         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
3484         reporting a "statement with no effect".
3485         * tests/test-accept.c (main): Mark as "(void)".
3486         * tests/test-accept4.c (main): Likewise.
3487         * tests/test-bind.c (main): Likewise.
3488         * tests/test-connect.c (main): Likewise.
3489         * tests/test-getpeername.c (main): Likewise.
3490         * tests/test-getsockname.c (main): Likewise.
3491         * tests/test-getsockopt.c (main): Likewise.
3492         * tests/test-listen.c (main): Likewise.
3493         * tests/test-recv.c (main): Likewise.
3494         * tests/test-recvfrom.c (main): Likewise.
3495         * tests/test-send.c (main): Likewise.
3496         * tests/test-sendto.c (main): Likewise.
3497         * tests/test-setsockopt.c (main): Likewise.
3498         * tests/test-shutdown.c (main): Likewise.
3499
3500 2012-01-21  Bruno Haible  <bruno@clisp.org>
3501
3502         locale-fr.m4: Fix for Android.
3503         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
3504         failure of the test program on Bionic libc.
3505
3506 2012-01-21  Jim Meyering  <meyering@redhat.com>
3507
3508         bootstrap: fail when bootstrap_post_import_hook fails
3509         Otherwise, it's far too easy to miss diagnostics emitted
3510         between gnulib-tool's output and that of running configure.
3511         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
3512
3513 2012-01-17  Jim Meyering  <meyering@redhat.com>
3514
3515         maint: enable sc_trailing_blank
3516         * build-aux/pmccabe.css: Remove trailing blanks.
3517         * doc/acl-cygwin.txt: Likewise.
3518         * doc/gnu-oids.texi: Likewise
3519         * cfg.mk: Enable sc_trailing_blank.
3520         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
3521
3522 2012-01-17  Jim Meyering  <meyering@redhat.com>
3523
3524         maint: enable sc_prohibit_openat_without_use
3525         * cfg.mk: Enable sc_prohibit_openat_without_use.
3526         Exempt lib/selinux-at.c.
3527
3528 2012-01-17  Jim Meyering  <meyering@redhat.com>
3529
3530         maint: enable sc_prohibit_cloexec_without_use
3531         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
3532         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
3533
3534 2012-01-17  Jim Meyering  <meyering@redhat.com>
3535
3536         maint: enable sc_prohibit_intprops_without_use
3537         * cfg.mk: Enable sc_prohibit_intprops_without_use
3538         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
3539
3540 2012-01-17  Jim Meyering  <meyering@redhat.com>
3541
3542         maint: enable sc_prohibit_hash_pjw_without_use
3543         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
3544         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
3545         to match any use of \<hash_pjw\>, i.e., not necessarily with a
3546         following " (".
3547
3548 2012-01-17  Jim Meyering  <meyering@redhat.com>
3549
3550         maint: enable double-word-prohibiting rule
3551         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
3552         Exempt three files.
3553
3554 2012-01-17  Jim Meyering  <meyering@redhat.com>
3555
3556         maint: remove empty lines at EOF, but excluding modules/*
3557         Apply syntax rules at home as well as abroad.  Most changes
3558         were induced by running this:
3559           make srcdir=. _build-aux=build-aux -f top/maint.mk \
3560             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
3561             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
3562         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
3563         Exempt modules/* and two binary files.
3564         Also exempt doc/INSTALL*, per request from Bruno Haible.
3565         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
3566         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
3567         * doc/Copyright/request-assign.future: Likewise.
3568         * doc/Copyright/request-disclaim.changes: Likewise.
3569         * doc/INSTALL: Likewise.
3570         * doc/INSTALL.ISO: Likewise.
3571         * doc/INSTALL.UTF-8: Likewise.
3572         * doc/acl-cygwin.txt: Likewise.
3573         * doc/acl-resources.txt: Likewise.
3574         * doc/fdl-1.2.texi: Likewise.
3575         * doc/fdl-1.3.texi: Likewise.
3576         * doc/fdl.texi: Likewise.
3577         * lib/argp-pin.c: Likewise.
3578         * lib/round.c: Likewise.
3579         * lib/unicase/u16-totitle.c: Likewise.
3580         * lib/unictype/block_test.c: Likewise.
3581         * lib/uninorm/canonical-decomposition.c: Likewise.
3582         * m4/README: Likewise.
3583         * m4/relocatable-lib.m4: Likewise.
3584         * tests/test-isnand-nolibm.c: Likewise.
3585         * tests/test-isnand.c: Likewise.
3586         * tests/uninorm/NormalizationTest.txt: Likewise.
3587
3588 2012-01-17  Jim Meyering  <meyering@redhat.com>
3589
3590         maint: add framework to run syntax-check rules against gnulib sources
3591         * cfg.mk: New file, to disable all currently-failing tests.
3592         We'll enable them one by one, as they are made to pass.
3593         * Makefile (sc_maint): New rule.
3594
3595 2012-01-21  Bruno Haible  <bruno@clisp.org>
3596
3597         stdint: Add support for Android.
3598         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
3599         include the system's <stdint.h>.
3600         Reported by Simon Josefsson <simon@josefsson.org>.
3601
3602 2012-01-19  Jim Meyering  <meyering@redhat.com>
3603
3604         bootstrap: add bootstrap_post_import_hook
3605         Bison does still need something like the gnulib_mk_hook whose
3606         invocation I had to remove along with slurp in commit 767ccd40.
3607         Technically, we could get along without it, but doing so would
3608         have required living with a warning and a mandatory post-bootstrap
3609         automake rerun.
3610         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
3611         (bootstrap_post_import_hook): New function.
3612         Invoke it after gnulib-tool --import and before autoreconf.
3613
3614 2012-01-18  Jim Meyering  <meyering@redhat.com>
3615
3616         gitlog-to-changelog: don't use "no_"-prefixed variable name
3617         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
3618         to enable both --cluster and --no-cluster.  Change variable name,
3619         s/\$no_cluster/$cluster/, and reverse usage to match.
3620
3621         gitlog-to-changelog: use "||", not "or" in expressions
3622         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
3623         expressions.
3624
3625 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
3626
3627         gitlog-to-changelog: new option --no-cluster
3628         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
3629         clustering of adjacent commit messages.
3630
3631 2012-01-17  Jim Meyering  <meyering@redhat.com>
3632
3633         maint: spell file systems with two words, not one
3634         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
3635         two words, not one.
3636
3637 2012-01-16  Jim Meyering  <meyering@redhat.com>
3638
3639         bootstrap: add a FIXME comment to ensure we eventually remove the hack
3640         * build-aux/bootstrap (gnulib_tool_options): Add comment.
3641
3642 2012-01-16  Eric Blake  <eblake@redhat.com>
3643
3644         bootstrap: cater to autoconf 2.59
3645         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
3646         is not available.
3647
3648         bootstrap: properly check for libtool
3649         * build-aux/bootstrap (libtoolize): Also run libtool when older
3650         usage is detected.
3651
3652 2012-01-15  Bruno Haible  <bruno@clisp.org>
3653
3654         Improve support for MSVC 9.
3655         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
3656         clashes on MSVC.
3657         * lib/fcntl.in.h: Likewise.
3658         * lib/stdlib.in.h: Likewise.
3659         * lib/sys_stat.in.h: Likewise.
3660
3661 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
3662
3663         gnupload: we hold the master copy of this script now
3664         For motivation and more information, see:
3665         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
3666         * build-aux/gnupload: Make it clear in the heading comments that the
3667         master copy of this file is maintained by gnulib.  Since we are at
3668         it, bump its copyright year and ...
3669         ($scriptversion): ... the date in its version.
3670         ($usage): Patches and bug reports should be sent to the gnulib list,
3671         not the automake one.
3672         * config/srclist.txt: Don't try to sync 'gnupload' from automake
3673         anymore.
3674
3675 2012-01-15  Bruno Haible  <bruno@clisp.org>
3676
3677         Fix module 'random'.
3678         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
3679         initstate, setstate are declared.
3680
3681 2012-01-14  Bruno Haible  <bruno@clisp.org>
3682
3683         Tests for module 'random'.
3684         * modules/random-tests: New file.
3685         * tests/test-random.c: New file, based on tests/test-random_r.c.
3686
3687         New module 'random'.
3688         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
3689         declarations.
3690         * lib/random.c: New file, based on glibc/stdlib/random.c.
3691         * m4/random.m4: New file.
3692         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
3693         HAVE_RANDOM.
3694         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
3695         * modules/random: New file.
3696         * config/srclist.txt: Add an entry for random.c.
3697         * doc/posix-functions/random.texi: Mention the 'random' module.
3698         * doc/posix-functions/initstate.texi: Likewise.
3699         * doc/posix-functions/setstate.texi: Likewise.
3700         * doc/posix-functions/srandom.texi: Likewise.
3701
3702 2012-01-12  Bruno Haible  <bruno@clisp.org>
3703
3704         random_r: Use common idioms.
3705         * lib/random_r.c: Include <stdlib.h> first.
3706
3707         random_r: Override incompatible API on AIX, OSF/1.
3708         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
3709         Override the system function if REPLACE_RANDOM_R is 1.
3710         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
3711         and OSF/1, set REPLACE_RANDOM_R.
3712         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
3713         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
3714         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
3715         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
3716         * doc/glibc-functions/random_r.texi: Likewise.
3717         * doc/glibc-functions/setstate_r.texi: Likewise.
3718
3719         random_r: Support for MSVC 9.
3720         * lib/random_r.c: Include stdint.h, not inttypes.h.
3721
3722 2012-01-12  Eric Blake  <eblake@redhat.com>
3723
3724         inet_ntop: guard extra work by IF_LINT
3725         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
3726         better code generation when not checking for warnings.
3727         Suggested by Paul Eggert and Jim Meyering.
3728
3729         strptime: fix regression on mingw
3730         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
3731         Fix regression.  Reported by Bruno Haible.
3732
3733 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
3734             Bruno Haible  <bruno@clisp.org>
3735
3736         copy-file: add error-code-returning variant.
3737         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
3738         (qcopy_file_preserving): New declaration.
3739         * lib/copy-file.c (qcopy_file_preserving): Renamed from
3740         copy_file_preserving. Change return type to 'int'. Don't emit an error
3741         message here.
3742         (copy_file_preserving): New function.
3743         * tests/test-copy-file.c: Include <stdlib.h>.
3744         (main): Test qcopy_file_preserving if the environment variable
3745         NO_STDERR_OUTPUT is set.
3746         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
3747         with NO_STDERR_OUTPUT
3748         * tests/test-copy-file-2.sh: Likewise.
3749
3750 2012-01-10  Bruno Haible  <bruno@clisp.org>
3751
3752         copy-file: Use 'quote' module consistently.
3753         * lib/copy-file.c (copy_file_preserving): Use quote().
3754
3755         copy-file: Refactor.
3756         * lib/copy-file.c: Include quote.h.
3757         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
3758         message here.
3759         * modules/copy-file (Depends-on): Add quote.
3760
3761         acl: Export qcopy_acl.
3762         * lib/acl.h (qcopy_acl): New declaration.
3763         * lib/copy-acl.c (qcopy_acl): Make non-static.
3764
3765         acl: Rename a local variable.
3766         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
3767
3768         acl: Align return values of copy_acl and qcopy_acl.
3769         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
3770         maybe < -1.
3771
3772 2012-01-11  Eric Blake  <eblake@redhat.com>
3773
3774         strptime: silence gcc warnings
3775         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
3776         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
3777         Reported by Daniel P. Berrange.
3778
3779         inet_ntop: silence gcc warning
3780         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
3781         Reported by Daniel P. Berrange.
3782
3783 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
3784
3785         getloadavg test: skip the test on GNU/Linux without /proc mounted
3786         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
3787         file.  When /proc is not mounted, it always fails with ENOENT.
3788         * tests/test-getloadavg.c (main): Treat ENOENT return code from
3789         getloadavg(3) the same way as ENOSYS and ENOTSUP.
3790
3791 2012-01-10  Bruno Haible  <bruno@clisp.org>
3792
3793         regex: Avoid link error on MSVC 9.
3794         * modules/regex (Depends-on): Add wctype.
3795
3796 2012-01-10  Bruno Haible  <bruno@clisp.org>
3797
3798         doc: Mention --with-tests option.
3799         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
3800         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
3801         --with-tests.
3802         Reported by Reuben Thomas.
3803
3804 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
3805
3806         users.txt: order package names lexicographically.
3807         * users.txt: Order package names lexicographically.
3808
3809 2012-01-10  Jim Meyering  <meyering@redhat.com>
3810
3811         maint.mk: fix description in comment
3812         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
3813
3814         ignore-value: remove deprecated ignore_ptr function
3815         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
3816         * NEWS: Note this.
3817
3818 2012-01-09  Jim Meyering  <meyering@redhat.com>
3819
3820         test-init.sh: avoid a subshell
3821         * tests/test-init.sh: Remove protective subshell.
3822         Suggested by Bernhard Voelker.  While a subshell is normally
3823         required to protect against older shells (Solaris, FreeBSD) that
3824         warn about a missing program before performing redirection, the
3825         shell-selection tests performed by init.sh probably exclude any
3826         offending shell.
3827
3828 2012-01-08  Bruno Haible  <bruno@clisp.org>
3829
3830         setlocale tests: Avoid test failure on Solaris 11 2011-11.
3831         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
3832         variable.
3833
3834 2012-01-08  Bruno Haible  <bruno@clisp.org>
3835
3836         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
3837         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
3838         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
3839         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
3840         macro.
3841         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
3842         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
3843         * lib/spawn_faction_addopen.c: Add workaround implementation if
3844         HAVE_WORKING_POSIX_SPAWN.
3845         * modules/spawn (Makefile): Substitute
3846         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
3847         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
3848         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
3849         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
3850         (Depends-on): Update conditions.
3851         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
3852         the Solaris 11 bug.
3853
3854 2012-01-08  Bruno Haible  <bruno@clisp.org>
3855
3856         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
3857         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
3858         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
3859         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
3860         macro.
3861         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
3862         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
3863         * lib/spawn_faction_adddup2.c: Add workaround implementation if
3864         HAVE_WORKING_POSIX_SPAWN.
3865         * modules/spawn (Makefile): Substitute
3866         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
3867         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
3868         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
3869         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
3870         (Depends-on): Update conditions.
3871         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
3872         the Solaris 11 bug.
3873
3874 2012-01-08  Bruno Haible  <bruno@clisp.org>
3875
3876         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
3877         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
3878         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
3879         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
3880         HAVE_WORKING_POSIX_SPAWN.
3881         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
3882         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
3883         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
3884         * lib/spawn_faction_addclose.c: Add workaround implementation if
3885         HAVE_WORKING_POSIX_SPAWN.
3886         * modules/spawn (Makefile): Substitute
3887         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
3888         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
3889         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
3890         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
3891         (Depends-on): Update conditions.
3892         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
3893         the Solaris 11 bug.
3894
3895 2012-01-08  Bruno Haible  <bruno@clisp.org>
3896
3897         doc: Update for Solaris 11 2011-11.
3898         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
3899         * m4/printf.m4: Update comments.
3900
3901 2012-01-08  Bruno Haible  <bruno@clisp.org>
3902
3903         mktime: Avoid compilation error on Solaris 11.
3904         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
3905
3906 2012-01-08  Bruno Haible  <bruno@clisp.org>
3907
3908         doc: Small fix.
3909         * doc/posix-headers/nl_types.texi: Correct platforms list.
3910
3911 2012-01-08  Simon Josefsson  <simon@josefsson.org>
3912
3913         Add lgpl-3.0 module.
3914         * MODULES.html.sh (Support for building documentation): Add
3915         lgpl-3.0.
3916         * modules/lgpl-3.0: New file.
3917
3918 2012-01-08  Jim Meyering  <meyering@redhat.com>
3919
3920         select.c: indent with spaces, not TABs
3921         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
3922
3923 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
3924
3925         quotearg: do not use grave accent for left quote
3926         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
3927         locale_quoting_style.
3928         (quotearg_buffer_restyled): Fix example.
3929         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
3930
3931 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
3932
3933         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
3934         Most programs do not have translation catalogs for English and much
3935         less separate catalogs for British and American English.  Drop the
3936         suggestion to translators about these two, and provide it
3937         automatically for Unicode locales.  Like most programs, even those
3938         using American English, we use single quotation marks.  This conflicts
3939         with the American typographic convention, but works better when you
3940         cite the entire error message within double quotes.  It also tries not
3941         to clash with established practice and with what non-gnulib programs
3942         will usually do.
3943         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
3944         using an UTF-8 or GB-18030 locale.  The list of other locales with
3945         quotes was provided by Bruno Haible.
3946         (quotearg_buffer_restyled): Adjust instructions to translators.
3947         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
3948         text, since this would be wrong when using Unicode.
3949         * modules/quotearg: Depend on c-strcaseeq.
3950
3951 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
3952
3953         quotearg: fix Wikipedia link
3954         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
3955
3956 2012-01-07  Simon Josefsson  <simon@josefsson.org>
3957
3958         Fix for mingw with MSVC9.
3959         * m4/ld-version-script.m4: Check that compiler rejects version
3960         scripts with syntax errors.  Reported by Bruno Haible
3961         <bruno@clisp.org>.
3962
3963 2012-01-06  Bruno Haible  <bruno@clisp.org>
3964
3965         Talk about "native Windows API", not "Woe32".
3966         * lib/accept4.c: Update comments to mention native Windows.
3967         * lib/execute.c: Likewise.
3968         * lib/fatal-signal.c: Likewise.
3969         * lib/localcharset.c: Likewise.
3970         * lib/nanosleep.c: Likewise.
3971         * lib/nl_langinfo.c: Likewise.
3972         * lib/pclose.c: Likewise.
3973         * lib/pipe-filter-gi.c: Likewise.
3974         * lib/pipe-filter-ii.c: Likewise.
3975         * lib/pipe.c: Likewise.
3976         * lib/pipe2.c: Likewise.
3977         * lib/popen.c: Likewise.
3978         * lib/progreloc.c: Likewise.
3979         * lib/relocatable.c: Likewise.
3980         * lib/sigaction.c: Likewise.
3981         * lib/sigprocmask.c: Likewise.
3982         * lib/spawn-pipe.h: Likewise.
3983         * lib/spawn-pipe.c: Likewise.
3984         * lib/spawni.c: Likewise.
3985         * lib/stat-time.h: Likewise.
3986         * lib/w32spawn.h: Likewise.
3987         * tests/test-isatty.c: Likewise.
3988         * lib/config.charset: More comments.
3989         * doc/gnulib-intro.texi: Mention native Windows.
3990         * doc/posix-functions/_Exit_C99.texi: Likewise.
3991         * doc/posix-headers/fcntl.texi: Likewise.
3992
3993 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
3994
3995         argp: Avoid crash if translator uses % characters in a translation.
3996         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
3997         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
3998
3999 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
4000
4001         doc: C11 and C++11 are now official
4002         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
4003         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
4004         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
4005         * modules/stdalign:
4006         Replace references to draft C1X to C11, and to draft C++0X to C++11.
4007
4008 2012-01-06  Bruno Haible  <bruno@clisp.org>
4009
4010         uc-is-grapheme-break tests: Tweak.
4011         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
4012         message.
4013
4014 2012-01-06  Bruno Haible  <bruno@clisp.org>
4015
4016         test-init.sh: correct the test for diff -u
4017         * tests/test-init.sh: Also redirect stdout to /dev/null.
4018
4019 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
4020
4021         Use ', not `, for quoting output.
4022         * build-aux/announce-gen (usage, sizes, print_news_deltas)
4023         (print_changelog_deltas, get_tool_versions, main program):
4024         * build-aux/git-version-gen:
4025         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
4026         * build-aux/move-if-change (help):
4027         * build-aux/useless-if-before-free (usage, main program):
4028         * check-module (parse_module_file, usage)
4029         (find_included_lib_files, check_module):
4030         * lib/argmatch.c (main) [TEST]:
4031         * lib/argp-help.c (_help):
4032         * lib/getopt1.c (main) [TEST]:
4033         * lib/git-merge-changelog.c (usage):
4034         * lib/xstrtol-error.c (xstrtol_error):
4035         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
4036         * m4/argz.m4 (gl_FUNC_ARGZ):
4037         * m4/bison.m4 (gl_BISON):
4038         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
4039         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
4040         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4041         * m4/fpending.m4 (gl_PREREQ_FPENDING):
4042         * m4/gc-random.m4 (gl_GC_RANDOM):
4043         * m4/intl.m4 (gt_CHECK_DECL):
4044         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
4045         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
4046         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
4047         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
4048         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
4049         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
4050         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
4051         * tests/test-dirname.c (main):
4052         * tests/test-getpass.c (main):
4053         * tests/test-iconvme.c (main):
4054         * tests/test-parse-datetime.c (LOG):
4055         * tests/test-xstrtoimax.sh:
4056         * tests/test-xstrtol.sh:
4057         * tests/test-xstrtoll.sh:
4058         * tests/test-xstrtoumax.sh:
4059         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
4060         * top/GNUmakefile (abort-due-to-no-makefile):
4061         Quote 'like this', not `like this', as per the recent change to
4062         the GNU coding standards.
4063
4064 2012-01-05  Bruno Haible  <bruno@clisp.org>
4065
4066         strtoimax: Don't force a replacement on systems where intmax_t is int.
4067         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
4068         'intmax_t' is not larger than 'int'.
4069         Reported by Pádraig Brady <P@draigBrady.com>.
4070
4071 2012-01-05  Bruno Haible  <bruno@clisp.org>
4072
4073         doc: Mention NetBSD bugs.
4074         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
4075         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
4076
4077 2012-01-05  Bruno Haible  <bruno@clisp.org>
4078
4079         strtoumax tests: Enhance tests.
4080         * tests/test-strtoumax.c (main): Add tests for large values.
4081
4082 2012-01-05  Bruno Haible  <bruno@clisp.org>
4083
4084         strtoimax: Work around AIX 5.1 bug.
4085         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
4086         definition.
4087         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
4088         Set HAVE_STRTOIMAX.
4089         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
4090         REPLACE_STRTOIMAX.
4091         * modules/inttypes-incomplete (Makefile.am): Substitute
4092         REPLACE_STRTOIMAX.
4093         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
4094         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
4095         (Depends-on): Update conditions.
4096         * tests/test-strtoimax.c (main): Add tests for large values.
4097         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
4098
4099 2012-01-05  Bruno Haible  <bruno@clisp.org>
4100
4101         inttypes: Modernize.
4102         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
4103         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
4104         (Makefile.am): Update inttypes.h rule.
4105
4106 2012-01-05  Jim Meyering  <meyering@redhat.com>
4107
4108         init.sh: don't waste a subshell just to redirect stderr
4109         * tests/init.sh: In testing for diff -u and diff -c, use a
4110         stderr-redirecting exec inside `...` rather than a subshell.
4111
4112         test-init.sh: avoid failure on HP-UX 11.00
4113         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
4114         resolves to diff -c or cmp.  Reported by Bruno Haible.
4115
4116 2012-01-05  Bruno Haible  <bruno@clisp.org>
4117
4118         Tests for module 'strtoull'.
4119         * modules/strtoull-tests: New file.
4120         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
4121
4122 2012-01-05  Bruno Haible  <bruno@clisp.org>
4123
4124         Tests for module 'strtoll'.
4125         * modules/strtoll-tests: New file.
4126         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
4127
4128 2012-01-05  Bruno Haible  <bruno@clisp.org>
4129
4130         Tests for module 'strtoul'.
4131         * modules/strtoul-tests: New file.
4132         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
4133
4134 2012-01-05  Bruno Haible  <bruno@clisp.org>
4135
4136         Tests for module 'strtol'.
4137         * modules/strtol-tests: New file.
4138         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
4139
4140 2012-01-04  Jim Meyering  <meyering@redhat.com>
4141
4142         test-init.sh: accommodate Solaris 5.10's different diff -u output
4143         * tests/test-init.sh: Also exempt @@ lines from the comparison
4144         of diff output, since Solaris 5.10 and GNU diff formats differ.
4145         Reported by Stefano Lattarini.
4146
4147 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
4148
4149         test-posixtm: don't assume signed integer wraparound
4150         * tests/test-posixtm.c (main): Don't assume wraparound semantics
4151         after signed integer overflow.  Inspired by (though it may not
4152         fix) Bruno Haible's bug report in
4153         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
4154
4155         Spell out "Windows 9x" and "Windows XP".
4156         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
4157         "Windows 9x" and "WinXP" with "Windows XP".
4158
4159 2012-01-04  Jim Meyering  <meyering@redhat.com>
4160
4161         test-vc-list-files-cvs.sh: remove obsolete comment
4162         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
4163         double exit.  Now that's all encapsulated via skip_ and Exit.
4164
4165 2012-01-04  Bruno Haible  <bruno@clisp.org>
4166
4167         Talk about "native Windows API", not "Win32".
4168         * lib/classpath.c: Update comments to mention native Windows.
4169         * lib/csharpexec.c: Likewise.
4170         * lib/dup2.c: Likewise.
4171         * lib/error.c: Likewise.
4172         * lib/fcntl.c: Likewise.
4173         * lib/filename.h: Likewise.
4174         * lib/findprog.c: Likewise.
4175         * lib/get-rusage-as.c: Likewise.
4176         * lib/get-rusage-data.c: Likewise.
4177         * lib/getpagesize.c: Likewise.
4178         * lib/javaexec.c: Likewise.
4179         * lib/msvc-inval.c: Likewise.
4180         * lib/msvc-nothrow.c: Likewise.
4181         * lib/nanosleep.c: Likewise.
4182         * lib/nonblocking.c: Likewise.
4183         * lib/printf-parse.c: Likewise.
4184         * lib/setlocale.c: Likewise.
4185         * lib/sigaction.c: Likewise.
4186         * lib/strerror_r.c: Likewise.
4187         * lib/tmpdir.c: Likewise.
4188         * lib/vasnprintf.c: Likewise.
4189         * lib/w32spawn.h: Likewise.
4190         * lib/waitpid.c: Likewise.
4191         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
4192         * m4/locale-ar.m4: Likewise.
4193         * m4/locale-fr.m4: Likewise.
4194         * m4/locale-ja.m4: Likewise.
4195         * m4/locale-tr.m4: Likewise.
4196         * m4/locale-zh.m4: Likewise.
4197         * m4/printf.m4: Likewise.
4198         * tests/test-cloexec.c: Likewise.
4199         * tests/test-copy-acl.sh: Likewise.
4200         * tests/test-copy-file.sh: Likewise.
4201         * tests/test-file-has-acl.sh: Likewise.
4202         * tests/test-set-mode-acl.sh: Likewise.
4203         * tests/test-dup-safer.c: Likewise.
4204         * tests/test-dup2.c: Likewise.
4205         * tests/test-dup3.c: Likewise.
4206         * tests/test-fcntl.c: Likewise.
4207         * tests/test-nonblocking-pipe.h: Likewise.
4208         * tests/test-nonblocking-socket.h: Likewise.
4209         * tests/test-pipe.c: Likewise.
4210         * tests/test-pipe2.c: Likewise.
4211         * tests/test-spawn-pipe-child.c: Likewise.
4212         * doc/acl-resources.txt: Likewise.
4213         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4214         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
4215         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
4216         * lib/localcharset.c: Update comments to mention native Windows.
4217         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4218         * lib/localename.c: Likewise.
4219         * lib/progreloc.c: Likewise.
4220         * lib/relocatable.c: Likewise.
4221         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4222         (windows_compute_revents): Renamed from win32_compute_revents.
4223         (windows_compute_revents_socket): Renamed from
4224         win32_compute_revents_socket.
4225         * lib/select.c: Update comments to mention native Windows.
4226         (windows_poll_handle): Renamed from win32_poll_handle.
4227         * m4/threadlib.m4: Update comments to mention native Windows.
4228         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
4229         --enable-threads=windows instead of --enable-threads=win32. Set
4230         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
4231         * lib/glthread/lock.h: Update comments to mention native Windows.
4232         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
4233         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
4234         USE_WIN32_THREADS.
4235         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
4236         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
4237         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
4238         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
4239         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
4240         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
4241         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
4242         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
4243         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
4244         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
4245         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
4246         * tests/test-tls.c: Likewise.
4247         Rationale:
4248         Microsoft renamed the "Win32 API" to "Windows API", as it is available
4249         on both 32-bit and 64-bit Windows systems.
4250         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
4251         line of distinction is between "native Windows" on one side and Unix/
4252         POSIX systems on the other side. More details in
4253         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
4254         Suggested by Paul Eggert.
4255
4256 2012-01-03  Bruno Haible  <bruno@clisp.org>
4257
4258         isatty: Support for MSVC 9.
4259         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
4260         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
4261         (_isatty_nothrow): New function.
4262         (isatty): Use it instead of _isatty.
4263         (IsConsoleHandle): Add comment, from Paolo Bonzini.
4264         * lib/poll.c (IsConsoleHandle): Likewise.
4265         * lib/select.c (IsConsoleHandle): Likewise.
4266         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
4267         (gl_PREREQ_ISATTY): New macro.
4268         * modules/isatty (Depends-on): Add msvc-inval.
4269         (configure.ac): Invoke gl_PREREQ_ISATTY.
4270
4271 2012-01-03  Jim Meyering  <meyering@redhat.com>
4272
4273         maint.mk: remove temporary transition aid from over 1.5 years ago
4274         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
4275         purpose was to aid in the transition (avoiding silent malfunction)
4276         from that old name to the new _sc_search_regexp.  This shim was
4277         added by commit 219c504b.
4278
4279         init.sh: do not try to accommodate compare arguments starting with "-"
4280         * tests/init.sh (compare_dev_null_): Do not try to accommodate
4281         compare arguments that start with "-".  Besides, we do not worry
4282         about this when invoking diff or cmp; why start now with sed?
4283         Using "--" to separate options from argument would trigger sed
4284         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
4285         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
4286
4287 2012-01-02  Bruno Haible  <bruno@clisp.org>
4288
4289         Enhance tests for module 'isatty'.
4290         * modules/isatty-tests (Depends-on): Add pipe-posix.
4291         * tests/test-isatty.c: Include <fcntl.h>.
4292         (DEV_NULL): New macro.
4293         (main): Test the resut of isatty() also on regular files, pipes, and
4294         /dev/null.
4295
4296         New module 'isatty'.
4297         * lib/unistd.in.h (isatty): New declaration.
4298         * lib/isatty.c: New file, based on an idea of
4299         Bastien Roucariès <roucaries.bastien@gmail.com>.
4300         * m4/isatty.m4: New file.
4301         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
4302         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
4303         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
4304         REPLACE_ISATTY.
4305         * modules/isatty: New file.
4306         * doc/posix-functions/isatty.texi: Mention the new module.
4307         Suggested by Paolo Bonzini.
4308
4309 2012-01-02  Bruno Haible  <bruno@clisp.org>
4310
4311         canonicalize: Tweak 2011-12-29 commit.
4312         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
4313         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
4314
4315 2012-01-02  Jim Meyering  <meyering@redhat.com>
4316
4317         gitlog-to-changelog: describe input syntax in --help output
4318         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
4319
4320         gitlog-to-changelog: fix typo in --help: show backslash before email @
4321         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
4322         in sources, but not in actual output.
4323
4324 2011-12-30  Jim Meyering  <meyering@redhat.com>
4325
4326         gitlog-to-changelog: don't malfunction when name contains %-directive
4327         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
4328         in a name string cause trouble.  E.g., with a user name of "%s",
4329         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
4330
4331 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
4332
4333         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
4334         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
4335         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
4336         the "  (tiny change)" notation that is appended to the standard
4337         ChangeLog "date  name  email" header line.
4338
4339 2012-01-01  Jim Meyering  <meyering@redhat.com>
4340
4341         test-framework-sh: init.sh: fix "make dist" failure
4342         When using gnulib-tool's --with-tests option and any module that
4343         depends on test-framework-sh, "make dist" would fail due to the
4344         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
4345         in the gltests directory, and not in the gllib/ directory.
4346         One way to work around that is to move the EXTRA_DIST += init.sh
4347         from the primary module to the -tests one:
4348         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
4349         * modules/test-framework-sh (Makefile.am): ...not here.
4350         Reported by Tom G. Christensen in
4351         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
4352
4353         version-etc: update copyright year reported by --version
4354         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
4355
4356 2011-12-31  Pádraig Brady  <P@draigBrady.com>
4357
4358         canonicalize: only stat() if required
4359         * lib/canonicalize.c (canonicalize_filename_mode):
4360         Avoid calling l?stat() when both CAN_MISSING,
4361         and CAN_NOLINKS are set, as we neither need
4362         to resolve symlinks or test component existence.
4363
4364 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
4365
4366         doc: cover st_ino issues once; add OpenVMS etc.
4367         * doc/posix-functions/stat.texi (stat):
4368         * doc/posix-functions/lstat.texi (lstat):
4369         * doc/posix-functions/fstatat.texi (fstatat):
4370         * doc/posix-functions/fstat.texi (fstat):
4371         Move general 'struct stat' stuff to sys_stat.texi,
4372         leaving behind a pointer.
4373         * doc/posix-headers/sys_stat.texi (sys/stat.h):
4374         Merge duplicate info about 'struct stat' problems into here.
4375         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
4376         and suggest partial workarounds.
4377
4378         same-inode: port to OpenVMS
4379         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
4380         three st_ino values.
4381
4382 2011-12-30  Pádraig Brady  <P@draigBrady.com>
4383
4384         canonicalize: fix references to stat() and lstat()
4385         * lib/canonicalize.c (canonicalize_filename_mode):
4386         Ensure references always resolve to a replacement
4387         function if required (even via a macro).
4388
4389 2011-12-30  Jim Meyering  <meyering@redhat.com>
4390
4391         gitlog-to-changelog: remove a little duplication
4392         * build-aux/gitlog-to-changelog (main): Grep @lines once,
4393         rather than twice.
4394
4395 2011-12-29  Pádraig Brady  <P@draigBrady.com>
4396
4397         canonicalize: add support for not resolving symlinks
4398         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
4399         indicate we don't want to follow symlinks.  Also
4400         provide CAN_MODE_MASK to aid setting these existing
4401         mutually exclusive values.
4402         * lib/canonicalize.c (canonicalize_filename_mode):
4403         Extract the flags from can_mode parameter, which
4404         are currently just used to select between stat()
4405         and lstat().  Also ensure that mutually exclusive
4406         values are flagged immediately as invalid.
4407         * tests/test-canonicalize.c: Verify symlinks are
4408         not followed, and that invalid flag combinations
4409         are diagnosed.
4410
4411 2011-12-25  Jim Meyering  <meyering@redhat.com>
4412
4413         gitlog-to-changelog: do not clump multi-paragraph entries
4414         Identical header lines (date,name,email+coauthors) are suppressed,
4415         thus putting all entries with those same characteristics under
4416         a single header.  However, when a log entry consists of two or
4417         more paragraphs, it may not be clear where it starts and ends.
4418         This change makes it so that such an entry is always separated
4419         from others by a header line, even when that header would
4420         otherwise be suppressed.
4421         * build-aux/gitlog-to-changelog: Implement the above.
4422         Inspired by a related request from Stefano Lattarini in
4423         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
4424
4425 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
4426
4427         announce-gen: fix `cmd' typo in diagnostic
4428         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
4429         diagnostic: a missing '$' meant that the command was not output.
4430
4431 2011-12-23  Jim Meyering  <meyering@redhat.com>
4432
4433         test-framework-sh: distribute init.sh
4434         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
4435         Otherwise, "make -C gnulib-tests check" (at least in grep) would
4436         fail due to the lack of init.sh.
4437
4438         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
4439         * modules/atexit-tests: Rather than listing tests/init.sh,
4440         now that there's a module for it, simply depend on that new module.
4441         * modules/closein-tests: Likewise.
4442         * modules/exclude-tests: Likewise.
4443         * modules/getcwd-tests: Likewise.
4444         * modules/perror-tests: Likewise.
4445         * modules/pread-tests: Likewise.
4446         * modules/pwrite-tests: Likewise.
4447         * modules/vc-list-files-tests: Likewise.
4448         * modules/verify-tests: Likewise.
4449         * modules/xalloc-die-tests: Likewise.
4450         * modules/xstrtoimax-tests: Likewise.
4451         * modules/xstrtol-tests: Likewise.
4452         * modules/xstrtoll-tests: Likewise.
4453         * modules/xstrtoumax-tests: Likewise.
4454         * modules/yesno-tests: Likewise.
4455
4456 2011-12-22  Jim Meyering  <meyering@redhat.com>
4457
4458         test-framework-sh: add minimal tests of init.sh's compare function
4459         * modules/test-framework-sh-tests: New file.
4460         * tests/test-init.sh: New file.
4461
4462         test-framework-sh: new module
4463         * modules/test-framework-sh: New file.
4464         * MODULES.html.sh (Support for maintaining and releasing projects):
4465         List it.
4466
4467         init.sh: do not emit simulated diff output to stderr
4468         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
4469
4470 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4471
4472         .gitignore: ignore gnulib.dvi and regex.info
4473         * doc/.gitignore:add gnulib.dvi and regex.info
4474
4475 2011-12-22  Jim Meyering  <meyering@redhat.com>
4476
4477         init.sh: correct previous change
4478         * tests/init.sh (compare): My previous change was wrong.
4479         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
4480
4481         init.sh: avoid unwarranted test failure when using "set -e"
4482         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
4483         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
4484         a use like "compare exp out" would get evoke an unconditional failure.
4485
4486 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
4487
4488         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
4489         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
4490         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
4491         autoreconf that did not.
4492         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
4493         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4494
4495 2011-12-17  Jim Meyering  <meyering@redhat.com>
4496
4497         bootstrap: remove some now-unneeded code
4498         This script arose back when gnulib-tool was young.
4499         Since then, it has seen improvements that render much of this
4500         script unnecessary.  In particular, it can now make symlinks
4501         to the files it uses.  Also, I no longer see as much value in
4502         marking files as read-only via comments.
4503         If you relied on the symlink-creation feature of the preceding
4504         version of this script, you can get most of that functionality
4505         by adding the --symlink option to the definition of
4506         gnulib_tool_option_extras in your bootstrap.conf file.
4507         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
4508         Run autopoint and libtoolize *before* gnulib-tool.
4509         After it, run an abbreviated autoreconf, rather than a loop around
4510         all tools.
4511         (slirp, bt_mark_as_generated): Remove functions.
4512
4513 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4514
4515         ftoastr: fix typo
4516         * lib/ftoastr.h: Fix misspelling in comment.
4517
4518 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
4519
4520         * top/README-release: fix punctuation.
4521
4522 2011-12-17  Jim Meyering  <meyering@redhat.com>
4523
4524         bootstrap: correct the recent buildreq change
4525         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
4526         had no effect.
4527         * build-aux/bootstrap (buildreq): Bracket each search term with
4528         "*...*", so that the shell "case" statement works as intended.
4529         Add comments.
4530
4531 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
4532
4533         build: let bootstrap resort to wget when downloading .po files
4534         * build-aux/bootstrap (download_po_files): Fallback to wget when
4535         downloading the .po files via rsync fails.  This is necessary to
4536         bootstrap from behind a strict firewall.
4537
4538 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4539
4540         stdint: don't assume C++11 when compiling with g++
4541         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
4542         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
4543         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
4544         work also in C++ before C++11, as that improperly inhibits
4545         generating a substitute stdint.h for that case.
4546
4547 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4548
4549         alloca: protect comment from gnulib-tool
4550         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
4551         that gnulib-tool doesn't think it's a license, and munge it to
4552         say "GCC version 3".
4553
4554 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
4555
4556         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
4557         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
4558         $(abs_top_builddir) instead of $(top_builddir).
4559
4560 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
4561
4562         strftime-tests: also test nanoseconds
4563         * tests/test-strftime.c (T): Add a test of %N.
4564
4565 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
4566
4567         inttypes, stdint: add C++11 support
4568         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
4569         when including inttypes.h and stdint.h.  Support this change to
4570         the standard.
4571         * doc/posix-headers/inttypes.texi (inttypes.h):
4572         * doc/posix-headers/stdint.texi (stdint.h): Document this.
4573         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
4574         Define if not defined already, for the benefit of pre-C++11 hosts.
4575         Define the standard format macros (e.g., PRId8) always.
4576         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
4577         Likewise, if __cpluspus.  Define the standard constant and limit
4578         macros (e.g., INT8_C, INT8_MAX) always.
4579         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
4580         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
4581         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
4582         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
4583         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
4584         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
4585         Likewise.
4586
4587 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
4588
4589         nonblocking tests: Fix test failure on Linux/PPC.
4590         Suggested by Prerna Saxena in
4591         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
4592         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
4593         Set to 1100000.
4594
4595 2011-12-12  Jim Meyering  <meyering@redhat.com>
4596
4597         argmatch: don't hard-code `' when listing valid option arguments
4598         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
4599         use the quote function to add quotes.  Use fputs rather than
4600         fprintf for the format string with no format directive.
4601
4602 2011-12-07  Eric Blake  <eblake@redhat.com>
4603
4604         bootstrap: detect tools required by gnulib-tool
4605         * build-aux/bootstrap (buildreq): Provide minimum implicit
4606         dependencies.
4607         * DEPENDENCIES: Mention patch as a prereq.
4608
4609 2011-12-04  Bruno Haible  <bruno@clisp.org>
4610
4611         sethostname: Port to Windows platforms.
4612         * lib/sethostname.c: Provide an alternate implementation for Windows
4613         platforms.
4614         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
4615         (main): Skip the test if sethostname() fails with EPERM. On Windows
4616         platforms, don't check the result of gethostname().
4617
4618 2011-12-04  Bruno Haible  <bruno@clisp.org>
4619             Jim Meyering  <meyering@redhat.com>
4620
4621         tests: Avoid spurious error message on platforms without mktemp program.
4622         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
4623
4624 2011-12-04  Bruno Haible  <bruno@clisp.org>
4625
4626         sethostname: Fix documentation.
4627         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
4628         "not fixed" section.
4629
4630 2011-12-03  Bruno Haible  <bruno@clisp.org>
4631
4632         gnulib-tool: Verify that the License field is present and non-empty.
4633         * gnulib-tool (func_get_license_raw): New function, extracted from
4634         func_get_license.
4635         (func_get_license): Use it. Warn if the module is not a test module and
4636         has no license.
4637         Suggested by Jim Meyering.
4638
4639 2011-12-03  Bruno Haible  <bruno@clisp.org>
4640
4641         sethostname tests: Fix link error on mingw.
4642         * tests/test-sethostname1.c: New file, extracted from
4643         tests/test-sethostname.c.
4644         * tests/test-sethostname2.c: New file, extracted from
4645         tests/test-sethostname.c.
4646         * tests/test-sethostname.c: Remove file.
4647         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
4648         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
4649         (Depends-on): Add gethostname.
4650         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
4651         Link the latter with $(GETHOSTNAME_LIB).
4652
4653         sethostname tests: Fix compilation error on mingw.
4654         * tests/test-sethostname.c: Don't include <sys/types.h>.
4655         (geteuid): Use a dummy value without uid_t.
4656         * modules/sethostname-tests (Depends-on): Remove sys_types.
4657
4658         sethostname tests: Avoid a gcc warning.
4659         * tests/test-sethostname.c (main): Remove an unused variable.
4660
4661         Tweak last commit.
4662         * modules/sethostname-tests (Files): Sort by decreasing importance.
4663         (configure.ac): Check for geteuid.
4664         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
4665         the test when there's nothing to test. Drop an unnecessary cast.
4666         Improve an error message. Verify that the final sethostname() call
4667         succeeds.
4668
4669 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4670
4671         Add a test suite for the sethostname module.
4672         * modules/sethostname-tests: New file.  A test program
4673         for the sethostname module.
4674         * tests/test-sethostname.c: Likewise.
4675
4676 2011-12-03  Bruno Haible  <bruno@clisp.org>
4677
4678         Tweak last commit.
4679         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
4680         Fix preprocessor directives indentation. Fix typos.
4681         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
4682         * modules/unistd (Makefile): Likewise.
4683
4684 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4685
4686         Integrate the sethostname module into unistd.
4687         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
4688         into the unistd.h header.
4689         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
4690         preprocessor directives.
4691         * modules/unistd: Setup the Makefile substitutions of the
4692         SETHOSTNAME preprocessor directives.
4693
4694 2011-12-03  Bruno Haible  <bruno@clisp.org>
4695
4696         Tweak last commit.
4697         * lib/sethostname.c: Don't include <string.h>.
4698         (sethostname): No need to copy the argument string to the stack. Don't
4699         call clearerr. Preserve errno when fprintf failed.
4700         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
4701         Don't invoke AC_REPLACE_FUNCS.
4702         * modules/sethostname (Link): Remove empty section.
4703         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
4704         failure problem.
4705
4706 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4707
4708         New module 'sethostname'.
4709         * lib/sethostname.c (sethostname): New file.  Provide sethostname
4710         for systems that lack it.
4711         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
4712         sethostname declaration and function.
4713         * modules/sethostname: New file.  Define the sethostname module.
4714
4715 2011-12-03  Bruno Haible  <bruno@clisp.org>
4716
4717         Tweak last commit.
4718         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
4719
4720 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4721
4722         Split the HOST_NAME_MAX detection into a separate m4 macro.
4723         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
4724         macro so it can be used by the pending sethostname module.
4725
4726 2011-12-03  Bruno Haible  <bruno@clisp.org>
4727
4728         Fix module descriptions syntax.
4729         * modules/argv-iter (License): Fix syntax.
4730         * modules/di-set (License): Likewise.
4731         * modules/ino-map (License): Likewise.
4732         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
4733
4734 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
4735
4736         stdalign: port to Clang 3.0
4737         Problem reported by Simon Josefsson in
4738         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
4739         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
4740         which has <stdalign.h> but which does not define alignof.
4741         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
4742
4743 2011-12-01  Eric Blake  <eblake@redhat.com>
4744
4745         mktempd: silence dd usage
4746         * build-aux/mktempd (rand_bytes): Silence dd.
4747
4748 2011-11-30  Simon Josefsson  <simon@josefsson.org>
4749
4750         manywarnings: Don't mention gcc version in docstring.
4751         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
4752         Jim Meyering <meyering@redhat.com>.
4753
4754 2011-11-30  Jim Meyering  <meyering@redhat.com>
4755
4756         hash: mark a few floating point constants with "f" suffix
4757         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
4758         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
4759         floating point constants with "f", since they're destined to be
4760         saved/used as "float"s.
4761
4762 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
4763
4764         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
4765         * tests/test-float.c (test_long_double): Correct and re-enable the
4766         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
4767
4768 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
4769
4770         Avoid subtracting two pointers that don't point into the same block.
4771         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
4772         only pointers into the same memory block are subtracted. We cannot
4773         assume that sizeof (ptrdiff_t) == sizeof (void *).
4774
4775 2011-11-29  Eric Blake  <eblake@redhat.com>
4776
4777         maint.mk: add syntax check for use of compare from init.sh
4778         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
4779         moved here from coreutils.
4780
4781         manywarnings: drop -Wunsuffixed-float-constants
4782         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
4783         '1.0D', which is the only way to silence this warning for 'double'.
4784
4785 2011-11-29  Jim Meyering  <meyering@redhat.com>
4786
4787         hash: mark compute_bucket_size with the pure attribute
4788         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
4789
4790         quotearg, propername: correct pragma guard expression
4791         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
4792         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
4793
4794 2011-11-28  Jim Meyering  <meyering@redhat.com>
4795
4796         propername: do not mark proper_name with the const attribute
4797         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
4798         since it examines data pointed to by its parameter.
4799         * lib/propername.c (proper_name): Instead, add a pragma to suppress
4800         the suggestion from -Wsuggest-attribute=const.
4801
4802         propername: mark one more function as const
4803         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
4804
4805 2011-11-27  Jim Meyering  <meyering@redhat.com>
4806
4807         mark functions with const and pure attributes
4808
4809         Mark functions per suggestions from gcc-4.6 when using these options:
4810         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
4811         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
4812         Follow these guidelines: when possible, apply the attribute to
4813         an extern declaration, not to its definition.  Apply it to the
4814         definition only when the definition is static.
4815         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
4816         * lib/argv-iter.h (argv_iter_n_args): Likewise.
4817         * lib/base64.h (isbase64): Likewise.
4818         * lib/basename-lgpl.c (last_component, base_len): Likewise.
4819         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
4820         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
4821         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
4822         (c_tolower, c_toupper): Likewise.
4823         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
4824         * lib/chdir-long.c (find_non_slash): Likewise.
4825         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
4826         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
4827         * lib/file-type.h (file_type): Likewise.
4828         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
4829         * lib/filevercmp.c (verrevcmp): Likewise.
4830         * lib/freadahead.h (freadahead): Likewise.
4831         * lib/fts.c (fts_maxarglen): Likewise.
4832         * lib/hash-pjw.h (hash_pjw): Likewise.
4833         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
4834         * lib/hash.c (is_prime, next_prime): Likewise.
4835         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
4836         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
4837         (hash_table_ok, hash_get_first, hash_string): Likewise.
4838         (compute_bucket_size): Likewise.
4839         * lib/i-ring.h (i_ring_empty): Likewise.
4840         * lib/isnan.c (isnanl): Likewise.
4841         * lib/math.h (isnanl, rpl_isnanl): Likewise.
4842         * lib/memcasecmp.h (memcasecmp): Likewise.
4843         * lib/memchr2.h (memchr2): Likewise.
4844         * lib/memcmp2.h (memcmp2): Likewise.
4845         * lib/parse-datetime.y (lookup_zone): Likewise.
4846         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
4847         [!WINDOWS_SOCKETS]: Likewise.
4848         * lib/strnlen1.h (strnlen1): Likewise.
4849         * lib/uniwidth.in.h (uc_width): Likewise.
4850         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
4851         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
4852         (quoting_options_from_style): Add a comment.
4853         * lib/propername.h (proper_name): Add a comment.
4854
4855 2011-11-27  Bruno Haible  <bruno@clisp.org>
4856
4857         Remove unused macros from !_LIBC code in glibc-borrowed files.
4858         * lib/fnmatch.c (STRCOLL): Remove macro.
4859         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
4860         * lib/glob.c (__stat, __readdir64): Remove macros.
4861         * lib/tempname.c (__open64, __xstat64): Remove macros.
4862         Suggested by Paul Eggert.
4863
4864 2011-11-27  Bruno Haible  <bruno@clisp.org>
4865
4866         getcwd: Fix link error on MSVC 9.
4867         * modules/getcwd (Depends-on): Add readdir, rewinddir.
4868
4869 2011-11-27  Bruno Haible  <bruno@clisp.org>
4870
4871         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
4872         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
4873         HAVE_OPENDIR is 0.
4874         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
4875         HAVE_CLOSEDIR is 0.
4876         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
4877         is 0.
4878         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
4879
4880 2011-11-27  Bruno Haible  <bruno@clisp.org>
4881
4882         getcwd: Fix bug from 2011-08-17.
4883         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
4884         platforms that need it.
4885         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
4886         code of 4 to be a failure, not a success. This ensures that
4887         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
4888
4889 2011-11-27  Bruno Haible  <bruno@clisp.org>
4890
4891         binary-io tests: Avoid test failure on mingw when libtool is used.
4892         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
4893         Don't verify the size of t-bin-out1.tmp here.
4894         * tests/test-binary-io.sh: Verify it here.
4895         Reported by Simon Josefsson.
4896
4897 2011-11-26  Bruno Haible  <bruno@clisp.org>
4898
4899         Fix conflict between two instantiations of module 'unistd'.
4900         * gnulib-tool (func_emit_autoconf_snippet): Substitute
4901         ${include_guard_prefix} also in the autoconf snippet.
4902         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
4903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
4904         GNULIB_UNISTD_H_GETOPT.
4905         * modules/getopt-posix (configure.ac): Set the
4906         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
4907         * modules/getopt-gnu (configure.ac): Likewise.
4908         * modules/unistd (Makefile.am): Change the substitution value of
4909         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
4910         Reported by Simon Josefsson.
4911
4912 2011-11-25  Bruno Haible  <bruno@clisp.org>
4913
4914         pagealign_alloc: Doc and comments.
4915         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
4916         module.
4917         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
4918
4919 2011-11-25  Jim Meyering  <meyering@redhat.com>
4920
4921         test-update-copyright.sh: avoid false-positive failure
4922         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
4923         around false positive failure on Cygwin/Windows.  The latter was
4924         matching erroneously-created files with names like
4925         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
4926
4927 2011-11-25  Simon Josefsson  <simon@josefsson.org>
4928
4929         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
4930         * m4/valgrind-tests.m4: Check that the parameters that will be
4931         used works, not just a subset of them.  Reported by Bruno Haible
4932         <bruno@clisp.org>.
4933
4934 2011-11-24  Jim Meyering  <meyering@redhat.com>
4935
4936         test-stdalign.c: comment out long double tests
4937         * tests/test-stdalign.c: Don't try to reduce alignment of long double
4938         variables.  That provokes errors like this from gcc-4.7.0 20111124:
4939         error: '_Alignas' specifiers cannot reduce alignment of \
4940         'static_longdouble_alignas'.
4941
4942 2011-11-22  Jim Meyering  <meyering@redhat.com>
4943
4944         init.sh: make "compare /dev/null FILE" output more readable
4945         * tests/init.sh (compare_): Document the preferred order of arguments.
4946         (emit_diff_u_header_): New function.
4947         (compare_dev_null_): Emit a simulated diff, rather than just the
4948         contents of the unexpected file.  Suggestion from Bruno Haible.
4949
4950 2011-11-21  Jim Meyering  <meyering@redhat.com>
4951             Eric Blake  <eblake@redhat.com>
4952
4953         init.sh: work around OSF/1 5.1's mishandling of /dev/null
4954         * tests/init.sh: Make our compare function slightly more portable.
4955         Reported by Bruno Haible in
4956         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
4957
4958 2011-11-21  Simon Josefsson  <simon@josefsson.org>
4959
4960         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
4961         before using it, in code that ends up in config.h.
4962
4963 2011-11-20  Bruno Haible  <bruno@clisp.org>
4964
4965         getcwd: Work around getcwd bug on AIX 5..7.
4966         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
4967         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
4968         Use a different value for gl_cv_func_getcwd_path_max. Move the
4969         definition of HAVE_PARTLY_WORKING_GETCWD from here...
4970         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
4971         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
4972         Define HAVE_MINIMALLY_WORKING_GETCWD.
4973         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
4974         where it is not even minimally working, that is, on AIX.
4975         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
4976         m4/getcwd-path-max.m4.
4977         (main): Update exit code computation.
4978         * doc/posix-functions/getcwd.texi: Mention list of platforms where
4979         getcwd does not handle long file names.
4980
4981 2011-11-20  Bruno Haible  <bruno@clisp.org>
4982
4983         getcwd: Fix bug from 2009-09-10.
4984         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
4985         like "no".
4986
4987 2011-11-20  Simon Josefsson  <simon@josefsson.org>
4988
4989         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
4990
4991 2011-11-20  Bruno Haible  <bruno@clisp.org>
4992
4993         fma tests: Avoid shadowing local variables.
4994         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
4995         expected.
4996
4997 2011-11-20  Bruno Haible  <bruno@clisp.org>
4998
4999         copysignf tests: Fix.
5000         * tests/test-copysignf.c: Fix signature check.
5001
5002 2011-11-20  Bruno Haible  <bruno@clisp.org>
5003
5004         fma: Remove unused code.
5005         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
5006         unused macros.
5007
5008 2011-11-20  Bruno Haible  <bruno@clisp.org>
5009
5010         sethostname: Fix doc about AIX.
5011         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
5012         sethostname; it has it.
5013
5014         sethostname: Mention more portability problems.
5015         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
5016         problem.
5017         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5018
5019 2011-11-19  Bruno Haible  <bruno@clisp.org>
5020
5021         Depend on module fcntl-h when AT_FDCWD is used.
5022         * modules/utimens (Depends-on): Add fcntl-h.
5023         * modules/areadlinkat (Depends-on): Likewise.
5024         * modules/areadlinkat-with-size (Depends-on): Likewise.
5025         * modules/faccessat (Depends-on): Likewise.
5026         * modules/fchmodat (Depends-on): Likewise.
5027         * modules/fchownat (Depends-on): Likewise.
5028         * modules/getcwd (Depends-on): Likewise.
5029         * modules/mkdirat (Depends-on): Likewise.
5030         * modules/mkfifoat (Depends-on): Likewise.
5031         * modules/readlinkat (Depends-on): Likewise.
5032         * modules/symlinkat (Depends-on): Likewise.
5033         * modules/dup2-tests (Depends-on): Likewise.
5034         * modules/fdutimensat-tests (Depends-on): Likewise.
5035         * modules/futimens-tests (Depends-on): Likewise.
5036
5037 2011-11-19  Bruno Haible  <bruno@clisp.org>
5038
5039         euidaccess: Update a comment.
5040         * lib/euidaccess.c: Update comment about platforms with faccessat.
5041
5042 2011-11-19  Bruno Haible  <bruno@clisp.org>
5043
5044         openat: Fix file list.
5045         * modules/openat (Files): Remove lib/at-func.c.
5046
5047 2011-11-19  Bruno Haible  <bruno@clisp.org>
5048
5049         fstatat: Simplify.
5050         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
5051         gnulib should define rpl_fstatat, there is a
5052         "#define fstatat rpl_fstatat" in <sys/stat.h>.
5053
5054 2011-11-19  Bruno Haible  <bruno@clisp.org>
5055
5056         Ensure 'inline' can be used in tests/test-utimens-common.h.
5057         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
5058         * modules/futimens-tests (configure.ac): Likewise.
5059         * modules/utimens-tests (configure.ac): Likewise.
5060         * modules/utimensat-tests (configure.ac): Likewise.
5061
5062 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5063
5064         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
5065         not hash_insert0.
5066         (hash_insert_if_absent): Doc fix.
5067
5068 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5069
5070         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
5071
5072 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5073
5074         test-getcwd: disambiguate exit status
5075         * tests/test-getcwd.c (test_long_name): Return 0..7.
5076         (main): Exit with an unambiguous exit status.  The old
5077         code yielded a mysterious mixture of two failure codes.
5078
5079         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
5080         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
5081         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
5082         rpl_fstatat or fstatat.  This should fix the other problem
5083         reported by Kai Habel in
5084         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5085         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
5086         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
5087         and I reproduced it on a Solaris 8 host we still have in production.
5088
5089 2011-11-18  Jim Meyering  <meyering@redhat.com>
5090
5091         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
5092         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
5093         Add a sentence to the comment.
5094         (hash_insert0): New function that simply calls hash_insert_if_absent.
5095         * lib/hash.h (hash_insert_if_absent): Declare it.
5096         (hash_insert0): Add deprecation attribute.
5097         (_GL_ATTRIBUTE_DEPRECATED): Define.
5098         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
5099         not hash_insert0.
5100         * NEWS: Mention it, even though it's not really an incompatible change.
5101
5102 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
5103
5104         openat: avoid compilation failure due to lack of <errno.h> inclusion
5105         * lib/openat.c: Include <errno.h>.
5106
5107 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5108
5109         * modules/getcwd (Depends-on): Add fdopendir.
5110         This fixes one of the two problems reported by Kai Habel in
5111         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5112
5113         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
5114         stdalign problem reported by Ian Beckwith in
5115         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
5116         * modules/crypto/gc-arcfour (Depends-on):
5117         Depend conditionally on crypto/arcfour.
5118         * modules/crypto/gc-arctwo (Depends-on):
5119         Depend conditionally on crypto/arctwo.
5120         * modules/crypto/gc-des (Depends-on):
5121         Depend conditionally on crypto/des.
5122         * modules/crypto/gc-hmac-md5 (Depends-on):
5123         Depend conditionally on crypto/hmac-md5.
5124         * modules/crypto/gc-hmac-sha1 (Depends-on):
5125         Depend conditionally on crypto/hmac-sha1.
5126         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
5127         * modules/crypto/gc-md4 (Depends-on):
5128         Depend conditionally on crypto/md4.
5129         * modules/crypto/gc-md5 (Depends-on):
5130         Depend conditionally on crypto/md5.
5131         * modules/crypto/gc-rijndael (Depends-on):
5132         Depend conditionally on crypto/rijndael.
5133         * modules/crypto/gc-sha1 (Depends-on):
5134         Depend conditionally on crypto/sha1.
5135         * modules/crypto/gc-arcfour:
5136         * modules/crypto/gc-arctwo:
5137         * modules/crypto/gc-des:
5138         * modules/crypto/gc-hmac-md5:
5139         * modules/crypto/gc-hmac-sha1:
5140         * modules/crypto/gc-md2:
5141         * modules/crypto/gc-md4:
5142         * modules/crypto/gc-md5:
5143         * modules/crypto/gc-rijndael:
5144         * modules/crypto/gc-sha1:
5145         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
5146         now that the conditional dependencies do the work for us.
5147
5148 2011-11-17  Jim Meyering  <meyering@redhat.com>
5149
5150         tests: factor st_ctime-comparison out of two headers
5151         * tests/test-utimens-common.h (ctime_compare): Define.
5152         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
5153         * tests/test-lutimens.h (test_lutimens): Likewise.
5154         * tests/test-utimens.h (test_utimens): Likewise.
5155
5156         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
5157         Invoke the test program via an init.sh-using wrapper.
5158         * tests/test-getcwd.sh: New file.
5159         * modules/getcwd-tests (Files): Add it.
5160         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
5161
5162 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
5163
5164         gitlog-to-changelog: support multi-author commits.
5165         The FSF cares about keeping track of all authors of patches to its
5166         projects, but Git doesn't provide obvious support for multi-author
5167         changesets. Consensus seems to be forming around the use of extra
5168         Signed-off-by inspired lines in the log message formatted as
5169         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
5170         multi-author commits between version control systems.
5171         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
5172         log message and output in standard ChangeLog multi-author format.
5173         Reported by Peter Rosin <peda@lysator.liu.se>
5174
5175 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
5176             Bruno Haible  <bruno@clisp.org>
5177
5178         Fix some modules' file list.
5179         * modules/fstatat (Files): Add m4/lstat.m4.
5180         * modules/openat (Files): Likewise.
5181         * modules/unlinkat (Files): Likewise.
5182
5183 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
5184
5185         maint.mk: fix tight-scope.mk generation in VPATH builds.
5186         * top/maint.mk (tight-scope.mk): Make sure to prefix file
5187         reference with $(srcdir) so that the file is found correctly even
5188         when running `make syntax-check' in a VPATH build.
5189
5190 2011-11-13  Bruno Haible  <bruno@clisp.org>
5191             Jim Meyering  <meyering@redhat.com>
5192
5193         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
5194         * tests/init.sh (compare): Remove "No differences encountered" or
5195         synonymous output from the 'diff' program.
5196
5197 2011-11-13  Bruno Haible  <bruno@clisp.org>
5198
5199         Makefile: Tweak indentation.
5200         * Makefile: Use tab as first character in every line that contains rule
5201         commands.
5202
5203 2011-11-13  Bruno Haible  <bruno@clisp.org>
5204
5205         Syntax check for copyright statements.
5206         * check-copyright: New file.
5207         * Makefile (sc_check_copyright): New rule.
5208
5209 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5210
5211         * build-aux/git-version-gen: Add --prefix to configure the tag
5212         match string.
5213
5214 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5215
5216         * build-aux/git-version-gen: Add --help and --version.
5217
5218 2011-11-12  Jim Meyering  <meyering@redhat.com>
5219
5220         revamp the other test-exclude?.sh scripts to use init.sh, too
5221         * tests/test-exclude1.sh: Use init.sh.
5222         * tests/test-exclude2.sh: Likewise.
5223         * tests/test-exclude3.sh: Likewise.
5224         * tests/test-exclude4.sh: Likewise.
5225         * tests/test-exclude5.sh: Likewise.
5226         * tests/test-exclude6.sh: Likewise.
5227         * tests/test-exclude7.sh: Likewise.
5228         * tests/test-exclude8.sh: Likewise.
5229         * modules/exclude-tests (Files): List init.sh.
5230
5231         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
5232         These shell scripts ignored failure of the binary test-exclude,
5233         so making the latter return 77 didn't cause them to be skipped.
5234         * tests/test-exclude5.sh: Exit with test-exclude's error status
5235         when that program fails.  Revamp to use init.sh.
5236         * tests/test-exclude2.sh: Likewise.
5237
5238         test-exclude: fix a typo
5239         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
5240
5241 2011-11-11  Bruno Haible  <bruno@clisp.org>
5242
5243         obstack: Fix compilation error on MSVC 9.
5244         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
5245
5246 2011-11-11  Jim Meyering  <meyering@redhat.com>
5247
5248         test-exclude: skip tests rather than failing on deficient systems
5249         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
5250         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
5251         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
5252         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
5253
5254 2011-11-10  Bruno Haible  <bruno@clisp.org>
5255
5256         ptsname_r test: Avoid gcc warning on glibc systems.
5257         * tests/test-ptsname_r.c (null_ptr): New function.
5258         (test_errors): Use it.
5259
5260 2011-11-10  Bruno Haible  <bruno@clisp.org>
5261
5262         ptsname_r: Avoid compilation error on OSF/1 5.1.
5263         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
5264         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
5265         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
5266         function is not declared or incompatibly declared.
5267         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
5268         * modules/ptsname_r (Depends-on, configure.ac): Update.
5269         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
5270
5271 2011-11-10  Bruno Haible  <bruno@clisp.org>
5272
5273         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
5274         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
5275         When cross-compiling, guess yes on all platforms except AIX.
5276         Reported by Ludovic Courtès <ludo@gnu.org>.
5277
5278 2011-11-09  Bruno Haible  <bruno@clisp.org>
5279
5280         ptsname_r tests: Fix bugs.
5281         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
5282         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
5283
5284 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
5285
5286         fstatat: work with cross-compilation
5287         Problem reported by Ludovic Courtès in
5288         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
5289         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
5290         "cross-compiling" and assume the bug is present.  Replace
5291         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
5292         an inverted sense, to be more conservative about our assumptions.
5293         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
5294
5295 2011-11-09  Bruno Haible  <bruno@clisp.org>
5296
5297         Improve MODULES.html output.
5298         * modules/mkfifoat (Description): Use the word "function".
5299         * modules/readlinkat (Description): Likewise.
5300         * modules/symlinkat (Description): Likewise.
5301
5302 2011-11-09  Eric Blake  <eblake@redhat.com>
5303
5304         ptsname_r-tests: new test module
5305         * modules/ptsname_r-tests: New module.
5306         * tests/test-ptsname_r.c: New file.
5307
5308         ptsname_r: new module
5309         * modules/ptsname_r: New module.
5310         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
5311         * lib/ptsname.c (__ptsname_r): Split...
5312         * lib/ptsname_r.c: ...into new file.
5313         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
5314         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
5315         * modules/stdlib (Makefile.am): Substitute witnesses.
5316         * lib/stdlib.in.h (ptsname_r): Declare it.
5317         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
5318         * MODULES.html.sh (Misc): Likewise.
5319         * modules/ptsname (Depends-on): Alter dependency.
5320         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
5321
5322 2011-11-09  Jim Meyering  <meyering@redhat.com>
5323
5324         announce-gen: be more concise when there's only one URL+tarball
5325         * build-aux/announce-gen (get_tool_versions): When you distribute
5326         only one type of tarball, combine the first two "Here are..."
5327         sections and make the key-checking grammar independent of
5328         how many tarballs there are.
5329
5330 2011-11-09  Eric Blake  <eblake@redhat.com>
5331
5332         openpty: provide a stub on mingw
5333         * lib/pty.in.h (includes): Provide forward declarations.
5334         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
5335
5336         raise: fix mingw handling of SIGPIPE
5337         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
5338
5339 2011-11-08  Bruno Haible  <bruno@clisp.org>
5340
5341         More conditional dependencies.
5342         * modules/faccessat (Depends-on): Add conditions.
5343         * modules/fchmodat (Depends-on): Likewise.
5344         * modules/fchownat (Depends-on): Likewise.
5345         * modules/fstatat (Depends-on): Likewise.
5346         * modules/mkfifoat (Depends-on): Likewise.
5347         * modules/readlinkat (Depends-on): Likewise.
5348         * modules/symlinkat (Depends-on): Likewise.
5349         * modules/unlinkat (Depends-on): Likewise.
5350         * modules/utimensat (Depends-on): Likewise.
5351         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
5352         * modules/linkat (Depends-on): Refine the conditions.
5353         * modules/renameat (Depends-on): Likewise.
5354
5355 2011-11-08  Bruno Haible  <bruno@clisp.org>
5356
5357         faccessat: Move AC_LIBOBJ invocation to module description.
5358         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
5359         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
5360         invocation from here...
5361         * modules/faccessat (configure.ac): ... to here. Invoke
5362         gl_PREREQ_FACCESSAT.
5363
5364 2011-11-08  Bruno Haible  <bruno@clisp.org>
5365
5366         faccessat: Simplify autoconf macro.
5367         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
5368         gl_FUNC_EUIDACCESS.
5369
5370 2011-11-08  Bruno Haible  <bruno@clisp.org>
5371
5372         renameat: Fix dependencies.
5373         * modules/renameat (Depends-on): Add stdbool.
5374
5375 2011-11-08  Bruno Haible  <bruno@clisp.org>
5376
5377         mkfifoat: Fix module description.
5378         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
5379         not gl_UNISTD_MODULE_INDICATOR.
5380
5381 2011-11-08  Bruno Haible  <bruno@clisp.org>
5382
5383         fstatat: Remove unused dependency.
5384         * modules/fstatat (Depends-on): Remove fstat.
5385
5386 2011-11-08  Simon Josefsson  <simon@josefsson.org>
5387
5388         GNUmakefile: behave when Makefile is missing.
5389         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
5390
5391 2011-11-08  Bruno Haible  <bruno@clisp.org>
5392
5393         openat: Conditionalize dependencies.
5394         * lib/openat.c: Reduce the scope of some #includes.
5395         * modules/openat (Depends-on): Add conditions.
5396
5397 2011-11-07  Jim Meyering  <meyering@redhat.com>
5398
5399         maint.mk: extract GPG key ID without using a temporary file
5400         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
5401         without using a temporary file.  Based on a suggestion from Werner Koch
5402         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
5403
5404 2011-11-07  Eric Blake  <eblake@redhat.com>
5405
5406         grantpt: fix typo
5407         * lib/stdlib.in.h (grantpt): Check correct function.
5408
5409         maint.mk: silence new syntax check
5410         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
5411
5412 2011-11-06  Bruno Haible  <bruno@clisp.org>
5413
5414         Doc about floating-point and math API.
5415         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
5416         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
5417
5418 2011-11-06  Bruno Haible  <bruno@clisp.org>
5419
5420         stdalign tests: Skip the test when compiled by Sun C.
5421         * tests/test-stdalign.c (main): Skip the test on Sun C.
5422
5423 2011-11-06  Bruno Haible  <bruno@clisp.org>
5424
5425         ansi-c++-opt: Complete the 2011-06-05 change.
5426         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
5427         does not support namespaces, set the variable to "no", not to ":".
5428
5429 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
5430
5431         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
5432
5433 2011-11-06  Bruno Haible  <bruno@clisp.org>
5434
5435         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
5436         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
5437         (minus_zerol) [HP-UX]: New macro.
5438         (unary_minus) [HP-UX]: New function.
5439         (copysignl) [HP-UX]: Use unary_minus function.
5440
5441 2011-11-06  Bruno Haible  <bruno@clisp.org>
5442
5443         ldexp, ldexpf, ldexpl: Enhance tests.
5444         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
5445         and tests/test-ldexpl.c.
5446         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
5447         LDEXP, MIN_EXP, MAX_EXP): New macros.
5448         Include test-ldexp.h.
5449         (main): Just call test_function.
5450         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
5451         infinity.h, nan.h.
5452         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5453         MAX_EXP): New macros.
5454         Include test-ldexp.h.
5455         (x, y): Remove variables.
5456         (main): Just call test_function.
5457         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
5458         infinity.h, nan.h.
5459         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5460         MAX_EXP): New macros.
5461         Include test-ldexp.h.
5462         (x, y): Remove variables.
5463         (main): Just call test_function.
5464         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
5465         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
5466         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5467         (Depends-on): Add isnand-nolibm, signbit, float.
5468         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
5469         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5470         (Depends-on): Add isnanf-nolibm, signbit, float.
5471
5472 2011-11-06  Bruno Haible  <bruno@clisp.org>
5473
5474         math tests: Cosmetics.
5475         * tests/test-math-c++.cc: Reorder declarations.
5476
5477 2011-11-05  Bruno Haible  <bruno@clisp.org>
5478
5479         fma*: Simplify test.
5480         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
5481         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
5482
5483         Tests for module 'fmal'.
5484         * modules/fmal-tests: New file.
5485         * tests/test-fmal1.c: New file.
5486         * tests/test-fmal2.c: New file.
5487
5488         New module 'fmal'.
5489         * lib/math.in.h (fmal): New declaration.
5490         * lib/fmal.c: New file.
5491         * m4/fmal.m4: New file.
5492         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
5493         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
5494         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
5495         REPLACE_FMAL.
5496         * modules/fmal: New file.
5497         * doc/posix-functions/fmal.texi: Mention the new module and the various
5498         bugs.
5499
5500         Tests for module 'fmaf'.
5501         * modules/fmaf-tests: New file.
5502         * tests/test-fmaf1.c: New file.
5503         * tests/test-fmaf2.c: New file.
5504
5505         New module 'fmaf'.
5506         * lib/math.in.h (fmaf): New declaration.
5507         * lib/fmaf.c: New file.
5508         * m4/fmaf.m4: New file.
5509         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
5510         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
5511         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
5512         REPLACE_FMAF.
5513         * modules/fmaf: New file.
5514         * doc/posix-functions/fmaf.texi: Mention the new module and the various
5515         bugs.
5516
5517         Tests for module 'fma'.
5518         * modules/fma-tests: New file.
5519         * tests/test-fma1.c: New file.
5520         * tests/test-fma1.h: New file.
5521         * tests/test-fma2.c: New file.
5522         * tests/test-fma2.h: New file.
5523
5524         New module 'fma'.
5525         * lib/math.in.h (fma): New declaration.
5526         * lib/fma.c: New file.
5527         * m4/fma.m4: New file.
5528         * m4/fegetround.m4: New file.
5529         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
5530         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
5531         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
5532         REPLACE_FMA.
5533         * modules/fma: New file.
5534         * doc/posix-functions/fma.texi: Mention the new module and the various
5535         bugs.
5536
5537         Extend gl_MATHFUNC.
5538         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
5539         Support 'void' as argument type.
5540         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
5541
5542 2011-11-05  Jim Meyering  <meyering@redhat.com>
5543
5544         maint.mk: also prohibit inclusion of dirent.h without use
5545         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
5546
5547 2011-11-05  Bruno Haible  <bruno@clisp.org>
5548
5549         ldexpl tests: Avoid test failure on MSVC 9.
5550         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
5551         value. Needed in order to enforce the conversion from a value greater
5552         than LDBL_MAX to Infinity.
5553
5554 2011-11-05  Bruno Haible  <bruno@clisp.org>
5555
5556         New modules 'at-internal', 'openat-h', split off from module 'openat'.
5557         * modules/at-internal: New file, extracted from modules/openat.
5558         * modules/openat-h: New file.
5559         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
5560         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
5561         * modules/openat (Description): Add reference to POSIX function.
5562         (Files): Remove lib/openat.h, lib/openat-proc.c.
5563         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
5564         intprops, unistd.
5565         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
5566         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
5567         gl_FCNTL_MODULE_INDICATOR.
5568         (Include): Remove unistd.h, openat.h.
5569         * modules/areadlinkat (Files): Add lib/at-func.c.
5570         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5571         openat-die, openat-h, save-cwd.
5572         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
5573         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5574         openat-die, openat-h, save-cwd, unistd.
5575         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
5576         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5577         openat-h, save-cwd. Remove fcntl-h, openat.
5578         * modules/fchmodat (Files): Remove lib/openat.h.
5579         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5580         openat, stdbool, unistd.
5581         * modules/fchownat (Files): Remove lib/openat.h.
5582         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5583         openat, stdbool, sys_stat.
5584         * modules/fdopendir (Files): Remove lib/openat-priv.h,
5585         lib/openat-proc.c.
5586         (Depends-on): Add at-internal.
5587         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
5588         * modules/fstatat (Files): Remove lib/openat.h.
5589         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5590         stdbool, unistd.
5591         * modules/fts (Depends-on): Add openat-h.
5592         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
5593         openat.
5594         * modules/mkdirat (Files): Remove lib/openat.h.
5595         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5596         openat, stdbool, sys_stat.
5597         * modules/mkfifoat (Files): Add lib/at-func.c.
5598         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5599         openat-h, save-cwd. Remove fcntl-h, openat.
5600         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
5601         * modules/readlinkat (Files): Add lib/at-func.c.
5602         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5603         openat-h, save-cwd. Remove fcntl-h, openat.
5604         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
5605         openat.
5606         * modules/selinux-at (Files): Add lib/at-func.c.
5607         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5608         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
5609         * modules/symlinkat (Files): Add lib/at-func.c.
5610         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5611         openat-h, save-cwd. Remove fcntl-h, openat.
5612         * modules/unlinkat (Files): Remove lib/openat.h.
5613         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5614         stdbool.
5615         * modules/utimensat (Files): Add lib/at-func.c.
5616         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
5617         openat-die, openat-h, save-cwd.
5618         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
5619         * modules/fdutimensat-tests (Depends-on): Add openat.
5620         * modules/fstatat-tests (Depends-on): Add openat-h.
5621         * modules/readlinkat-tests (Depends-on): Add openat.
5622         * modules/symlinkat-tests (Depends-on): Add openat.
5623
5624 2011-11-05  Bruno Haible  <bruno@clisp.org>
5625
5626         openat: Include <stdbool.h>.
5627         * lib/openat.c: Include <stdbool.h>.
5628
5629 2011-11-04  Bruno Haible  <bruno@clisp.org>
5630
5631         fchownat, renameat, unlinkat: Fix dependencies.
5632         * modules/fchownat (Depends-on): Add fstatat.
5633         * modules/renameat (Depends-on): Likewise.
5634         * modules/unlinkat (Depends-on): Likewise.
5635
5636 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
5637
5638         openat: remove direct dependency on dirent
5639         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
5640         and hasn't been needed ever since fdopendir was split into its own
5641         module on 2009-08-31.
5642         * modules/openat (Depends-on): Remove dirent.
5643
5644 2011-11-04  Bruno Haible  <bruno@clisp.org>
5645
5646         renameat: Optimize code size.
5647         * modules/renameat (configure.ac): Don't compile at-func2.c if
5648         REPLACE_RENAMEAT is 1.
5649
5650 2011-11-04  Bruno Haible  <bruno@clisp.org>
5651
5652         openat tests: Fix file list.
5653         * modules/openat-tests (Files): Add tests/test-open.h.
5654
5655 2011-11-04  Bruno Haible  <bruno@clisp.org>
5656
5657         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
5658         * modules/fchmodat (Depends-on): Add openat-die.
5659         * modules/fchownat (Depends-on): Likewise.
5660         * modules/linkat (Depends-on): Likewise.
5661         * modules/renameat (Depends-on): Likewise.
5662         * modules/openat (Depends-on): Add dirent.
5663
5664 2011-11-04  Jim Meyering  <meyering@redhat.com>
5665
5666         at-func*.c: fix comments
5667         * lib/at-func2.c: Correct/improve first-line comment.
5668         * lib/at-func.c: Correct grammar in first-line comment.
5669
5670 2011-11-04  Bruno Haible  <bruno@clisp.org>
5671
5672         New module 'mkdirat', split off from module 'openat'.
5673         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
5674         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
5675         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
5676         * modules/mkdirat: New file, extracted from modules/openat.
5677         * modules/openat (Files): Remove lib/mkdirat.c.
5678         (Depends-on): Remove mkdir.
5679         (configure.ac): Remove AC_LIBOBJ of mkdirat.
5680         (Include): Remove <sys/stat.h>.
5681         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
5682         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
5683         tests/test-mkdir.h.
5684         (Depends-on): Remove ignore-value.
5685         (Makefile.am): Remove rules for test-mkdirat.
5686         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
5687         of module 'openat'.
5688         * NEWS: Mention the change.
5689
5690 2011-11-04  Bruno Haible  <bruno@clisp.org>
5691
5692         closedir: Avoid warning on mingw.
5693         * lib/closedir.c: Include <unistd.h>.
5694
5695 2011-11-04  Bruno Haible  <bruno@clisp.org>
5696
5697         New module 'fstatat', split off from module 'openat'.
5698         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
5699         defined.
5700         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
5701         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
5702         gl_FUNC_FSTATAT.
5703         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
5704         * modules/fstatat: New file, extracted from modules/openat.
5705         * modules/openat (Files): Remove lib/fstatat.c.
5706         (Depends-on): Remove lstat.
5707         (configure.ac): Remove AC_LIBOBJ of fstatat.
5708         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
5709         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
5710         tests/test-lstat.h, tests/test-stat.h.
5711         (Depends-on): Remove getcwd-lgpl.
5712         (Makefile.am): Remove rules for test-fstatat.
5713         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
5714         of module 'openat'.
5715         * NEWS: Mention the change.
5716         * modules/getcwd (Depends-on): Add fstatat.
5717         * modules/linkat (Depends-on): Likewise.
5718         * modules/mkfifoat-tests (Depends-on): Likewise.
5719         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
5720
5721 2011-11-03  Bruno Haible  <bruno@clisp.org>
5722
5723         New module 'unlinkat', split off from module 'openat'.
5724         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
5725         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
5726         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
5727         * modules/unlinkat: New file, extracted from modules/openat. Correct
5728         the dependency conditions.
5729         * modules/openat (Files): Remove lib/unlinkat.c.
5730         (Depends-on): Remove rmdir, unlink.
5731         (configure.ac): Remove AC_LIBOBJ of unlinkat.
5732         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
5733         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
5734         tests/test-rmdir.h, tests/test-unlink.h.
5735         (Depends-on): Remove unlinkdir.
5736         (Makefile.am): Remove rules for test-unlinkat.
5737         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
5738         of module 'openat'.
5739         * NEWS: Mention the change.
5740         * modules/linkat-tests (Depends-on): Add unlinkat.
5741         * modules/mkfifoat-tests (Depends-on): Likewise.
5742         * modules/readlinkat-tests (Depends-on): Likewise.
5743
5744 2011-11-02  Bruno Haible  <bruno@clisp.org>
5745
5746         New module 'fchmodat', split off from module 'openat'.
5747         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
5748         defined.
5749         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
5750         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
5751         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
5752         * modules/fchmodat: New file, extracted from modules/openat.
5753         * modules/openat (Files): Remove lib/fchmodat.c.
5754         (configure.ac): Remove AC_LIBOBJ of fchmodat.
5755         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
5756         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
5757         (Makefile.am): Remove rules for test-fchmodat.
5758         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
5759         of module 'openat'.
5760         * NEWS: Mention the change.
5761
5762 2011-11-02  Jim Meyering  <meyering@redhat.com>
5763
5764         putenv: indent #definition of "environ" to placate cppi
5765         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
5766
5767         gitlog-to-changelog: provide a ChangeLog-repair mechanism
5768         Git logs are often treated as immutable, because editing them
5769         changes the SHA1 checksums of all descendants.  Thus, errors in
5770         git logs tend to stay there forever.  However, when we generate
5771         a ChangeLog file -- typically for distribution -- from that git log,
5772         we can actually make corrections in the generated file.  The key
5773         lies in recording in machine-readable/applicable form the desired
5774         corrections.  See --help for description and an example.
5775         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
5776         (usage): Describe it; alphabetize option descriptions.
5777         (main): Honor the new option, carefully.
5778
5779 2011-11-01  Jim Meyering  <meyering@redhat.com>
5780
5781         gitlog-to-changelog: avoid an infloop
5782         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
5783         that ends up being empty.
5784
5785 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
5786
5787         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
5788         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
5789         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
5790         contains (possibly-quoted) backslashes.  This should avoid
5791         all-too-common shell bugs if COMPLICATED contains backslashes in
5792         the "wrong" places.  Reported by David Evans in
5793         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
5794         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
5795         because we want ASCII ranges.  Is there some reason we don't use
5796         the C locale everywhere in this script?
5797         (func_module, top level): Avoid unwanted pathname expansion when
5798         $repo_url_prefix or $repo_url_suffix_repl contain shell
5799         metacharacters like '?' and '*'.
5800
5801 2011-11-01  Bruno Haible  <bruno@clisp.org>
5802
5803         fchownat: Improve description.
5804         * modules/fchownat (Description): Add link to function.
5805
5806 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
5807
5808         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
5809         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
5810         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
5811         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
5812
5813 2011-11-01  Bruno Haible  <bruno@clisp.org>
5814
5815         alignof: Avoid collision with stdalign module.
5816         * lib/alignof.h (alignof): Remove macro.
5817         * NEWS: Mention the change.
5818         Reported by Paul Eggert.
5819
5820 2011-11-01  Bruno Haible  <bruno@clisp.org>
5821
5822         New module 'fchownat', split off from module 'openat'.
5823         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
5824         defined.
5825         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
5826         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
5827         invoke gl_FUNC_FCHOWNAT.
5828         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
5829         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
5830         * modules/fchownat: New file, extracted from modules/openat.
5831         * modules/openat (Files): Remove lib/fchownat.c.
5832         (Depends-on): Remove lchown.
5833         (configure.ac): Remove AC_LIBOBJ of fchownat.
5834         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
5835         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
5836         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
5837         (Depends-on): Remove mgetgroups, usleep, stat-time.
5838         (configure.ac): Remove test for getegid.
5839         (Makefile.am): Remove rules for test-fchownat.
5840         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
5841         of module 'openat'.
5842         * NEWS: Mention the change.
5843
5844 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
5845
5846         stdalign: port better to MSVC and to Sun C 5.11
5847         This fixes some of the problems reported by Bruno Haible in
5848         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
5849         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
5850         shortcomings of MSVC and of Sun C 5.11.
5851         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
5852         around __declspec arg.
5853         * modules/stdalign-tests (Files): Add tests/macros.h.
5854         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
5855         Include macros.h, for ASSERT.
5856         (DECLARE_ALIGNED): Remove.
5857         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
5858         to catch bug), and to 1 if not (simplifies the rest of the code).
5859         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
5860         (CHECK_AUTO): Remove.
5861         (CHECK_ALIGNED): Check only the alignment of the static vars,
5862         since auto var alignment isn't supported by Sun C 5.11.
5863         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
5864         ASSERT failures are easier to diagnose.
5865
5866 2011-10-31  Bruno Haible  <bruno@clisp.org>
5867
5868         doc about some IRIX 5.3 problems.
5869         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
5870         on IRIX 5.3.
5871         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
5872         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
5873         5.3.
5874         * doc/posix-functions/grantpt.texi: Likewise.
5875         * doc/posix-functions/unlockpt.texi: Likewise.
5876         * doc/posix-functions/lgamma.texi: Likewise.
5877         * doc/posix-functions/nextafter.texi: Likewise.
5878         * doc/posix-functions/remainder.texi: Likewise.
5879         * doc/posix-functions/select.texi: Mention misplaced declaration on
5880         IRIX 5.3.
5881         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5882
5883 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
5884
5885         gitlog-to-changelog: fix git-log invocation.
5886         git-log mishandles date strings before 1970-01-01 UTC, and there is
5887         no use to specify --since=1970-01-01 by default anyway.
5888         * build-aux/gitlog-to-changelog: By default, when no --since option
5889         was given, do not specify explicit --since option to git-log.
5890
5891 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
5892
5893         gitlog-to-changelog: new option --append-dot.
5894         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
5895         first non-blank line of each commit message terminated with a dot.
5896
5897 2011-10-30  Bruno Haible  <bruno@clisp.org>
5898
5899         ffsl, ffsll: Avoid compilation error due to 'restrict'.
5900         * lib/ffsl.h: Include <config.h>.
5901         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
5902
5903 2011-10-30  Jim Meyering  <meyering@redhat.com>
5904
5905         GNUmakefile: reenable "make syntax-check" for most projects
5906         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
5907         build-aux variable", "syntax-check" would do nothing but succeed with
5908         the "No version control files detected..." diagnostic (unless you
5909         happened to override _build-aux via cfg.mk).
5910         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
5911         to precede inclusion of maint.mk.  Otherwise, these variables would
5912         be used undefined in any project that does not override the default.
5913
5914 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
5915
5916         gitlog-to-changelog: treat a message with only blank lines as empty.
5917         * build-aux/gitlog-to-changelog: Move the code that removes leading and
5918         trailing blank lines before the code that issues a warning about an
5919         empty commit message.
5920
5921 2011-10-30  Jim Meyering  <meyering@redhat.com>
5922
5923         test-parse-datetime.c: avoid new DST-related false positive test failure
5924         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
5925         based on the time/date we'll convert, not the current time.
5926         Otherwise, the moment we cross a DST boundary like today's in
5927         Europe, (CEST to CET), that offset ends up being one hour off.
5928
5929 2011-10-27  Bruno Haible  <bruno@clisp.org>
5930
5931         fstat: Tweak documentation.
5932         * modules/fstat (Description): More precise description.
5933
5934 2011-10-27  Bruno Haible  <bruno@clisp.org>
5935
5936         Update documentation regarding 'largefile' module.
5937         * doc/posix-functions/fstat.texi: Tweak wording.
5938         * doc/posix-functions/opendir.texi: Mention that the module fixes the
5939         problems with huge directories and/or small ino_t types.
5940         * doc/posix-functions/readdir.texi: Likewise.
5941         * doc/posix-functions/rewinddir.texi: Likewise.
5942
5943 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
5944
5945         maint.mk: don't maintain a second build-aux variable.
5946         * maint.mk (build_aux): Removed.  The maintainer-makefile module
5947         depends on GNUmakefile, which already maintains a cfg.mk
5948         overridable $(_build-aux) for projects with a non-standard
5949         build-aux directory location, although without the $(srcdir)
5950         prefix.  Use that variable consistently instead of introducing a
5951         second one.  Adjust all call sites.
5952
5953 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
5954
5955         Add stdalign module and use it in other modules.
5956         This is based on a previous proposal by Bruno Haible
5957         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
5958
5959         stdalign: new module
5960         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
5961         * modules/stdalign: New files.
5962         * MODULES.html.sh (c1x_core_properties): Add stdalign.
5963         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
5964
5965         stdalign-tests: new module
5966         * modules/stdalign-tests, tests/test-stdalign.c: New files.
5967
5968         argp: use stdalign
5969         * lib/argp-parse.c: Include <stdalign.h>.
5970         (alignof): Remove.
5971         * modules/argp (Depends-on): Add stdalign.
5972
5973         crypto libraries: use stdalign
5974         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
5975         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
5976         Do not include <stdlib.h> twice, in md4.c.
5977         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
5978         because we are accessing a pointer's bit-pattern, not a size.
5979         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
5980         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
5981         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
5982         * modules/crypto/sha512: Likewise.
5983
5984         sys_socket: use stdalign, not alignof
5985         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
5986         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
5987
5988 2011-10-27  Bruno Haible  <bruno@clisp.org>
5989
5990         raise test: Avoid a test failure on Linux/MIPS.
5991         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
5992         because 99 is a valid signal on Linux/MIPS.
5993
5994 2011-10-27  Bruno Haible  <bruno@clisp.org>
5995
5996         nonblocking tests: Fix test failure on Linux/MIPS.
5997         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
5998         Set to 270000.
5999
6000 2011-10-27  Bruno Haible  <bruno@clisp.org>
6001
6002         utimensat: Work around problem on Linux/hppa.
6003         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
6004         values.
6005         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
6006
6007 2011-10-25  Jim Meyering  <meyering@redhat.com>
6008
6009         maint.mk: fix a bug in sc_prohibit_stddef_without_use
6010         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
6011         after symbols like NULL, size_t, etc.
6012         Reported by Alfred M. Szmidt.
6013
6014         maint.mk: exempt ENODATA from a syntax-check rule
6015         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
6016         from the sc_prohibit_always-defined_macros syntax-check rule.
6017         Add a comment.  See this for more details:
6018         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
6019
6020 2011-10-23  Jim Meyering  <meyering@redhat.com>
6021
6022         fts: close parent dir FD before returning from post-traversal fts_read
6023         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
6024         unlink A, even though an FD open on A remained.  This is suboptimal
6025         (holding a file descriptor open longer than needed), but otherwise not
6026         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
6027         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
6028         that represents a real problem: it causes the removal of A to fail
6029         with e.g., "rm: cannot remove `A': Device or resource busy"
6030
6031         fts visits each directory twice and keeps a cache (fts_fd_ring) of
6032         directory file descriptors.  After completing the final, FTS_DP,
6033         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
6034         cache, but then proceeded to add a new FD to it via the subsequent
6035         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
6036         final file descriptor would be closed only via fts_close's call to
6037         fd_ring_clear.  Now, it is usually closed earlier, via the final
6038         FTS_DP-returning fts_read call.
6039         * lib/fts.c (restore_initial_cwd): New function, converted from
6040         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
6041         Update callers.
6042         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
6043         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
6044
6045 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
6046             Bruno Haible  <bruno@clisp.org>
6047             Jim Meyering  <jim@meyering.net>
6048
6049         readme-release: improve safety of release prep instructions.
6050         * README-release: Don't git pull all branches when only master
6051         is needed for the release process.
6052         Run make maintainer-clean before changing trees and merging.
6053         Don't try to run ./configure right after git pull in case files
6054         that influence the bootstrap process have changed, move the
6055         ./configure step to after running ./bootstrap.
6056         Don't bootstrap "one last time"... it's the first time!
6057
6058 2011-10-22  Bruno Haible  <bruno@clisp.org>
6059
6060         errno, strerror-override: Support for MSVC 10.
6061         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
6062         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
6063         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
6064         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
6065         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
6066         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
6067         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
6068         Assign values compatible with MSVC 10.
6069         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
6070         New macros.
6071         (GNULIB_defined_EWINSOCK): New macro.
6072         * lib/strerror-override.c (strerror_override): Update accordingly.
6073         * lib/strerror-override.h: Likewise.
6074         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
6075         longer equal to the corresponding errno value.
6076         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6077
6078 2011-10-22  Bruno Haible  <bruno@clisp.org>
6079
6080         perror: Recognize when test program crashes.
6081         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
6082         strerror, set gl_cv_func_perror_works to no.
6083         Reported by Daniel Richard G. <skunk@iskunk.org>.
6084
6085         perror: Fix indentation.
6086         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
6087
6088 2011-10-22  Bruno Haible  <bruno@clisp.org>
6089
6090         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
6091         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
6092         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
6093         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
6094         functions, not as a macro.
6095         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
6096         macros.
6097         (isfinite, isinf, isnan, signbit): Check overloaded functions and
6098         absence of macro.
6099         Suggested by Eric Blake.
6100         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6101
6102 2011-10-21  Bruno Haible  <bruno@clisp.org>
6103
6104         relocatable-prog-wrapper: Don't leave object files behind.
6105         * build-aux/install-reloc: Re-synchronize list of .o files to be
6106         removed with list of compilation units.
6107
6108 2011-10-20  Bruno Haible  <bruno@clisp.org>
6109
6110         openpty, posix_openpt: Remove code duplication.
6111         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
6112         * lib/openpty.c: Include <stdlib.h>.
6113         (openpty): Use posix_openpt on all platforms except IRIX.
6114         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
6115
6116 2011-10-20  Bruno Haible  <bruno@clisp.org>
6117
6118         unlockpt: Detect invalid argument.
6119         * lib/unlockpt.c: Include <fcntl.h>.
6120         (unlockpt): Check whether fd is valid, using fcntl().
6121         * modules/unlockpt (Depends-on): Add fcntl-h.
6122
6123 2011-10-20  Bruno Haible  <bruno@clisp.org>
6124
6125         openpty: Avoid compilation error on AIX 6.1.
6126         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
6127
6128 2011-10-20  Bruno Haible  <bruno@clisp.org>
6129
6130         posix_openpt: Support for OpenBSD.
6131         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
6132         (posix_openpt) [OpenBSD]: New code.
6133         * lib/grantpt.c: Include <fcntl.h>.
6134         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
6135         * modules/grantpt (Depends-on): Add fcntl-h.
6136
6137 2011-10-20  Bruno Haible  <bruno@clisp.org>
6138
6139         posix_openpt test: Coding style.
6140         * tests/test-posix_openpt.c: Use GNU coding style.
6141
6142 2011-10-20  Bruno Haible  <bruno@clisp.org>
6143
6144         grantpt: Support --avoid=pt_chown.
6145         * modules/grantpt (Files): Add lib/pty-private.h.
6146
6147 2011-10-20  Bruno Haible  <bruno@clisp.org>
6148
6149         posix_openpt: Fix autoconf macro.
6150         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
6151         unneeded check for _getpty.
6152
6153 2011-10-20  Bruno Haible  <bruno@clisp.org>
6154
6155         openpty: Update comments.
6156         * lib/openpty.c: Add comments about Minix.
6157
6158 2011-10-19  Eric Blake  <eblake@redhat.com>
6159
6160         openpty: relax license
6161         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
6162
6163         pt_chown: use configmake to simplify build
6164         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
6165
6166         ptsname and others: relax license
6167         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
6168         * modules/unlockpt (License): Likewise.
6169         * modules/pt_chown (License): Likewise.
6170         * modules/ptsname (License): Likewise.
6171         * modules/ttyname_r (License): Likewise.
6172
6173 2011-10-19  Jim Meyering  <meyering@redhat.com>
6174
6175         posix_openpt: remove spurious #endif
6176         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
6177
6178 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
6179
6180         maint.mk: Respect $(build_aux) in web-manual rule.
6181         * top/maint.mk (web-manual): Find gen-announce script in user's
6182         $(build_aux) directory instead of hard-coding 'build-aux'.
6183
6184 2011-10-19  Bruno Haible  <bruno@clisp.org>
6185
6186         posix_openpt: Fix compilation error.
6187         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
6188         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
6189         Mention the openpty module as an alternative.
6190
6191 2011-10-19  Bruno Haible  <bruno@clisp.org>
6192
6193         Support for old NeXTstep 3.3 frexp().
6194         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
6195         execution time of the test to 5 seconds.
6196         Reported by Daniel Richard G. <skunk@iskunk.org>.
6197
6198 2011-10-19  Bruno Haible  <bruno@clisp.org>
6199
6200         Support for old NeXTstep 3.3 sed.
6201         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
6202         part, use /.../, not \|...|. Escape periods in the header file name.
6203         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
6204         Reported by Daniel Richard G. <skunk@iskunk.org>.
6205
6206 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6207
6208         Support for old NeXTstep 3.3 gcc.
6209         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
6210         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
6211         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
6212         * lib/spawn.in.h (_Restrict_arr_): Likewise.
6213         * lib/regex.h (_Restrict_arr_): Likewise.
6214         * lib/regex_internal.h (re_token_t): Likewise.
6215         * lib/regexec.c (check_node_accept_bytes): Likewise.
6216         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
6217
6218 2011-10-18  Eric Blake  <eblake@redhat.com>
6219
6220         posix_openpt: new module
6221         * modules/posix_openpt: New module.
6222         * m4/posix_openpt.m4: New file.
6223         * lib/posix_openpt.c: Likewise.
6224         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6225         (gl_STDLIB_H_DEFAULTS): Set defaults.
6226         * modules/stdlib (Makefile.am): Substitute macros.
6227         * lib/stdlib.in.h (posix_openpt): Declare.
6228         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
6229         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
6230         * modules/posix_openpt-tests: New test module.
6231         * tests/test-posix_openpt.c: New test.
6232
6233 2011-10-15  Bruno Haible  <bruno@clisp.org>
6234
6235         xstrtoll: Fix compilation failure.
6236         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
6237         from lib/strtol.c.
6238         * doc/posix-headers/limits.texi: Mention missing numerical limits on
6239         some platforms.
6240         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6241
6242 2011-10-15  Bruno Haible  <bruno@clisp.org>
6243
6244         vasnprintf: Optimize bit search operation.
6245         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
6246         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
6247         gl_DOUBLE_EXPONENT_LOCATION.
6248         * modules/vasnprintf (Files): Add m4/exponentd.m4.
6249         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6250         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6251         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6252         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6253         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6254         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6255         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6256         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
6257
6258 2011-10-15  Bruno Haible  <bruno@clisp.org>
6259
6260         vasnprintf: Fix comments.
6261         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
6262
6263 2011-10-14  Bruno Haible  <bruno@clisp.org>
6264
6265         Tests for module 'integer_length_ll'.
6266         * modules/integer_length_ll-tests: New file.
6267         * tests/test-integer_length_ll.c: New file.
6268
6269         New module 'integer_length_ll'.
6270         * lib/integer_length_ll.c: New file.
6271         * modules/integer_length_ll: New file.
6272
6273 2011-10-14  Bruno Haible  <bruno@clisp.org>
6274
6275         Tests for module 'integer_length_l'.
6276         * modules/integer_length_l-tests: New file.
6277         * tests/test-integer_length_l.c: New file.
6278
6279         New module 'integer_length_l'.
6280         * lib/integer_length_l.c: New file.
6281         * modules/integer_length_l: New file.
6282
6283 2011-10-14  Bruno Haible  <bruno@clisp.org>
6284
6285         Tests for module 'integer_length'.
6286         * modules/integer_length-tests: New file.
6287         * tests/test-integer_length.c: New file.
6288
6289         New module 'integer_length'.
6290         * lib/integer_length.h: New file.
6291         * lib/integer_length.c: New file.
6292         * modules/integer_length: New file.
6293
6294 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6295
6296         popen: Fix dependency conditions.
6297         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
6298
6299 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6300
6301         perror: Fix autoconf test.
6302         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
6303         <stdlib.h> and <string.h>.
6304
6305 2011-10-14  Bruno Haible  <bruno@clisp.org>
6306
6307         ffsl: Optimize on 64-bit platforms.
6308         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
6309         unrolling.
6310
6311 2011-10-13  Bruno Haible  <bruno@clisp.org>
6312
6313         ffsl: Optimize on 32-bit platforms.
6314         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
6315         use ffs() without a loop.
6316
6317         ffsl, ffsll: Optimize for GCC.
6318         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
6319         * lib/ffsl.c (GCC_BUILTIN): New macro.
6320         * lib/ffsll.c (GCC_BUILTIN): Likewise.
6321
6322 2011-10-13  Bruno Haible  <bruno@clisp.org>
6323
6324         ffs, bcopy, memset: Support symbol renaming via config.h.
6325         * lib/ffs.c: Include <config.h>.
6326         * lib/bcopy.c: Likewise.
6327         * lib/memset.c: Likewise.
6328
6329 2011-10-10  Bruno Haible  <bruno@clisp.org>
6330
6331         atanl: Simplify for platforms where 'long double' == 'double'.
6332         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6333         alternative implementation.
6334         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6335         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6336         * modules/atanl (Depends-on): Add atan. Update conditions.
6337
6338 2011-10-10  Bruno Haible  <bruno@clisp.org>
6339
6340         acosl: Simplify for platforms where 'long double' == 'double'.
6341         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6342         alternative implementation.
6343         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6344         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6345         * modules/acosl (Depends-on): Add acos. Update conditions.
6346
6347 2011-10-10  Bruno Haible  <bruno@clisp.org>
6348
6349         asinl: Simplify for platforms where 'long double' == 'double'.
6350         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6351         alternative implementation.
6352         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6353         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6354         * modules/asinl (Depends-on): Add asin. Update conditions.
6355
6356 2011-10-10  Bruno Haible  <bruno@clisp.org>
6357
6358         tanl: Simplify for platforms where 'long double' == 'double'.
6359         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6360         implementation.
6361         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6362         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6363         * modules/tanl (Depends-on): Add tan. Update conditions.
6364         (configure.ac): Don't compile trigl.c if
6365         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6366
6367 2011-10-10  Bruno Haible  <bruno@clisp.org>
6368
6369         cosl: Simplify for platforms where 'long double' == 'double'.
6370         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6371         implementation.
6372         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6373         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6374         * modules/cosl (Depends-on): Add cos. Update conditions.
6375         (configure.ac): Don't compile sincosl.c and trigl.c if
6376         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6377
6378 2011-10-10  Bruno Haible  <bruno@clisp.org>
6379
6380         sinl: Simplify for platforms where 'long double' == 'double'.
6381         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6382         implementation.
6383         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6384         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6385         * modules/sinl (Depends-on): Add sin. Update conditions.
6386         (configure.ac): Don't compile sincosl.c and trigl.c if
6387         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6388
6389 2011-10-10  Bruno Haible  <bruno@clisp.org>
6390
6391         logl: Simplify for platforms where 'long double' == 'double'.
6392         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6393         implementation.
6394         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6395         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6396         * modules/logl (Depends-on): Add log. Update conditions.
6397
6398 2011-10-10  Bruno Haible  <bruno@clisp.org>
6399
6400         expl: Simplify for platforms where 'long double' == 'double'.
6401         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6402         implementation.
6403         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6404         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6405         * modules/expl (Depends-on): Add exp. Update conditions.
6406
6407 2011-10-10  Bruno Haible  <bruno@clisp.org>
6408
6409         sqrtl: Simplify for platforms where 'long double' == 'double'.
6410         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6411         alternative implementation.
6412         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6413         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6414         * modules/sqrtl (Depends-on): Update conditions.
6415
6416 2011-10-10  Bruno Haible  <bruno@clisp.org>
6417
6418         ldexpl: Simplify for platforms where 'long double' == 'double'.
6419         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6420         alternative implementation.
6421         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6422         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6423         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
6424
6425 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
6426
6427         ffsll: set correct witness
6428         * modules/ffsll (configure.ac): Fix typo.
6429
6430 2011-10-10  Bruno Haible  <bruno@clisp.org>
6431
6432         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
6433         * lib/printf-frexpl.c: Include <config.h>.
6434         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6435         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
6436         second time.
6437         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
6438         gl_LONG_DOUBLE_VS_DOUBLE.
6439         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
6440         conditions.
6441
6442 2011-10-10  Bruno Haible  <bruno@clisp.org>
6443
6444         frexpl: Simplify for platforms where 'long double' == 'double'.
6445         * lib/frexpl.c: Include <config.h>.
6446         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6447         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6448         time.
6449         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6450         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6451         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
6452         * modules/frexpl (Depends-on): Add frexp. Update conditions.
6453         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
6454         conditions.
6455
6456 2011-10-10  Jim Meyering  <meyering@redhat.com>
6457
6458         test-renameat: don't leave behind a temporary file
6459         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
6460           ERROR: files left in build directory after distclean:
6461           ./gltests/test-renameat.too
6462           make[1]: *** [distcleancheck] Error 1
6463         Reported by Tom G. Christensen.
6464
6465 2011-10-09  Bruno Haible  <bruno@clisp.org>
6466
6467         rint: Determine RINT_LIBM correctly on AIX 7.
6468         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
6469         directly, not only through a function pointer. Also accept an optional
6470         4th argument with extra code.
6471         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
6472         rintf() call by gcc when optimizing.
6473
6474         mathfunc.m4: Refactor.
6475         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
6476         m4 variable.
6477
6478 2011-10-09  Bruno Haible  <bruno@clisp.org>
6479
6480         rintl: Simplify for platforms where 'long double' == 'double'.
6481         * lib/rintl.c: Include <config.h>.
6482         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6483         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6484         time.
6485         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6486         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6487         * modules/rintl (Depends-on): Add rint. Update conditions.
6488
6489 2011-10-09  Bruno Haible  <bruno@clisp.org>
6490
6491         roundl: Simplify for platforms where 'long double' == 'double'.
6492         * lib/roundl.c: Include <config.h>.
6493         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6494         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6495         time.
6496         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6497         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6498         * modules/roundl (Depends-on): Add round. Update conditions.
6499
6500 2011-10-09  Bruno Haible  <bruno@clisp.org>
6501
6502         truncl: Simplify for platforms where 'long double' == 'double'.
6503         * lib/truncl.c: Include <config.h>.
6504         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6505         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6506         time.
6507         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6508         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6509         * modules/truncl (Depends-on): Add trunc. Update conditions.
6510
6511 2011-10-09  Bruno Haible  <bruno@clisp.org>
6512
6513         ceill: Simplify for platforms where 'long double' == 'double'.
6514         * lib/ceill.c: Include <config.h>.
6515         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6516         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6517         time.
6518         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6519         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6520         * modules/ceill (Depends-on): Add ceil. Update conditions.
6521
6522 2011-10-09  Bruno Haible  <bruno@clisp.org>
6523
6524         floorl: Simplify for platforms where 'long double' == 'double'.
6525         * lib/floorl.c: Include <config.h>.
6526         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6527         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6528         time.
6529         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6530         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6531         * modules/floorl (Depends-on): Add floor. Update conditions.
6532
6533 2011-10-09  Bruno Haible  <bruno@clisp.org>
6534
6535         rint: Fix ordering constraints.
6536         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
6537         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
6538         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
6539
6540 2011-10-09  Bruno Haible  <bruno@clisp.org>
6541
6542         copysignl: Simplify for platforms where 'long double' == 'double'.
6543         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6544         alternative.
6545         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6546         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6547         * modules/copysignl (Depends-on): Add copysign. Update conditions.
6548
6549 2011-10-09  Bruno Haible  <bruno@clisp.org>
6550
6551         Tests for module 'rintl'.
6552         * modules/rintl-tests: New file.
6553         * tests/test-rintl.c: New file.
6554
6555         New module 'rintl'.
6556         * lib/math.in.h (rintl): New declaration.
6557         * lib/rintl.c: New file.
6558         * m4/rintl.m4: New file.
6559         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
6560         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
6561         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
6562         * modules/rintl: New file.
6563         * tests/test-math-c++.cc: Check the declaration of rintl.
6564         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6565         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
6566         * doc/posix-functions/rintl.texi: Mention the new module.
6567
6568 2011-10-09  Bruno Haible  <bruno@clisp.org>
6569
6570         Tests for module 'rintf'.
6571         * modules/rintf-tests: New file.
6572         * tests/test-rintf.c: New file.
6573
6574         New module 'rintf'.
6575         * lib/math.in.h (rintf): New declaration.
6576         * lib/rintf.c: New file.
6577         * m4/rintf.m4: New file.
6578         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
6579         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
6580         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
6581         * modules/rintf: New file.
6582         * tests/test-math-c++.cc: Check the declaration of rintf.
6583         * doc/posix-functions/rintf.texi: Mention the new module.
6584
6585 2011-10-09  Bruno Haible  <bruno@clisp.org>
6586
6587         rint: Support for MSVC.
6588         * lib/math.in.h (rint): New declaration.
6589         * lib/rint.c: New file.
6590         * m4/rint.m4: New file.
6591         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
6592         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
6593         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
6594         * modules/rint (Description): Fix.
6595         (Files): Add lib/rint.c, m4/rint.m4.
6596         (Depends-on): Add math.
6597         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
6598         gl_MATH_MODULE_INDICATOR.
6599         * tests/test-math-c++.cc: Check the declaration of rint.
6600         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6601         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
6602         * doc/posix-functions/rint.texi: Mention the replacement provided by
6603         the module.
6604
6605         rint tests: More tests.
6606         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
6607         minus-zero.h, infinity.h, nan.h.
6608         (main): Skip the test if the current rounding mode is not standard. Add
6609         tests for negative numbers, minus zero, infinity, NaN.
6610         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
6611         tests/nan.h.
6612         (Depends-on): Add isnand-nolibm.
6613
6614 2011-10-09  Bruno Haible  <bruno@clisp.org>
6615
6616         Tests for module 'copysignl'.
6617         * modules/copysignl-tests: New file.
6618         * tests/test-copysignl.c: New file.
6619
6620         New module 'copysignl'.
6621         * lib/math.in.h (copysignl): New declaration.
6622         * lib/copysignl.c: New file.
6623         * m4/copysignl.m4: New file.
6624         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
6625         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
6626         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
6627         HAVE_COPYSIGNL.
6628         * modules/copysignl: New file.
6629         * tests/test-math-c++.cc: Check the declaration of copysignl.
6630         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6631         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
6632         * doc/posix-functions/copysignl.texi: Mention the new module.
6633
6634 2011-10-09  Bruno Haible  <bruno@clisp.org>
6635
6636         Tests for module 'copysignf'.
6637         * modules/copysignf-tests: New file.
6638         * tests/test-copysignf.c: New file.
6639
6640         New module 'copysignf'.
6641         * lib/math.in.h (copysignf): New declaration.
6642         * lib/copysignf.c: New file.
6643         * m4/copysignf.m4: New file.
6644         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
6645         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
6646         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
6647         HAVE_COPYSIGNF.
6648         * modules/copysignf: New file.
6649         * tests/test-math-c++.cc: Check the declaration of copysignf.
6650         * doc/posix-functions/copysignf.texi: Mention the new module.
6651
6652 2011-10-09  Bruno Haible  <bruno@clisp.org>
6653
6654         Ensure that HAVE_* variables are set to 1 before they are set to 0.
6655         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
6656         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
6657         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6658         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
6659         gl_SIGNAL_H_DEFAULTS.
6660
6661 2011-10-09  Bruno Haible  <bruno@clisp.org>
6662
6663         poll: Make macro safer.
6664         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
6665         ac_cv_header_poll_h is not set.
6666
6667 2011-10-09  Bruno Haible  <bruno@clisp.org>
6668
6669         copysign: Provide replacement.
6670         * lib/math.in.h (copysign): New declaration.
6671         * lib/copysign.c: New file.
6672         * m4/copysign.m4: New file.
6673         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
6674         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
6675         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
6676         HAVE_COPYSIGN.
6677         * modules/copysign (Description): Clarify.
6678         (Files): Add lib/copysign.c, m4/copysign.m4.
6679         (Depends-on): Add math, signbit.
6680         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
6681         gl_MATH_MODULE_INDICATOR.
6682         * tests/test-math-c++.cc: Check the declaration of copysign.
6683         * doc/posix-functions/copysign.texi: Mention the effects of the module
6684         on Minix and MSVC.
6685
6686 2011-10-09  Bruno Haible  <bruno@clisp.org>
6687
6688         isinf: Ensure macro on AIX 5.1.
6689         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
6690         macro.
6691         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
6692
6693 2011-10-09  Bruno Haible  <bruno@clisp.org>
6694
6695         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
6696         * modules/snprintf-posix-tests (configure.ac): Require
6697         gl_LONG_DOUBLE_VS_DOUBLE.
6698         * modules/sprintf-posix-tests (configure.ac): Likewise.
6699         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
6700         * modules/vasprintf-posix-tests (configure.ac): Likewise.
6701         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
6702         * modules/vsprintf-posix-tests (configure.ac): Likewise.
6703         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
6704         tests on platforms where 'long double' is the same as 'double'.
6705         * tests/test-sprintf-posix.h (test_function): Likewise.
6706         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6707         * tests/test-vasprintf-posix.c (test_function): Likewise.
6708
6709         *printf: Fix for platforms where 'long double' == 'double'.
6710         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
6711         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
6712         * modules/dprintf-posix (Files): Add m4/math_h.m4.
6713         * modules/fprintf-posix (Files): Likewise.
6714         * modules/obstack-printf-posix (Files): Likewise.
6715         * modules/snprintf-posix (Files): Likewise.
6716         * modules/sprintf-posix (Files): Likewise.
6717         * modules/vasnprintf (Files): Likewise.
6718         * modules/vasnprintf-posix (Files): Likewise.
6719         * modules/vasprintf-posix (Files): Likewise.
6720         * modules/vdprintf-posix (Files): Likewise.
6721         * modules/vfprintf-posix (Files): Likewise.
6722         * modules/vsnprintf-posix (Files): Likewise.
6723         * modules/vsprintf-posix (Files): Likewise.
6724         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6725         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6726         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6727         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6728         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6729         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6730         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6731
6732         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
6733         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
6734         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6735         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
6736         'long double'.
6737         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
6738
6739         isinf: Fix for platforms where 'long double' == 'double'.
6740         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
6741         Don't blindly assume 80-bit 'long double'.
6742
6743         isfinite: Fix for platforms where 'long double' == 'double'.
6744         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
6745         Don't blindly assume 80-bit 'long double'.
6746
6747         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
6748         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
6749         * modules/isfinite-tests (configure.ac): Require
6750         gl_LONG_DOUBLE_VS_DOUBLE.
6751         * modules/isinf-tests (configure.ac): Likewise.
6752         * modules/isnan-tests (configure.ac): Likewise.
6753         * modules/isnanl-tests (configure.ac): Likewise.
6754         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
6755         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
6756         tests on platforms where 'long double' is the same as 'double'.
6757         * tests/test-isinf.c (test_isinfl): Likewise.
6758         * tests/test-isnan.c (test_long_double): Likewise.
6759         * tests/test-isnanl.h (main): Likewise.
6760
6761 2011-10-08  Bruno Haible  <bruno@clisp.org>
6762
6763         Tests for module 'tanhf'.
6764         * modules/tanhf-tests: New file.
6765         * tests/test-tanhf.c: New file.
6766
6767         New module 'tanhf'.
6768         * lib/math.in.h (tanhf): New declaration.
6769         * lib/tanhf.c: New file.
6770         * m4/tanhf.m4: New file.
6771         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
6772         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
6773         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
6774         * modules/tanhf: New file.
6775         * tests/test-math-c++.cc: Check the declaration of tanhf.
6776         * doc/posix-functions/tanhf.texi: Mention the new module.
6777
6778         tanh: Use a .m4 file.
6779         * m4/tanh.m4: New file.
6780         * modules/tanh (Files): Add it.
6781         (configure.ac): Just invoke gl_FUNC_TANH.
6782
6783 2011-10-08  Bruno Haible  <bruno@clisp.org>
6784
6785         Tests for module 'coshf'.
6786         * modules/coshf-tests: New file.
6787         * tests/test-coshf.c: New file.
6788
6789         New module 'coshf'.
6790         * lib/math.in.h (coshf): New declaration.
6791         * lib/coshf.c: New file.
6792         * m4/coshf.m4: New file.
6793         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
6794         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
6795         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
6796         * modules/coshf: New file.
6797         * tests/test-math-c++.cc: Check the declaration of coshf.
6798         * doc/posix-functions/coshf.texi: Mention the new module.
6799
6800         cosh: Use a .m4 file.
6801         * m4/cosh.m4: New file.
6802         * modules/cosh (Files): Add it.
6803         (configure.ac): Just invoke gl_FUNC_COSH.
6804
6805 2011-10-08  Bruno Haible  <bruno@clisp.org>
6806
6807         Tests for module 'sinhf'.
6808         * modules/sinhf-tests: New file.
6809         * tests/test-sinhf.c: New file.
6810
6811         New module 'sinhf'.
6812         * lib/math.in.h (sinhf): New declaration.
6813         * lib/sinhf.c: New file.
6814         * m4/sinhf.m4: New file.
6815         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
6816         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
6817         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
6818         * modules/sinhf: New file.
6819         * tests/test-math-c++.cc: Check the declaration of sinhf.
6820         * doc/posix-functions/sinhf.texi: Mention the new module.
6821
6822         sinh: Use a .m4 file.
6823         * m4/sinh.m4: New file.
6824         * modules/sinh (Files): Add it.
6825         (configure.ac): Just invoke gl_FUNC_SINH.
6826
6827 2011-10-08  Bruno Haible  <bruno@clisp.org>
6828
6829         Tests for module 'atan2f'.
6830         * modules/atan2f-tests: New file.
6831         * tests/test-atan2f.c: New file.
6832
6833         New module 'atan2f'.
6834         * lib/math.in.h (atan2f): New declaration.
6835         * lib/atan2f.c: New file.
6836         * m4/atan2f.m4: New file.
6837         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
6838         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
6839         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
6840         * modules/atan2f: New file.
6841         * tests/test-math-c++.cc: Check the declaration of atan2f.
6842         * doc/posix-functions/atan2f.texi: Mention the new module.
6843
6844         atan2: Use a .m4 file.
6845         * m4/atan2.m4: New file.
6846         * modules/atan2 (Files): Add it.
6847         (configure.ac): Just invoke gl_FUNC_ATAN2.
6848
6849 2011-10-08  Bruno Haible  <bruno@clisp.org>
6850
6851         Tests for module 'atanf'.
6852         * modules/atanf-tests: New file.
6853         * tests/test-atanf.c: New file.
6854
6855         New module 'atanf'.
6856         * lib/math.in.h (atanf): New declaration.
6857         * lib/atanf.c: New file.
6858         * m4/atanf.m4: New file.
6859         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
6860         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
6861         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
6862         * modules/atanf: New file.
6863         * tests/test-math-c++.cc: Check the declaration of atanf.
6864         * doc/posix-functions/atanf.texi: Mention the new module.
6865
6866         atan: Use a .m4 file.
6867         * m4/atan.m4: New file.
6868         * modules/atan (Files): Add it.
6869         (configure.ac): Just invoke gl_FUNC_ATAN.
6870
6871 2011-10-08  Bruno Haible  <bruno@clisp.org>
6872
6873         Tests for module 'acosf'.
6874         * modules/acosf-tests: New file.
6875         * tests/test-acosf.c: New file.
6876
6877         New module 'acosf'.
6878         * lib/math.in.h (acosf): New declaration.
6879         * lib/acosf.c: New file.
6880         * m4/acosf.m4: New file.
6881         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
6882         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
6883         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
6884         * modules/acosf: New file.
6885         * tests/test-math-c++.cc: Check the declaration of acosf.
6886         * doc/posix-functions/acosf.texi: Mention the new module.
6887
6888         acos: Use a .m4 file.
6889         * m4/acos.m4: New file.
6890         * modules/acos (Files): Add it.
6891         (configure.ac): Just invoke gl_FUNC_ACOS.
6892
6893 2011-10-08  Bruno Haible  <bruno@clisp.org>
6894
6895         Tests for module 'asinf'.
6896         * modules/asinf-tests: New file.
6897         * tests/test-asinf.c: New file.
6898
6899         New module 'asinf'.
6900         * lib/math.in.h (asinf): New declaration.
6901         * lib/asinf.c: New file.
6902         * m4/asinf.m4: New file.
6903         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
6904         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
6905         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
6906         * modules/asinf: New file.
6907         * tests/test-math-c++.cc: Check the declaration of asinf.
6908         * doc/posix-functions/asinf.texi: Mention the new module.
6909
6910         asin: Use a .m4 file.
6911         * m4/asin.m4: New file.
6912         * modules/asin (Files): Add it.
6913         (configure.ac): Just invoke gl_FUNC_ASIN.
6914
6915 2011-10-08  Bruno Haible  <bruno@clisp.org>
6916
6917         Tests for module 'tanf'.
6918         * modules/tanf-tests: New file.
6919         * tests/test-tanf.c: New file.
6920
6921         New module 'tanf'.
6922         * lib/math.in.h (tanf): New declaration.
6923         * lib/tanf.c: New file.
6924         * m4/tanf.m4: New file.
6925         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
6926         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
6927         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
6928         * modules/tanf: New file.
6929         * tests/test-math-c++.cc: Check the declaration of tanf.
6930         * doc/posix-functions/tanf.texi: Mention the new module.
6931
6932         tan: Use a .m4 file.
6933         * m4/tan.m4: New file.
6934         * modules/tan (Files): Add it.
6935         (configure.ac): Just invoke gl_FUNC_TAN.
6936
6937 2011-10-08  Bruno Haible  <bruno@clisp.org>
6938
6939         Tests for module 'cosf'.
6940         * modules/cosf-tests: New file.
6941         * tests/test-cosf.c: New file.
6942
6943         New module 'cosf'.
6944         * lib/math.in.h (cosf): New declaration.
6945         * lib/cosf.c: New file.
6946         * m4/cosf.m4: New file.
6947         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
6948         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
6949         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
6950         * modules/cosf: New file.
6951         * tests/test-math-c++.cc: Check the declaration of cosf.
6952         * doc/posix-functions/cosf.texi: Mention the new module.
6953
6954         cos: Use a .m4 file.
6955         * m4/cos.m4: New file.
6956         * modules/cos (Files): Add it.
6957         (configure.ac): Just invoke gl_FUNC_COS.
6958
6959 2011-10-08  Bruno Haible  <bruno@clisp.org>
6960
6961         Tests for module 'sinf'.
6962         * modules/sinf-tests: New file.
6963         * tests/test-sinf.c: New file.
6964
6965         New module 'sinf'.
6966         * lib/math.in.h (sinf): New declaration.
6967         * lib/sinf.c: New file.
6968         * m4/sinf.m4: New file.
6969         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
6970         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
6971         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
6972         * modules/sinf: New file.
6973         * tests/test-math-c++.cc: Check the declaration of sinf.
6974         * doc/posix-functions/sinf.texi: Mention the new module.
6975
6976         sin: Use a .m4 file.
6977         * m4/sin.m4: New file.
6978         * modules/sin (Files): Add it.
6979         (configure.ac): Just invoke gl_FUNC_SIN.
6980
6981 2011-10-08  Bruno Haible  <bruno@clisp.org>
6982
6983         Tests for module 'powf'.
6984         * modules/powf-tests: New file.
6985         * tests/test-powf.c: New file.
6986
6987         New module 'powf'.
6988         * lib/math.in.h (powf): New declaration.
6989         * lib/powf.c: New file.
6990         * m4/powf.m4: New file.
6991         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
6992         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
6993         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
6994         * modules/powf: New file.
6995         * tests/test-math-c++.cc: Check the declaration of powf.
6996         * doc/posix-functions/powf.texi: Mention the new module.
6997
6998         pow: Use a .m4 file.
6999         * m4/pow.m4: New file.
7000         * modules/pow (Files): Add it.
7001         (configure.ac): Just invoke gl_FUNC_POW.
7002
7003 2011-10-08  Bruno Haible  <bruno@clisp.org>
7004
7005         Tests for module 'log10f'.
7006         * modules/log10f-tests: New file.
7007         * tests/test-log10f.c: New file.
7008
7009         New module 'log10f'.
7010         * lib/math.in.h (log10f): New declaration.
7011         * lib/log10f.c: New file.
7012         * m4/log10f.m4: New file.
7013         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
7014         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
7015         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
7016         * modules/log10f: New file.
7017         * tests/test-math-c++.cc: Check the declaration of log10f.
7018         * doc/posix-functions/log10f.texi: Mention the new module.
7019
7020         log10: Use a .m4 file.
7021         * m4/log10.m4: New file.
7022         * modules/log10 (Files): Add it.
7023         (configure.ac): Just invoke gl_FUNC_LOG10.
7024
7025 2011-10-08  Bruno Haible  <bruno@clisp.org>
7026
7027         Tests for module 'logf'.
7028         * modules/logf-tests: New file.
7029         * tests/test-logf.c: New file.
7030
7031         New module 'logf'.
7032         * lib/math.in.h (logf): New declaration.
7033         * lib/logf.c: New file.
7034         * m4/logf.m4: New file.
7035         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
7036         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
7037         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
7038         * modules/logf: New file.
7039         * tests/test-math-c++.cc: Check the declaration of logf.
7040         * doc/posix-functions/logf.texi: Mention the new module.
7041
7042         log: Use a .m4 file.
7043         * m4/log.m4: New file.
7044         * modules/log (Files): Add it.
7045         (configure.ac): Just invoke gl_FUNC_LOG.
7046
7047 2011-10-08  Bruno Haible  <bruno@clisp.org>
7048
7049         Tests for module 'expf'.
7050         * modules/expf-tests: New file.
7051         * tests/test-expf.c: New file.
7052
7053         New module 'expf'.
7054         * lib/math.in.h (expf): New declaration.
7055         * lib/expf.c: New file.
7056         * m4/expf.m4: New file.
7057         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
7058         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
7059         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
7060         * modules/expf: New file.
7061         * tests/test-math-c++.cc: Check the declaration of expf.
7062         * doc/posix-functions/expf.texi: Mention the new module.
7063
7064         exp: Use a .m4 file.
7065         * m4/exp.m4: New file.
7066         * modules/exp (Files): Add it.
7067         (configure.ac): Just invoke gl_FUNC_EXP.
7068
7069 2011-10-08  Bruno Haible  <bruno@clisp.org>
7070
7071         Tests for module 'sqrtf'.
7072         * modules/sqrtf-tests: New file.
7073         * tests/test-sqrtf.c: New file.
7074
7075         New module 'sqrtf'.
7076         * lib/math.in.h (sqrtf): New declaration.
7077         * lib/sqrtf.c: New file.
7078         * m4/sqrtf.m4: New file.
7079         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
7080         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
7081         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
7082         * modules/sqrtf: New file.
7083         * tests/test-math-c++.cc: Check the declaration of sqrtf.
7084         * doc/posix-functions/sqrtf.texi: Mention the new module.
7085
7086 2011-10-08  Bruno Haible  <bruno@clisp.org>
7087
7088         Tests: Avoid link failures w.r.t. libintl.
7089         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
7090         $(LIBINTL).
7091         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
7092         $(LIBINTL).
7093         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
7094         against $(LIBINTL).
7095         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
7096         $(LIBINTL).
7097         * modules/openat-tests (Makefile.am): Link test-fchmodat against
7098         $(LIBINTL).
7099         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
7100
7101 2011-10-08  Bruno Haible  <bruno@clisp.org>
7102
7103         pow tests: Defeat compiler optimizations.
7104         * tests/test-pow.c (main): Assign arguments to x and y before use.
7105
7106 2011-10-08  Bruno Haible  <bruno@clisp.org>
7107
7108         gnulib-tool: Improve last commit.
7109         * gnulib-tool (func_modules_transitive_closure): Simplify code.
7110         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
7111         ignore dependencies that are not among the modules list.
7112
7113 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
7114
7115         gnulib-tool: don't follow dependencies to avoided modules
7116         This fixes a bug that is related to the previous one.
7117         * gnulib-tool (func_modules_transitive_closure)
7118         (func_emit_autoconf_snippets):
7119         Check whether a dependency is acceptable before using it.
7120         (--extract-dependencies): Report an error if --avoid is also used,
7121         since this combination of options is not yet supported.
7122
7123         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
7124         Problem reported by Peter Dyballa in
7125         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
7126         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
7127         when echoing "$condition".
7128
7129 2011-10-07  Bruno Haible  <bruno@clisp.org>
7130
7131         Fix documentation about math functions on MacOS X.
7132         * doc/posix-functions/exp2.texi: Don't say the function is missing on
7133         MacOS X 10.5.
7134         * doc/posix-functions/fdim.texi: Likewise.
7135         * doc/posix-functions/feclearexcept.texi: Likewise.
7136         * doc/posix-functions/fegetenv.texi: Likewise.
7137         * doc/posix-functions/fegetround.texi: Likewise.
7138         * doc/posix-functions/feholdexcept.texi: Likewise.
7139         * doc/posix-functions/feraiseexcept.texi: Likewise.
7140         * doc/posix-functions/fesetenv.texi: Likewise.
7141         * doc/posix-functions/fesetround.texi: Likewise.
7142         * doc/posix-functions/fetestexcept.texi: Likewise.
7143         * doc/posix-functions/feupdateenv.texi: Likewise.
7144         * doc/posix-functions/fmax.texi: Likewise.
7145         * doc/posix-functions/fmin.texi: Likewise.
7146         * doc/posix-functions/log2.texi: Likewise.
7147         * doc/posix-functions/modff.texi: Likewise.
7148         * doc/posix-functions/nan.texi: Likewise.
7149         * doc/posix-functions/nanf.texi: Likewise.
7150         * doc/posix-functions/nextafterf.texi: Likewise.
7151         * doc/posix-functions/remquo.texi: Likewise.
7152
7153 2011-10-07  Bruno Haible  <bruno@clisp.org>
7154
7155         modff: Drop assumption about library that defines modff.
7156         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
7157         AC_CHECK_FUNCS.
7158         * modules/modff (Files): Add m4/mathfunc.m4.
7159
7160 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
7161
7162         raise tests: Avoid a GCC warning.
7163         * tests/test-raise.c (handler): Use _Noreturn.
7164
7165 2011-10-07  Bruno Haible  <bruno@clisp.org>
7166
7167         Tests for module 'ldexpf'.
7168         * modules/ldexpf-tests: New file.
7169         * tests/test-ldexpf.c: New file.
7170
7171         New module 'ldexpf'.
7172         * lib/math.in.h (ldexpf): New declaration.
7173         * lib/ldexpf.c: New file.
7174         * m4/ldexpf.m4: New file.
7175         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
7176         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
7177         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
7178         * modules/ldexpf: New file.
7179         * tests/test-math-c++.cc: Check the declaration of ldexpf.
7180         * doc/posix-functions/ldexpf.texi: Mention the new module.
7181
7182 2011-10-06  Bruno Haible  <bruno@clisp.org>
7183
7184         frexpf: Work around problems on IRIX and mingw.
7185         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
7186         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
7187         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
7188         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
7189         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
7190         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
7191         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
7192
7193 2011-10-06  Bruno Haible  <bruno@clisp.org>
7194
7195         fabsf: Drop assumption about library that defines fabsf.
7196         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
7197         AC_CHECK_FUNCS.
7198         * modules/fabsf (Files): Add m4/mathfunc.m4.
7199
7200 2011-10-06  Bruno Haible  <bruno@clisp.org>
7201
7202         frexpf: Drop assumption about library that defines frexpf.
7203         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
7204         'int *', 'float *', 'long double *', 'float', 'long double'.
7205         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
7206         AC_CHECK_FUNCS.
7207         * modules/frexpf (Files): Add m4/mathfunc.m4.
7208
7209         Tests for module 'frexpf'.
7210         * modules/frexpf-tests: New file.
7211         * tests/test-frexpf.c: New file.
7212
7213         New module 'frexpf'.
7214         * lib/math.in.h (frexpf): New declaration.
7215         * lib/frexpf.c: New file.
7216         * m4/frexpf.m4: New file.
7217         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
7218         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
7219         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
7220         * modules/frexpf: New file.
7221         * tests/test-math-c++.cc: Check the declaration of frexpf.
7222         * doc/posix-functions/frexpf.texi: Mention the new module.
7223
7224 2011-10-06  Bruno Haible  <bruno@clisp.org>
7225
7226         math: Sort function declarations of math.in.h.
7227         * lib/math.in.h (frexp, logb): Move declarations.
7228
7229 2011-10-05  Bruno Haible  <bruno@clisp.org>
7230
7231         Tests for module 'modff'.
7232         * modules/modff-tests: New file.
7233         * tests/test-modff.c: New file.
7234
7235         New module 'modff'.
7236         * lib/math.in.h (modff): New declaration.
7237         * lib/modff.c: New file.
7238         * m4/modff.m4: New file.
7239         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
7240         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
7241         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
7242         * modules/modff: New file.
7243         * tests/test-math-c++.cc: Check the declaration of modff.
7244         * doc/posix-functions/modff.texi: Mention the new module.
7245
7246         modf tests: Make test sharper.
7247         * tests/test-modf.c (main): Strengthen upper bound.
7248
7249         modf: Use a .m4 file.
7250         * m4/modf.m4: New file.
7251         * modules/modf (Files): Add it.
7252         (configure.ac): Just invoke gl_FUNC_MODF.
7253
7254 2011-10-05  Bruno Haible  <bruno@clisp.org>
7255
7256         Tests for module 'fmodf'.
7257         * modules/fmodf-tests: New file.
7258         * tests/test-fmodf.c: New file.
7259
7260         New module 'fmodf'.
7261         * lib/math.in.h (fmodf): New declaration.
7262         * lib/fmodf.c: New file.
7263         * m4/fmodf.m4: New file.
7264         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
7265         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
7266         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
7267         * modules/fmodf: New file.
7268         * tests/test-math-c++.cc: Check the declaration of fmodf.
7269         * doc/posix-functions/fmodf.texi: Mention the new module.
7270
7271         fmod: Use a .m4 file.
7272         * m4/fmod.m4: New file.
7273         * modules/fmod (Files): Add it.
7274         (configure.ac): Just invoke gl_FUNC_FMOD.
7275
7276 2011-10-05  Bruno Haible  <bruno@clisp.org>
7277
7278         Tests for module 'fabsf'.
7279         * modules/fabsf-tests: New file.
7280         * tests/test-fabsf.c: New file.
7281
7282         New module 'fabsf'.
7283         * lib/math.in.h (fabsf): New declaration.
7284         * lib/fabsf.c: New file.
7285         * m4/fabsf.m4: New file.
7286         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
7287         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
7288         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
7289         * modules/fabsf: New file.
7290         * tests/test-math-c++.cc: Check the declaration of fabsf.
7291         * doc/posix-functions/fabsf.texi: Mention the new module.
7292
7293         fabs: Use a .m4 file.
7294         * m4/fabs.m4: New file.
7295         * modules/fabs (Files): Add it.
7296         (configure.ac): Just invoke gl_FUNC_FABS.
7297
7298 2011-10-05  Jim Meyering  <meyering@redhat.com>
7299
7300         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
7301         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
7302         ls -lL regression introduced in coreutils-8.12, it does so at the
7303         cost of an additional stat call in the common case.  Besides, now
7304         that the kernel change that prompted commit 95f7c57f has been reverted
7305         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
7306         we have no use for commit 95f7c57f, "file-has-acl: use
7307         acl_extended_file_nofollow if available".
7308
7309 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
7310
7311         file-has-acl: revert unintended change in behavior of ls -L
7312         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
7313         derived from...
7314         (file_has_acl): ...code here.  Call it.
7315         This problem was introduced with 2011-07-22 commit 95f7c57f,
7316         "file-has-acl: use acl_extended_file_nofollow if available".
7317         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
7318
7319 2011-10-03  Bruno Haible  <bruno@clisp.org>
7320
7321         poll: Avoid link errors on MSVC.
7322         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
7323         * modules/poll (Depends-on): Add sockets.
7324         (Link): New section.
7325         * NEWS: Mention the change.
7326         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
7327         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
7328         $(LIB_POLL) instead of $(LIBSOCKET).
7329
7330 2011-10-03  Bruno Haible  <bruno@clisp.org>
7331
7332         sys_select tests: Fix link error on MSVC 9.
7333         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
7334         with $(LIB_SELECT) instead of $(LIBSOCKET).
7335
7336 2011-10-03  Bruno Haible  <bruno@clisp.org>
7337
7338         sys_select: Fix compilation error on mingw.
7339         * lib/sys_select.in.h: On native Windows, include <io.h>.
7340
7341 2011-10-03  Bruno Haible  <bruno@clisp.org>
7342
7343         wmemset: Support for MSVC.
7344         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
7345         whether wmemset() exists.
7346
7347 2011-10-03  Bruno Haible  <bruno@clisp.org>
7348
7349         wmemmove: Support for MSVC.
7350         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
7351         whether wmemmove() exists.
7352
7353 2011-10-03  Bruno Haible  <bruno@clisp.org>
7354
7355         wmemcpy: Support for MSVC.
7356         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
7357         whether wmemcpy() exists.
7358
7359 2011-10-03  Bruno Haible  <bruno@clisp.org>
7360
7361         wmemcmp: Support for MSVC.
7362         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
7363         whether wmemcmp() exists.
7364
7365 2011-10-03  Bruno Haible  <bruno@clisp.org>
7366
7367         wmemchr: Support for MSVC.
7368         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
7369         whether wmemchr() exists.
7370
7371 2011-10-03  Bruno Haible  <bruno@clisp.org>
7372
7373         glthread/*, strsignal: Support for MSVC.
7374         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
7375         including <winsock.h> on MSVC 9.
7376         * lib/glthread/lock.h: Likewise.
7377         * lib/glthread/thread.h: Likewise.
7378         * lib/glthread/tls.h: Likewise.
7379         * lib/glthread/yield.h: Likewise.
7380         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
7381         if HAVE_UNISTD_H is false.
7382         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
7383
7384 2011-10-03  Bruno Haible  <bruno@clisp.org>
7385
7386         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
7387         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
7388         Set to 100000.
7389
7390 2011-10-03  Bruno Haible  <bruno@clisp.org>
7391
7392         acl: Fix specification.
7393         * lib/file-has-acl.c (file_has_acl): Fix specification.
7394
7395 2011-10-03  Bruno Haible  <bruno@clisp.org>
7396
7397         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
7398         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
7399         (compute_curr_prefix, shared_library_fullname,
7400         find_shared_library_fullname, get_shared_library_fullname, relocate):
7401         Use it together with PIC && INSTALLDIR.
7402         Reported by <jojelino@gmail.com>
7403         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
7404
7405 2011-10-01  Jim Meyering  <meyering@redhat.com>
7406
7407         maint.mk: adjust a release-related rule not to require use of gzip
7408         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
7409         Instead, check each file in $(DIST_ARCHIVES).  This is better for
7410         projects that build only .tar.xz files.  Also fix an erroneous test.
7411
7412         test-linkat: don't leave behind a temporary file
7413         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
7414         Otherwise, coreutils' "make distcheck" would fail with this:
7415           Only in /c/cu/tests/torture/coreutils/test/\
7416             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
7417           make[2]: *** [my-distcheck] Error 1
7418
7419         float, math: add omitted file
7420         * lib/itold.c: Add file, required for yesterday's float change.
7421
7422 2011-10-01  Bruno Haible  <bruno@clisp.org>
7423
7424         isinf: Fix for OpenBSD/x86.
7425         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
7426         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
7427         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
7428
7429 2011-10-01  Bruno Haible  <bruno@clisp.org>
7430
7431         isfinite: Fix syntax error in configure test.
7432         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
7433
7434         isfinite: Fix typo.
7435         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
7436         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
7437
7438 2011-10-01  Bruno Haible  <bruno@clisp.org>
7439
7440         nonblocking tests: Fix test failure on Linux/IA-64.
7441         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
7442         Set to 270000.
7443
7444 2011-10-01  Bruno Haible  <bruno@clisp.org>
7445
7446         mkfifoat tests: Fix a test failure on mingw.
7447         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
7448         with error ENOSYS.
7449
7450 2011-09-30  Bruno Haible  <bruno@clisp.org>
7451
7452         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
7453         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
7454         'long double'. Set REPLACE_ITOLD.
7455         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
7456         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
7457         * lib/itold.c: New file.
7458         * modules/float (Files): Add lib/itold.c.
7459         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
7460         (Makefile.am): Substitute REPLACE_ITOLD.
7461         * modules/math (Depends-on): Add float.
7462         (Makefile.am): Substitute REPLACE_ITOLD.
7463         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
7464         * doc/posix-headers/math.texi: Likewise.
7465         * doc/posix-functions/logl.texi: Likewise.
7466
7467 2011-09-30  Bruno Haible  <bruno@clisp.org>
7468
7469         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
7470         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
7471         Set to 140000.
7472
7473 2011-09-30  Bruno Haible  <bruno@clisp.org>
7474
7475         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
7476         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
7477         invocation, say "right after AC_PROG_CC_STDC", not "right after
7478         AC_PROG_CC".
7479         Reported by Gary V. Vaughan <gary@gnu.org>.
7480
7481 2011-09-30  Bruno Haible  <bruno@clisp.org>
7482
7483         Centralize C99 requirement.
7484         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
7485         * modules/stdarg (configure.ac-early): Invoke it instead of
7486         AC_PROG_CC_STDC.
7487         Reported by Gary V. Vaughan and Paul Eggert.
7488
7489 2011-09-29  Bruno Haible  <bruno@clisp.org>
7490
7491         float: Fix LDBL_MAX value on Linux/PowerPC.
7492         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
7493         on Linux/PowerPC.
7494         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
7495         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
7496         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
7497         platform.
7498         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
7499
7500 2011-09-29  Bruno Haible  <bruno@clisp.org>
7501
7502         doc: Improve doc about gl_EARLY.
7503         * doc/gnulib-tool.texi (Initial import): Mention where to place an
7504         AC_PROG_CC_STDC invocation.
7505         Reported by Gary V. Vaughan <gary@gnu.org>.
7506
7507 2011-09-28  Bruno Haible  <bruno@clisp.org>
7508
7509         fgetc, fputc, fread, fwrite tests: Fix link error.
7510         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
7511         on non-MSVC platforms.
7512         * tests/test-fputc.c (main): Likewise.
7513         * tests/test-fread.c (main): Likewise.
7514         * tests/test-fwrite.c (main): Likewise.
7515         Reported by Jim Meyering.
7516
7517 2011-09-27  Bruno Haible  <bruno@clisp.org>
7518
7519         fputc, fwrite tests: Avoid test failure on MSVC.
7520         * tests/test-fgetc.c: Include msvc-inval.h.
7521         (main): Invoke gl_msvc_inval_ensure_handler.
7522         * tests/test-fputc.c: Include msvc-inval.h.
7523         (main): Invoke gl_msvc_inval_ensure_handler.
7524         * tests/test-fread.c: Include msvc-inval.h.
7525         (main): Invoke gl_msvc_inval_ensure_handler.
7526         * tests/test-fwrite.c: Include msvc-inval.h.
7527         (main): Invoke gl_msvc_inval_ensure_handler.
7528         * modules/fgetc-tests (Depends-on): Add msvc-inval.
7529         * modules/fputc-tests (Depends-on): Likewise.
7530         * modules/fread-tests (Depends-on): Likewise.
7531         * modules/fwrite-tests (Depends-on): Likewise.
7532
7533 2011-09-27  Bruno Haible  <bruno@clisp.org>
7534
7535         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
7536         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
7537         (raise): Remove older, duplicated declaration.
7538         (_gl_raise_SIGPIPE): New declaration.
7539         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
7540         (rpl_raise): Remove function.
7541         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
7542         a gnulib-defined SIGPIPE here.
7543         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
7544         'sigprocmask' has detected missing signal-blocking and the module
7545         'sigpipe' is enabled.
7546         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
7547
7548 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
7549
7550         base64-tests: avoid memory leak
7551         * tests/test-base64.c (main): Plug memory leak.
7552
7553         base32: new module
7554         * modules/base32: New module.
7555         * lib/base32.c: New file.
7556         * lib/base32.h: Likewise.
7557         * m4/base32.m4: Likewise.
7558         * modules/base32-tests: New test.
7559         * tests/test-base32.c: Likewise.
7560         * MODULES.html.sh (Misc): Mention it.
7561
7562 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
7563
7564         gnulib: use more-standard license notice wording
7565         * gnulib-tool (func_emit_copyright_notice): When emitting a
7566         license notice into a file, use the standard wording as suggested
7567         by the current information for GNU maintainers, except say "file"
7568         rather than "program".  The new wording gives a license version
7569         number, which addresses an issue raised by Glenn Morris in
7570         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
7571         * m4/onceonly.m4: Use that same wording here, too.
7572
7573         dup2: minor simplification
7574         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
7575         as lib/dup2.c no longer uses 'inline'.
7576
7577 2011-09-25  Bruno Haible  <bruno@clisp.org>
7578
7579         strings: Fix compilation error on MSVC.
7580         * lib/strings.in.h: Include <stddef.h> for size_t.
7581
7582 2011-09-25  Bruno Haible  <bruno@clisp.org>
7583
7584         fflush et al.: Document limitation on MSVC.
7585         * doc/posix-functions/fflush.texi: Document possible crash in handling
7586         mode other than DEFAULT_HANDLING.
7587         * doc/posix-functions/fgetc.texi: Likewise.
7588         * doc/posix-functions/fputc.texi: Likewise.
7589         * doc/posix-functions/fread.texi: Likewise.
7590         * doc/posix-functions/fwrite.texi: Likewise.
7591
7592 2011-09-25  Bruno Haible  <bruno@clisp.org>
7593
7594         msvc-inval: Allow three invalid parameter handling modes.
7595         * lib/msvc-inval.h: Don't include <stdlib.h> here.
7596         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
7597         macros.
7598         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
7599         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
7600         SANE_LIBRARY_HANDLING as a no-op.
7601         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
7602         <stdlib.h>.
7603         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
7604
7605 2011-09-25  Bruno Haible  <bruno@clisp.org>
7606
7607         msvc-inval: Make handler multithread-safe.
7608         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
7609         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
7610         declarations.
7611         (gl_msvc_inval_current): New declaration.
7612         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7613         Operate on the structure returned by gl_msvc_inval_current().
7614         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
7615         Remove varaiables.
7616         (tls_index, tls_initialized): New variables.
7617         (not_per_thread): New variable.
7618         (gl_msvc_inval_current): New function.
7619         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
7620         returned by gl_msvc_inval_current().
7621
7622 2011-09-25  Bruno Haible  <bruno@clisp.org>
7623
7624         msvc-inval: Install handler globally.
7625         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
7626         !_MSC_VER.
7627         (gl_msvc_invalid_parameter_handler): Remove declaration.
7628         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
7629         declarations.
7630         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7631         Install the handler globally, don't uninstall it.
7632         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
7633         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
7634         currently valid, call RaiseException instead.
7635         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
7636         for !_MSC_VER.
7637
7638 2011-09-25  Bruno Haible  <bruno@clisp.org>
7639
7640         strerror_r-posix: Fix for MSVC 9.
7641         * lib/strerror_r.c (local_snprintf): New function.
7642         (snprintf): Define to local_snprintf, not to _snprintf.
7643
7644 2011-09-25  Bruno Haible  <bruno@clisp.org>
7645
7646         ftruncate: Support for MSVC 9.
7647         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
7648         (chsize_nothrow): New function.
7649         (chsize): Redefine as a macro.
7650         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
7651         * modules/ftruncate (Depends-on): Add msvc-inval.
7652
7653 2011-09-25  Bruno Haible  <bruno@clisp.org>
7654
7655         New module 'fstat'.
7656         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
7657         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
7658         * lib/fchdir.c (rpl_fstat): Remove function.
7659         * m4/fstat.m4: New file.
7660         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
7661         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
7662         declared.
7663         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
7664         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
7665         * modules/fstat: New file.
7666         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
7667         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
7668         is set.
7669         * doc/posix-functions/fstat.texi: Mention the new module and the
7670         problem on MSVC.
7671         * NEWS: Mention the change.
7672         * modules/acl (Depends-on): Add fstat.
7673         * modules/chdir-safer (Depends-on): Likewise.
7674         * modules/chown (Depends-on): Likewise.
7675         * modules/copy-file (Depends-on): Likewise.
7676         * modules/fchdir (Depends-on): Likewise.
7677         * modules/fdopendir (Depends-on): Likewise.
7678         * modules/fopen (Depends-on): Likewise.
7679         * modules/fts (Depends-on): Likewise.
7680         * modules/getcwd (Depends-on): Likewise.
7681         * modules/isapipe (Depends-on): Likewise.
7682         * modules/linkat (Depends-on): Likewise.
7683         * modules/lseek (Depends-on): Likewise.
7684         * modules/mkdir-p (Depends-on): Likewise.
7685         * modules/open (Depends-on): Likewise.
7686         * modules/openat (Depends-on): Likewise.
7687         * modules/read-file (Depends-on): Likewise.
7688         * modules/renameat (Depends-on): Likewise.
7689         * modules/utimens (Depends-on): Likewise.
7690
7691 2011-09-25  Bruno Haible  <bruno@clisp.org>
7692
7693         linkat: Fix compilation on MSVC 9.
7694         * lib/linkat.c: Don't include <stdint.h>.
7695
7696 2011-09-25  Bruno Haible  <bruno@clisp.org>
7697
7698         fclose: Support for MSVC 9.
7699         * lib/fclose.c: Include msvc-inval.h.
7700         (fclose_nothrow): New function.
7701         (rpl_fclose): Use it.
7702         * modules/fclose (Depends-on): Add msvc-inval.
7703         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
7704
7705 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
7706
7707         dup2: minor simplifications
7708         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
7709         that it's a performance win.
7710         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
7711         ! defined __CYGWIN__)" to "ifdef F_GETFL".
7712
7713 2011-09-24  Jim Meyering  <meyering@redhat.com>
7714
7715         test-futimens: avoid a warning from gcc -Wshadow
7716         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
7717         to avoid a shadowing warning.
7718
7719 2011-09-24  Bruno Haible  <bruno@clisp.org>
7720
7721         fdopen: Support for MSVC 9.
7722         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
7723         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
7724         * lib/fdopen.c: Include msvc-inval.h.
7725         (fdopen_nothrow): New function.
7726         (rpl_fdopen): Use it.
7727         * modules/fdopen (Depends-on): Add msvc-inval.
7728         * modules/fclose-tests (Depends-on): Add fdopen.
7729         * modules/fflush-tests (Depends-on): Likewise.
7730         * modules/fgetc-tests (Depends-on): Likewise.
7731         * modules/fputc-tests (Depends-on): Likewise.
7732         * modules/fread-tests (Depends-on): Likewise.
7733         * modules/freopen-tests (Depends-on): Likewise.
7734         * modules/fseeko-tests (Depends-on): Likewise.
7735         * modules/ftello-tests (Depends-on): Likewise.
7736         * modules/fwrite-tests  (Depends-on): Likewise.
7737         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
7738
7739 2011-09-24  Bruno Haible  <bruno@clisp.org>
7740
7741         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
7742         * modules/fgetc-tests (Depends-on): Add unistd.
7743         * modules/fputc-tests (Depends-on): Likewise.
7744         * modules/fread-tests (Depends-on): Likewise.
7745         * modules/fwrite-tests (Depends-on): Likewise.
7746
7747 2011-09-24  Bruno Haible  <bruno@clisp.org>
7748
7749         dup: Simplify autoconf test.
7750         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
7751         on gl_MSVC_INVAL's result.
7752
7753 2011-09-24  Bruno Haible  <bruno@clisp.org>
7754
7755         Tests for function fwrite().
7756         * modules/fwrite-tests: New file.
7757         * tests/test-fwrite.c: New file.
7758         * modules/stdio-tests (Depends-on): Add fwrite-tests.
7759
7760         Tests for function fread().
7761         * modules/fread-tests: New file.
7762         * tests/test-fread.c: New file.
7763         * modules/stdio-tests (Depends-on): Add fread-tests.
7764
7765         Activate fputc tests.
7766         * modules/stdio-tests (Depends-on): Add fputc-tests.
7767
7768         Enhance fgetc, fputc tests.
7769         * tests/test-fgetc.c (main): Also test the stream's error indicator.
7770         * tests/test-fputc.c (main): Likewise.
7771
7772 2011-09-24  Bruno Haible  <bruno@clisp.org>
7773
7774         write: Support for MSVC 9.
7775         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
7776         is not 1.
7777         * lib/write.c (write_nothrow): New function.
7778         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
7779         not 1. Use write_nothrow.
7780         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
7781         invalid parameter handler.
7782         (gl_PREREQ_WRITE): New macro.
7783         * modules/write (Depends-on): Add msvc-inval.
7784         (configure.ac): Invoke gl_PREREQ_WRITE.
7785         * doc/posix-functions/write.texi: Mention the problem on MSVC.
7786
7787 2011-09-24  Bruno Haible  <bruno@clisp.org>
7788
7789         read: Fix last commit.
7790         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
7791
7792 2011-09-24  Bruno Haible  <bruno@clisp.org>
7793
7794         dup2: Fix last commit.
7795         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
7796         (rpl_dup2): Disable fcntl workaround on native Windows.
7797
7798         sigprocmask: Make code safer.
7799         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
7800         section that changes macro definitions for this compilation unit.
7801
7802 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
7803
7804         dup2: clarify by coalescing Windows-specific material
7805         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
7806         "msvc-nothrow.h"' to the Windows-specific section, so that the
7807         Emacs source need not contain these include files.
7808         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
7809         Windows-specific fixes into this function rather than just the
7810         nothrow fix, as this shortens and clarifies the code.  Always
7811         define as a function, as that's a bit cleaner than having it be
7812         sometimes a function and sometimes a macro.
7813         (rpl_dup2): Move the Windows-specific stuff out of here and into
7814         ms_windows_dup2.  Don't protect the Haiku-related fix with
7815         "#if !defined __linux__", as the same code also works around
7816         a Linux kernel bug, and it doesn't add any system calls on any
7817         platform.  Add comment about FreeBSD 6.1.
7818
7819         sigprocmask: move #include directive
7820         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
7821         Windows-specific section, so that the Emacs source need not
7822         contain msvc-inval.h.
7823
7824 2011-09-23  Bruno Haible  <bruno@clisp.org>
7825
7826         read: Support for MSVC 9.
7827         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
7828         is not 1.
7829         * lib/read.c (read_nothrow): New function.
7830         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
7831         read_nothrow.
7832         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
7833         invalid parameter handler.
7834         (gl_PREREQ_READ): New macro.
7835         * modules/read (Depends-on): Add msvc-inval.
7836         (configure.ac): Invoke gl_PREREQ_READ.
7837         * doc/posix-functions/read.texi: Mention the problem on MSVC.
7838
7839 2011-09-23  Bruno Haible  <bruno@clisp.org>
7840
7841         close: Support for MSVC 9.
7842         * lib/close.c: Include <errno.h>, msvc-inval.h.
7843         (close_nothrow): New function.
7844         (rpl_close): Use it.
7845         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
7846         invalid parameter handler.
7847         * modules/close (Depends-on): Add msvc-inval.
7848         * modules/dup2-tests (Depends-on): Add close.
7849         * modules/dup3-tests (Depends-on): Likewise.
7850         * modules/fcntl-tests (Depends-on): Likewise.
7851         * modules/spawn-pipe-tests (Depends-on): Likewise.
7852         * modules/unistd-safer-tests (Depends-on): Likewise.
7853         * doc/posix-functions/close.texi: Mention the problem on MSVC.
7854
7855 2011-09-23  Bruno Haible  <bruno@clisp.org>
7856
7857         New module 'dup'.
7858         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
7859         Allow replacement.
7860         * lib/dup.c: New file.
7861         * lib/fchdir.c (rpl_dup): Remove function.
7862         * m4/dup.m4: New file.
7863         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
7864         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
7865         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
7866         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
7867         * modules/dup: New file.
7868         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
7869         'dup' module is in use.
7870         * modules/fdopendir (Depends-on): Add dup.
7871         * modules/fdutimensat-tests (Depends-on): Likewise.
7872         * modules/fts (Depends-on): Likewise.
7873         * modules/futimens-tests (Depends-on): Likewise.
7874         * modules/posix_spawnp-tests (Depends-on): Likewise.
7875         * modules/unistd-safer-tests (Depends-on): Likewise.
7876         * modules/utimens-tests (Depends-on): Likewise.
7877         * doc/posix-functions/dup.texi: Mention the new module and the problem
7878         on MSVC.
7879
7880 2011-09-23  Bruno Haible  <bruno@clisp.org>
7881
7882         getdtablesize: Support for MSVC 9.
7883         * lib/getdtablesize.c: Include msvc-inval.h.
7884         (_setmaxstdio_nothrow): New function.
7885         (_setmaxstdio): Redefine it.
7886         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
7887         * modules/getdtablesize (Depends-on): Add msvc-inval.
7888         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
7889
7890 2011-09-23  Bruno Haible  <bruno@clisp.org>
7891
7892         signal-h: Rename from signal.
7893         * modules/signal-h: Renamed from modules/signal.
7894         * modules/pthread_sigmask (Depends-on): Update.
7895         * modules/raise (Depends-on): Likewise.
7896         * modules/sigaction (Depends-on): Likewise.
7897         * modules/sigpipe (Depends-on): Likewise.
7898         * modules/sigprocmask (Depends-on): Likewise.
7899         * modules/sys_select (Depends-on): Likewise.
7900         * modules/signal-h-tests: Renamed from modules/signal-tests.
7901         (Files, Depends-on, Makefile.am): Update.
7902         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
7903         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
7904         (Files, Makefile.am): Update.
7905         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
7906         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
7907         * modules/signal: New placeholder file.
7908         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
7909         * doc/posix-headers/signal.texi: Update.
7910         * NEWS: Mention the change.
7911
7912 2011-09-23  Bruno Haible  <bruno@clisp.org>
7913
7914         sigprocmask: Avoid crashes through signal() on MSVC 9.
7915         * lib/sigprocmask.c: Include msvc-inval.h.
7916         (signal_nothrow): New function.
7917         (signal): Redefine it.
7918         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
7919         * modules/sigprocmask (Depends-on): Add msvc-inval.
7920         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
7921
7922 2011-09-23  Bruno Haible  <bruno@clisp.org>
7923
7924         Tests for module 'raise'.
7925         * modules/raise-tests: New file.
7926         * tests/test-raise.c: New file.
7927
7928         raise: Support for MSVC.
7929         * lib/signal.in.h (raise): New declaration.
7930         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
7931         for native Windows platforms.
7932         * m4/raise.m4: New file.
7933         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
7934         HAVE_RAISE, REPLACE_RAISE.
7935         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
7936         REPLACE_RAISE.
7937         * modules/raise (Status, Notice): Remove fields.
7938         (Files): Add m4/raise.m4.
7939         (Depends-on): Add signal, msvc-inval.
7940         (configure.ac): Use the common idioms.
7941         (Maintainer): Add me.
7942         * tests/test-signal-c++.cc: Check the signature of raise.
7943         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
7944
7945 2011-09-23  Bruno Haible  <bruno@clisp.org>
7946
7947         pipe2: Fix compilation on pre-C99 compilers.
7948         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
7949
7950 2011-09-23  Bruno Haible  <bruno@clisp.org>
7951
7952         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
7953         * lib/msvc-nothrow.h: New file.
7954         * lib/msvc-nothrow.c: New file.
7955         * m4/msvc-nothrow.m4: New file.
7956         * modules/msvc-nothrow: New file.
7957         * lib/dup2.c: Include msvc-nothrow.h.
7958         (rpl_dup2): No need to protect _get_osfhandle call here.
7959         * lib/accept4.c: Include msvc-nothrow.h.
7960         * lib/error.c: Likewise.
7961         * lib/fcntl.c: Likewise.
7962         * lib/lseek.c: Likewise.
7963         * lib/nonblocking.c: Likewise.
7964         * lib/poll.c: Likewise.
7965         * lib/read.c: Likewise.
7966         * lib/select.c: Likewise.
7967         * lib/sockets.h: Likewise.
7968         * lib/sockets.c: Likewise.
7969         * lib/stdio-read.c: Likewise.
7970         * lib/stdio-write.c: Likewise.
7971         * lib/write.c: Likewise.
7972         * lib/w32sock.h: Likewise.
7973         * lib/w32spawn.h: Likewise.
7974         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
7975         * lib/fsync.c: Likewise.
7976         * lib/isapipe.c: Likewise.
7977         * modules/dup2 (Depends-on): Add msvc-nothrow.
7978         * modules/accept4 (Depends-on): Likewise.
7979         * modules/error (Depends-on): Likewise.
7980         * modules/fcntl (Depends-on): Likewise.
7981         * modules/lseek (Depends-on): Likewise.
7982         * modules/nonblocking (Depends-on): Likewise.
7983         * modules/poll (Depends-on): Likewise.
7984         * modules/read (Depends-on): Likewise.
7985         * modules/select (Depends-on): Likewise.
7986         * modules/sockets (Depends-on): Likewise.
7987         * modules/sigpipe (Depends-on): Likewise.
7988         * modules/write (Depends-on): Likewise.
7989         * modules/accept (Depends-on): Likewise.
7990         * modules/bind (Depends-on): Likewise.
7991         * modules/connect (Depends-on): Likewise.
7992         * modules/gethostname (Depends-on): Likewise.
7993         * modules/getpeername (Depends-on): Likewise.
7994         * modules/getsockname (Depends-on): Likewise.
7995         * modules/getsockopt (Depends-on): Likewise.
7996         * modules/ioctl (Depends-on): Likewise.
7997         * modules/listen (Depends-on): Likewise.
7998         * modules/recv (Depends-on): Likewise.
7999         * modules/recvfrom (Depends-on): Likewise.
8000         * modules/send (Depends-on): Likewise.
8001         * modules/sendto (Depends-on): Likewise.
8002         * modules/setsockopt (Depends-on): Likewise.
8003         * modules/shutdown (Depends-on): Likewise.
8004         * modules/socket (Depends-on): Likewise.
8005         * modules/execute (Depends-on): Likewise.
8006         * modules/spawn-pipe (Depends-on): Likewise.
8007         * modules/flock (Depends-on): Likewise.
8008         * modules/fsync (Depends-on): Likewise.
8009         * modules/isapipe (Depends-on): Likewise.
8010         * tests/test-cloexec.c: Include msvc-nothrow.h.
8011         * tests/test-dup-safer.c: Likewise.
8012         * tests/test-dup2.c: Likewise.
8013         * tests/test-dup3.c: Likewise.
8014         * tests/test-fcntl.c: Likewise.
8015         * tests/test-pipe.c: Likewise.
8016         * tests/test-pipe2.c: Likewise.
8017         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
8018         * modules/unistd-safer-tests (Depends-on): Likewise.
8019         * modules/dup2-tests (Depends-on): Likewise.
8020         * modules/dup3-tests (Depends-on): Likewise.
8021         * modules/fcntl-tests (Depends-on): Likewise.
8022         * modules/pipe-posix-tests (Depends-on): Likewise.
8023         * modules/pipe2-tests (Depends-on): Likewise.
8024
8025 2011-09-23  Bruno Haible  <bruno@clisp.org>
8026
8027         dup2: Make code more maintainable.
8028         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
8029         (rpl_dup2): Use it.
8030         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
8031         * modules/dup2 (configure.ac): Invoke it.
8032         Reported by Paul Eggert.
8033
8034 2011-09-23  Bruno Haible  <bruno@clisp.org>
8035
8036         msvc-inval: Fix compilation error.
8037         * lib/msvc-inval.h: Include <excpt.h>.
8038
8039 2011-09-23  Bruno Haible  <bruno@clisp.org>
8040
8041         mkdir: Tweak for MSVC 9.
8042         * lib/sys_stat.in.h: Update comments.
8043         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
8044
8045         Tests for module 'chdir'.
8046         * modules/chdir-tests: New file.
8047         * tests/test-chdir.c: New file.
8048
8049         New module 'chdir'.
8050         * modules/chdir: New file.
8051         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
8052         (chdir): New declaration.
8053         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
8054         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
8055         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
8056         * tests/test-unistd-c++.cc: Check signature of chdir.
8057         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
8058         * modules/chdir-long (Depends-on): Add chdir.
8059         * modules/fchdir (Depends-on): Likewise.
8060         * modules/rename (Depends-on): Likewise.
8061         * modules/savewd (Depends-on): Likewise.
8062
8063         rmdir: Support for mingw, MSVC 9.
8064         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
8065         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
8066
8067         getcwd: Tweak for MSVC 9.
8068         * lib/unistd.in.h: Update comments.
8069         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
8070
8071 2011-09-22  Bruno Haible  <bruno@clisp.org>
8072
8073         strerror_r-posix: Avoid a link error on MSVC.
8074         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
8075         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
8076
8077 2011-09-22  Bruno Haible  <bruno@clisp.org>
8078
8079         select: Avoid link errors on MSVC.
8080         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
8081         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
8082         * modules/pselect (Link): Likewise.
8083         * NEWS: Mention the change.
8084         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
8085         test-select-stdin against $(LIB_SELECT).
8086         * modules/pselect-tests (Makefile.am): Link test-pselect against
8087         $(LIB_SELECT).
8088
8089 2011-09-22  Bruno Haible  <bruno@clisp.org>
8090
8091         select: Avoid compilation error on MSVC.
8092         * lib/select.c: Don't include <stdbool.h>.
8093
8094 2011-09-21  Bruno Haible  <bruno@clisp.org>
8095
8096         Consolidate all uses of PATH_MAX in *.m4 files.
8097         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
8098         macros.
8099         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
8100         and gl_PATHMAX_SNIPPET.
8101         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8102         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8103         * modules/chdir-long (Files): Add m4/pathmax.m4.
8104         * modules/getcwd (Files): Likewise.
8105
8106 2011-09-21  Bruno Haible  <bruno@clisp.org>
8107
8108         ftruncate: Un-deprecate, concentrate on Win32 support.
8109         * modules/ftruncate (Status, Notice): Remove sections.
8110         (Depends-on): Add largefile.
8111         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
8112         non-mingw platforms.
8113         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
8114         include <io.h>.
8115         * modules/perror-tests (Depends-on): Add ftruncate.
8116         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
8117         'ftruncate' module.
8118
8119 2011-09-21  Bruno Haible  <bruno@clisp.org>
8120
8121         Add dependencies to new dirent related modules.
8122         * modules/opendir (Depends-on): Add closedir.
8123         * modules/getcwd (Depends-on): Add opendir, closedir.
8124         * modules/dirent-safer-tests (Depends-on): Likewise.
8125         * modules/fdopendir-tests (Depends-on): Likewise.
8126         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
8127         * modules/renameat-tests (Depends-on): Likewise.
8128
8129 2011-09-21  Bruno Haible  <bruno@clisp.org>
8130
8131         opendir: Avoid compilation error on mingw.
8132         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
8133         * modules/opendir (Depends-on): Add unistd.
8134
8135 2011-09-21  Bruno Haible  <bruno@clisp.org>
8136
8137         ftruncate tests: Avoid a test failure on mingw.
8138         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
8139
8140 2011-09-21  Bruno Haible  <bruno@clisp.org>
8141
8142         select tests: Avoid test failures on OSF/1 5.1 and mingw.
8143         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
8144         native Windows.
8145
8146 2011-09-21  Bruno Haible  <bruno@clisp.org>
8147
8148         New module 'fdopen'.
8149         * lib/stdio.in.h (fdopen): New declaration.
8150         * lib/fdopen.c: New file.
8151         * m4/fdopen.m4: New file.
8152         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
8153         REPLACE_FDOPEN.
8154         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
8155         REPLACE_FDOPEN.
8156         * modules/fdopen: New file.
8157         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
8158         * tests/test-stdio-c++.cc: Check signature of fdopen.
8159         * doc/posix-functions/fdopen.texi: Mention the new module.
8160
8161 2011-09-21  Bruno Haible  <bruno@clisp.org>
8162
8163         unlockpt tests: Avoid test failure on NetBSD 5.1.
8164         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
8165         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
8166
8167 2011-09-21  Bruno Haible  <bruno@clisp.org>
8168
8169         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
8170         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
8171         * tests/test-getlogin_r.c (main): Likewise.
8172
8173 2011-09-20  Bruno Haible  <bruno@clisp.org>
8174
8175         time tests: Don't require pid_t.
8176         * doc/posix-headers/time.texi: Revert last change.
8177         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
8178         * tests/test-time.c: Comment out the check for pid_t.
8179
8180 2011-09-20  Bruno Haible  <bruno@clisp.org>
8181
8182         fsync tests: Avoid a test failure on mingw.
8183         * tests/test-fsync.c (main): Allow a failure with EIO.
8184
8185 2011-09-20  Bruno Haible  <bruno@clisp.org>
8186
8187         euidaccess: Update comments.
8188         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
8189
8190 2011-09-20  Bruno Haible  <bruno@clisp.org>
8191
8192         Ensure EBADF returns for socket functions on mingw.
8193         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
8194         descriptor is invalid.
8195         * lib/bind.c (rpl_bind): Likewise.
8196         * lib/connect.c (rpl_connect): Likewise.
8197         * lib/getpeername.c (rpl_getpeername): Likewise.
8198         * lib/getsockname.c (rpl_getsockname): Likewise.
8199         * lib/getsockopt.c (rpl_getsockopt): Likewise.
8200         * lib/listen.c (rpl_listen): Likewise.
8201         * lib/recv.c (rpl_recv): Likewise.
8202         * lib/recvfrom.c (rpl_recvfrom): Likewise.
8203         * lib/send.c (rpl_send): Likewise.
8204         * lib/sendto.c (rpl_sendto): Likewise.
8205         * lib/setsockopt.c (rpl_setsockopt): Likewise.
8206         * lib/shutdown.c (rpl_shutdown): Likewise.
8207
8208 2011-09-20  Bruno Haible  <bruno@clisp.org>
8209
8210         select tests: EBADF tests.
8211         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
8212         test_bad_fd): New functions.
8213         (test_function): Invoke also test_bad_fd.
8214
8215 2011-09-20  Bruno Haible  <bruno@clisp.org>
8216
8217         Tests for module 'posix_spawn_file_actions_addopen.
8218         * modules/posix_spawn_file_actions_addopen-tests: New file.
8219         * tests/test-posix_spawn_file_actions_addopen.c: New file.
8220
8221         Tests for module 'posix_spawn_file_actions_adddup2'.
8222         * modules/posix_spawn_file_actions_adddup2-tests: New file.
8223         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
8224
8225         Tests for module 'posix_spawn_file_actions_addclose'.
8226         * modules/posix_spawn_file_actions_addclose-tests: New file.
8227         * tests/test-posix_spawn_file_actions_addclose.c: New file.
8228
8229 2011-09-20  Bruno Haible  <bruno@clisp.org>
8230
8231         Tests for module 'unlockpt'.
8232         * modules/unlockpt-tests: New file.
8233         * tests/test-unlockpt.c: New file.
8234         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
8235
8236         Tests for module 'grantpt'.
8237         * modules/grantpt-tests: New file.
8238         * tests/test-grantpt.c: New file.
8239         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
8240
8241 2011-09-20  Bruno Haible  <bruno@clisp.org>
8242
8243         freopen tests: EBADF tests.
8244         * tests/test-freopen.c: Include errno.h, unistd.h.
8245         (main): Add tests for EBADF, commented out for the moment.
8246
8247         fclose tests: EBADF tests.
8248         * tests/test-fclose.c (main): Add tests for EBADF.
8249
8250         fflush tests: EBADF tests.
8251         * tests/test-fflush.c: Include errno.h, macros.h.
8252         (main): Add tests for EBADF.
8253
8254         ftello tests: EBADF tests.
8255         * tests/test-ftello4.sh: New file.
8256         * tests/test-ftello4.c: New file.
8257         * modules/ftello-tests (Files): Add them.
8258         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
8259
8260         fseeko tests: EBADF tests.
8261         * tests/test-fseeko4.sh: New file.
8262         * tests/test-fseeko4.c: New file.
8263         * modules/fseeko-tests (Files): Add them.
8264         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
8265
8266         Tests for function fputc().
8267         * modules/fputc-tests: New file.
8268         * tests/test-fputc.c: New file.
8269         * modules/stdio-tests (Depends-on): Add fputc-tests.
8270
8271         Tests for function fgetc().
8272         * modules/fgetc-tests: New file.
8273         * tests/test-fgetc.c: New file.
8274         * modules/stdio-tests (Depends-on): Add fgetc-tests.
8275
8276         Tests for function fdopen().
8277         * modules/fdopen-tests: New file.
8278         * tests/test-fdopen.c: New file.
8279         * modules/stdio-tests (Depends-on): Add fdopen-tests.
8280
8281         Tests for module 'vdprintf'.
8282         * modules/vdprintf-tests: New file.
8283         * tests/test-vdprintf.c: New file.
8284
8285         Tests for module 'dprintf'.
8286         * modules/dprintf-tests: New file.
8287         * tests/test-dprintf.c: New file.
8288
8289 2011-09-20  Bruno Haible  <bruno@clisp.org>
8290
8291         Tests for module 'ioctl'.
8292         * modules/ioctl-tests: New file.
8293         * tests/test-ioctl.c: New file.
8294
8295 2011-09-20  Bruno Haible  <bruno@clisp.org>
8296
8297         fcntl tests: EBADF tests.
8298         * tests/test-fcntl.c (main): Add more tests for EBADF.
8299
8300 2011-09-20  Bruno Haible  <bruno@clisp.org>
8301
8302         utimensat tests: EBADF tests.
8303         * tests/test-utimensat.c (main): Add tests for EBADF.
8304
8305         renameat tests: EBADF tests.
8306         * tests/test-renameat.c (main): Add tests for EBADF.
8307
8308         mkfifoat tests: EBADF tests.
8309         * tests/test-mkfifoat.c (main): Add tests for EBADF.
8310
8311         readlinkat tests: EBADF tests.
8312         * tests/test-readlinkat.c (main): Add tests for EBADF.
8313
8314         symlinkat tests: EBADF tests.
8315         * tests/test-symlinkat.c (main): Add tests for EBADF.
8316
8317         linkat tests: EBADF tests.
8318         * tests/test-linkat.c (main): Add tests for EBADF.
8319
8320         Tests for module 'faccessat'.
8321         * modules/faccessat-tests: New file.
8322         * tests/test-faccessat.c: New file.
8323
8324         fdopendir tests: EBADF tests.
8325         * tests/test-fdopendir.c (main): Add more tests for EBADF.
8326
8327         openat tests: EBADF tests.
8328         * tests/test-fchownat.c (main): Add tests for EBADF.
8329         * tests/test-fstatat.c (main): Likewise.
8330         * tests/test-mkdirat.c (main): Likewise.
8331         * tests/test-openat.c (main): Likewise.
8332         * tests/test-unlinkat.c (main): Likewise.
8333         * tests/test-fchmodat.c: New file.
8334         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
8335         (Makefile.am): Also run 'test-fchmodat'.
8336
8337 2011-09-20  Bruno Haible  <bruno@clisp.org>
8338
8339         utimens, futimens, fdutimensat tests: EBADF tests.
8340         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
8341
8342         Tests for function fstat().
8343         * modules/fstat-tests: New file.
8344         * tests/test-fstat.c: New file.
8345         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
8346
8347 2011-09-20  Bruno Haible  <bruno@clisp.org>
8348
8349         test-ttyname_r tests: EBADF tests.
8350         * tests/test-ttyname_r.c (main): Add tests for EBADF.
8351
8352         Tests for module 'isatty'.
8353         * modules/isatty-tests: New file.
8354         * tests/test-isatty.c: New file.
8355
8356         Tests for module 'write'.
8357         * modules/write-tests: New file.
8358         * tests/test-write.c: New file.
8359
8360         Tests for module 'read'.
8361         * modules/read-tests: New file.
8362         * tests/test-read.c: New file.
8363
8364         pwrite tests: EBADF tests.
8365         * tests/test-pwrite.c (main): Add tests for EBADF.
8366
8367         pread tests: EBADF tests.
8368         * tests/test-pread.c (main): Add tests for EBADF.
8369
8370         lseek tests: EBADF tests.
8371         * tests/test-lseek.c (main): Add more tests for EBADF.
8372
8373         Tests for module 'ftruncate'.
8374         * modules/ftruncate-tests: New file.
8375         * tests/test-ftruncate.sh: New file.
8376         * tests/test-ftruncate.c: New file.
8377
8378         fsync tests: EBADF tests.
8379         * tests/test-fsync.c (main): Add more tests for EBADF.
8380
8381         fdatasync tests: EBADF tests.
8382         * tests/test-fdatasync.c (main): Add more tests for EBADF.
8383
8384         Tests for module 'fchown'.
8385         * modules/fchown-tests: New file.
8386         * tests/test-fchown.c: New file.
8387
8388         Tests for module 'fchmod'.
8389         * modules/fchmod-tests: New file.
8390         * tests/test-fchmod.c: New file.
8391
8392         fchdir tests: EBADF tests.
8393         * tests/test-fchdir.c (main): Add more tests for EBADF.
8394
8395         dup2 tests: EBADF tests.
8396         * tests/test-dup2.c (main): Add more tests for EBADF.
8397
8398         Tests for module 'dup'.
8399         * modules/dup-tests: New file.
8400         * tests/test-dup.c: New file.
8401
8402         Tests for module 'close'.
8403         * modules/close-tests: New file.
8404         * tests/test-close.c: New file.
8405
8406 2011-09-20  Bruno Haible  <bruno@clisp.org>
8407
8408         Tests for module 'shutdown'.
8409         * modules/shutdown-tests: New file.
8410         * tests/test-shutdown.c: New file.
8411
8412         Tests for module 'setsockopt'.
8413         * modules/setsockopt-tests: New file.
8414         * tests/test-setsockopt.c: New file.
8415
8416         Tests for module 'sendto'.
8417         * modules/sendto-tests: New file.
8418         * tests/test-sendto.c: New file.
8419
8420         Tests for module 'send'.
8421         * modules/send-tests: New file.
8422         * tests/test-send.c: New file.
8423
8424         Tests for module 'recvfrom'.
8425         * modules/recvfrom-tests: New file.
8426         * tests/test-recvfrom.c: New file.
8427
8428         Tests for module 'recv'.
8429         * modules/recv-tests: New file.
8430         * tests/test-recv.c: New file.
8431
8432         Tests for module 'listen'.
8433         * modules/listen-tests: New file.
8434         * tests/test-listen.c: New file.
8435
8436         Tests for module 'getsockopt'.
8437         * modules/getsockopt-tests: New file.
8438         * tests/test-getsockopt.c: New file.
8439
8440         Tests for module 'getsockname'.
8441         * modules/getsockname-tests: New file.
8442         * tests/test-getsockname.c: New file.
8443
8444         Tests for module 'getpeername'.
8445         * modules/getpeername-tests: New file.
8446         * tests/test-getpeername.c: New file.
8447
8448         Tests for module 'connect'.
8449         * modules/connect-tests: New file.
8450         * tests/test-connect.c: New file.
8451
8452         Tests for module 'bind'.
8453         * modules/bind-tests: New file.
8454         * tests/test-bind.c: New file.
8455
8456         accept4 tests: Fix for native Windows.
8457         * tests/test-accept4.c: Include sockets.h.
8458         (main): Invoke gl_sockets_startup.
8459         * modules/accept4-tests (Depends-on): Add sockets.
8460
8461         accept tests: Fix for native Windows.
8462         * tests/test-accept.c: Include sockets.h.
8463         (main): Invoke gl_sockets_startup.
8464         * modules/accept-tests (Depends-on): Add sockets.
8465
8466 2011-09-19  Bruno Haible  <bruno@clisp.org>
8467
8468         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
8469         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
8470         do...while(0).
8471         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
8472         Suggested by Paul Eggert.
8473
8474 2011-09-19  Bruno Haible  <bruno@clisp.org>
8475
8476         sched: Ensure pid_t is defined.
8477         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
8478         not define pid_t.
8479         * lib/sched.in.h: Include <sys/types.h>.
8480         * doc/posix-headers/sched.texi: Mention the pid_t problem.
8481         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8482
8483 2011-09-19  Bruno Haible  <bruno@clisp.org>
8484
8485         msvc-inval: Ensure the entire expansion is a single statement.
8486         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
8487         of braces.
8488
8489 2011-09-19  Jim Meyering  <meyering@redhat.com>
8490
8491         tests: use printf, not echo in init.sh's warn_ function
8492         * tests/init.sh (warn_): Use printf, not echo.  The latter would
8493         misbehave when given strings containing a backslash or starting
8494         with e.g., -n.  James Youngman suggested setting IFS.
8495
8496 2011-09-19  Eric Blake  <eblake@redhat.com>
8497
8498         futimens: enhance test
8499         * tests/test-futimens.h (test_futimens): Also check for EBADF on
8500         closed non-negative fd.
8501
8502         date: accept 'hence' as opposite of 'ago'
8503         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
8504         * tests/test-parse-datetime.c (main): Enhance test.
8505         Suggested by Jesse Wilson.
8506
8507 2011-09-19  Jim Meyering  <meyering@redhat.com>
8508
8509         getcwd: don't fail in a deep directory on a system without openat
8510         Before this change, getcwd would fail when called from a directory
8511         of depth PATH_MAX / 3 or greater.  That was due to the fact that
8512         the non-openat implementation used "..", "../..", "../../..", etc.
8513         to access ancestor directories.  With too many, that string would
8514         be longer than PATH_MAX.
8515         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
8516         using gnulib's openat replacement.
8517         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
8518         we're using the replacement function.
8519
8520 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
8521
8522         maint.mk: avoid warnings from perl about missing files
8523         * top/maint.mk (def_sym_regex): Ignore files listed in
8524         $(gl_other_headers_) that do not exist, say because a project
8525         does not use a corresponding module.
8526
8527 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
8528
8529         stat: use pathmax.h only if needed
8530         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
8531         This is better for Emacs, which does not have a mingw port and
8532         therefore can avoid the pathmax module.
8533
8534         utimens: remove dependency on dup2
8535         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
8536         to work around the Linux kernel bug.
8537         * modules/utimens (Depends-on): Remove dup2.
8538
8539 2011-09-18  Bruno Haible  <bruno@clisp.org>
8540
8541         inet_ntop, inet_pton: Look for it also in libresolv.
8542         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
8543         libnsl, search for it in libresolv.
8544         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8545         Needed on Solaris 7.
8546
8547 2011-09-18  Bruno Haible  <bruno@clisp.org>
8548
8549         accept, accept4 tests: Avoid link error on Solaris.
8550         * modules/accept-tests (Makefile.am): Link test-accept against
8551         $(LIBSOCKET).
8552         * modules/accept4-tests (Makefile.am): Link test-accept4 against
8553         $(LIBSOCKET).
8554
8555         accept4: Avoid link error on Solaris.
8556         * modules/accept4 (Link): New section.
8557
8558         socket functions: Avoid link errors on Solaris.
8559         * modules/accept (Depends-on): Add socketlib.
8560         (Link): New section.
8561         * modules/bind (Depends-on): Add socketlib.
8562         (Link): New section.
8563         * modules/connect (Depends-on): Add socketlib.
8564         (Link): New section.
8565         * modules/getpeername (Depends-on): Add socketlib.
8566         (Link): New section.
8567         * modules/getsockname (Depends-on): Add socketlib.
8568         (Link): New section.
8569         * modules/getsockopt (Depends-on): Add socketlib.
8570         (Link): New section.
8571         * modules/listen (Depends-on): Add socketlib.
8572         (Link): New section.
8573         * modules/recv (Depends-on): Add socketlib.
8574         (Link): New section.
8575         * modules/recvfrom (Depends-on): Add socketlib.
8576         (Link): New section.
8577         * modules/send (Depends-on): Add socketlib.
8578         (Link): New section.
8579         * modules/sendto (Depends-on): Add socketlib.
8580         (Link): New section.
8581         * modules/setsockopt (Depends-on): Add socketlib.
8582         (Link): New section.
8583         * modules/shutdown (Depends-on): Add socketlib.
8584         (Link): New section.
8585         * modules/socket (Depends-on): Add socketlib.
8586         (Link): New section.
8587
8588 2011-09-18  Bruno Haible  <bruno@clisp.org>
8589
8590         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
8591         * tests/test-ptsname.c (main): Terminate the test if it takes longer
8592         than 5 seconds.
8593         * modules/ptsname-tests (configure.ac): Test for alarm.
8594
8595 2011-09-18  Bruno Haible  <bruno@clisp.org>
8596
8597         posix_spawn_file_actions_add*: Fix module dependencies.
8598         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
8599         posix_spawn_file_actions_init.
8600         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
8601         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
8602
8603 2011-09-18  Bruno Haible  <bruno@clisp.org>
8604
8605         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
8606         * tests/test-rename.h (test_rename): Allow error code EEXIST.
8607         * tests/test-renameat.c (main): Likewise.
8608
8609 2011-09-18  Bruno Haible  <bruno@clisp.org>
8610
8611         Tests for module 'accept4'.
8612         * modules/accept4-tests: New file.
8613         * tests/test-accept4.c: New file.
8614
8615 2011-09-18  Bruno Haible  <bruno@clisp.org>
8616
8617         Tests for module 'accept'.
8618         * modules/accept-tests: New file.
8619         * tests/test-accept.c: New file.
8620
8621 2011-09-18  Bruno Haible  <bruno@clisp.org>
8622
8623         dup2: Support for MSVC.
8624         * lib/dup2.c: Include msvc-inval.h.
8625         (rpl_dup2): Handle invalid parameter notifications during dup2 and
8626         _get_osfhandle calls.
8627         * modules/dup2 (Depends-on): Add msvc-inval.
8628         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
8629
8630         New module 'msvc-inval'.
8631         * lib/msvc-inval.h: New file.
8632         * lib/msvc-inval.c: New file.
8633         * m4/msvc-inval.m4: New file.
8634         * modules/msvc-inval: New file.
8635
8636 2011-09-17  Bruno Haible  <bruno@clisp.org>
8637
8638         Tests for module 'pclose'.
8639         * modules/pclose-tests: New file.
8640
8641         New module 'pclose'.
8642         * lib/stdio.in.h (pclose): New declaration.
8643         * lib/pclose.c: New file.
8644         * m4/pclose.m4: New file.
8645         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
8646         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
8647         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
8648         * modules/pclose: New file.
8649         * modules/popen-tests (Depends-on): Add pclose.
8650         * modules/popen-safer-tests (Depends-on): Likewise.
8651         * doc/posix-functions/pclose.texi: Mention the new module.
8652
8653 2011-09-17  Bruno Haible  <bruno@clisp.org>
8654
8655         popen: Support for MSVC.
8656         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
8657         * lib/popen.c (popen): Provide alternate definition for native Windows.
8658         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
8659         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
8660         * modules/popen (Depends-on, configure.ac): Update condition.
8661         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
8662         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
8663         fixed.
8664
8665 2011-09-17  Bruno Haible  <bruno@clisp.org>
8666
8667         isnanl, isnand, isnanf: Work around MSVC bug.
8668         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
8669
8670 2011-09-17  Bruno Haible  <bruno@clisp.org>
8671
8672         sys_socket tests: Fix recent mistake.
8673         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
8674
8675 2011-09-17  Bruno Haible  <bruno@clisp.org>
8676
8677         putenv: Support for MSVC.
8678         * modules/putenv (Depends-on): Add environ.
8679         * lib/putenv.c (environ): Disable declaration.
8680         * lib/unistd.in.h: Update comment.
8681
8682 2011-09-17  Bruno Haible  <bruno@clisp.org>
8683
8684         math: Avoid macro redefinition warnings on MSVC.
8685         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
8686         Undefine before redefining.
8687
8688 2011-09-17  Bruno Haible  <bruno@clisp.org>
8689
8690         doc: Mention functions which are declared as macros.
8691         * doc/posix-functions/*[fl].texi: Mention that some functions are
8692         defined as macros with arguments only.
8693
8694 2011-09-17  Bruno Haible  <bruno@clisp.org>
8695
8696         Add dependencies to new dirent related modules.
8697         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
8698         * modules/fts (Depends-on): Likewise.
8699         * modules/glob (Depends-on): Likewise.
8700         * modules/savedir (Depends-on): Likewise.
8701         * modules/scandir (Depends-on): Likewise.
8702         * modules/dirent-safer (Depends-on): Add opendir, closedir.
8703         * modules/fdopendir (Depends-on): Add opendir.
8704
8705 2011-09-17  Bruno Haible  <bruno@clisp.org>
8706
8707         inet_pton: Support for MSVC on Windows Vista or newer.
8708         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
8709         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
8710         HAVE_DECL_INET_PTON is defined.
8711         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
8712         On platforms with <winsock2.h>, test whether inet_pton is declared in
8713         <ws2tcpip.h>. If so, arrange to replace it.
8714         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
8715         REPLACE_INET_PTON.
8716         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
8717         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
8718         (Depends-on, configure.ac): Update condition.
8719         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
8720
8721 2011-09-17  Bruno Haible  <bruno@clisp.org>
8722
8723         inet_ntop: Support for MSVC on Windows Vista or newer.
8724         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
8725         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
8726         HAVE_DECL_INET_NTOP is defined.
8727         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
8728         On platforms with <winsock2.h>, test whether inet_ntop is declared in
8729         <ws2tcpip.h>. If so, arrange to replace it.
8730         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
8731         REPLACE_INET_NTOP.
8732         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
8733         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
8734         (Depends-on, configure.ac): Update condition.
8735         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
8736
8737 2011-09-16  Eric Blake  <eblake@redhat.com>
8738
8739         test-fsync: yet another enhancement
8740         * tests/test-fsync.c (main): Also test behavior on read-only text
8741         file.
8742
8743 2011-09-16  Bruno Haible  <bruno@clisp.org>
8744
8745         Enhance fsync, fdatasync tests.
8746         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
8747         * tests/test-fdatasync.c (main): Likewise.
8748
8749 2011-09-16  Bruno Haible  <bruno@clisp.org>
8750
8751         Support for MSVC compiler: Ensure mode_t gets defined.
8752         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
8753         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8754         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
8755         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
8756         * tests/test-fcntl-h.c: Check that mode_t is defined.
8757         * tests/test-sys_stat.c: Likewise.
8758         * tests/test-sys_types.c: Likewise.
8759         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
8760         * doc/posix-headers/sys_stat.texi: Likewise.
8761         * doc/posix-headers/sys_types.texi: Likewise.
8762
8763 2011-09-16  Bruno Haible  <bruno@clisp.org>
8764
8765         sys_stat: Support for MSVC.
8766         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
8767         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
8768         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
8769         MSVC.
8770
8771 2011-09-16  Bruno Haible  <bruno@clisp.org>
8772
8773         Support for MSVC compiler: Ensure off_t gets defined.
8774         * lib/unistd.in.h: Include <sys/types.h>.
8775         * tests/test-fcntl-h.c: Check that off_t is defined.
8776         * tests/test-sys_stat.c: Likewise.
8777         * tests/test-sys_types.c: Likewise.
8778
8779 2011-09-16  Eric Blake  <eblake@redhat.com>
8780
8781         fdatasync: port to Solaris
8782         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
8783         * modules/fdatasync (Link): Document it.
8784         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
8785
8786         fdatasync: port to MacOS X 10.7
8787         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
8788         declared.
8789         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
8790         * modules/unistd (Makefile.am): Substitute it.
8791         * lib/unistd.in.h (fdatasync): Declare on MacOS.
8792         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
8793
8794         fdatasync: minor improvements
8795         * modules/fdatasync (Depends-on): Add condition for fsync.
8796         * lib/fdatasync.c (fdatasync): Add comment.
8797         * tests/test-unistd-c++.cc: Test fdatasync.
8798
8799         unistd: update refs to newer POSIX
8800         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
8801         Suggested by Bruno Haible.
8802
8803         fdatasync: new module
8804         * modules/fsync (Description): Document difference to fdatasync.
8805         * modules/fdatasync: New module.
8806         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
8807         * lib/fdatasync.c (fdatasync): Likewise.
8808         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
8809         defaults.
8810         * modules/unistd (Makefile.am): Set witnesses.
8811         * lib/unistd.in.h (fdatasync): Declare.
8812         * MODULES.html.sh: Document it.
8813         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
8814         * modules/fdatasync-tests: New test.
8815         * tests/test-fdatasync.c: Likewise.
8816
8817 2011-09-16  Eric Blake  <eblake@redhat.com>
8818
8819         test-fsync: enhance tests
8820         * modules/fsync-tests (Depends-on): Add errno, for mingw.
8821         * tests/test-fsync.c (main): Enhance test.
8822
8823 2011-09-15  Bruno Haible  <bruno@clisp.org>
8824
8825         Support for MSVC compiler: Ensure ssize_t gets defined.
8826         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
8827         * doc/posix-headers/stdio.texi: Likewise.
8828         * modules/stdio (Depends-on): Add ssize_t.
8829         * modules/sys_socket (Depends-on): Likewise.
8830         * modules/sys_types (Depends-on): Likewise.
8831         * modules/sys_uio (Depends-on): Likewise.
8832         * modules/unistd (Depends-on): Likewise.
8833         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
8834         * tests/test-sys_types.c: Check that ssize_t is defined.
8835
8836 2011-09-14  Bruno Haible  <bruno@clisp.org>
8837
8838         Avoid using #, the m4 comment starter character, near brackets.
8839         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
8840         delimiter character in sed expressions.
8841         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
8842         Suggested by Eric Blake.
8843
8844         Properly quote AC_CHECK_DECLS' 4th argument.
8845         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
8846         argument.
8847         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
8848         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
8849         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8850         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
8851         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
8852         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
8853         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
8854         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
8855         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
8856         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
8857         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
8858         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8859         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
8860         * m4/isinf.m4 (gl_ISINF): Likewise.
8861         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
8862         * m4/readutmp.m4 (gl_READUTMP): Likewise.
8863         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
8864         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8865         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8866         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
8867         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
8868         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
8869         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
8870         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
8871         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
8872         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8873         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
8874         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
8875         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8876         Reported by Eric Blake.
8877
8878         Properly quote AC_CHECK_DECL's 4th argument.
8879         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
8880         argument.
8881         * m4/argp.m4 (gl_ARGP): Likewise.
8882         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
8883         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8884         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
8885         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
8886         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
8887         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
8888         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
8889         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
8890         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
8891         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
8892         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
8893         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
8894         Reported by Eric Blake.
8895
8896 2011-09-14  Eric Blake  <eblake@redhat.com>
8897
8898         opendir: avoid compile warning
8899         * lib/opendir.c (includes): Always include errno.h.
8900         Reported by Tatsuro MATSUOKA.
8901
8902 2011-09-14  Jim Meyering  <meyering@redhat.com>
8903
8904         maint.mk: sc_tight_scope: propagate failure from sub-make
8905         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
8906         Reported by Martin von Gagern.
8907
8908 2011-09-13  Bruno Haible  <bruno@clisp.org>
8909
8910         tempname: Support for MSVC.
8911         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
8912         MSVC.
8913         * modules/tempname (Depends-on): Add fcntl-h.
8914
8915 2011-09-13  Bruno Haible  <bruno@clisp.org>
8916
8917         sys_time: Support for MSVC.
8918         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
8919         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
8920         include <winsock2.h>.
8921         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
8922         function declarations that collide with POSIX.
8923         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
8924         (Makefile.am): Substitute HAVE_WINSOCK2_H.
8925
8926 2011-09-13  Bruno Haible  <bruno@clisp.org>
8927
8928         stat: Support for MSVC.
8929         * lib/stat.c: Include pathmax.h.
8930         * modules/stat (Depends-on): Add pathmax.
8931
8932         pathmax: Support for native Windows.
8933         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
8934
8935 2011-09-12  Bruno Haible  <bruno@clisp.org>
8936
8937         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
8938         * lib/dirent.in.h (struct dirent): New type.
8939         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
8940         DT_WHT): New macros.
8941         (DIR): New type.
8942         (opendir, closedir): Declare only if the module 'opendir' is enabled.
8943         (readdir, rewinddir): New declarations.
8944         * lib/dirent-private.h: New file.
8945         * lib/opendir.c: New file.
8946         * lib/readdir.c: New file.
8947         * lib/rewinddir.c: New file.
8948         * lib/closedir.c: New file.
8949         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
8950         * m4/opendir.m4: New file.
8951         * m4/readdir.m4: New file.
8952         * m4/rewinddir.m4: New file.
8953         * m4/closedir.m4: New file.
8954         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
8955         REPLACE_CLOSEDIR here.
8956         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
8957         readdir, rewinddir are declared.
8958         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
8959         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
8960         HAVE_REWINDDIR, HAVE_CLOSEDIR.
8961         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
8962         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
8963         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
8964         * modules/opendir: New file.
8965         * modules/readdir: New file.
8966         * modules/rewinddir: New file.
8967         * modules/closedir: New file.
8968         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
8969         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
8970         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
8971         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
8972         * NEWS: Mention the 'fchdir' change.
8973
8974 2011-09-11  Bruno Haible  <bruno@clisp.org>
8975
8976         asm-underscore.m4: Support for MSVC.
8977         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
8978         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
8979
8980 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
8981
8982         Doc about crypt functions.
8983         * doc/posix-functions/crypt.texi: Expand range of glibc versions
8984         needing for _GNU_SOURCE to get crypt.
8985         * doc/posix-functions/encrypt.texi: Likewise.
8986         * doc/posix-functions/setkey.texi: Likewise.
8987
8988 2011-09-11  Bruno Haible  <bruno@clisp.org>
8989
8990         doc: Update regarding MSVC 9.
8991         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
8992         tested".
8993         * doc/posix-functions/*.texi: Update with info about MSVC 9.
8994         * doc/posix-headers/*.texi: Likewise.
8995         * doc/pastposix-functions/*.texi: Likewise.
8996         * doc/glibc-functions/*.texi: Likewise.
8997         * doc/glibc-headers/*.texi: Likewise.
8998
8999 2011-09-11  Bruno Haible  <bruno@clisp.org>
9000
9001         unistd et al.: Don't assume <unistd.h> exists.
9002         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
9003         does not exist.
9004         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
9005         exist. But include <stdlib.h>.
9006         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
9007         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
9008         symlink() does not exist.
9009         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
9010         include <io.h> instead.
9011         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
9012         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
9013         include <direct.h> instead.
9014         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9015         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9016         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
9017         <io.h> instead.
9018         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
9019         correctly if the system does not have hard links.
9020         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
9021         <direct.h> instead.
9022         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
9023         it when looking for function declarations.
9024         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
9025         <direct.h> and <io.h> instead.
9026         * doc/posix-headers/unistd.texi: More details about MSVC problem.
9027
9028 2011-09-11  Bruno Haible  <bruno@clisp.org>
9029
9030         strcase: Support for MSVC.
9031         * modules/strcase (Status, Notice): Remove obsoletion mark.
9032         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
9033         * doc/posix-functions/strncasecmp.texi: Likewise.
9034
9035         strings: Don't assume <strings.h> exists.
9036         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
9037         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
9038         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
9039         * doc/posix-headers/strings.texi: Mention the MSVC problem.
9040
9041 2011-09-11  Bruno Haible  <bruno@clisp.org>
9042
9043         dirent: Don't assume <dirent.h> exists.
9044         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
9045         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
9046         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
9047         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
9048
9049 2011-09-11  Bruno Haible  <bruno@clisp.org>
9050
9051         Fix wint_t on MSVC.
9052         * lib/wchar.in.h (wint_t): On MSVC, override it.
9053         * lib/wctype.in.h (wint_t): Likewise.
9054         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
9055         MSVC.
9056         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
9057         * doc/posix-headers/wctype.texi: Likewise.
9058
9059 2011-09-11  Bruno Haible  <bruno@clisp.org>
9060
9061         sys_types: Fix typo.
9062         * lib/sys_types.in.h: Fix typo in comment.
9063         Reported by Paul Eggert.
9064
9065         Support for MSVC compiler: Ensure size_t gets defined.
9066         * modules/strings (Depends-on): Add 'sys_types'.
9067         * modules/sys_uio (Depends-on): Likewise.
9068         * lib/sys_uio.in.h: Update comment.
9069
9070         C++ tests for module 'sys_types'.
9071         * modules/sys_types-c++-tests: New file.
9072         * tests/test-sys_types-c++.cc: New file.
9073
9074         Tests for module 'sys_types'.
9075         * modules/sys_types-tests: New file.
9076         * tests/test-sys_types.c: New file.
9077
9078         New module 'sys_types'.
9079         * lib/sys_types.in.h: New file.
9080         * m4/sys_types_h.m4: New file.
9081         * modules/sys_types: New file.
9082         * doc/posix-headers/sys_types.texi: Mention the new module and the
9083         size_t problem on MSVC 9.
9084
9085 2011-09-11  Bruno Haible  <bruno@clisp.org>
9086
9087         Support for MSVC compiler: Avoid division by a literal 0.
9088         * lib/math.in.h (NAN): Define through a function call also on MSVC.
9089         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
9090         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
9091         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
9092         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
9093         * tests/infinity.h: New file.
9094         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
9095         on MSVC.
9096         * tests/test-ceilf1.c: Include infinity.h.
9097         (main): Use Infinityf.
9098         * tests/test-ceil1.c: Include infinity.h.
9099         (main): Use Infinityd.
9100         * tests/test-ceill.c: Include infinity.h.
9101         (main): Use Infinityl.
9102         * tests/test-dprintf-posix.c: Include infinity.h.
9103         (test_function): Use Infinityd.
9104         * tests/test-floorf1.c: Include infinity.h.
9105         (main): Use Infinityf.
9106         * tests/test-floor1.c: Include infinity.h.
9107         (main): Use Infinityd.
9108         * tests/test-floorl.c: Include infinity.h.
9109         (main): Use Infinityl.
9110         * tests/test-fprintf-posix.c: Include infinity.h.
9111         (test_function): Use Infinityd.
9112         * tests/test-frexp.c: Include infinity.h.
9113         (main): Use Infinityd.
9114         * tests/test-frexpl.c: Include infinity.h.
9115         (main): Use Infinityl.
9116         * tests/test-isfinite.c: Include infinity.h.
9117         (test_isfinitef): Use Infinityf.
9118         (test_isfinited): Use Infinityd.
9119         (test_isfinitel): Use Infinityl.
9120         * tests/test-isinf.c: Include infinity.h.
9121         (test_isinff): Use Infinityf.
9122         (test_isinfd): Use Infinityd.
9123         (test_isinfl): Use Infinityl.
9124         * tests/test-isnan.c: Include infinity.h.
9125         (test_float): Use Infinityf.
9126         (test_double): Use Infinityd.
9127         (test_long_double): Use Infinityl.
9128         * tests/test-isnanf.h: Include infinity.h.
9129         (main): Use Infinityf.
9130         * tests/test-isnand.h: Include infinity.h.
9131         (main): Use Infinityd.
9132         * tests/test-isnanl.h: Include infinity.h.
9133         (main): Use Infinityl.
9134         * tests/test-ldexpl.c: Include infinity.h.
9135         (main): Use Infinityl.
9136         * tests/test-printf-posix.h: Include infinity.h.
9137         (test_function): Use Infinityd.
9138         * tests/test-roundf1.c: Include infinity.h.
9139         (main): Use Infinityf.
9140         * tests/test-round1.c: Include infinity.h.
9141         (main): Use Infinityd.
9142         * tests/test-roundl.c: Include infinity.h.
9143         (main): Use Infinityl.
9144         * tests/test-signbit.c: Include infinity.h.
9145         (test_signbitf): Use Infinityf.
9146         (test_signbitd): Use Infinityd.
9147         (test_signbitl): Use Infinityl.
9148         * tests/test-snprintf-posix.h: Include infinity.h.
9149         (test_function): Use Infinityd, Infinityl.
9150         * tests/test-sprintf-posix.h: Include infinity.h.
9151         (test_function): Use Infinityd, Infinityl.
9152         * tests/test-truncf1.c: Include infinity.h.
9153         (main): Use Infinityf.
9154         * tests/test-trunc1.c: Include infinity.h.
9155         (main): Use Infinityd.
9156         * tests/test-truncl.c: Include infinity.h.
9157         (main): Use Infinityl.
9158         * tests/test-vasnprintf-posix.c: Include infinity.h.
9159         (test_function): Use Infinityd, Infinityl.
9160         * tests/test-vasprintf-posix.c: Include infinity.h.
9161         (test_function): Use Infinityd, Infinityl.
9162         * modules/ceilf-tests (Files): Add tests/infinity.h.
9163         * modules/ceil-tests (Files): Likewise.
9164         * modules/ceill-tests (Files): Likewise.
9165         * modules/dprintf-posix-tests (Files): Likewise.
9166         * modules/floorf-tests (Files): Likewise.
9167         * modules/floor-tests (Files): Likewise.
9168         * modules/floorl-tests (Files): Likewise.
9169         * modules/fprintf-posix-tests (Files): Likewise.
9170         * modules/frexp-tests (Files): Likewise.
9171         * modules/frexp-nolibm-tests (Files): Likewise.
9172         * modules/frexpl-tests (Files): Likewise.
9173         * modules/frexpl-nolibm-tests (Files): Likewise.
9174         * modules/isfinite-tests (Files): Likewise.
9175         * modules/isinf-tests (Files): Likewise.
9176         * modules/isnan-tests (Files): Likewise.
9177         * modules/isnanf-tests (Files): Likewise.
9178         * modules/isnanf-nolibm-tests (Files): Likewise.
9179         * modules/isnand-tests (Files): Likewise.
9180         * modules/isnand-nolibm-tests (Files): Likewise.
9181         * modules/isnanl-tests (Files): Likewise.
9182         * modules/isnanl-nolibm-tests (Files): Likewise.
9183         * modules/ldexpl-tests (Files): Likewise.
9184         * modules/printf-posix-tests (Files): Likewise.
9185         * modules/roundf-tests (Files): Likewise.
9186         * modules/round-tests (Files): Likewise.
9187         * modules/roundl-tests (Files): Likewise.
9188         * modules/signbit-tests (Files): Likewise.
9189         * modules/snprintf-posix-tests (Files): Likewise.
9190         * modules/sprintf-posix-tests (Files): Likewise.
9191         * modules/truncf-tests (Files): Likewise.
9192         * modules/trunc-tests (Files): Likewise.
9193         * modules/truncl-tests (Files): Likewise.
9194         * modules/vasnprintf-posix-tests (Files): Likewise.
9195         * modules/vasprintf-posix-tests (Files): Likewise.
9196         * modules/vdprintf-posix-tests (Files): Likewise.
9197         * modules/vfprintf-posix-tests (Files): Likewise.
9198         * modules/vprintf-posix-tests (Files): Likewise.
9199         * modules/vsnprintf-posix-tests (Files): Likewise.
9200         * modules/vsprintf-posix-tests (Files): Likewise.
9201         * modules/xprintf-posix-tests (Files): Likewise.
9202
9203 2011-09-11  Bruno Haible  <bruno@clisp.org>
9204
9205         Ensure pid_t gets defined.
9206         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
9207         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9208         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9209         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9210         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
9211         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9212         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
9213         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9214         * tests/test-fcntl-h.c: Check that pid_t is defined.
9215         * tests/test-sched.c: Likewise.
9216         * tests/test-termios.c: Likewise.
9217         * tests/test-time.c: Likewise.
9218         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
9219         * doc/posix-headers/signal.texi: Likewise.
9220         * doc/posix-headers/sys_types.texi: Likewise.
9221         * doc/posix-headers/time.texi: Likewise.
9222
9223 2011-09-11  Bruno Haible  <bruno@clisp.org>
9224
9225         acl: Fix compilation on Solaris 10 (older version).
9226         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
9227         of ACE_EVERYONE.
9228         * lib/set-mode-acl.c (qset_acl): Likewise.
9229         Reported by Christian Jullien <eligis@orange.fr>.
9230
9231 2011-09-10  Bruno Haible  <bruno@clisp.org>
9232
9233         iconv, unsetenv: Add support for MSVC compiler.
9234         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
9235         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
9236
9237 2011-09-10  Bruno Haible  <bruno@clisp.org>
9238
9239         *printf: Add support for MSVC compiler.
9240         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
9241         handles the exception caused by the %n directive. When cross-compiling,
9242         guess no on native Windows.
9243         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
9244         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
9245         emulate it through vsnprintf.
9246         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
9247         * doc/posix-functions/dprintf.texi: Update documentation regarding
9248         MSVC 9.
9249         * doc/posix-functions/fprintf.texi: Likewise.
9250         * doc/posix-functions/printf.texi: Likewise.
9251         * doc/posix-functions/snprintf.texi: Likewise.
9252         * doc/posix-functions/sprintf.texi: Likewise.
9253         * doc/posix-functions/swprintf.texi: Likewise.
9254         * doc/posix-functions/vdprintf.texi: Likewise.
9255         * doc/posix-functions/vfprintf.texi: Likewise.
9256         * doc/posix-functions/vprintf.texi: Likewise.
9257         * doc/posix-functions/vsnprintf.texi: Likewise.
9258         * doc/posix-functions/vsprintf.texi: Likewise.
9259         * doc/glibc-functions/asprintf.texi: Likewise.
9260         * doc/glibc-functions/obstack_printf.texi: Likewise.
9261         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9262         * doc/glibc-functions/vasprintf.texi: Likewise.
9263
9264 2011-09-10  Bruno Haible  <bruno@clisp.org>
9265
9266         nocrash: Add support for native Windows.
9267         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
9268
9269 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
9270             Bruno Haible  <bruno@clisp.org>
9271
9272         absolute-header, include-next: Add support for MSVC compiler.
9273         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
9274         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
9275         directory separator in #line directives.
9276         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
9277         recognize also backslash as directory separator in #line directives.
9278
9279 2011-09-08  Jim Meyering  <meyering@redhat.com>
9280
9281         maint.mk: mark the post-release commit log with "maint: " prefix
9282         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
9283         one-line commit-log summary.
9284
9285 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
9286             Bruno Haible  <bruno@clisp.org>
9287
9288         Doc about crypt functions.
9289         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
9290         systems.
9291         * doc/posix-functions/encrypt.texi: Likewise.
9292         * doc/posix-functions/setkey.texi: Likewise.
9293
9294 2011-09-08  Simon Josefsson  <simon@josefsson.org>
9295
9296         * lib/gc.h: Fix copyright header.
9297
9298 2011-09-07  Bruno Haible  <bruno@clisp.org>
9299
9300         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
9301         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
9302         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
9303
9304 2011-09-07  Bruno Haible  <bruno@clisp.org>
9305
9306         openat: Work around compilation error with OSF/1 5.1 DTK cc.
9307         * lib/fopen.c: Use different syntax for include of <stdio.h>.
9308         * lib/freopen.c: Likewise.
9309         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
9310         * lib/lstat.c: Likewise.
9311         * lib/stat.c: Likewise.
9312         * lib/open.c: Use different syntax for include of <fcntl.h>.
9313         * lib/openat.c: Include fcntl.h again, explicitly.
9314
9315 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
9316
9317         parse-datetime: document the newly accepted format
9318         * doc/parse-datetime.texi (Combined date and time of day items):
9319         New section.
9320
9321 2011-09-06  Bruno Haible  <bruno@clisp.org>
9322
9323         acl: Fix a test failure on newer Solaris 10 with ZFS.
9324         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
9325         ENOSYS as no ACL.
9326         Reported by Jim Meyering.
9327
9328 2011-09-06  Bruno Haible  <bruno@clisp.org>
9329
9330         acl: Update for AIX >= 5.3 with NFS.
9331         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
9332         ENOSYS as no ACL.
9333
9334         acl: Fix a test failure on AIX >= 5.3 with NFS.
9335         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
9336         as no ACL.
9337
9338 2011-09-06  Bruno Haible  <bruno@clisp.org>
9339
9340         acl: Fix a test failure on IRIX 6.5 with NFS.
9341         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
9342         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
9343         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
9344         * lib/copy-acl.c (qcopy_acl): Likewise.
9345
9346 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
9347
9348         openat: port to AIX 7.1 with large files
9349         AIX 7.1 does a "#define openat open64at" if large files are in use,
9350         so we can't simply #undef openat.  Use the orig_openat trick (similar
9351         to orig_open in lib/open.c) to work around the problem.  Problem
9352         reported by Kevin Brott for GNU tar, in the thread containing
9353         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
9354         * lib/openat.c (__need_system_fcntl_h): Define first.
9355         Include <fcntl.h> and <sys/types.h> before undefining.
9356         (orig_openat) [HAVE_OPENAT]: New inline function.
9357         (openat) [HAVE_OPENAT]: Do not undef.
9358         (rpl_openat): Use orig_openat, not openat.
9359
9360 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
9361             Bruno Haible  <bruno@clisp.org>
9362
9363         acl: Avoid errors on NonStop Kernel.
9364         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
9365         ENOTSUP errors.
9366
9367 2011-09-05  Bruno Haible  <bruno@clisp.org>
9368
9369         acl: Clean up Solaris code.
9370         * lib/acl-internal.h: Remove no-op #if.
9371         * lib/file-has-acl.c: Likewise.
9372         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
9373         * lib/copy-acl.c (qcopy_acl): Likewise.
9374
9375 2011-09-05  Bruno Haible  <bruno@clisp.org>
9376
9377         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
9378         binaries built on the original Solaris 10.
9379         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
9380         trivial.
9381
9382 2011-09-05  Bruno Haible  <bruno@clisp.org>
9383
9384         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9385         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
9386         10.
9387         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
9388         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
9389         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
9390         instead of acl_get, facl_get, acl_set, facl_set.
9391
9392 2011-09-05  Bruno Haible  <bruno@clisp.org>
9393
9394         copy-file: Try unit tests on more file systems.
9395         * tests/test-copy-file-1.sh: New file.
9396         * tests/test-copy-file-2.sh: New file.
9397         * modules/copy-file-tests (Files): Add them.
9398         (Makefile.am): Add them to TESTS.
9399
9400         acl: Try unit tests on more file systems.
9401         * tests/test-file-has-acl-1.sh: New file.
9402         * tests/test-file-has-acl-2.sh: New file.
9403         * tests/test-set-mode-acl-1.sh: New file.
9404         * tests/test-set-mode-acl-2.sh: New file.
9405         * tests/test-copy-acl-1.sh: New file.
9406         * tests/test-copy-acl-2.sh: New file.
9407         * modules/acl-tests (Files): Add them.
9408         (Makefile.am): Add them to TESTS.
9409
9410 2011-09-04  Bruno Haible  <bruno@clisp.org>
9411
9412         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9413         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
9414         10.
9415         (OLD_ALLOW, OLD_DENY): New macros.
9416         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
9417         ACE_ACCESS_ALLOWED_ACE_TYPE.
9418         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
9419         ACE_ACCESS_DENIED_ACE_TYPE.
9420         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
9421         (NEW_ACE_EXECUTE): Fix value.
9422         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
9423         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
9424         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
9425         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
9426         NEW_ACE_SYNCHRONIZE): New macros.
9427         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
9428         instead of acl_fromtext, acl_set, facl_set.
9429         Fixes a coreutils/tests/cp/perm failure.
9430
9431 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
9432
9433         openat: test for fstatat (..., 0) bug
9434         Further testing with tar suggests that fstatat (..., 0)
9435         does not work in general, on AIX 7.1; see
9436         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
9437         So, give up entirely on AIX 7.1's fstatat, and fall back on our
9438         replacement fstatat (which is what older AIX releases were using
9439         anyway).
9440         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
9441         use is now changed to orig_fstatat.  This was probably the right
9442         thing to do anyway.
9443         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
9444         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
9445         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
9446         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
9447         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
9448         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
9449         if the bug is found.
9450
9451         openat: test for fstatat (AT_FDCWD, ..., 0) bug
9452         This tests for another fstatat bug on AIX 7.1:
9453         fstatat (AT_FDCWD, ..., 0) does not work.  See
9454         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
9455         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
9456         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
9457         (rpl_fstatat): Adjust so that it works around either (or both)
9458         bugs if present.
9459         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
9460
9461 2011-09-03  Karl Berry  <karl@gnu.org>
9462
9463         * doc/regex.texi (Character Class Operators): Avoid literal ":"
9464         in index entries.
9465
9466 2011-09-02  Bruno Haible  <bruno@clisp.org>
9467
9468         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
9469         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
9470         values of AR, ARFLAGS, RANLIB.
9471         Reported by John W. Eaton <jwe@gnu.org> for Octave.
9472
9473 2011-09-02  Bruno Haible  <bruno@clisp.org>
9474
9475         Find 'ar' program that fits with --host argument.
9476         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
9477
9478 2011-09-02  Bruno Haible  <bruno@clisp.org>
9479
9480         tests: init.sh: Support any non-GNU diff.
9481         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
9482         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
9483         Solaris 8.
9484
9485 2011-09-02  Bruno Haible  <bruno@clisp.org>
9486
9487         tests: init.sh: work also with any non-GNU diff that supports -u
9488         * tests/init.sh: Relax check for diff -u support.
9489         Rather than checking for GNU diff via --version, simply check
9490         for support for -u itself.  Useful at least on OpenBSD 4.9,
9491         AIX 7.1, IRIX 6.5, and Solaris 10.
9492
9493 2011-09-01  Bruno Haible  <bruno@clisp.org>
9494
9495         strtoimax, strtoumax: Document problem on HP-UX 11.
9496         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
9497         * doc/posix-functions/strtoumax.texi: Likewise.
9498
9499 2011-09-01  Bruno Haible  <bruno@clisp.org>
9500
9501         strtoumax: Avoid link error on OSF/1 with DTK cc.
9502         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
9503         defined as a function.
9504         * modules/strtoumax (Depends-on, configure.ac): Test only whether
9505         strtoumax is defined, not whether it is declared.
9506
9507 2011-09-01  Bruno Haible  <bruno@clisp.org>
9508
9509         strtoimax: Avoid link error on OSF/1 with DTK cc.
9510         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
9511         defined as a function.
9512         * modules/strtoimax (Depends-on, configure.ac): Test only whether
9513         strtoimax is defined, not whether it is declared.
9514
9515 2011-09-01  Bruno Haible  <bruno@clisp.org>
9516
9517         imaxdiv: Avoid link error on OSF/1 with DTK cc.
9518         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
9519         as a function.
9520         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
9521         whether it is declared.
9522
9523 2011-09-01  Bruno Haible  <bruno@clisp.org>
9524
9525         imaxabs: Avoid link error on OSF/1 with DTK cc.
9526         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
9527         as a function.
9528         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
9529         whether it is declared.
9530
9531 2011-09-01  Bruno Haible  <bruno@clisp.org>
9532
9533         Tests for module 'strtoumax'.
9534         * modules/strtoumax-tests: New file.
9535         * tests/test-strtoumax.c: New file.
9536
9537         Tests for module 'strtoimax'.
9538         * modules/strtoimax-tests: New file.
9539         * tests/test-strtoimax.c: New file.
9540
9541         Tests for module 'imaxdiv'.
9542         * modules/imaxdiv-tests: New file.
9543         * tests/test-imaxdiv.c: New file.
9544
9545         Tests for module 'imaxabs'.
9546         * modules/imaxabs-tests: New file.
9547         * tests/test-imaxabs.c: New file.
9548
9549 2011-09-01  Bruno Haible  <bruno@clisp.org>
9550
9551         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
9552         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
9553         pthread_create.
9554
9555 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9556
9557         openat: work around AIX 7.1 fstatat issue
9558         This should fix the problem that was not properly fixed
9559         in the previous change, dated 2011-08-30.
9560         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
9561         __need_system_stat_h defined.
9562         (orig_fstatat) [HAVE_FSTATAT]: New function.
9563         (rpl_fstatat): Go back to the old way of doing things,
9564         except call orig_fstatat instead of fstatat.
9565         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
9566         Remove unnecessary check whether fstatat fills in st_size etc.
9567
9568 2011-09-01  Bruno Haible  <bruno@clisp.org>
9569
9570         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
9571         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
9572         just include the system's header.
9573
9574 2011-08-31  Jim Meyering  <meyering@redhat.com>
9575
9576         tests: avoid spurious assertion failure in test-float.c on ppc64
9577         * tests/test-float.c (test_long_double): Comment out an assertion,
9578         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
9579         with gcc-4.4.4.
9580
9581         maint: indent with spaces, not TABs
9582         I need to get in the habit of running gnulib's "make check".
9583         Both of these would have been caught.
9584         * m4/largefile.m4: Indent with spaces, not TABs.
9585         * lib/parse-datetime.y (iso_8601_time): Likewise.
9586         Spotted by Pádraig Brady.
9587
9588         test-parse-datetime.c: accommodate a relatively strict gcc warning
9589         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
9590         to avoid a warning from gcc's -Werror=missing-declarations.
9591         Insert a few spaces-before-funcall-parenthesis.
9592
9593 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
9594
9595         parse-datetime: accept ISO 8601 date and time rep with "T" separator
9596         The parser now accepts ISO 8601 date-time strings with "T" as the
9597         separator.  It has long parsed dates like "2004-02-29 16:21:42"
9598         with a space between the date and time strings.  Now it also parses
9599         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
9600         variants like "2004-02-29T16:21:42.333-07:00"
9601         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
9602         of day representation using the 'T' separator character.
9603         * doc/parse-datetime.texi (General date syntax): replace use of
9604         deprecated --iso-8601 option with --rfc-3339 in example of date
9605         command output formats that can be parsed.
9606         * tests/test-parse-datetime.c (tm_diff): New function, taken from
9607         lib/parse-datetime.y.
9608         (gmt_offset): New function.
9609         (main): Add additional test cases to validate ISO8601 extended
9610         date and time of day parsing.
9611
9612 2011-08-31  Bruno Haible  <bruno@clisp.org>
9613
9614         freopen: Documentation.
9615         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
9616         name.
9617         Reported by Claudio Bley <claudio.bley@gmail.com>.
9618
9619 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
9620
9621         freopen: Don't crash if the filename argument is NULL.
9622         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
9623         NULL.
9624
9625 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
9626
9627         openat: work around AIX 7.1 fstatat bug
9628         Problem reported by Kevin Brott for GNU tar, in the thread containing
9629         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
9630         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
9631         FSTATAT_ST_SIZE_ETC_BROKEN.
9632         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
9633         rpl_fstatat.
9634         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
9635         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
9636         AC_CHECK_FUNCS_ONCE for fstatat.
9637         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
9638         fchmodat, mkdirat, openat and unlinkat.
9639
9640 2011-08-30  Bruno Haible  <bruno@clisp.org>
9641
9642         Avoid endless recursions if config.h includes some header files.
9643         * lib/fopen.c (__need_FILE): Define already before including config.h.
9644         * lib/freopen.c (__need_FILE): Likewise.
9645         * lib/open.c (__need_system_fcntl_h): Likewise.
9646         * lib/stat.c (__need_system_sys_stat_h): Likewise.
9647         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
9648         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9649
9650 2011-08-25  Karl Berry  <karl@gnu.org>
9651
9652         * config/srclist.txt (ylwrap): new try.
9653         * build-aux/ylwrap: new file.
9654
9655 2011-08-23  Bruno Haible  <bruno@clisp.org>
9656
9657         tmpdir: Use a good default directory on native Windows.
9658         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
9659         (P_tmpdir): Default to _P_tmpdir on native Windows.
9660         (path_search): On native Windows, try the value returned by GetTempPath
9661         before trying P_tmpdir.
9662         * modules/tmpdir (Depends-on): Add pathmax.
9663         Suggested by John Darrington <john@darrington.wattle.id.au>.
9664
9665 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
9666
9667         doc: fix typo in README-release
9668         * top/README-release: Capitalize first word of a sentence.
9669
9670 2011-08-19  Jim Meyering  <meyering@redhat.com>
9671
9672         fts: do not exhaust memory when processing million-entry directories
9673         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
9674         directory would require about 256*N bytes of memory.  Thus, it was
9675         easy to construct a directory too large to be processed by any of
9676         those tools.  With this change, fts' maximum memory utilization is
9677         now limited to around 30MB.
9678         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
9679         (fts_read): When we've processed the final entry (i.e., when
9680         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
9681         using the parent entry to read any remaining entries.  Dispatch
9682         depending on what fts_build returns:
9683         - NULL+stop, aka failure: stop
9684         - NULL otherwise: move up in the dir hierarchy
9685         - non-NULL: handle this new entry
9686         (fts_build): Declare and use new local, continue_readdir.
9687         Prepare to be called from fts_read, when the entries
9688         from a partially-read directory have just been exhausted.
9689         In that case, we'll skip the opendir and instead use the parent's
9690         fts_dirp and derive dir_fd from that.
9691         Finally, in the readdir loop, if we read max_entries entries,
9692         exit the loop ensuring *not* to call closedir.  This is required
9693         so that fts_dirp can be reused on a subsequent call.
9694         Prompted by Ben England's report of memory exhaustion in find
9695         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
9696
9697         maint: fts: move decl of `dp' down into while loop; split a long line
9698         * lib/fts.c (fts_build): No semantic change.
9699
9700         fts: add/use new struct member, fts_dirp
9701         We are about to use this to manage any directory with
9702         too many entries to read all of them into memory at once.
9703         To do that, we'll need to save the DIR* pointer in each
9704         affected FTSENT struct.
9705         * lib/fts_.h: Include <dirent.h>.
9706         (struct FTSENT) [fts_dirp]: New member.
9707         * lib/fts.c (closedir_and_clear): Define.
9708         Use it in place of closedir so that we are sure to
9709         clear the new fts_dirp member when done with it.
9710         (fts_alloc): Initialize the new member.
9711         (fts_lfree): Free, if needed.
9712
9713         maint: fts: give __opendir2 a new parameter and rename
9714         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
9715         than surreptitiously using sole caller's "dir_fd".
9716         (fts_opendir): Rename from __opendir2.
9717
9718         maint: fts.c: remove __opendir2's now-unused parameter, oflag
9719         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
9720
9721         maint: fts.c: correct off-by-one indentation
9722         * lib/fts.c (fts_build): Correct indentation, change style
9723         of a couple of block comments, and bracing style.
9724
9725         maint: fts.c: move __opendir2 #define "up" out of function body
9726         * lib/fts.c (__opendir2): Move "up".  No semantic change.
9727
9728         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
9729         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
9730         out for a long time and besides was useful only on BSD systems.
9731
9732 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
9733
9734         regex: port to Stratus OpenVOS
9735         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
9736         define to empty, rather than attempting nonportable optimizations.
9737         Problem reported by Paul Green in:
9738         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
9739         and fix suggested by Eric Blake in:
9740         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
9741
9742 2011-08-17  Eric Blake  <eblake@redhat.com>
9743
9744         getcwd: fix test failures on mingw
9745         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
9746         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
9747         test if long directory cannot be created, and allow mingw errno.
9748
9749         getcwd-lgpl: fix m4 to match relaxed test for BSD
9750         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
9751         (gl_FUNC_GETCWD_SIGNATURE): New macro.
9752         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
9753         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
9754         signature problem.
9755
9756         getcwd: fix compilation on mingw64
9757         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
9758         getcwd.
9759         Reported by Marc-André Lureau.
9760
9761         pipe2: silence compiler warning
9762         * lib/pipe2.c (pipe2): Hide label if it is not used.
9763
9764 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
9765
9766         relocatable-prog: fix link error
9767         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
9768         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
9769         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
9770         into modules/relocatable-lib without noticing that
9771         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
9772         also needs to build relocatable.c.
9773
9774 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
9775
9776         getaddrinfo: fix sh typo in gai_strerrorA decl checking
9777         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
9778         shell code: it contained a 'break' that was not in a loop.
9779         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
9780         via a shell-language loop; this may have been true in old Autoconf
9781         versions, but it's not true in Autoconf 2.68.  I found this bug
9782         when testing coreutils git on Solaris 8, whose shell complains
9783         about the syntax error.
9784
9785 2011-08-12  Simon Josefsson  <simon@josefsson.org>
9786
9787         * lib/base64.c: Fix comment to reference RFC 4648.
9788         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
9789         <gvtulder@gmail.com>.
9790
9791 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
9792
9793         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
9794
9795         po/Makefile.in.in: fix make -q problem
9796         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
9797         rule, since there's no file named 'check-macro-version' and its
9798         use as a file breaks make -q.
9799         (all): Don't depend on check-macro-version.
9800         (CHECK_MACRO_VERSION): New macro.
9801         (stamp-po): Use it.
9802
9803         configmake: fix make -q problem
9804         * modules/configmake (configmake.h): Update configmake.h's time stamp
9805         even if the file does not change.  Otherwise, 'make -q' fails.
9806         Problem reported by Simon Josefsson in
9807         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
9808
9809 2011-08-11  Jim Meyering  <meyering@redhat.com>
9810
9811         git-version-gen: correct the advice in a comment
9812         * build-aux/git-version-gen: Correct comment.
9813         Don't recommend to list .tarball-version in .gitignore.
9814
9815 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
9816
9817         base64: fix off-by-one buffer size bug
9818         Problem and (trivial) fix reported by Gijs van Tulder in
9819         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
9820         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
9821         * tests/test-base64.c (main): Catch the bug.
9822
9823 2011-08-10  Eric Blake  <eblake@redhat.com>
9824
9825         closein: correct comments
9826         * lib/closein.c (close_stdin): Improve comments.
9827
9828 2011-08-09  Bruno Haible  <bruno@clisp.org>
9829
9830         More tests for 'fseeko'.
9831         * tests/test-fseeko3.c: New file, from Eric Blake.
9832         * tests/test-fseeko3.sh: New file.
9833         * modules/fseeko-tests (Files): Add them.
9834         (TESTS): Add test-fseeko3.sh.
9835         (check_PROGRAMS): Add test-fseeko3.
9836
9837 2011-08-09  Eric Blake  <eblake@redhat.com>
9838
9839         fseeko: remove unneeded hack
9840         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
9841
9842         fseeko: fix bug on glibc
9843         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
9844         Reported by John W. Eaton.
9845
9846 2011-08-08  Bruno Haible  <bruno@clisp.org>
9847
9848         unictype/base: Fix interoperability with preinstalled libunistring.
9849         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
9850         Reported by Simon Josefsson.
9851
9852 2011-08-08  Bruno Haible  <bruno@clisp.org>
9853
9854         iswblank: Detect declaration correctly.
9855         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
9856         AC_CHECK_DECLS invocation.
9857
9858 2011-08-08  Bruno Haible  <bruno@clisp.org>
9859
9860         tcgetsid: Detect declaration correctly.
9861         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
9862         AC_CHECK_DECLS invocation.
9863         Reported by Simon Josefsson.
9864
9865 2011-08-08  Eric Blake  <eblake@redhat.com>
9866
9867         largefile: fix typo that regressed large file support
9868         * modules/largefile (configure.ac-early): Fix section name.
9869
9870 2011-08-06  Karl Berry  <karl@gnu.org>
9871
9872         * MODULES.html.sh (func_all_files): _Noreturn is no longer
9873         a separate module.
9874
9875 2011-08-05  Simon Josefsson  <simon@josefsson.org>
9876
9877         openat: Fix warnings and commens when building unlinkat.c on Hurd.
9878         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
9879         get prototype for free.
9880
9881 2011-08-04  Bruno Haible  <bruno@clisp.org>
9882
9883         Tests for module 'pathmax'.
9884         * modules/pathmax-tests: New file.
9885         * tests/test-pathmax.c: New file.
9886
9887         canonicalize-lgpl: Support larger filenames on the Hurd.
9888         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
9889         Reported by Paul Eggert.
9890
9891         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
9892         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
9893         * lib/chdir-long.h: Include pathmax.h.
9894         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
9895         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
9896         (PATH_MAX): Remove code that is done by pathmax.h.
9897         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
9898         * lib/tmpfile.c: Add a comment.
9899         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
9900         * modules/chdir-long (Depends-on): Add pathmax.
9901         * modules/getcwd (Depends-on): Add pathmax.
9902         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
9903         is not defined.
9904         * doc/posix-headers/limits.texi: Mention the pathmax module.
9905         * NEWS: Mention the change.
9906
9907 2011-08-02  Bruno Haible  <bruno@clisp.org>
9908
9909         pthread_sigmask: Actually use results of gl_THREADLIB.
9910         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
9911         gl_THREADLIB, not gl_[]THREADLIB.
9912         Reported by Eric Blake.
9913
9914 2011-08-02  Jim Meyering  <meyering@redhat.com>
9915
9916         maint.mk: relax the default _gl_TS_function_match regexp
9917         * top/maint.mk (_gl_TS_function_match): Don't require at least one
9918         space between function name and "(" in an "extern" declaration.
9919         That would fail to match a decl with no space there: extern void foo();
9920
9921 2011-07-31  Iain Nicol  <iain@thenicols.net>
9922
9923         git-version-gen: document that EXTRA_DIST must include .version
9924         * build-aux/git-version-gen: In the how-to-use comment, document
9925         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
9926         will fail when run from an unpacked distribution tarball.
9927
9928 2011-08-01  Bruno Haible  <bruno@clisp.org>
9929
9930         wctype-h: Fix last change.
9931         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
9932         REPLACE_TOWLOWER to 0.
9933         Reported by Sam Steingold <sds@gnu.org>.
9934
9935 2011-07-31  Bruno Haible  <bruno@clisp.org>
9936
9937         frexpl: Update autoconf test.
9938         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
9939         according to changes of 2011-06-20.
9940
9941 2011-07-31  Bruno Haible  <bruno@clisp.org>
9942
9943         sys_utsname: Add support for Minix.
9944         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
9945         <sys/utsname.h>.
9946         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9947         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
9948
9949 2011-07-31  Bruno Haible  <bruno@clisp.org>
9950
9951         strings: Add support for Minix.
9952         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
9953         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
9954         * doc/posix-headers/strings.texi: Document the Minix problem.
9955
9956 2011-07-31  Bruno Haible  <bruno@clisp.org>
9957
9958         wctype-h: Add support for Minix.
9959         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
9960         REPLACE_TOWLOWER.
9961         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
9962         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
9963         REPLACE_ISWCNTRL.
9964
9965 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
9966
9967         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
9968         This is a performance improvement for 64-bit hosts: it causes the
9969         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
9970
9971 2011-07-31  Bruno Haible  <bruno@clisp.org>
9972
9973         stdioext: Add support for Minix.
9974         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
9975         * lib/fpurge.c (fpurge): Likewise.
9976         * lib/freadahead.c (freadahead): Likewise.
9977         * lib/freadable.c (freadable): Likewise.
9978         * lib/freading.c (freading): Likewise.
9979         * lib/freadptr.c (freadptr): Likewise.
9980         * lib/freadseek.c (freadptrinc): Likewise.
9981         * lib/fseeko.c (rpl_fseeko): Likewise.
9982         * lib/fseterr.c (fseterr): Likewise.
9983         * lib/fwritable.c (fwritable): Likewise.
9984         * lib/fwriting.c (fwriting): Likewise.
9985         * lib/fflush.c (clear_ungetc_buffer): Update comment.
9986         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
9987
9988 2011-07-31  Bruno Haible  <bruno@clisp.org>
9989
9990         errno: Port to Minix.
9991         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
9992         ECONNABORTED are defined.
9993         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
9994         GNULIB_defined_ECONNABORTED): New macros.
9995         * lib/strerror-override.h (strerror_override): Test also
9996         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
9997         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
9998         ECONNABORTED.
9999         * doc/posix-headers/errno.texi: Mention the Minix problem.
10000
10001 2011-07-31  Bruno Haible  <bruno@clisp.org>
10002
10003         Work around declaration collisions on Minix.
10004         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
10005         defined, set REPLACE_MBSINIT.
10006         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
10007         defined, set REPLACE_MBRTOWC.
10008         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
10009         set REPLACE_MBRLEN.
10010         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
10011         defined, set REPLACE_MBSRTOWCS.
10012         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
10013         defined, set REPLACE_WCRTOMB.
10014         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
10015         defined, set REPLACE_WCSRTOMBS.
10016
10017 2011-07-31  Bruno Haible  <bruno@clisp.org>
10018
10019         Add support for Minix with ACK compiler.
10020         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
10021         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
10022         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
10023
10024 2011-07-31  Bruno Haible  <bruno@clisp.org>
10025
10026         Documentation about Minix.
10027         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
10028         * doc/glibc-headers/*.texi: Likewise.
10029         * doc/posix-functions/*.texi: Likewise.
10030         * doc/glibc-functions/*.texi: Likewise.
10031
10032 2011-07-31  Bruno Haible  <bruno@clisp.org>
10033
10034         snippet/warn-on-use: Fix indentation.
10035         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
10036
10037 2011-07-25  Jim Meyering  <meyering@redhat.com>
10038
10039         tests: test-update-copyright.sh: remove unnecessary "rm" commands
10040         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
10041         commands.
10042
10043 2011-07-27  Jim Meyering  <meyering@redhat.com>
10044
10045         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
10046         * top/maint.mk (gl_extract_significant_defines_): Now that
10047         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
10048         gnulib/lib/signal.in.h, and now that we recommend to
10049         define-if-undefined those two symbols in application code,
10050         we must filter them out of the "significant" list.
10051         This avoids a "make syntax-check" failure in coreutils.
10052
10053 2011-07-26  Eric Blake  <eblake@redhat.com>
10054
10055         warnings: add comments about previous patch
10056         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
10057         * m4/include_next.m4: Likewise.
10058         * m4/warn-on-use.m4: Likewise.
10059         * m4/warnings.m4: Likewise, and simplify use.
10060         Suggested by Stefano Lattarini.
10061
10062         include-next, warnings: support older autoconf
10063         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
10064         AS_VAR_PUSHDEF in a way that works with older autoconf.
10065         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
10066         Reported by Daniel P. Berrange.
10067
10068 2011-07-25  Bruno Haible  <bruno@clisp.org>
10069
10070         fseek, ftell: Fix doc.
10071         * doc/posix-functions/fseek.texi: Reword statement about
10072         AC_SYS_LARGEFILE.
10073         * doc/posix-functions/ftell.texi: Likewise.
10074
10075 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10076             Bruno Haible  <bruno@clisp.org>
10077
10078         Add dependencies to the 'largefile' module.
10079         * modules/fopen (Depends-on): Add 'largefile'.
10080         * modules/freopen (Depends-on): Likewise.
10081         * modules/fseeko (Depends-on): Likewise.
10082         * modules/ftello (Depends-on): Likewise.
10083         * modules/glob (Depends-on): Likewise.
10084         * modules/lseek (Depends-on): Likewise.
10085         * modules/lstat (Depends-on): Likewise.
10086         * modules/mkostemp (Depends-on): Likewise.
10087         * modules/mkostemps (Depends-on): Likewise.
10088         * modules/mkstemp (Depends-on): Likewise.
10089         * modules/mkstemps (Depends-on): Likewise.
10090         * modules/open (Depends-on): Likewise.
10091         * modules/openat (Depends-on): Likewise.
10092         * modules/pread (Depends-on): Likewise.
10093         * modules/pwrite (Depends-on): Likewise.
10094         * modules/scandir (Depends-on): Likewise.
10095         * modules/stat (Depends-on): Likewise.
10096         * modules/tmpfile (Depends-on): Likewise.
10097         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
10098         since the containing module now depends on the largefile module.
10099         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
10100         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
10101         off_t is fixed by gnulib.
10102         * doc/posix-functions/freopen.texi: Likewise.
10103         * doc/posix-functions/fseeko.texi: Likewise.
10104         * doc/posix-functions/fstatat.texi: Likewise.
10105         * doc/posix-functions/ftello.texi: Likewise.
10106         * doc/posix-functions/glob.texi: Likewise.
10107         * doc/posix-functions/lseek.texi: Likewise.
10108         * doc/posix-functions/lstat.texi: Likewise.
10109         * doc/posix-functions/mkstemp.texi: Likewise.
10110         * doc/posix-functions/open.texi: Likewise.
10111         * doc/posix-functions/openat.texi: Likewise.
10112         * doc/posix-functions/pread.texi: Likewise.
10113         * doc/posix-functions/pwrite.texi: Likewise.
10114         * doc/posix-functions/scandir.texi: Likewise.
10115         * doc/posix-functions/stat.texi: Likewise.
10116         * doc/posix-functions/tmpfile.texi: Likewise.
10117         * doc/glibc-functions/mkostemp.texi: Likewise.
10118         * doc/glibc-functions/mkostemps.texi: Likewise.
10119         * doc/glibc-functions/mkstemps.texi: Likewise.
10120
10121 2011-07-25  Bruno Haible  <bruno@clisp.org>
10122
10123         fcntl: Move AC_LIBOBJ invocation to module description.
10124         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
10125         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
10126
10127         fcntl: Remove call-in from fchdir.m4.
10128         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
10129         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
10130
10131         dup3: Remove potential call-in from fchdir.m4.
10132         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
10133         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
10134
10135         dup2: Move AC_LIBOBJ invocation to module description.
10136         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
10137         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
10138         Don't invoke AC_LIBOBJ.
10139         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
10140
10141         dup2: Remove call-in from fchdir.m4.
10142         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
10143         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
10144
10145         fclose: Move AC_LIBOBJ invocation to module description.
10146         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
10147         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
10148         to 1.
10149         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
10150
10151         fclose: Remove call-in from close.m4.
10152         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
10153         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
10154
10155         close: Move AC_LIBOBJ invocation to module description.
10156         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
10157         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
10158         1.
10159         * modules/close (configure.ac): Invoke AC_LIBOBJ.
10160
10161         close: Remove call-in from fchdir.m4.
10162         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
10163         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
10164
10165         open: Move AC_LIBOBJ invocation to module description.
10166         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
10167         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
10168         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
10169
10170         open: Remove call-in from fchdir.m4.
10171         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
10172         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
10173
10174         fchdir: Start to remove gl_REPLACE_* idiom.
10175         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
10176         (gl_FUNC_FCHDIR): Invoke it.
10177
10178 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10179
10180         * lib/ftell.c (ftell): Comment out cast.
10181
10182         close: use gl_REPLACE_FCLOSE only if defined
10183         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
10184         is defined.  The close module doesn't depend on the fclose module
10185         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
10186         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
10187         I reproduced the problem with "./gnulib-tool --test close sys_socket".
10188
10189 2011-07-24  Jim Meyering  <meyering@redhat.com>
10190
10191         test-select.h: avoid warning when using gcc's -Wmissing-declarations
10192         * tests/test-select.h (test_function): Declare as "static".
10193
10194 2011-07-24  Bruno Haible  <bruno@clisp.org>
10195
10196         doc: Mention the effects of AC_SYS_LARGEFILE.
10197         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
10198         on this function.
10199         * doc/posix-functions/aio_error.texi: Likewise.
10200         * doc/posix-functions/aio_fsync.texi: Likewise.
10201         * doc/posix-functions/aio_read.texi: Likewise.
10202         * doc/posix-functions/aio_return.texi: Likewise.
10203         * doc/posix-functions/aio_suspend.texi: Likewise.
10204         * doc/posix-functions/aio_write.texi: Likewise.
10205         * doc/posix-functions/fgetpos.texi: Likewise.
10206         * doc/posix-functions/fopen.texi: Likewise.
10207         * doc/posix-functions/freopen.texi: Likewise.
10208         * doc/posix-functions/fsetpos.texi: Likewise.
10209         * doc/posix-functions/fstatvfs.texi: Likewise.
10210         * doc/posix-functions/ftruncate.texi: Likewise.
10211         * doc/posix-functions/ftw.texi: Likewise.
10212         * doc/posix-functions/getrlimit.texi: Likewise.
10213         * doc/posix-functions/glob.texi: Likewise.
10214         * doc/posix-functions/lio_listio.texi: Likewise.
10215         * doc/posix-functions/lockf.texi: Likewise.
10216         * doc/posix-functions/mkstemp.texi: Likewise.
10217         * doc/posix-functions/mmap.texi: Likewise.
10218         * doc/posix-functions/nftw.texi: Likewise.
10219         * doc/posix-functions/openat.texi: Likewise.
10220         * doc/posix-functions/opendir.texi: Likewise.
10221         * doc/posix-functions/posix_fadvise.texi: Likewise.
10222         * doc/posix-functions/posix_fallocate.texi: Likewise.
10223         * doc/posix-functions/pread.texi: Likewise.
10224         * doc/posix-functions/pwrite.texi: Likewise.
10225         * doc/posix-functions/readdir.texi: Likewise.
10226         * doc/posix-functions/readdir_r.texi: Likewise.
10227         * doc/posix-functions/rewinddir.texi: Likewise.
10228         * doc/posix-functions/scandir.texi: Likewise.
10229         * doc/posix-functions/seekdir.texi: Likewise.
10230         * doc/posix-functions/setrlimit.texi: Likewise.
10231         * doc/posix-functions/statvfs.texi: Likewise.
10232         * doc/posix-functions/telldir.texi: Likewise.
10233         * doc/posix-functions/tmpfile.texi: Likewise.
10234         * doc/posix-functions/truncate.texi: Likewise.
10235         * doc/glibc-functions/fallocate.texi: Likewise.
10236         * doc/glibc-functions/fstatfs.texi: Likewise.
10237         * doc/glibc-functions/fts_children.texi: Likewise.
10238         * doc/glibc-functions/fts_read.texi: Likewise.
10239         * doc/glibc-functions/getdirentries.texi: Likewise.
10240         * doc/glibc-functions/mkostemp.texi: Likewise.
10241         * doc/glibc-functions/mkostemps.texi: Likewise.
10242         * doc/glibc-functions/mkstemps.texi: Likewise.
10243         * doc/glibc-functions/preadv.texi: Likewise.
10244         * doc/glibc-functions/pwritev.texi: Likewise.
10245         * doc/glibc-functions/sendfile.texi: Likewise.
10246         * doc/glibc-functions/statfs.texi: Likewise.
10247
10248 2011-07-24  Bruno Haible  <bruno@clisp.org>
10249
10250         doc: Fix typo.
10251         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
10252
10253 2011-07-24  Bruno Haible  <bruno@clisp.org>
10254
10255         doc: Mention fsusage.
10256         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
10257
10258 2011-07-24  Bruno Haible  <bruno@clisp.org>
10259
10260         doc: Mention new glibc headers and functions.
10261         * doc/glibc-headers/gshadow.texi: New file.
10262         * doc/glibc-functions/endsgent.texi: New file.
10263         * doc/glibc-functions/fgetsgent.texi: New file.
10264         * doc/glibc-functions/fgetsgent_r.texi: New file.
10265         * doc/glibc-functions/getsgent.texi: New file.
10266         * doc/glibc-functions/getsgent_r.texi: New file.
10267         * doc/glibc-functions/getsgnam.texi: New file.
10268         * doc/glibc-functions/getsgnam_r.texi: New file.
10269         * doc/glibc-functions/putsgent.texi: New file.
10270         * doc/glibc-functions/setsgent.texi: New file.
10271         * doc/glibc-functions/sgetsgent.texi: New file.
10272         * doc/glibc-functions/sgetsgent_r.texi: New file.
10273         * doc/glibc-functions/malloc_info.texi: New file.
10274         * doc/glibc-functions/preadv.texi: New file.
10275         * doc/glibc-functions/pwritev.texi: New file.
10276         * doc/glibc-functions/register_printf_modifier.texi: New file.
10277         * doc/glibc-functions/register_printf_specifier.texi: New file.
10278         * doc/glibc-functions/register_printf_type.texi: New file.
10279         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
10280         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
10281         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
10282         * doc/glibc-functions/pthread_getname_np.texi: New file.
10283         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
10284         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
10285         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
10286         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
10287         * doc/glibc-functions/pthread_setname_np.texi: New file.
10288         * doc/glibc-functions/pthread_sigqueue.texi: New file.
10289         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
10290         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
10291         * doc/glibc-functions/qsort_r.texi: New file.
10292         * doc/glibc-functions/quick_exit.texi: New file.
10293         * doc/glibc-functions/syncfs.texi: New file.
10294         * doc/gnulib.texi: Include them.
10295         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
10296         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
10297         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
10298         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
10299         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
10300         * doc/glibc-functions/execvpe.texi: Likewise.
10301
10302 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10303
10304         ftell: don't include <unistd.h>
10305         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
10306         guaranteed to define off_t, and the ftell module depends on the
10307         stdio module.
10308
10309         ftell: do not assume wraparound signed arithmetic
10310         * lib/ftell.c: Include <limits.h>.
10311         (ftell): Don't assume wraparound signed arithmetic.
10312
10313 2011-07-24  Bruno Haible  <bruno@clisp.org>
10314
10315         close: No longer depend on module 'fclose'.
10316         * modules/close (Depends-on): Remove fclose.
10317         * NEWS: Mention the change.
10318         Suggested by Sam Steingold <sds@gnu.org>.
10319
10320 2011-07-24  Bruno Haible  <bruno@clisp.org>
10321
10322         fsusage: Enable large volume support on AIX >= 5.2.
10323         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
10324         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
10325         instead of STAT_STATVFS.
10326         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
10327
10328         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
10329         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
10330         f_blocks field only on MacOS X.
10331
10332         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
10333         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
10334         * modules/fsusage (Depends-on): Add largefile.
10335
10336 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10337
10338         * README: Modernize discussion of signed integers.
10339         Assuming overflow wraparound is no longer safe.
10340         Mention ones' complement and signed magnitude.
10341
10342 2011-07-22  Bruno Haible  <bruno@clisp.org>
10343
10344         select tests, pselect tests: Refactor.
10345         * tests/test-select.h: New file, extracted from tests/test-select.c.
10346         (select_fn): New type.
10347         (test, do_select, do_select_nowait, do_select_wait, test_tty,
10348         test_connect_first, test_accept_first, test_pair, test_socket_pair,
10349         test_pipe): Add my_select argument.
10350         (test_function): Renamed from main. Add my_select argument.
10351         * tests/test-select.c: Move most code to tests/test-select.h. Include
10352         test-select.h.
10353         * modules/select-tests (Files): Add tests/test-select.h.
10354         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
10355         (my_select, main): New functions.
10356         * modules/pselect-tests (Files): Add tests/test-select.h,
10357         tests/macros.h, tests/signature.h.
10358         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
10359         (configure.ac): Check for <sys/wait.h>.
10360
10361 2011-07-22  Bruno Haible  <bruno@clisp.org>
10362
10363         sys_select tests: Check the signature of FD_*.
10364         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
10365         signature tests from here...
10366         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
10367         here.
10368         * modules/sys_select-tests (Files): Add tests/signature.h.
10369
10370 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
10371
10372         largefile: new module, replacing large-inode
10373         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
10374         * MODULES.html.sh: Add largefile, remove large-inode.
10375         * modules/largefile, m4/largefile.m4: New files.
10376         * modules/large-inode, m4/large-inode.m4: Remove.
10377
10378         fsusage: port to MacOS X 10.7 with 4 TiB file systems
10379         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
10380         implementations that use only 32 bits to count blocks.
10381         On typical hosts with 1024-byte blocks, this fails with file
10382         systems as small as 4 TiB.  Problem reported by Herb Wartens
10383         <http://debbugs.gnu.org/9140> and this should also fix a similar
10384         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
10385
10386         large-inode: New module
10387         * MODULES.html.sh: Add it.
10388         * modules/large-inode, m4/large-inode.m4: New files.
10389
10390         extensions: Enable extensions on MacOS X 10.5 and later.
10391         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
10392
10393 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
10394
10395         file-has-acl: use acl_extended_file_nofollow if available
10396         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
10397         (acl_extended_file): New macro.
10398         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
10399         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
10400
10401 2011-07-21  Bruno Haible  <bruno@clisp.org>
10402
10403         Declare system functions in a way that works with C++.
10404         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
10405         declare fdopendir as extern "C".
10406         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
10407         declare frexpl as extern "C".
10408         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
10409         declare gai_strerror as extern "C".
10410         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
10411         programs, declare gai_strerror as extern "C".
10412         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
10413         declare getlogin_r as extern "C".
10414         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
10415         as extern "C".
10416         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
10417         declare ldexpl as extern "C".
10418         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
10419         as extern "C".
10420         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
10421         program, declare getmntinfo as extern "C".
10422         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
10423         stpncpy as extern "C".
10424         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
10425         program, declare __xpg_strerror_r as extern "C".
10426         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
10427         strndup as extern "C".
10428         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
10429         declare memset and bzero as extern "C".
10430         Reported by Sam Steingold <sds@gnu.org>.
10431
10432 2011-07-12  Jim Meyering  <meyering@redhat.com>
10433
10434         maint.mk: prohibit inclusion of "verify.h" without use
10435         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
10436
10437 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10438
10439         timer-time: A new module to check for timer_settime()
10440         * m4/timer_time.m4: Check for the posix function.
10441         * modules/timer-time: Add the new module.
10442         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
10443         Mention it.
10444
10445 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
10446             Bruno Haible  <bruno@clisp.org>
10447
10448         pthread_sigmask: assume POSIX threads if --avoid=threadlib
10449         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
10450         not defined, assume POSIX threads and look for pthread_sigmask in
10451         $LIBS, without changing $CPPFLAGS.
10452
10453 2011-07-19  Bruno Haible  <bruno@clisp.org>
10454
10455         strstr: Update cross-compilation guess.
10456         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
10457         CPUs, guess no, in view of glibc
10458         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
10459         Suggested by Eric Blake. Reported by Reuben Thomas.
10460
10461 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10462
10463         getopt-gnu: suppress core dumps from detection code
10464         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
10465         to suppress core dumps that may well occur on glibc systems.
10466         * modules/getopt-gnu: Depend on nocrash.
10467
10468 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
10469
10470         pthread_sigmask: ensure usleep is declared
10471         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
10472         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
10473
10474 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
10475
10476         doc: Document NonStop portability issues.
10477         * doc/posix-functions/sigaction.texi (sigaction):
10478         * doc/posix-headers/signal.texi (signal.h):
10479         Document NonStop.  See Joachim Schmitz in
10480         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
10481
10482 2011-07-15  Bruno Haible  <bruno@clisp.org>
10483
10484         ffsl, ffsll: Avoid unportable behaviour.
10485         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
10486
10487 2011-07-15  Bruno Haible  <bruno@clisp.org>
10488
10489         ffs: More tests.
10490         * tests/test-ffs.c (NBITS): New macro.
10491         (main): Add more tests.
10492         * tests/test-ffsl.c (NBITS): New macro.
10493         (main): Add more tests.
10494         * tests/test-ffsll.c (NBITS): New macro.
10495         (main): Add more tests.
10496
10497 2011-07-15  Eric Blake  <eblake@redhat.com>
10498
10499         ffsl, ffsll: new modules
10500         * modules/ffsl: New file.
10501         * modules/ffsll: Likewise.
10502         * m4/ffsl.m4: Likewise.
10503         * m4/ffsll.m4: Likewise.
10504         * lib/ffsl.c: Likewise.
10505         * lib/ffsl.h: Likewise.
10506         * lib/ffsll.c: Likewise.
10507         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
10508         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
10509         * modules/string (Makefile.am): Substitute witnesses.
10510         * lib/strings.in.h (ffsl, ffsll): Declare.
10511         * modules/ffsl-tests: New test file.
10512         * modules/ffsll-tests: Likewise.
10513         * tests/test-ffsl.c: Likewise.
10514         * tests/test-ffsll.c: Likewise.
10515         * MODULES.html.sh (Integer arithmetic functions): Mention it.
10516         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
10517         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
10518
10519         ffs: fix m4 prerequisite
10520         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
10521
10522         ffs: avoid undefined behavior
10523         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
10524         * tests/test-ffs.c (naive, main): Avoid signed shifts.
10525         Reported by Bruno Haible.
10526
10527 2011-07-12  Bruno Haible  <bruno@clisp.org>
10528
10529         pthread_sigmask: Rely on module 'threadlib'.
10530         * modules/pthread_sigmask (Depends-on): Add threadlib.
10531         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
10532         is defined.
10533
10534 2011-07-12  Bruno Haible  <bruno@clisp.org>
10535
10536         regex: Depend on module 'strcase'.
10537         * modules/regex (Depends-on): Add strcase, for strcasecmp().
10538
10539 2011-07-12  Jim Meyering  <meyering@redhat.com>
10540
10541         warn-on-use: fix typo in file name
10542         * modules/snippet/warn-on-use (Files): Correct file name:
10543         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
10544
10545 2011-07-12  Bruno Haible  <bruno@clisp.org>
10546
10547         strings: Document module.
10548         * doc/posix-headers/strings.texi: Mention module 'strings'.
10549
10550 2011-07-12  Bruno Haible  <bruno@clisp.org>
10551
10552         Rename module '_Noreturn' to 'snippet/_Noreturn'.
10553         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
10554         (Files, Makefile.am): Update.
10555         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
10556         * modules/stdlib (Depends-on): Update.
10557
10558 2011-07-12  Bruno Haible  <bruno@clisp.org>
10559
10560         * NEWS: Mention the changes.
10561
10562         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
10563         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
10564         (Files, Makefile.am): Update.
10565         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
10566         * modules/arpa_inet (Depends-on): Update.
10567         * modules/ctype (Depends-on): Update.
10568         * modules/dirent (Depends-on): Update.
10569         * modules/fcntl-h (Depends-on): Update.
10570         * modules/glob (Depends-on): Update.
10571         * modules/iconv-h (Depends-on): Update.
10572         * modules/inttypes-incomplete (Depends-on): Update.
10573         * modules/langinfo (Depends-on): Update.
10574         * modules/locale (Depends-on): Update.
10575         * modules/math (Depends-on): Update.
10576         * modules/netdb (Depends-on): Update.
10577         * modules/poll-h (Depends-on): Update.
10578         * modules/pty (Depends-on): Update.
10579         * modules/search (Depends-on): Update.
10580         * modules/signal (Depends-on): Update.
10581         * modules/spawn (Depends-on): Update.
10582         * modules/stdio (Depends-on): Update.
10583         * modules/stdlib (Depends-on): Update.
10584         * modules/string (Depends-on): Update.
10585         * modules/strings (Depends-on): Update.
10586         * modules/sys_file (Depends-on): Update.
10587         * modules/sys_ioctl (Depends-on): Update.
10588         * modules/sys_select (Depends-on): Update.
10589         * modules/sys_socket (Depends-on): Update.
10590         * modules/sys_stat (Depends-on): Update.
10591         * modules/sys_time (Depends-on): Update.
10592         * modules/sys_times (Depends-on): Update.
10593         * modules/sys_utsname (Depends-on): Update.
10594         * modules/sys_wait (Depends-on): Update.
10595         * modules/termios (Depends-on): Update.
10596         * modules/time (Depends-on): Update.
10597         * modules/unistd (Depends-on): Update.
10598         * modules/wchar (Depends-on): Update.
10599         * modules/wctype-h (Depends-on): Update.
10600         * MODULES.html.sh (Support for building libraries and executables):
10601         Update.
10602
10603         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
10604         * modules/snippet/unused-parameter: Renamed from
10605         modules/unused-parameter.
10606         (Files, Makefile.am): Update.
10607         * build-aux/snippet/unused-parameter.h: Renamed from
10608         build-aux/unused-parameter.h.
10609         * modules/selinux-h (Depends-on): Update.
10610         * modules/unistr/base (Depends-on): Update.
10611         * MODULES.html.sh (Core language properties): Update.
10612
10613         Rename module 'link-warning' to 'snippet/link-warning'.
10614         * modules/snippet/link-warning: Renamed from modules/link-warning.
10615         (Files, Makefile.am): Update.
10616         * build-aux/snippet/link-warning.h: Renamed from
10617         build-aux/link-warning.h.
10618         * MODULES.html.sh (Support for building libraries and executables):
10619         Update.
10620
10621         Rename module 'c++defs' to 'snippet/c++defs'.
10622         * modules/snippet/c++defs: Renamed from modules/c++defs.
10623         (Files, Makefile.am): Update.
10624         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
10625         * modules/arpa_inet (Depends-on): Update.
10626         * modules/ctype (Depends-on): Update.
10627         * modules/dirent (Depends-on): Update.
10628         * modules/fcntl-h (Depends-on): Update.
10629         * modules/glob (Depends-on): Update.
10630         * modules/iconv-h (Depends-on): Update.
10631         * modules/langinfo (Depends-on): Update.
10632         * modules/locale (Depends-on): Update.
10633         * modules/math (Depends-on): Update.
10634         * modules/netdb (Depends-on): Update.
10635         * modules/poll-h (Depends-on): Update.
10636         * modules/pty (Depends-on): Update.
10637         * modules/search (Depends-on): Update.
10638         * modules/signal (Depends-on): Update.
10639         * modules/spawn (Depends-on): Update.
10640         * modules/stdio (Depends-on): Update.
10641         * modules/stdlib (Depends-on): Update.
10642         * modules/string (Depends-on): Update.
10643         * modules/strings (Depends-on): Update.
10644         * modules/sys_ioctl (Depends-on): Update.
10645         * modules/sys_select (Depends-on): Update.
10646         * modules/sys_socket (Depends-on): Update.
10647         * modules/sys_stat (Depends-on): Update.
10648         * modules/sys_time (Depends-on): Update.
10649         * modules/sys_wait (Depends-on): Update.
10650         * modules/termios (Depends-on): Update.
10651         * modules/time (Depends-on): Update.
10652         * modules/unistd (Depends-on): Update.
10653         * modules/wchar (Depends-on): Update.
10654         * modules/wctype-h (Depends-on): Update.
10655
10656         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
10657         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
10658         (Files, Makefile.am): Update.
10659         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
10660         * modules/argv-iter (Depends-on): Update.
10661         * modules/arpa_inet (Depends-on): Update.
10662         * modules/dirent (Depends-on): Update.
10663         * modules/fcntl-h (Depends-on): Update.
10664         * modules/fnmatch (Depends-on): Update.
10665         * modules/getopt-posix (Depends-on): Update.
10666         * modules/glob (Depends-on): Update.
10667         * modules/iconv-h (Depends-on): Update.
10668         * modules/inttypes-incomplete (Depends-on): Update.
10669         * modules/locale (Depends-on): Update.
10670         * modules/math (Depends-on): Update.
10671         * modules/netdb (Depends-on): Update.
10672         * modules/search (Depends-on): Update.
10673         * modules/signal (Depends-on): Update.
10674         * modules/spawn (Depends-on): Update.
10675         * modules/stdio (Depends-on): Update.
10676         * modules/stdlib (Depends-on): Update.
10677         * modules/string (Depends-on): Update.
10678         * modules/strings (Depends-on): Update.
10679         * modules/sys_socket (Depends-on): Update.
10680         * modules/sys_stat (Depends-on): Update.
10681         * modules/sys_time (Depends-on): Update.
10682         * modules/sys_times (Depends-on): Update.
10683         * modules/sys_utsname (Depends-on): Update.
10684         * modules/time (Depends-on): Update.
10685         * modules/unistd (Depends-on): Update.
10686         * modules/wchar (Depends-on): Update.
10687         * MODULES.html.sh (Support for building libraries and executables):
10688         Update.
10689
10690 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10691
10692         Improvements on _Noreturn and related modules.
10693
10694         modules/_Exit-tests: test _Noreturn too
10695         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
10696         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
10697         (main): Use them.
10698
10699         stdnoreturn, stdnoreturn-tests: remove modules
10700         They're not needed here and a bit premature for use elsewhere.  See
10701         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
10702         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
10703         * tests/test-stdnoreturn.c: Remove files.
10704         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
10705         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
10706         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
10707         and using noreturn.
10708         * modules/openat, modules/sigpipe-die, modules/xalloc:
10709         * modules/xmemdup0, modules/xstrtol:
10710         Remove dependency on stdnoreturn.
10711
10712         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
10713         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
10714         Reparenthesize to avoid GCC warning.
10715         Support Microsoft's syntax.
10716         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
10717
10718         _Noreturn-tests: remove module
10719         * modules/_Noreturn-tests: Remove.
10720         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
10721         * tests/test-_Noreturn.c: Remove.
10722         * tests/test-stdnoreturn.c: Merge from the old
10723         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
10724
10725 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10726
10727         _Noreturn, stdnoreturn, and related modules.
10728
10729         * top/maint.mk: Adjust to new noreturn support.
10730         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
10731         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
10732
10733         xalloc: use stdnoreturn.h
10734         * lib/xalloc.h: Include <stdnoreturn.h>.
10735         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10736         * modules/xalloc (Depends-on): Add stdnoreturn.
10737
10738         xstrtol: use stdnoreturn.h
10739         * lib/xstrtol.h: Include <stdnoreturn.h>.
10740         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10741         * modules/xstrtol (Depends-on): Add stdnoreturn.
10742
10743         xmemdup0: use stdnoreturn.h
10744         * lib/xmemdup0.h: Include <stdnoreturn.h>.
10745         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10746         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
10747
10748         sigpipe-die: use stdnoreturn.h
10749         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
10750         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10751         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
10752
10753         openat: use stdnoreturn.h
10754         * lib/openat.h: Include <stdnoreturn.h>.
10755         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10756         * modules/openat (Depends-on): Add stdnoreturn.
10757
10758         * lib/openat-die.c (openat_save_fail): Modernize comment.
10759
10760         * lib/xalloc-die.c (xalloc_die): Modernize comment.
10761
10762         * lib/glthread/thread.h: Modernize comment.
10763
10764         obstack: use _Noreturn
10765         * lib/obstack.c (__attribute__): Remove macro.
10766         (print_and_abort): Use _Noreturn.
10767
10768         c-stack: use _Noreturn
10769         * lib/c-stack.c (die, overflow_handler, segv_handler):
10770         Use _Noreturn rather than __attribute__((noreturn)).
10771
10772         argmatch-tests, exclude_tests: use _Noreturn
10773         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
10774         Remove.
10775         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
10776
10777         stdlib: use _Noreturn
10778         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
10779         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
10780         * modules/stdlib (Depends-on): Add _Noreturn.
10781         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
10782
10783         stdnoreturn-tests: new module
10784         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
10785
10786         stdnoreturn: new module
10787         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
10788         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
10789
10790         _Noreturn-tests: new module
10791         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
10792
10793         _Noreturn: new module
10794         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
10795         New section, mentioning it.
10796         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
10797
10798         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
10799
10800 2011-07-11  Eric Blake  <eblake@redhat.com>
10801
10802         ffs: new module
10803         * modules/ffs: New file.
10804         * m4/ffs.m4: Likewise.
10805         * lib/ffs.c: Likewise.
10806         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
10807         * modules/strings (Makefile.am): Substitute witness.
10808         (Depends-on): Add c++defs.
10809         * lib/strings.in.h (ffs): Declare.
10810         * modules/ffs-tests: New test file.
10811         * tests/test-ffs.c: Test new module.
10812         * MODULES.html.sh (Integer arithmetic functions): Mention it.
10813         * doc/posix-functions/ffs.texi (ffs): Likewise.
10814
10815         regex: avoid compiler warning
10816         * lib/regex.c (includes): Include <strings.h>, for use of
10817         strcasecmp in regcomp.c.
10818         Reported by Joachim Schmitz.
10819
10820 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
10821
10822         stdint: respect system's intmax_t if INTMAX_MAX
10823         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
10824         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
10825         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
10826         long but int64_t is long long, and where we will clash with the
10827         system intmax_t if we override it.  See
10828         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
10829         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
10830         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
10831         similarly for UINTMAX_C.
10832
10833 2011-07-08  Bruno Haible  <bruno@clisp.org>
10834
10835         pthread_sigmask tests: Avoid a compiler warning.
10836         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
10837         non-zero.
10838
10839         sigprocmask tests: A better way to avoid a compiler warning.
10840         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
10841         (main): Complain if system() returns non-zero.
10842         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
10843
10844 2011-07-08  Bruno Haible  <bruno@clisp.org>
10845
10846         pthread_sigmask: Work around IRIX bug.
10847         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
10848         bug.
10849         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
10850         there may be unblocked pending signals.
10851         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
10852
10853 2011-07-08  Bruno Haible  <bruno@clisp.org>
10854
10855         pthread_sigmask: Work around Cygwin bug.
10856         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
10857         bug.
10858         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
10859         the system's pthread_sigmask function.
10860         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
10861
10862 2011-07-08  Bruno Haible  <bruno@clisp.org>
10863
10864         pthread_sigmask: Work around bug in single-threaded implementation.
10865         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
10866         FreeBSD, HP-UX, Solaris bug.
10867         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
10868         * lib/pthread_sigmask.c: Include <stddef.h>.
10869         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
10870         the system's pthread_sigmask function.
10871         * modules/pthread_sigmask (configure.ac): Invoke
10872         gl_PREREQ_PTHREAD_SIGMASK.
10873         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
10874         HP-UX, Solaris.
10875
10876 2011-07-08  Eric Blake  <eblake@redhat.com>
10877
10878         test-sigprocmask: avoid compiler warning
10879         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
10880         * tests/test-sigprocmask.c (main): Use it to silence warning.
10881         Reported by Jim Meyering.
10882
10883         test-snprintf: avoid compiler warning
10884         * tests/test-snprintf.c (main): Avoid shadowed declaration.
10885         * tests/test-vsnprintf.c (main): Likewise.
10886         Reported by Jim Meyering.
10887
10888 2011-07-08  Bruno Haible  <bruno@clisp.org>
10889
10890         Tests for module 'pthread_sigmask'.
10891         * modules/pthread_sigmask-tests: New file.
10892         * tests/test-pthread_sigmask1.c: New file, based on
10893         tests/test-sigprocmask.c.
10894         * tests/test-pthread_sigmask2.c: New file.
10895
10896 2011-07-08  Jim Meyering  <meyering@redhat.com>
10897
10898         test-getopt.h: avoid warning about an unused variable
10899         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
10900
10901 2011-07-07  Jim Meyering  <meyering@redhat.com>
10902
10903         maint: reduce list of files exempt from sc_prohibit_leading_TABs
10904         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
10905         now that it no longer contains leading TABs.
10906         Remove unused "url=FIXME" statement.
10907
10908 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
10909
10910         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
10911         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
10912         When gl_THREADLIB is not in use, assume that the POSIX sematics
10913         are desired.  This is better for Emacs, which uses POSIX semantics
10914         on GNUish and/or POSIXish platforms, and does not use threads at
10915         all otherwise.
10916
10917         pthread_sigmask: fix typo when testing for libraries
10918         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
10919         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
10920
10921 2011-07-08  Eric Blake  <eblake@redhat.com>
10922
10923         fts: introduce FTS_NOATIME
10924         * lib/fts_.h (FTS_NOATIME): New bit flag.
10925         (FTS_OPTIONMASK): Adjust.
10926         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
10927         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
10928
10929 2011-07-08  Bruno Haible  <bruno@clisp.org>
10930
10931         Tests for module 'thread'.
10932         * modules/thread-tests: New file.
10933         * tests/test-thread_self.c: New file.
10934         * tests/test-thread_create.cc: New file.
10935
10936 2011-07-08  Bruno Haible  <bruno@clisp.org>
10937
10938         thread: Avoid gcc warnings when using gl_thread_self().
10939         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
10940         'void *'.
10941         (gl_thread_self_pointer): Update.
10942
10943 2011-07-07  Bruno Haible  <bruno@clisp.org>
10944
10945         signal-c++-tests: Check declaration of pthread_sigmask.
10946         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
10947         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
10948         $(LIB_PTHREAD_SIGMASK).
10949
10950 2011-07-07  Bruno Haible  <bruno@clisp.org>
10951
10952         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
10953         * lib/signal.in.h (pthread_sigmask): Override if
10954         REPLACE_PTHREAD_SIGMASK is 1.
10955         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
10956         REPLACE_PTHREAD_SIGMASK.
10957         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
10958         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
10959         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
10960         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
10961         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
10962
10963 2011-07-07  Bruno Haible  <bruno@clisp.org>
10964
10965         pthread_sigmask: Ensure declaration in <signal.h>.
10966         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
10967         include <pthread.h>.
10968         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
10969         problem.
10970
10971 2011-07-07  Bruno Haible  <bruno@clisp.org>
10972
10973         pthread_sigmask: Document the module.
10974         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
10975
10976 2011-07-07  Bruno Haible  <bruno@clisp.org>
10977
10978         pthread_sigmask: Follow gnulib conventions.
10979         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
10980         gl_PTHREAD_SIGMASK.
10981         * modules/pthread_sigmask (configure.ac): Update.
10982
10983 2011-07-07  Bruno Haible  <bruno@clisp.org>
10984
10985         pthread_sigmask: Make declaration C++ safe.
10986         * lib/signal.in.h: In two special conditions, just do an #include_next.
10987         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
10988         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
10989         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
10990         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
10991         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
10992         not REPLACE_PTHREAD_MASK.
10993         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
10994         not REPLACE_PTHREAD_MASK.
10995         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
10996
10997 2011-07-07  Bruno Haible  <bruno@clisp.org>
10998
10999         pthread_sigmask: Fix return value.
11000         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
11001         * lib/pthread_sigmask.c: New file.
11002         * modules/pthread_sigmask (Files): Add it.
11003         (configure.ac): Invoke AC_LIBOBJ.
11004
11005 2011-07-07  Eric Blake  <eblake@redhat.com>
11006
11007         getopt: more portable argv creation
11008         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
11009         const, use char arrays rather than strings.
11010         Suggested by Paul Eggert.
11011
11012 2011-07-07  Bruno Haible  <bruno@clisp.org>
11013
11014         Tests for module 'sigprocmask'.
11015         * modules/sigprocmask-tests: New file.
11016         * tests/test-sigprocmask.c: New file.
11017
11018 2011-07-07  Bruno Haible  <bruno@clisp.org>
11019
11020         float tests: Tweak.
11021         * tests/test-float.c (main): Tweak skip message.
11022
11023 2011-07-07  Eric Blake  <eblake@redhat.com>
11024
11025         getopt: avoid compiler warning during configure
11026         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
11027         assigning string literals to non-const pointer.
11028
11029         getopt-gnu: avoid crash in glibc getopt
11030         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
11031         * tests/test-getopt.h (test_getopt): Enhance test.
11032         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11033         * doc/posix-functions/getopt.texi (getopt): Document it.
11034         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11035         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11036         Likewise.
11037
11038 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11039
11040         getopt: handle W; without long options in getopt [BZ #12922]
11041         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
11042         but no long options are defined, just return 'W'.
11043
11044 2011-07-07  Bruno Haible  <bruno@clisp.org>
11045
11046         Avoid literal tabs.
11047         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
11048         variable containing a tab instead of a literal tab.
11049         Reported by Jim Meyering.
11050
11051 2011-07-07  Bruno Haible  <bruno@clisp.org>
11052
11053         Comments.
11054         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
11055
11056 2011-07-06  Bruno Haible  <bruno@clisp.org>
11057
11058         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
11059         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
11060         <winsock2.h>.
11061         (rpl_fd_isset, FD_ISSET): New definitions, copied from
11062         lib/sys_socket.in.h.
11063         (close, gethostname): Hide declarations from <winsock2.h>.
11064         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11065         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
11066         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
11067         (select): Don't override if gnulib's <sys/select.h> was already
11068         included.
11069         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
11070         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
11071         setsockopt, shutdown, select): Tweak indentation.
11072
11073 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11074
11075         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
11076         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
11077         in an application that does not use the sys_select module.
11078
11079 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
11080
11081         poll: do not return 0 on timeout=-1
11082         * lib/poll.c: Loop with yield if no events occured
11083
11084 2011-07-06  Eric Blake  <eblake@redhat.com>
11085
11086         pthread_sigmask: always replace when not using pthread
11087         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
11088         replacement when using some threading other than pthread.  Fix
11089         logic bug.
11090
11091 2011-07-06  Bruno Haible  <bruno@clisp.org>
11092
11093         Comments.
11094         * m4/printf.m4: Update comments about mingw.
11095
11096 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11097
11098         sys_select: define sigset_t more portably
11099         * lib/sys_select.in.h: Always include <sys/types.h>, since
11100         we now need sigset_t and mingw defines it there.
11101         Include <signal.h> before split inclusion guard, to avoid
11102         mishaps on Solaris, whose <signal.h> eventually includes us.
11103         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
11104         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
11105         which come from ...
11106         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
11107         gl_CHECK_TYPE_SIGSET_T.
11108         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
11109         does the real work.
11110         * modules/sys_select (Depends-on): Add 'signal'.
11111
11112         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
11113         Suggested by Bruno Haible.
11114
11115         pselect: Use pthread_sigmask, not sigprocmask.
11116         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
11117         multithreaded apps better than sigprocmask does.
11118         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
11119         sigprocmask directly.
11120
11121 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
11122
11123         * lib/pselect.c (pselect): Use plain name, without "rpl_".
11124         Don't #undef,  since we don't need any underlying pselect.
11125         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
11126         (Depends-on): Add select.
11127         (Link): Add $(LIBSOCKET).
11128         These changes suggested by Bruno Haible.
11129
11130         pselect: document better
11131         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11132         * doc/posix-functions/pselect.texi (pselect): Document new module.
11133
11134         pthread_sigmask: new module
11135         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11136         * doc/posix-functions/pthread_sigmask.texi: Document new module.
11137         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
11138         This is done only as a macro; I don't know how well that'll
11139         work for C++.  Move <sys/types.h> include before the include_next,
11140         to avoid mishap on Solaris.
11141         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
11142         * modules/signal (Makefile.am): Substitute the check's results.
11143         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
11144
11145         test-pselect: new module
11146         * modules/pselect-tests, tests/test-pselect.c: New files.
11147         * tests/test-select.c, tests/test-sys_select-c++.cc:
11148         If TEST_PSELECT is defined, test pselect instead of testing select.
11149
11150         * tests/test-sys_select.c (sigset_t): Test for it, too.
11151         Suggested by Bruno Haible.
11152
11153 2011-07-05  Eric Blake  <eblake@redhat.com>
11154
11155         snprintf: guarantee %1$d, for libintl
11156         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
11157         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
11158         * doc/posix-functions/snprintf.texi (snprintf): Update.
11159         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11160         * tests/test-snprintf.c (main): Enhance test.
11161         * tests/test-vsnprintf.c (main): Likewise.
11162
11163 2011-07-05  Jim Meyering  <meyering@redhat.com>
11164
11165         maint: exempt stdio-read.c and stdio-write.c from the cppi check
11166         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
11167         per Bruno's request, to accommodate this idiom (no space after "#")
11168         even when the function is inside an #if block:
11169         char *
11170         gets (char *s)
11171         #undef gets
11172         {
11173           ...
11174         }
11175
11176 2011-07-04  Jim Meyering  <meyering@redhat.com>
11177
11178         maint: indent with spaces, not TABs, and add a rule to check this
11179         * tests/test-userspec.c: Indent with spaces, not TABs.
11180         * tests/test-argp.c: Likewise.
11181         * tests/test-c-stack2.sh: Likewise.
11182         * tests/test-parse-duration.sh: Likewise
11183         * m4/strtod.m4: Likewise.
11184         * m4/alloca.m4: Likewise.
11185         * m4/pselect.m4: Likewise.
11186         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
11187
11188 2011-07-03  Jim Meyering  <meyering@redhat.com>
11189
11190         maint.mk: correct omissions in prohibit_argmatch_without_use check
11191         This rule would mistakenly report that argmatch.h is included without
11192         use even when both the argmatch and invalid_arg macro were used.
11193         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
11194         of argmatch and invalid_arg.
11195
11196 2011-07-03  Bruno Haible  <bruno@clisp.org>
11197
11198         Comments about EINTR.
11199         * lib/safe-read.h: Explain the purpose of this module.
11200         * lib/safe-write.h: Likewise.
11201         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
11202         module.
11203         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
11204         module.
11205         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11206
11207 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
11208
11209         xnanosleep: Rewrite to use new dtotimespec module.
11210         It has the conversion code that used to be in xnanosleep.
11211         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
11212         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
11213         (TIME_T_MAX): Remove.
11214         (xnanosleep): Rewrite in terms of dtotimespec.
11215         * modules/xnanosleep (Depends-on): Add dtotimespec.
11216         Remove intprops, stdbool.
11217
11218         timespec-add, timespec-sub: new modules
11219         * lib/timespec.h (timespec_add, timespec_sub): New decls.
11220         * lib/timespec-add.c, lib/timespec-sub.c:
11221         * modules/timespec-add, modules/timespec-sub: New files.
11222
11223         dtotimespec: new module
11224         * lib/timespec.h (dtotimespec): New decl.
11225         * lib/dtotimespec.c, modules/dtotimespec: New files.
11226
11227         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
11228
11229         pselect: new module
11230         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
11231         (pselect): New decls.
11232         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
11233         since the standard pselect decl uses 'restrict'.
11234         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
11235         HAVE_PSELECT, REPLACE_PSELECT.
11236         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
11237         HAVE_PSELECT, REPLACE_PSELECT.
11238         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
11239
11240         sys_select: don't depend on sys_socket
11241         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
11242         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
11243         This fix works on GNU and GNU-like platforms, but has not been tested
11244         on native Windows.
11245         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
11246         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
11247         gl_HEADER_SYS_SOCKET.
11248         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
11249         gl_PREREQ_SYS_H_WINSOCK2.
11250
11251 2011-06-29  Eric Blake  <eblake@redhat.com>
11252
11253         pipe2: fix C89 compile problem
11254         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
11255         Reported by Bruno Haible.
11256
11257         pipe, pipe2: don't corrupt fd on error
11258         * lib/pipe.c (pipe): Leave fd unchanged on error.
11259         * lib/pipe2.c (pipe2): Likewise.
11260         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
11261         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
11262
11263 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
11264
11265         mmap-anon: do not use regular expressions inadvertently
11266         * m4/mmap-anon.m4: Remove trailing period from strings sought
11267         in the output.
11268
11269 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
11270
11271         nanosleep: fix integer overflow problem
11272         * lib/nanosleep.c (my_usleep): Don't assume signed integer
11273         arithmetic wraps around on overflow.
11274
11275         nanosleep: simplify carrying
11276         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
11277         first call to the underyling nanosleep, not for the last one.
11278         This doesn't fix any bugs, but it simplifies the computation of
11279         the remaining delay.  Found while auditing integer overflow issues.
11280
11281         dup2: remove test for existence of fcntl
11282         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
11283         "#if HAVE_FCNTL", in the configure-time test program.
11284         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
11285         and therefore speeds up "configure" a bit.  Found while
11286         adding the dup2 module to Emacs.
11287
11288 2011-06-24  Eric Blake  <eblake@redhat.com>
11289
11290         maint.mk: enhance useless header checks
11291         * top/maint.mk (_sc_header_without_use): Check both include
11292         styles.
11293         (sc_prohibit_assert_without_use)
11294         (sc_prohibit_close_stream_without_use)
11295         (sc_prohibit_getopt_without_use)
11296         (sc_prohibit_quotearg_without_use)
11297         (sc_prohibit_quote_without_use)
11298         (sc_prohibit_long_options_without_use)
11299         (sc_prohibit_inttostr_without_use)
11300         (sc_prohibit_ignore_value_without_use)
11301         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
11302         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
11303         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
11304         (sc_prohibit_hash_pjw_without_use)
11305         (sc_prohibit_safe_read_without_use)
11306         (sc_prohibit_argmatch_without_use)
11307         (sc_prohibit_canonicalize_without_use)
11308         (sc_prohibit_root_dev_ino_without_use)
11309         (sc_prohibit_openat_without_use)
11310         (sc_prohibit_c_ctype_without_use)
11311         (sc_prohibit_signal_without_use)
11312         (sc_prohibit_stdio--_without_use)
11313         (sc_prohibit_stdio-safer_without_use)
11314         (sc_prohibit_strings_without_use)
11315         (sc_prohibit_intprops_without_use)
11316         (sc_prohibit_stddef_without_use)
11317         (sc_prohibit_xfreopen_without_use): Update clients.
11318
11319 2011-06-24  Jim Meyering  <meyering@redhat.com>
11320
11321         syntax-check: keep one maint.mk rule in sync with its header
11322         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
11323         of the bug Eric has just fixed, with today's commit 25e4c2ec.
11324         I prefer to avoid temporary files here, so use <(...), but that
11325         is not supported by /bin/sh, so...
11326         (SHELL): Define to /bin/bash.
11327
11328 2011-06-24  Eric Blake  <eblake@redhat.com>
11329
11330         maint.mk: update sc_prohibit_intprops_without_use
11331         * top/maint.mk (_intprops_names): Match recent changes.
11332
11333 2011-06-24  Bruno Haible  <bruno@clisp.org>
11334
11335         strerror-override: No-op tweak.
11336         * lib/strerror-override.h (strerror_override): Reorder conditions,
11337         for consistency with lib/strerror-override.c.
11338
11339 2011-06-23  Eric Blake  <eblake@redhat.com>
11340
11341         maint.mk: test further PATH_MAX issues
11342         * top/maint.mk (sc_prohibit_path_max_array): Rename...
11343         (sc_prohibit_path_max_allocation): ...and also test alloca.
11344         Suggested by Jim Meyering.
11345
11346 2011-06-22  Eric Blake  <eblake@redhat.com>
11347
11348         maint.mk: add syntax-check to avoid char[PATH_MAX]
11349         * top/maint.mk (sc_prohibit_path_max_array): New rule.
11350
11351         stat: be robust to PATH_MAX definition
11352         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
11353         * modules/stat (Depends-on): Add verify.
11354
11355         link: work around IRIX bug
11356         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
11357         * lib/link.c (rpl_link): Work around it.
11358         * tests/test-link.h (test_link): Enhance test.
11359         * doc/posix-functions/link.texi (link): Document the bug.
11360
11361         getopt: silence clang warning
11362         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
11363         dereference.
11364         Reported by Gustavo Martin Domato.
11365
11366 2011-06-22  Jim Meyering  <meyering@redhat.com>
11367
11368         bootstrap: do not insert a blank line into each .gitignore file
11369         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
11370
11371 2011-06-21  Eric Blake  <eblake@redhat.com>
11372
11373         perror: test for output mismatch
11374         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
11375         perror on IRIX.
11376
11377         strerror_r: fix OpenBSD behavior on out-of-range
11378         * lib/strerror_r.c (strerror_r): Always use maximal string.
11379         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11380
11381         strerror_r: fix OpenBSD behavior on 0
11382         * lib/strerror-override.c (strerror_override): Also override 0
11383         when needed.
11384         * lib/strerror-override.h (strerror_override): Likewise.
11385         * lib/strerror.c (strerror): Simplify, now that 0 override is done
11386         earlier.
11387         * lib/strerror_r.c (strerror_r): Likewise.
11388         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
11389         behavior...
11390         (gl_FUNC_STRERROR_0): ...into new macro.
11391         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
11392         is overridden.
11393         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
11394         * modules/strerror-override (Files): Add strerror.m4.
11395         (configure.ac): Also provide override for 0 when needed.
11396         * doc/posix-functions/strerror.texi (strerror): Document this.
11397         * doc/posix-functions/perror.texi (perror): Likewise.
11398
11399         perror: adjust array size
11400         * modules/perror (Depends-on): Add strerror-override.
11401         * lib/perror.c (perror): Use it to avoid magic number.
11402
11403         strerror-override: reduce size
11404         * lib/strerror-override.c (strerror_override): Use fewer lines.
11405
11406 2011-06-20  Bruno Haible  <bruno@clisp.org>
11407
11408         pathmax: Ensure correct value for PATH_MAX on HP-UX.
11409         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
11410
11411 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
11412
11413         alloca: port to compilers that can optimize like GCC 4.6.0
11414         * lib/alloca.c (find_stack_direction): New signature, taken from
11415         Autoconf git.  This works with GCC 4.6.0.  This code should never
11416         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
11417         be used with other compilers that optimize as well as GCC 4.6.0 does.
11418         (alloca): Adjust to new signature.
11419         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
11420         New macro, which patches Autoconf in a similar way.
11421
11422         c-stack: stop worrying about stack direction
11423         * lib/c-stack.c (find_stack_direction): Remove.
11424         (segv_handler): Don't worry about stack direction growth, as it's
11425         too much of a pain to configure this correctly, given how compilers
11426         are optimizing-away our stack-growth detection code.  Instead, assume
11427         that any access to just before or just after the stack is OK.
11428         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
11429         Don't require AC_FUNC_ALLOCA; no longer needed.
11430
11431 2011-06-20  Eric Blake  <eblake@redhat.com>
11432
11433         test-stat: don't allocate PATH_MAX bytes
11434         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
11435         PATH_MAX-sized buffer.
11436         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
11437         * modules/stat-tests (Depends-on): Likewise.
11438         * tests/test-fstatat.c (includes): Drop pathmax.h.
11439         * tests/test-stat.c (includes): Likewise.
11440         Reported by Bruno Haible.
11441
11442 2011-06-20  Bruno Haible  <bruno@clisp.org>
11443
11444         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
11445         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
11446         * lib/float.c: New file.
11447         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
11448         REPLACE_FLOAT_LDBL.
11449         * modules/float (Files): Add lib/float.c.
11450         (configure.ac): Invoke AC_LIBOBJ.
11451         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
11452
11453 2011-06-20  Bruno Haible  <bruno@clisp.org>
11454
11455         Tests for module 'float'.
11456         * modules/float-tests: New file.
11457         * tests/test-float.c: New file.
11458
11459 2011-06-19  Bruno Haible  <bruno@clisp.org>
11460
11461         isinf: Coding style.
11462         * lib/isinf.c: Use GNU coding style.
11463
11464 2011-06-19  Bruno Haible  <bruno@clisp.org>
11465
11466         linkat test: Avoid test failure on AIX 7.1.
11467         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
11468         * tests/test-link.h (test_link): Likewise.
11469
11470 2011-06-19  Bruno Haible  <bruno@clisp.org>
11471
11472         pread test: Avoid test failure on OpenBSD 4.9.
11473         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
11474
11475 2011-06-19  Bruno Haible  <bruno@clisp.org>
11476
11477         sprintf-posix: Fix test failure on AIX 7.1.
11478         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
11479         * doc/posix-functions/dprintf.texi: Mention limited precision problem
11480         on AIX.
11481         * doc/posix-functions/fprintf.texi: Likewise.
11482         * doc/posix-functions/printf.texi: Likewise.
11483         * doc/posix-functions/snprintf.texi: Likewise.
11484         * doc/posix-functions/sprintf.texi: Likewise.
11485         * doc/posix-functions/vdprintf.texi: Likewise.
11486         * doc/posix-functions/vfprintf.texi: Likewise.
11487         * doc/posix-functions/vprintf.texi: Likewise.
11488         * doc/posix-functions/vsnprintf.texi: Likewise.
11489         * doc/posix-functions/vsprintf.texi: Likewise.
11490
11491 2011-06-19  Bruno Haible  <bruno@clisp.org>
11492
11493         roundl-ieee: Fix test failure on AIX 7.1.
11494         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
11495         * doc/posix-functions/roundl.texi: Mention problem with negative
11496         arguments.
11497
11498 2011-06-19  Bruno Haible  <bruno@clisp.org>
11499
11500         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11501         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
11502         * doc/posix-functions/round.texi: Mention problem with negative
11503         arguments.
11504         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
11505
11506 2011-06-19  Bruno Haible  <bruno@clisp.org>
11507
11508         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11509         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
11510         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
11511         * doc/posix-functions/roundf.texi: Mention problem with negative
11512         arguments.
11513         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
11514
11515 2011-06-19  Bruno Haible  <bruno@clisp.org>
11516
11517         ceilf-ieee: Work around bug on MacOS X 10.5.
11518         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
11519
11520         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
11521         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
11522         IEEE compliant, avoid compiler optimizations.
11523         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
11524         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11525         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
11526         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11527         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11528         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11529         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11530         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11531         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11532         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11533
11534 2011-06-19  Bruno Haible  <bruno@clisp.org>
11535
11536         ceilf-ieee: Work around bug on AIX 7.1.
11537         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
11538         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
11539
11540 2011-06-19  Bruno Haible  <bruno@clisp.org>
11541
11542         ceil-ieee: Work around bug on AIX 7.1.
11543         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
11544         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
11545
11546 2011-06-18  Bruno Haible  <bruno@clisp.org>
11547
11548         fsync test: Avoid test failure on MacOS X and AIX.
11549         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
11550         EINVAL.
11551
11552 2011-06-18  Bruno Haible  <bruno@clisp.org>
11553
11554         openat, fdopendir tests: Fix link errors.
11555         * modules/openat-tests (Depends-on): Add progname.
11556         * modules/fdopendir-tests (Depends-on): Likewise.
11557         * tests/test-fchownat.c: Include progname.h.
11558         (main): Call set_program_name.
11559         * tests/test-fstatat.c: Include progname.h.
11560         (main): Call set_program_name.
11561         * tests/test-mkdirat.c: Include progname.h.
11562         (main): Call set_program_name.
11563         * tests/test-openat.c: Include progname.h.
11564         (main): Call set_program_name.
11565         * tests/test-unlinkat.c: Include progname.h.
11566         (main): Call set_program_name.
11567         * tests/test-fdopendir.c: Include progname.h.
11568         (main): Call set_program_name.
11569
11570 2011-06-18  Bruno Haible  <bruno@clisp.org>
11571
11572         Doc update.
11573         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
11574         HP-UX.
11575         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
11576
11577 2011-06-18  Bruno Haible  <bruno@clisp.org>
11578
11579         getcwd tests: Avoid compilation error on HP-UX 11.31.
11580         * modules/getcwd-tests (Depends-on): Add pathmax.
11581         * tests/test-getcwd.c: Include pathmax.h.
11582
11583 2011-06-18  Bruno Haible  <bruno@clisp.org>
11584
11585         isfinite, isinf: Fix link error on AIX 6 and 7.
11586         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
11587         needed, also test the macro with a 'float' argument.
11588         * m4/isinf.m4 (gl_ISINF): Likewise.
11589
11590 2011-06-18  Bruno Haible  <bruno@clisp.org>
11591
11592         getloadavg: Don't clobber LIBS. Regression from previous commit.
11593         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
11594         AC_CHECK_LIB from here...
11595         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
11596         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
11597         gl_func_getloadavg_done.
11598         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11599
11600 2011-06-18  Bruno Haible  <bruno@clisp.org>
11601
11602         clean-temp: Improve documentation.
11603         * lib/clean-temp.h: Explain better how to use this module.
11604         Reported by John Darrington <john@darrington.wattle.id.au>.
11605
11606 2011-06-17  Bruno Haible  <bruno@clisp.org>
11607
11608         pread, pwrite: Avoid cc warning on AIX.
11609         * lib/unistd.in.h (pread): Undefine before defining as a macro.
11610         (pwrite): Likewise.
11611
11612 2011-06-17  Bruno Haible  <bruno@clisp.org>
11613
11614         spawn-pipe tests: Fix link error.
11615         * tests/test-spawn-pipe-child.c: Undefine fprintf.
11616         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11617
11618 2011-06-17  Bruno Haible  <bruno@clisp.org>
11619
11620         Tests: Remove unnecessary dependency.
11621         * modules/canonicalize-tests (Depends-on): Remove progname.
11622         * modules/chown-tests (Depends-on): Likewise.
11623         * modules/dirname-tests (Depends-on): Likewise.
11624         * modules/fdopendir-tests (Depends-on): Likewise.
11625         * modules/fdutimensat-tests (Depends-on): Likewise.
11626         * modules/hash-tests (Depends-on): Likewise.
11627         * modules/lchown-tests (Depends-on): Likewise.
11628         * modules/linkat-tests (Depends-on): Likewise.
11629         * modules/renameat-tests (Depends-on): Likewise.
11630         * modules/spawn-pipe-tests (Depends-on): Likewise.
11631         * modules/utimensat-tests (Depends-on): Likewise.
11632
11633 2011-06-17  Bruno Haible  <bruno@clisp.org>
11634
11635         spawn-pipe tests: Fix link error.
11636         * tests/test-spawn-pipe-child.c: Undefine fflush.
11637
11638 2011-06-17  Bruno Haible  <bruno@clisp.org>
11639
11640         Fix tests link errors.
11641         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
11642         * modules/chown-tests (Makefile.am): Don't link test-chown with
11643         LIBINTL.
11644         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
11645         LIBINTL.
11646         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
11647         LIBINTL.
11648         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
11649         LIBINTL.
11650
11651 2011-06-16  Bruno Haible  <bruno@clisp.org>
11652
11653         crypto/gc-sha1: Fix recent regression.
11654         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
11655         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
11656
11657         crypto/gc-md5: Fix recent regression.
11658         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
11659
11660         crypto/gc-md4: Fix recent regression.
11661         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
11662         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
11663
11664         crypto/gc-arctwo: Fix recent regression.
11665         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
11666         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
11667
11668         crypto/gc-rijndael: Fix recent regression.
11669         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
11670         (configure.ac): Invoke AC_LIBOBJ here.
11671         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
11672         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11673
11674         crypto/gc-hmac-sha1: Fix recent regression.
11675         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
11676         (configure.ac): Invoke AC_LIBOBJ here.
11677         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
11678         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11679
11680         crypto/gc-hmac-md5: Fix recent regression.
11681         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
11682         (configure.ac): Invoke AC_LIBOBJ here.
11683         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
11684         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11685
11686         crypto/gc-des: Fix recent regression.
11687         * modules/crypto/gc-des (Files): Remove m4/des.m4.
11688         (configure.ac): Invoke AC_LIBOBJ here.
11689         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
11690         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11691
11692         crypto/gc-arcfour: Fix recent regression.
11693         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
11694         (configure.ac): Invoke AC_LIBOBJ here.
11695         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
11696         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11697
11698 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
11699
11700         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
11701         After the 2011-05-21 change, this macro requires
11702         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
11703         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
11704
11705 2011-06-16  Bruno Haible  <bruno@clisp.org>
11706
11707         fprintftime: Move AC_LIBOBJ invocations to module description.
11708         * m4/fprintftime.m4: Remove file.
11709         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
11710         (configure.ac): Remove gl_FPRINTFTIME call.
11711         (Makefile.am): Augment lib_SOURCES.
11712         Reported by Jim Meyering.
11713
11714 2011-06-16  Bruno Haible  <bruno@clisp.org>
11715
11716         tmpfile-safer: Finish 2011-05-23 commit.
11717         * m4/stdio-safer.m4: Really remove file.
11718         Reported by Jim Meyering.
11719
11720 2011-06-16  Bruno Haible  <bruno@clisp.org>
11721
11722         syntax-check: Fix typo.
11723         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
11724         printf-posix.m4.
11725         Reported by Jim Meyering.
11726
11727 2011-06-13  Jim Meyering  <meyering@redhat.com>
11728
11729         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
11730         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
11731
11732 2011-05-23  Bruno Haible  <bruno@clisp.org>
11733
11734         yesno: Move AC_LIBOBJ invocations to module description.
11735         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
11736         * modules/yesno (Makefile.am): Augment lib_SOURCES.
11737
11738 2011-05-23  Bruno Haible  <bruno@clisp.org>
11739
11740         xstrtol: Move AC_LIBOBJ invocations to module description.
11741         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
11742         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
11743
11744 2011-05-23  Bruno Haible  <bruno@clisp.org>
11745
11746         xstrtold: Move AC_LIBOBJ invocations to module description.
11747         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
11748         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
11749
11750 2011-05-23  Bruno Haible  <bruno@clisp.org>
11751
11752         xstrtod: Move AC_LIBOBJ invocations to module description.
11753         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
11754         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
11755
11756 2011-05-23  Bruno Haible  <bruno@clisp.org>
11757
11758         xnanosleep: Move AC_LIBOBJ invocations to module description.
11759         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
11760         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
11761
11762 2011-05-23  Bruno Haible  <bruno@clisp.org>
11763
11764         xgetcwd: Move AC_LIBOBJ invocations to module description.
11765         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
11766         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
11767
11768 2011-05-23  Bruno Haible  <bruno@clisp.org>
11769
11770         xalloc: Move AC_LIBOBJ invocations to module description.
11771         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
11772         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
11773
11774 2011-05-23  Bruno Haible  <bruno@clisp.org>
11775
11776         write-any-file: Move AC_LIBOBJ invocations to module description.
11777         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
11778         invocation.
11779         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
11780
11781 2011-05-23  Bruno Haible  <bruno@clisp.org>
11782
11783         utimens: Move AC_LIBOBJ invocations to module description.
11784         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
11785         * modules/utimens (Makefile.am): Augment lib_SOURCES.
11786
11787 2011-05-23  Bruno Haible  <bruno@clisp.org>
11788
11789         utimecmp: Move AC_LIBOBJ invocations to module description.
11790         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
11791         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
11792
11793 2011-05-23  Bruno Haible  <bruno@clisp.org>
11794
11795         userspec: Move AC_LIBOBJ invocations to module description.
11796         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
11797         * modules/userspec (Makefile.am): Augment lib_SOURCES.
11798
11799 2011-05-23  Bruno Haible  <bruno@clisp.org>
11800
11801         unlinkdir: Move AC_LIBOBJ invocations to module description.
11802         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
11803         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
11804
11805 2011-05-23  Bruno Haible  <bruno@clisp.org>
11806
11807         unistd-safer: Move AC_LIBOBJ invocations to module description.
11808         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
11809         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
11810
11811 2011-05-23  Bruno Haible  <bruno@clisp.org>
11812
11813         tempname: Move AC_LIBOBJ invocations to module description.
11814         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
11815         * modules/tempname (Makefile.am): Augment lib_SOURCES.
11816
11817 2011-05-23  Bruno Haible  <bruno@clisp.org>
11818
11819         strftime: Move AC_LIBOBJ invocations to module description.
11820         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
11821         * modules/strftime (Makefile.am): Augment lib_SOURCES.
11822
11823 2011-05-23  Bruno Haible  <bruno@clisp.org>
11824
11825         stdlib-safer: Move AC_LIBOBJ invocations to module description.
11826         * m4/stdlib-safer.m4: Remove file.
11827         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
11828         (configure.ac): Remove gl_STDLIB_SAFER call.
11829         (Makefile.am): Augment lib_SOURCES.
11830
11831 2011-05-23  Bruno Haible  <bruno@clisp.org>
11832
11833         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
11834         * m4/stdio-safer.m4: Remove file.
11835         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
11836         (configure.ac): Remove gl_TMPFILE_SAFER call.
11837         (Makefile.am): Augment lib_SOURCES.
11838
11839 2011-05-23  Bruno Haible  <bruno@clisp.org>
11840
11841         popen-safer: Move AC_LIBOBJ invocations to module description.
11842         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
11843         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
11844         (configure.ac): Remove gl_POPEN_SAFER call.
11845         (Makefile.am): Augment lib_SOURCES.
11846
11847 2011-05-23  Bruno Haible  <bruno@clisp.org>
11848
11849         freopen-safer: Move AC_LIBOBJ invocations to module description.
11850         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
11851         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
11852         (configure.ac): Remove gl_FREOPEN_SAFER call.
11853         (Makefile.am): Augment lib_SOURCES.
11854
11855 2011-05-23  Bruno Haible  <bruno@clisp.org>
11856
11857         fopen-safer: Move AC_LIBOBJ invocations to module description.
11858         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
11859         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
11860         (configure.ac): Remove gl_FOPEN_SAFER call.
11861         (Makefile.am): Augment lib_SOURCES.
11862
11863 2011-05-23  Bruno Haible  <bruno@clisp.org>
11864
11865         crypto/sha512: Move AC_LIBOBJ invocations to module description.
11866         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
11867         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
11868
11869 2011-05-23  Bruno Haible  <bruno@clisp.org>
11870
11871         crypto/sha256: Move AC_LIBOBJ invocations to module description.
11872         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
11873         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
11874
11875 2011-05-23  Bruno Haible  <bruno@clisp.org>
11876
11877         crypto/sha1: Move AC_LIBOBJ invocations to module description.
11878         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
11879         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
11880
11881 2011-05-23  Bruno Haible  <bruno@clisp.org>
11882
11883         settime: Move AC_LIBOBJ invocations to module description.
11884         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
11885         * modules/settime (Makefile.am): Augment lib_SOURCES.
11886
11887 2011-05-23  Bruno Haible  <bruno@clisp.org>
11888
11889         savedir: Move AC_LIBOBJ invocations to module description.
11890         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
11891         * modules/savedir (Makefile.am): Augment lib_SOURCES.
11892
11893 2011-05-23  Bruno Haible  <bruno@clisp.org>
11894
11895         save-cwd: Move AC_LIBOBJ invocations to module description.
11896         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
11897         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
11898
11899 2011-05-23  Bruno Haible  <bruno@clisp.org>
11900
11901         same: Move AC_LIBOBJ invocations to module description.
11902         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
11903         * modules/same (Makefile.am): Augment lib_SOURCES.
11904
11905 2011-05-23  Bruno Haible  <bruno@clisp.org>
11906
11907         safe-write: Move AC_LIBOBJ invocations to module description.
11908         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
11909         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
11910         instead of gl_SAFE_WRITE.
11911         (Makefile.am): Augment lib_SOURCES.
11912
11913 2011-05-23  Bruno Haible  <bruno@clisp.org>
11914
11915         safe-read: Move AC_LIBOBJ invocations to module description.
11916         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
11917         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
11918         of gl_SAFE_READ.
11919         (Makefile.am): Augment lib_SOURCES.
11920
11921 2011-05-23  Bruno Haible  <bruno@clisp.org>
11922
11923         safe-alloc: Move AC_LIBOBJ invocations to module description.
11924         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
11925         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
11926
11927 2011-05-23  Bruno Haible  <bruno@clisp.org>
11928
11929         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
11930         * m4/rijndael.m4: Remove file.
11931         * modules/crypto/rijndael (Files): Remove it.
11932         (configure.ac): Remove gl_RIJNDAEL call.
11933         (Makefile.am): Augment lib_SOURCES.
11934
11935 2011-05-23  Bruno Haible  <bruno@clisp.org>
11936
11937         readtokens: Move AC_LIBOBJ invocations to module description.
11938         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
11939         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
11940
11941 2011-05-23  Bruno Haible  <bruno@clisp.org>
11942
11943         read-file: Move AC_LIBOBJ invocations to module description.
11944         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
11945         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
11946         of gl_FUNC_READ_FILE.
11947         (Makefile.am): Augment lib_SOURCES.
11948
11949 2011-05-23  Bruno Haible  <bruno@clisp.org>
11950
11951         quotearg: Move AC_LIBOBJ invocations to module description.
11952         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
11953         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
11954
11955 2011-05-23  Bruno Haible  <bruno@clisp.org>
11956
11957         quote: Move AC_LIBOBJ invocations to module description.
11958         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
11959         * modules/quote (Makefile.am): Augment lib_SOURCES.
11960
11961 2011-05-23  Bruno Haible  <bruno@clisp.org>
11962
11963         posixver: Move AC_LIBOBJ invocations to module description.
11964         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
11965         * modules/posixver (Makefile.am): Augment lib_SOURCES.
11966
11967 2011-05-23  Bruno Haible  <bruno@clisp.org>
11968
11969         posixtm: Move AC_LIBOBJ invocations to module description.
11970         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
11971         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
11972
11973 2011-05-23  Bruno Haible  <bruno@clisp.org>
11974
11975         physmem: Move AC_LIBOBJ invocations to module description.
11976         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
11977         * modules/physmem (Makefile.am): Augment lib_SOURCES.
11978
11979 2011-05-23  Bruno Haible  <bruno@clisp.org>
11980
11981         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
11982         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
11983         invocation.
11984         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
11985
11986 2011-05-23  Bruno Haible  <bruno@clisp.org>
11987
11988         mpsort: Move AC_LIBOBJ invocations to module description.
11989         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
11990         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
11991
11992 2011-05-23  Bruno Haible  <bruno@clisp.org>
11993
11994         modechange: Move AC_LIBOBJ invocations to module description.
11995         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
11996         * modules/modechange (Makefile.am): Augment lib_SOURCES.
11997
11998 2011-05-23  Bruno Haible  <bruno@clisp.org>
11999
12000         mkdir-p: Move AC_LIBOBJ invocations to module description.
12001         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
12002         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
12003
12004 2011-05-23  Bruno Haible  <bruno@clisp.org>
12005
12006         mkancesdirs: Move AC_LIBOBJ invocations to module description.
12007         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
12008         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
12009
12010 2011-05-23  Bruno Haible  <bruno@clisp.org>
12011
12012         mgetgroups: Move AC_LIBOBJ invocations to module description.
12013         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
12014         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
12015
12016 2011-05-23  Bruno Haible  <bruno@clisp.org>
12017
12018         memxor: Move AC_LIBOBJ invocations to module description.
12019         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
12020         * modules/memxor (Makefile.am): Augment lib_SOURCES.
12021
12022 2011-05-23  Bruno Haible  <bruno@clisp.org>
12023
12024         memcoll: Move AC_LIBOBJ invocations to module description.
12025         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
12026         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
12027
12028 2011-05-23  Bruno Haible  <bruno@clisp.org>
12029
12030         memcasecmp: Move AC_LIBOBJ invocations to module description.
12031         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
12032         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
12033
12034 2011-05-23  Bruno Haible  <bruno@clisp.org>
12035
12036         crypto/md5: Move AC_LIBOBJ invocations to module description.
12037         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
12038         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
12039
12040 2011-05-23  Bruno Haible  <bruno@clisp.org>
12041
12042         crypto/md4: Move AC_LIBOBJ invocations to module description.
12043         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
12044         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
12045
12046 2011-05-23  Bruno Haible  <bruno@clisp.org>
12047
12048         crypto/md2: Move AC_LIBOBJ invocations to module description.
12049         * m4/md2.m4: Remove file.
12050         * modules/crypto/md2 (Files): Remove it.
12051         (configure.ac): Remove gl_MD2 call.
12052         (Makefile.am): Augment lib_SOURCES.
12053
12054 2011-05-23  Bruno Haible  <bruno@clisp.org>
12055
12056         long-options: Move AC_LIBOBJ invocations to module description.
12057         * m4/long-options.m4: Remove file.
12058         * modules/long-options (Files): Remove it.
12059         (configure.ac): Remove gl_LONG_OPTIONS call.
12060         (Makefile.am): Augment lib_SOURCES.
12061
12062 2011-05-23  Bruno Haible  <bruno@clisp.org>
12063
12064         i-ring: Move AC_LIBOBJ invocations to module description.
12065         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
12066         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
12067
12068 2011-05-23  Bruno Haible  <bruno@clisp.org>
12069
12070         idcache: Move AC_LIBOBJ invocations to module description.
12071         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
12072         * modules/idcache (Makefile.am): Augment lib_SOURCES.
12073
12074 2011-05-23  Bruno Haible  <bruno@clisp.org>
12075
12076         human: Move AC_LIBOBJ invocations to module description.
12077         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
12078         * modules/human (Makefile.am): Augment lib_SOURCES.
12079
12080 2011-05-23  Bruno Haible  <bruno@clisp.org>
12081
12082         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
12083         * m4/hmac-sha1.m4: Remove file.
12084         * modules/crypto/hmac-sha1 (Files): Remove it.
12085         (configure.ac): Remove gl_HMAC_SHA1 call.
12086         (Makefile.am): Augment lib_SOURCES.
12087
12088 2011-05-23  Bruno Haible  <bruno@clisp.org>
12089
12090         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
12091         * m4/hmac-md5.m4: Remove file.
12092         * modules/crypto/hmac-md5 (Files): Remove it.
12093         (configure.ac): Remove gl_HMAC_MD5 call.
12094         (Makefile.am): Augment lib_SOURCES.
12095
12096 2011-05-23  Bruno Haible  <bruno@clisp.org>
12097
12098         hash: Move AC_LIBOBJ invocations to module description.
12099         * m4/hash.m4: Remove file.
12100         * modules/hash (Files): Remove it.
12101         (configure.ac): Remove gl_HASH call.
12102         (Makefile.am): Augment lib_SOURCES.
12103
12104 2011-05-23  Bruno Haible  <bruno@clisp.org>
12105
12106         hard-locale: Move AC_LIBOBJ invocations to module description.
12107         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
12108         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
12109
12110 2011-05-23  Bruno Haible  <bruno@clisp.org>
12111
12112         getugroups: Move AC_LIBOBJ invocations to module description.
12113         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
12114         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
12115
12116 2011-05-23  Bruno Haible  <bruno@clisp.org>
12117
12118         gettime: Move AC_LIBOBJ invocations to module description.
12119         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
12120         * modules/gettime (Makefile.am): Augment lib_SOURCES.
12121
12122 2011-05-23  Bruno Haible  <bruno@clisp.org>
12123
12124         getndelim2: Move AC_LIBOBJ invocations to module description.
12125         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
12126         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
12127
12128 2011-05-23  Bruno Haible  <bruno@clisp.org>
12129
12130         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
12131         * m4/gc-pbkdf2-sha1.m4: Remove file.
12132         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
12133         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
12134         (Makefile.am): Augment lib_SOURCES.
12135
12136 2011-05-23  Bruno Haible  <bruno@clisp.org>
12137
12138         fts: Move AC_LIBOBJ invocations to module description.
12139         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
12140         * modules/fts (configure.ac): ... to here.
12141
12142 2011-05-23  Bruno Haible  <bruno@clisp.org>
12143
12144         file-type: Move AC_LIBOBJ invocations to module description.
12145         * m4/file-type.m4: Remove file.
12146         * modules/file-type (Files): Remove it.
12147         (configure.ac): Remove gl_FILE_TYPE call.
12148         (Makefile.am): Augment lib_SOURCES.
12149
12150 2011-05-23  Bruno Haible  <bruno@clisp.org>
12151
12152         filenamecat*: Respect rules for use of AC_LIBOBJ.
12153         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
12154         Remove AC_LIBOBJ invocation.
12155         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
12156         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
12157
12158 2011-05-23  Bruno Haible  <bruno@clisp.org>
12159
12160         filemode: Move AC_LIBOBJ invocations to module description.
12161         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
12162         * modules/filemode (Makefile.am): Augment lib_SOURCES.
12163
12164 2011-05-23  Bruno Haible  <bruno@clisp.org>
12165
12166         openat-safer: Move AC_LIBOBJ invocations to module description.
12167         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
12168         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
12169
12170 2011-05-23  Bruno Haible  <bruno@clisp.org>
12171
12172         fcntl-safer: Move AC_LIBOBJ invocations to module description.
12173         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
12174         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
12175
12176 2011-05-23  Bruno Haible  <bruno@clisp.org>
12177
12178         exclude: Move AC_LIBOBJ invocations to module description.
12179         * m4/exclude.m4: Remove file.
12180         * modules/exclude (Files): Remove it.
12181         (configure.ac): Remove gl_EXCLUDE call.
12182         (Makefile.am): Augment lib_SOURCES.
12183
12184 2011-05-23  Bruno Haible  <bruno@clisp.org>
12185
12186         dirname*: Respect rules for use of AC_LIBOBJ.
12187         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
12188         invocations.
12189         * modules/dirname (Makefile.am): Augment lib_SOURCES.
12190         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
12191
12192 2011-05-23  Bruno Haible  <bruno@clisp.org>
12193
12194         dirent-safer: Move AC_LIBOBJ invocations to module description.
12195         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
12196         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
12197
12198 2011-05-23  Bruno Haible  <bruno@clisp.org>
12199
12200         crypto/des: Move AC_LIBOBJ invocations to module description.
12201         * m4/des.m4: Remove file.
12202         * modules/crypto/des (Files): Remove it.
12203         (configure.ac): Remove gl_DES call.
12204         (Makefile.am): Augment lib_SOURCES.
12205
12206 2011-05-23  Bruno Haible  <bruno@clisp.org>
12207
12208         cycle-check: Move AC_LIBOBJ invocations to module description.
12209         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
12210         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
12211
12212 2011-05-23  Bruno Haible  <bruno@clisp.org>
12213
12214         c-strtold: Move AC_LIBOBJ invocations to module description.
12215         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
12216         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
12217
12218 2011-05-23  Bruno Haible  <bruno@clisp.org>
12219
12220         c-strtod: Move AC_LIBOBJ invocations to module description.
12221         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
12222         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
12223
12224 2011-05-23  Bruno Haible  <bruno@clisp.org>
12225
12226         crc: Move AC_LIBOBJ invocations to module description.
12227         * m4/crc.m4: Remove file.
12228         * modules/crc (Files): Remove it.
12229         (configure.ac): Remove gl_CRC call.
12230         (Makefile.am): Augment lib_SOURCES.
12231
12232 2011-05-23  Bruno Haible  <bruno@clisp.org>
12233
12234         close-stream: Move AC_LIBOBJ invocations to module description.
12235         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
12236         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
12237
12238 2011-05-23  Bruno Haible  <bruno@clisp.org>
12239
12240         closeout: Move AC_LIBOBJ invocations to module description.
12241         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
12242         * modules/closeout (Makefile.am): Augment lib_SOURCES.
12243
12244 2011-05-23  Bruno Haible  <bruno@clisp.org>
12245
12246         closein: Move AC_LIBOBJ invocations to module description.
12247         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
12248         * modules/closein (Makefile.am): Augment lib_SOURCES.
12249
12250 2011-05-23  Bruno Haible  <bruno@clisp.org>
12251
12252         cloexec: Move AC_LIBOBJ invocations to module description.
12253         * m4/cloexec.m4: Remove file.
12254         * modules/cloexec (Files): Remove it.
12255         (configure.ac): Remove gl_CLOEXEC call.
12256         (Makefile.am): Augment lib_SOURCES.
12257
12258 2011-05-23  Bruno Haible  <bruno@clisp.org>
12259
12260         check-version: Move AC_LIBOBJ invocations to module description.
12261         * m4/check-version.m4: Remove file.
12262         * modules/check-version (Files): Remove it.
12263         (configure.ac): Remove gl_CHECK_VERSION call.
12264         (Makefile.am): Augment lib_SOURCES.
12265
12266 2011-05-23  Bruno Haible  <bruno@clisp.org>
12267
12268         chdir-safer: Move AC_LIBOBJ invocations to module description.
12269         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
12270         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
12271
12272 2011-05-23  Bruno Haible  <bruno@clisp.org>
12273
12274         canonicalize: Move AC_LIBOBJ invocations to module description.
12275         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
12276         AC_LIBOBJ invocation.
12277         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
12278
12279 2011-05-23  Bruno Haible  <bruno@clisp.org>
12280
12281         canon-host: Move AC_LIBOBJ invocations to module description.
12282         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
12283         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
12284         instead of gl_CANON_HOST.
12285         (Makefile.am): Augment lib_SOURCES.
12286
12287 2011-05-23  Bruno Haible  <bruno@clisp.org>
12288
12289         backupfile: Move AC_LIBOBJ invocations to module description.
12290         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
12291         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
12292
12293 2011-05-23  Bruno Haible  <bruno@clisp.org>
12294
12295         argmatch: Move AC_LIBOBJ invocations to module description.
12296         * m4/argmatch.m4: Remove file.
12297         * modules/argmatch (Files): Remove it.
12298         (configure.ac): Remove gl_ARGMATCH call.
12299         (Makefile.am): Augment lib_SOURCES.
12300
12301 2011-05-23  Bruno Haible  <bruno@clisp.org>
12302
12303         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
12304         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
12305         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
12306
12307 2011-05-23  Bruno Haible  <bruno@clisp.org>
12308
12309         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
12310         * m4/arcfour.m4: Remove file.
12311         * modules/crypto/arcfour (Files): Remove it.
12312         (configure.ac): Remove gl_ARCFOUR call.
12313         (Makefile.am): Augment lib_SOURCES.
12314
12315 2011-05-22  Bruno Haible  <bruno@clisp.org>
12316
12317         write: Move AC_LIBOBJ invocations to module description.
12318         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
12319         * modules/write (configure.ac): ... to here.
12320
12321 2011-05-22  Bruno Haible  <bruno@clisp.org>
12322
12323         wmemset: Move AC_LIBOBJ invocations to module description.
12324         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
12325         here...
12326         * modules/wmemset (configure.ac): ... to here.
12327
12328 2011-05-22  Bruno Haible  <bruno@clisp.org>
12329
12330         wmemmove: Move AC_LIBOBJ invocations to module description.
12331         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
12332         here...
12333         * modules/wmemmove (configure.ac): ... to here.
12334
12335 2011-05-22  Bruno Haible  <bruno@clisp.org>
12336
12337         wmemcpy: Move AC_LIBOBJ invocations to module description.
12338         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
12339         here...
12340         * modules/wmemcpy (configure.ac): ... to here.
12341
12342 2011-05-22  Bruno Haible  <bruno@clisp.org>
12343
12344         wmemcmp: Move AC_LIBOBJ invocations to module description.
12345         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
12346         here...
12347         * modules/wmemcmp (configure.ac): ... to here.
12348
12349 2011-05-22  Bruno Haible  <bruno@clisp.org>
12350
12351         wmemchr: Move AC_LIBOBJ invocations to module description.
12352         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
12353         here...
12354         * modules/wmemchr (configure.ac): ... to here.
12355
12356 2011-05-22  Bruno Haible  <bruno@clisp.org>
12357
12358         wcswidth: Move AC_LIBOBJ invocations to module description.
12359         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
12360         here...
12361         * modules/wcswidth (configure.ac): ... to here.
12362
12363 2011-05-22  Bruno Haible  <bruno@clisp.org>
12364
12365         wcwidth: Respect rules for use of AC_LIBOBJ.
12366         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
12367         invocation from here...
12368         * modules/wcwidth (configure.ac): ... to here.
12369         (Depends-on): Update conditions.
12370
12371 2011-05-22  Bruno Haible  <bruno@clisp.org>
12372
12373         wctype: Move AC_LIBOBJ invocations to module description.
12374         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
12375         invocation from here...
12376         * modules/wctype (configure.ac): ... to here.
12377         (Depends-on): Update conditions.
12378
12379 2011-05-22  Bruno Haible  <bruno@clisp.org>
12380
12381         wctrans: Move AC_LIBOBJ invocations to module description.
12382         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
12383         invocation from here...
12384         * modules/wctrans (configure.ac): ... to here.
12385
12386 2011-05-22  Bruno Haible  <bruno@clisp.org>
12387
12388         wctomb: Move AC_LIBOBJ invocations to module description.
12389         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
12390         invocations from here...
12391         * modules/wctomb (configure.ac): ... to here.
12392
12393 2011-05-22  Bruno Haible  <bruno@clisp.org>
12394
12395         wctob: Move AC_LIBOBJ invocations to module description.
12396         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
12397         gl_PREREQ_WCTOB invocations from here...
12398         * modules/wctob (configure.ac): ... to here.
12399         (Depends-on): Update conditions.
12400
12401 2011-05-22  Bruno Haible  <bruno@clisp.org>
12402
12403         wcsxfrm: Move AC_LIBOBJ invocations to module description.
12404         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
12405         here...
12406         * modules/wcsxfrm (configure.ac): ... to here.
12407
12408 2011-05-22  Bruno Haible  <bruno@clisp.org>
12409
12410         wcstok: Move AC_LIBOBJ invocations to module description.
12411         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
12412         * modules/wcstok (configure.ac): ... to here.
12413
12414 2011-05-22  Bruno Haible  <bruno@clisp.org>
12415
12416         wcsstr: Move AC_LIBOBJ invocations to module description.
12417         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
12418         * modules/wcsstr (configure.ac): ... to here.
12419
12420 2011-05-22  Bruno Haible  <bruno@clisp.org>
12421
12422         wcsspn: Move AC_LIBOBJ invocations to module description.
12423         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
12424         * modules/wcsspn (configure.ac): ... to here.
12425
12426 2011-05-22  Bruno Haible  <bruno@clisp.org>
12427
12428         wcsrtombs: Move AC_LIBOBJ invocations to module description.
12429         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
12430         gl_PREREQ_WCSRTOMBS invocations from here...
12431         * modules/wcsrtombs (configure.ac): ... to here.
12432
12433 2011-05-22  Bruno Haible  <bruno@clisp.org>
12434
12435         wcsrchr: Move AC_LIBOBJ invocations to module description.
12436         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
12437         here...
12438         * modules/wcsrchr (configure.ac): ... to here.
12439
12440 2011-05-22  Bruno Haible  <bruno@clisp.org>
12441
12442         wcspbrk: Move AC_LIBOBJ invocations to module description.
12443         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
12444         here...
12445         * modules/wcspbrk (configure.ac): ... to here.
12446
12447 2011-05-22  Bruno Haible  <bruno@clisp.org>
12448
12449         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
12450         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
12451         gl_PREREQ_WCSNRTOMBS invocations from here...
12452         * modules/wcsnrtombs (configure.ac): ... to here.
12453
12454 2011-05-22  Bruno Haible  <bruno@clisp.org>
12455
12456         wcsnlen: Move AC_LIBOBJ invocations to module description.
12457         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
12458         here...
12459         * modules/wcsnlen (configure.ac): ... to here.
12460
12461 2011-05-22  Bruno Haible  <bruno@clisp.org>
12462
12463         wcsncpy: Move AC_LIBOBJ invocations to module description.
12464         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
12465         here...
12466         * modules/wcsncpy (configure.ac): ... to here.
12467
12468 2011-05-22  Bruno Haible  <bruno@clisp.org>
12469
12470         wcsncmp: Move AC_LIBOBJ invocations to module description.
12471         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
12472         here...
12473         * modules/wcsncmp (configure.ac): ... to here.
12474
12475 2011-05-22  Bruno Haible  <bruno@clisp.org>
12476
12477         wcsncat: Move AC_LIBOBJ invocations to module description.
12478         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
12479         here...
12480         * modules/wcsncat (configure.ac): ... to here.
12481
12482 2011-05-22  Bruno Haible  <bruno@clisp.org>
12483
12484         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
12485         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
12486         from here...
12487         * modules/wcsncasecmp (configure.ac): ... to here.
12488
12489 2011-05-22  Bruno Haible  <bruno@clisp.org>
12490
12491         wcslen: Move AC_LIBOBJ invocations to module description.
12492         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
12493         * modules/wcslen (configure.ac): ... to here.
12494
12495 2011-05-22  Bruno Haible  <bruno@clisp.org>
12496
12497         wcsdup: Move AC_LIBOBJ invocations to module description.
12498         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
12499         * modules/wcsdup (configure.ac): ... to here.
12500
12501 2011-05-22  Bruno Haible  <bruno@clisp.org>
12502
12503         wcscspn: Move AC_LIBOBJ invocations to module description.
12504         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
12505         here...
12506         * modules/wcscspn (configure.ac): ... to here.
12507
12508 2011-05-22  Bruno Haible  <bruno@clisp.org>
12509
12510         wcscpy: Move AC_LIBOBJ invocations to module description.
12511         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
12512         * modules/wcscpy (configure.ac): ... to here.
12513
12514 2011-05-22  Bruno Haible  <bruno@clisp.org>
12515
12516         wcscoll: Move AC_LIBOBJ invocations to module description.
12517         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
12518         here...
12519         * modules/wcscoll (configure.ac): ... to here.
12520
12521 2011-05-22  Bruno Haible  <bruno@clisp.org>
12522
12523         wcscmp: Move AC_LIBOBJ invocations to module description.
12524         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
12525         * modules/wcscmp (configure.ac): ... to here.
12526
12527 2011-05-22  Bruno Haible  <bruno@clisp.org>
12528
12529         wcschr: Move AC_LIBOBJ invocations to module description.
12530         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
12531         * modules/wcschr (configure.ac): ... to here.
12532
12533 2011-05-22  Bruno Haible  <bruno@clisp.org>
12534
12535         wcscat: Move AC_LIBOBJ invocations to module description.
12536         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
12537         * modules/wcscat (configure.ac): ... to here.
12538
12539 2011-05-22  Bruno Haible  <bruno@clisp.org>
12540
12541         wcscasecmp: Move AC_LIBOBJ invocations to module description.
12542         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
12543         here...
12544         * modules/wcscasecmp (configure.ac): ... to here.
12545
12546 2011-05-22  Bruno Haible  <bruno@clisp.org>
12547
12548         wcrtomb: Move AC_LIBOBJ invocations to module description.
12549         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
12550         invocations from here...
12551         * modules/wcrtomb (configure.ac): ... to here.
12552
12553 2011-05-22  Bruno Haible  <bruno@clisp.org>
12554
12555         wcpncpy: Move AC_LIBOBJ invocations to module description.
12556         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
12557         here...
12558         * modules/wcpncpy (configure.ac): ... to here.
12559
12560 2011-05-22  Bruno Haible  <bruno@clisp.org>
12561
12562         wcpcpy: Move AC_LIBOBJ invocations to module description.
12563         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
12564         * modules/wcpcpy (configure.ac): ... to here.
12565
12566 2011-05-22  Bruno Haible  <bruno@clisp.org>
12567
12568         waitpid: Move AC_LIBOBJ invocations to module description.
12569         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
12570         invocation from here...
12571         * modules/waitpid (configure.ac): ... to here.
12572
12573 2011-05-22  Bruno Haible  <bruno@clisp.org>
12574
12575         utimensat: Move AC_LIBOBJ invocations to module description.
12576         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
12577         here...
12578         * modules/utimensat (configure.ac): ... to here.
12579
12580 2011-05-22  Bruno Haible  <bruno@clisp.org>
12581
12582         usleep: Move AC_LIBOBJ invocations to module description.
12583         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
12584         here...
12585         * modules/usleep (configure.ac): ... to here.
12586
12587 2011-05-22  Bruno Haible  <bruno@clisp.org>
12588
12589         unlockpt: Move AC_LIBOBJ invocations to module description.
12590         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
12591         gl_PREREQ_UNLOCKPT invocations from here...
12592         * modules/unlockpt (configure.ac): ... to here.
12593
12594 2011-05-22  Bruno Haible  <bruno@clisp.org>
12595
12596         unlink: Respect rules for use of AC_LIBOBJ.
12597         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
12598         * modules/unlink (configure.ac): ... to here.
12599
12600 2011-05-22  Bruno Haible  <bruno@clisp.org>
12601
12602         uname: Move AC_LIBOBJ invocations to module description.
12603         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
12604         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
12605         here...
12606         * modules/uname (configure.ac): ... to here.
12607
12608 2011-05-22  Bruno Haible  <bruno@clisp.org>
12609
12610         ttyname_r: Move AC_LIBOBJ invocations to module description.
12611         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
12612         gl_PREREQ_TTYNAME_R invocations from here...
12613         * modules/ttyname_r (configure.ac): ... to here.
12614
12615 2011-05-22  Bruno Haible  <bruno@clisp.org>
12616
12617         tsearch: Move AC_LIBOBJ invocations to module description.
12618         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
12619         invocations from here...
12620         * modules/tsearch (configure.ac): ... to here.
12621
12622 2011-05-22  Bruno Haible  <bruno@clisp.org>
12623
12624         towctrans: Move AC_LIBOBJ invocations to module description.
12625         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
12626         AC_LIBOBJ invocation from here...
12627         * modules/towctrans (configure.ac): ... to here.
12628
12629 2011-05-22  Bruno Haible  <bruno@clisp.org>
12630
12631         tmpfile: Move AC_LIBOBJ invocations to module description.
12632         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
12633         invocations from here...
12634         * modules/tmpfile (configure.ac): ... to here.
12635
12636 2011-05-22  Bruno Haible  <bruno@clisp.org>
12637
12638         times: Move AC_LIBOBJ invocations to module description.
12639         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
12640         * modules/times (configure.ac): ... to here.
12641
12642 2011-05-22  Bruno Haible  <bruno@clisp.org>
12643
12644         time_r: Move AC_LIBOBJ invocations to module description.
12645         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
12646         invocations from here...
12647         * modules/time_r (configure.ac): ... to here.
12648
12649 2011-05-22  Bruno Haible  <bruno@clisp.org>
12650
12651         timegm: Move AC_LIBOBJ invocations to module description.
12652         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
12653         invocations from here...
12654         * modules/timegm (configure.ac): ... to here.
12655
12656 2011-05-22  Bruno Haible  <bruno@clisp.org>
12657
12658         tcgetsid: Move AC_LIBOBJ invocations to module description.
12659         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
12660         and gl_PREREQ_TCGETSID invocations from here...
12661         * modules/tcgetsid (configure.ac): ... to here.
12662         (Depends-on): Update conditions.
12663
12664 2011-05-22  Bruno Haible  <bruno@clisp.org>
12665
12666         symlinkat: Move AC_LIBOBJ invocations to module description.
12667         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
12668         here...
12669         * modules/symlinkat (configure.ac): ... to here.
12670
12671 2011-05-22  Bruno Haible  <bruno@clisp.org>
12672
12673         symlink: Move AC_LIBOBJ invocations to module description.
12674         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
12675         here...
12676         * modules/symlink (configure.ac): ... to here.
12677
12678 2011-05-22  Bruno Haible  <bruno@clisp.org>
12679
12680         strverscmp: Move AC_LIBOBJ invocations to module description.
12681         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
12682         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
12683         from here...
12684         * modules/strverscmp (configure.ac): ... to here.
12685
12686 2011-05-22  Bruno Haible  <bruno@clisp.org>
12687
12688         strtok_r: Move AC_LIBOBJ invocations to module description.
12689         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
12690         and gl_PREREQ_STRTOK_R invocations from here...
12691         * modules/strtok_r (configure.ac): ... to here.
12692         (Depends-on): Update conditions.
12693
12694 2011-05-22  Bruno Haible  <bruno@clisp.org>
12695
12696         strtoumax: Move AC_LIBOBJ invocations to module description.
12697         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
12698         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
12699         from here...
12700         * modules/strtoumax (configure.ac): ... to here.
12701
12702 2011-05-22  Bruno Haible  <bruno@clisp.org>
12703
12704         strtoimax: Move AC_LIBOBJ invocations to module description.
12705         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
12706         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
12707         from here...
12708         * modules/strtoimax (configure.ac): ... to here.
12709
12710 2011-05-22  Bruno Haible  <bruno@clisp.org>
12711
12712         strtoull: Move AC_LIBOBJ invocations to module description.
12713         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
12714         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
12715         from here...
12716         * modules/strtoull (configure.ac): ... to here.
12717
12718 2011-05-22  Bruno Haible  <bruno@clisp.org>
12719
12720         strtoll: Move AC_LIBOBJ invocations to module description.
12721         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
12722         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
12723         here...
12724         * modules/strtoll (configure.ac): ... to here.
12725
12726 2011-05-22  Bruno Haible  <bruno@clisp.org>
12727
12728         strtoul: Move AC_LIBOBJ invocations to module description.
12729         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
12730         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
12731         * modules/strtoul (configure.ac): ... to here.
12732
12733 2011-05-22  Bruno Haible  <bruno@clisp.org>
12734
12735         strtol: Move AC_LIBOBJ invocations to module description.
12736         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
12737         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
12738         * modules/strtol (configure.ac): ... to here.
12739
12740 2011-05-22  Bruno Haible  <bruno@clisp.org>
12741
12742         strtod: Move AC_LIBOBJ invocations to module description.
12743         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
12744         invocations from here...
12745         * modules/strtod (configure.ac): ... to here.
12746
12747 2011-05-22  Bruno Haible  <bruno@clisp.org>
12748
12749         strstr*: Move AC_LIBOBJ invocations to module description.
12750         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
12751         invocations from here...
12752         * modules/strstr-simple (configure.ac): ... to here.
12753         * modules/strstr (configure.ac): ... and here.
12754
12755 2011-05-22  Bruno Haible  <bruno@clisp.org>
12756
12757         strsignal: Move AC_LIBOBJ invocations to module description.
12758         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
12759         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
12760         * modules/strsignal (configure.ac): ... to here.
12761         (Depends-on): Update conditions.
12762
12763 2011-05-22  Bruno Haible  <bruno@clisp.org>
12764
12765         strsep: Move AC_LIBOBJ invocations to module description.
12766         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
12767         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
12768         here...
12769         * modules/strsep (configure.ac): ... to here.
12770
12771 2011-05-22  Bruno Haible  <bruno@clisp.org>
12772
12773         strptime: Move AC_LIBOBJ invocations to module description.
12774         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
12775         gl_PREREQ_STRPTIME invocations from here...
12776         * modules/strptime (configure.ac): ... to here.
12777
12778 2011-05-22  Bruno Haible  <bruno@clisp.org>
12779
12780         strpbrk: Move AC_LIBOBJ invocations to module description.
12781         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
12782         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
12783         here...
12784         * modules/strpbrk (configure.ac): ... to here.
12785
12786 2011-05-22  Bruno Haible  <bruno@clisp.org>
12787
12788         strnlen: Move AC_LIBOBJ invocations to module description.
12789         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
12790         invocations from here...
12791         * modules/strnlen (configure.ac): ... to here.
12792
12793 2011-05-22  Bruno Haible  <bruno@clisp.org>
12794
12795         strndup: Move AC_LIBOBJ invocations to module description.
12796         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
12797         invocations from here...
12798         * modules/strndup (configure.ac): ... to here.
12799         (Depends-on): Update conditions.
12800
12801 2011-05-22  Bruno Haible  <bruno@clisp.org>
12802
12803         strncat: Move AC_LIBOBJ invocations to module description.
12804         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
12805         invocations from here...
12806         * modules/strncat (configure.ac): ... to here.
12807
12808 2011-05-22  Bruno Haible  <bruno@clisp.org>
12809
12810         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
12811         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
12812         invocations from here...
12813         * modules/strdup (configure.ac): ... to here.
12814         * modules/strdup-posix (configure.ac): ... and here.
12815
12816 2011-05-22  Bruno Haible  <bruno@clisp.org>
12817
12818         strcspn: Move AC_LIBOBJ invocations to module description.
12819         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
12820         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
12821         here...
12822         * modules/strcspn (configure.ac): ... to here.
12823
12824 2011-05-22  Bruno Haible  <bruno@clisp.org>
12825
12826         strchrnul: Move AC_LIBOBJ invocations to module description.
12827         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
12828         gl_PREREQ_STRCHRNUL invocations from here...
12829         * modules/strchrnul (configure.ac): ... to here.
12830
12831 2011-05-22  Bruno Haible  <bruno@clisp.org>
12832
12833         strcasestr*: Move AC_LIBOBJ invocations to module description.
12834         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
12835         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
12836         * modules/strcasestr-simple (configure.ac): ... to here.
12837         * modules/strcasestr (configure.ac): ... and here.
12838
12839 2011-05-22  Bruno Haible  <bruno@clisp.org>
12840
12841         strcase: Move AC_LIBOBJ invocations to module description.
12842         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
12843         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
12844         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
12845         gl_PREREQ_STRNCASECMP invocations from here...
12846         * modules/strcase (configure.ac): ... to here.
12847
12848 2011-05-22  Bruno Haible  <bruno@clisp.org>
12849
12850         stpncpy: Move AC_LIBOBJ invocations to module description.
12851         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
12852         here...
12853         * modules/stpncpy (configure.ac): ... to here.
12854
12855 2011-05-22  Bruno Haible  <bruno@clisp.org>
12856
12857         stpcpy: Move AC_LIBOBJ invocations to module description.
12858         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
12859         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
12860         here...
12861         * modules/stpcpy (configure.ac): ... to here.
12862
12863 2011-05-21  Bruno Haible  <bruno@clisp.org>
12864
12865         stat: Move AC_LIBOBJ invocations to module description.
12866         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
12867         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
12868         here...
12869         * modules/stat (configure.ac): ... to here.
12870
12871 2011-05-21  Bruno Haible  <bruno@clisp.org>
12872
12873         sleep: Move AC_LIBOBJ invocations to module description.
12874         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
12875         * modules/sleep (configure.ac): ... to here.
12876
12877 2011-05-21  Bruno Haible  <bruno@clisp.org>
12878
12879         signbit: Move AC_LIBOBJ invocations to module description.
12880         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
12881         * modules/signbit (configure.ac): ... to here.
12882
12883 2011-05-21  Bruno Haible  <bruno@clisp.org>
12884
12885         sigprocmask: Move AC_LIBOBJ invocations to module description.
12886         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
12887         gl_PREREQ_SIGPROMASK invocations from here...
12888         * modules/sigprocmask (configure.ac): ... to here.
12889
12890 2011-05-21  Bruno Haible  <bruno@clisp.org>
12891
12892         sigaction: Move AC_LIBOBJ invocations to module description.
12893         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
12894         gl_PREREQ_SIGACTION invocations from here...
12895         * modules/sigaction (configure.ac): ... to here.
12896
12897 2011-05-21  Bruno Haible  <bruno@clisp.org>
12898
12899         sig2str: Move AC_LIBOBJ invocations to module description.
12900         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
12901         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
12902         here...
12903         * modules/sig2str (configure.ac): ... to here.
12904
12905 2011-05-21  Bruno Haible  <bruno@clisp.org>
12906
12907         setlocale: Move AC_LIBOBJ invocations to module description.
12908         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
12909         gl_PREREQ_SETLOCALE invocations from here...
12910         * modules/setlocale (configure.ac): ... to here.
12911
12912 2011-05-21  Bruno Haible  <bruno@clisp.org>
12913
12914         unsetenv: Move AC_LIBOBJ invocations to module description.
12915         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
12916         and gl_PREREQ_UNSETENV invocations from here...
12917         * modules/unsetenv (configure.ac): ... to here.
12918         (Depends-on): Update.
12919
12920 2011-05-21  Bruno Haible  <bruno@clisp.org>
12921
12922         setenv: Move AC_LIBOBJ invocations to module description.
12923         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
12924         here...
12925         * modules/setenv (configure.ac): ... to here.
12926
12927 2011-05-21  Bruno Haible  <bruno@clisp.org>
12928
12929         selinux-h: Move AC_LIBOBJ invocations to module description.
12930         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
12931         AC_LIBOBJ invocation from here...
12932         * modules/selinux-h (configure.ac): ... to here.
12933
12934 2011-05-21  Bruno Haible  <bruno@clisp.org>
12935
12936         select: Respect rules for use of AC_LIBOBJ.
12937         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
12938         here...
12939         * modules/select (configure.ac): ... to here.
12940
12941 2011-05-21  Bruno Haible  <bruno@clisp.org>
12942
12943         scandir: Move AC_LIBOBJ invocations to module description.
12944         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
12945         invocations from here...
12946         * modules/scandir (configure.ac): ... to here.
12947
12948 2011-05-21  Bruno Haible  <bruno@clisp.org>
12949
12950         rpmatch: Move AC_LIBOBJ invocations to module description.
12951         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
12952         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
12953         here...
12954         * modules/rpmatch (configure.ac): ... to here.
12955
12956 2011-05-21  Bruno Haible  <bruno@clisp.org>
12957
12958         rmdir: Respect rules for use of AC_LIBOBJ.
12959         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
12960         * modules/rmdir (configure.ac): ... to here.
12961
12962 2011-05-21  Bruno Haible  <bruno@clisp.org>
12963
12964         renameat: Move AC_LIBOBJ invocations to module description.
12965         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
12966         here...
12967         * modules/renameat (configure.ac): ... to here.
12968
12969 2011-05-21  Bruno Haible  <bruno@clisp.org>
12970
12971         rename: Respect rules for use of AC_LIBOBJ.
12972         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
12973         here...
12974         * modules/rename (configure.ac): ... to here.
12975
12976 2011-05-21  Bruno Haible  <bruno@clisp.org>
12977
12978         remove: Move AC_LIBOBJ invocations to module description.
12979         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
12980         here...
12981         * modules/remove (configure.ac): ... to here.
12982
12983 2011-05-21  Bruno Haible  <bruno@clisp.org>
12984
12985         relocatable-lib: Move AC_LIBOBJ invocations to module description.
12986         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
12987         macro.
12988         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
12989         * modules/relocatable-lib (configure.ac): ... to here.
12990         * modules/relocatable-prog-wrapper (configure.ac): Invoke
12991         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
12992
12993 2011-05-21  Bruno Haible  <bruno@clisp.org>
12994
12995         relocatable-prog: Move AC_LIBOBJ invocations to module description.
12996         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
12997         here...
12998         * modules/relocatable-prog (configure.ac): ... to here.
12999
13000 2011-05-21  Bruno Haible  <bruno@clisp.org>
13001
13002         regex: Move AC_LIBOBJ invocations to module description.
13003         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
13004         invocations from here...
13005         * modules/regex (configure.ac): ... to here.
13006
13007 2011-05-21  Bruno Haible  <bruno@clisp.org>
13008
13009         realloc-*: Move AC_LIBOBJ invocations to module description.
13010         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
13011         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
13012         AC_LIBOBJ invocations from here...
13013         * modules/realloc-gnu (configure.ac): ... to here.
13014         * modules/realloc-posix (configure.ac): ... and here.
13015
13016 2011-05-21  Bruno Haible  <bruno@clisp.org>
13017
13018         readutmp: Move AC_LIBOBJ invocations to module description.
13019         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
13020         * modules/readutmp (configure.ac): ... to here.
13021
13022 2011-05-21  Bruno Haible  <bruno@clisp.org>
13023
13024         readlinkat: Move AC_LIBOBJ invocations to module description.
13025         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
13026         here...
13027         * modules/readlinkat (configure.ac): ... to here.
13028
13029 2011-05-21  Bruno Haible  <bruno@clisp.org>
13030
13031         readlink: Move AC_LIBOBJ invocations to module description.
13032         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
13033         gl_PREREQ_READLINK invocations from here...
13034         * modules/readlink (configure.ac): ... to here.
13035
13036 2011-05-21  Bruno Haible  <bruno@clisp.org>
13037
13038         readline: Move AC_LIBOBJ invocations to module description.
13039         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
13040         gl_PREREQ_READLINE invocations from here...
13041         * modules/readline (configure.ac): ... to here.
13042
13043 2011-05-21  Bruno Haible  <bruno@clisp.org>
13044
13045         read: Move AC_LIBOBJ invocations to module description.
13046         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
13047         * modules/read (configure.ac): ... to here.
13048
13049 2011-05-21  Bruno Haible  <bruno@clisp.org>
13050
13051         rawmemchr: Move AC_LIBOBJ invocations to module description.
13052         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
13053         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
13054         from here...
13055         * modules/rawmemchr (configure.ac): ... to here.
13056
13057 2011-05-21  Bruno Haible  <bruno@clisp.org>
13058
13059         random_r: Move AC_LIBOBJ invocations to module description.
13060         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
13061         gl_PREREQ_RANDOM_R invocations from here...
13062         * modules/random_r (configure.ac): ... to here.
13063
13064 2011-05-21  Bruno Haible  <bruno@clisp.org>
13065
13066         pwrite: Move AC_LIBOBJ invocations to module description.
13067         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
13068         * modules/pwrite (configure.ac): ... to here.
13069
13070 2011-05-21  Bruno Haible  <bruno@clisp.org>
13071
13072         putenv: Move AC_LIBOBJ invocations to module description.
13073         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
13074         * modules/putenv (configure.ac): ... to here.
13075
13076 2011-05-21  Bruno Haible  <bruno@clisp.org>
13077
13078         login_tty: Move AC_LIBOBJ invocations to module description.
13079         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
13080         * modules/login_tty (configure.ac): ... to here.
13081
13082 2011-05-21  Bruno Haible  <bruno@clisp.org>
13083
13084         openpty: Move AC_LIBOBJ invocations to module description.
13085         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
13086         * modules/openpty (configure.ac): ... to here.
13087
13088 2011-05-21  Bruno Haible  <bruno@clisp.org>
13089
13090         forkpty: Move AC_LIBOBJ invocations to module description.
13091         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
13092         * modules/forkpty (configure.ac): ... to here.
13093
13094 2011-05-21  Bruno Haible  <bruno@clisp.org>
13095
13096         ptsname: Move AC_LIBOBJ invocations to module description.
13097         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
13098         invocations from here...
13099         * modules/ptsname (configure.ac): ... to here.
13100
13101 2011-05-21  Bruno Haible  <bruno@clisp.org>
13102
13103         pread: Move AC_LIBOBJ invocations to module description.
13104         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
13105         * modules/pread (configure.ac): ... to here.
13106
13107 2011-05-21  Bruno Haible  <bruno@clisp.org>
13108
13109         posix_spawn*: Move AC_LIBOBJ invocations to module description.
13110         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
13111         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
13112         * modules/posix_spawn (configure.ac): ... to here.
13113         * modules/posix_spawnp (configure.ac): ... and here.
13114
13115 2011-05-21  Bruno Haible  <bruno@clisp.org>
13116
13117         popen: Move AC_LIBOBJ invocations to module description.
13118         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
13119         invocations from here...
13120         * modules/popen (configure.ac): ... to here.
13121
13122 2011-05-21  Bruno Haible  <bruno@clisp.org>
13123
13124         poll: Move AC_LIBOBJ invocations to module description.
13125         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
13126         invocations from here...
13127         * modules/poll (configure.ac): ... to here.
13128
13129 2011-05-21  Bruno Haible  <bruno@clisp.org>
13130
13131         pipe-posix: Move AC_LIBOBJ invocations to module description.
13132         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
13133         * modules/pipe-posix (configure.ac): ... to here.
13134
13135 2011-05-21  Bruno Haible  <bruno@clisp.org>
13136
13137         openat: Respect rules for use of AC_LIBOBJ.
13138         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
13139         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13140         * modules/openat (configure.ac): ... to here.
13141
13142 2011-05-21  Bruno Haible  <bruno@clisp.org>
13143
13144         obstack-printf*: Move AC_LIBOBJ invocations to module description.
13145         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
13146         invocation from here...
13147         * modules/obstack-printf (configure.ac): ... to here.
13148         * modules/obstack-printf-posix (configure.ac): ... and here.
13149
13150 2011-05-21  Bruno Haible  <bruno@clisp.org>
13151
13152         nl_langinfo: Move AC_LIBOBJ invocations to module description.
13153         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
13154         from here...
13155         * modules/nl_langinfo (configure.ac): ... to here.
13156
13157 2011-05-21  Bruno Haible  <bruno@clisp.org>
13158
13159         nanosleep: Move AC_LIBOBJ invocations to module description.
13160         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
13161         gl_PREREQ_NANOSLEEP invocations from here...
13162         * modules/nanosleep (configure.ac): ... to here.
13163
13164 2011-05-21  Bruno Haible  <bruno@clisp.org>
13165
13166         mountlist: Move AC_LIBOBJ invocations to module description.
13167         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
13168         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
13169         * modules/mountlist (configure.ac): ... to here.
13170
13171 2011-05-21  Bruno Haible  <bruno@clisp.org>
13172
13173         mktime: Respect rules for use of AC_LIBOBJ.
13174         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
13175         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
13176         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
13177         (gl_FUNC_MKTIME_INTERNAL): ... and here...
13178         * modules/mktime (configure.ac): ... to here.
13179         * modules/mktime-internal (configure.ac): ... and here.
13180         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
13181
13182 2011-05-21  Bruno Haible  <bruno@clisp.org>
13183
13184         mkstemps: Move AC_LIBOBJ invocations to module description.
13185         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
13186         here...
13187         * modules/mkstemps (configure.ac): ... to here.
13188
13189 2011-05-21  Bruno Haible  <bruno@clisp.org>
13190
13191         mkstemp: Move AC_LIBOBJ invocations to module description.
13192         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
13193         gl_PREREQ_MKSTEMP invocations from here...
13194         * modules/mkstemp (configure.ac): ... to here.
13195
13196 2011-05-21  Bruno Haible  <bruno@clisp.org>
13197
13198         mkostemps: Move AC_LIBOBJ invocations to module description.
13199         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
13200         here...
13201         * modules/mkostemps (configure.ac): ... to here.
13202
13203 2011-05-21  Bruno Haible  <bruno@clisp.org>
13204
13205         mkostemp: Move AC_LIBOBJ invocations to module description.
13206         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
13207         gl_PREREQ_MKOSTEMP invocations from here...
13208         * modules/mkostemp (configure.ac): ... to here.
13209
13210 2011-05-21  Bruno Haible  <bruno@clisp.org>
13211
13212         mknod: Move AC_LIBOBJ invocations to module description.
13213         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
13214         * modules/mknod (configure.ac): ... to here.
13215
13216 2011-05-21  Bruno Haible  <bruno@clisp.org>
13217
13218         mkfifoat: Move AC_LIBOBJ invocations to module description.
13219         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
13220         here...
13221         * modules/mkfifoat (configure.ac): ... to here.
13222
13223 2011-05-21  Bruno Haible  <bruno@clisp.org>
13224
13225         mkfifo: Respect rules for use of AC_LIBOBJ.
13226         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
13227         here...
13228         * modules/mkfifo (configure.ac): ... to here.
13229
13230 2011-05-21  Bruno Haible  <bruno@clisp.org>
13231
13232         mkdtemp: Move AC_LIBOBJ invocations to module description.
13233         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
13234         invocations from here...
13235         * modules/mkdtemp (configure.ac): ... to here.
13236
13237 2011-05-21  Bruno Haible  <bruno@clisp.org>
13238
13239         mkdir: Move AC_LIBOBJ invocations to module description.
13240         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
13241         * modules/mkdir (configure.ac): ... to here.
13242
13243 2011-05-21  Bruno Haible  <bruno@clisp.org>
13244
13245         memset: Move AC_LIBOBJ invocations to module description.
13246         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
13247         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
13248         here...
13249         * modules/memset (configure.ac): ... to here.
13250
13251 2011-05-21  Bruno Haible  <bruno@clisp.org>
13252
13253         memrchr: Move AC_LIBOBJ invocations to module description.
13254         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
13255         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
13256         here...
13257         * modules/memrchr (configure.ac): ... to here.
13258
13259 2011-05-21  Bruno Haible  <bruno@clisp.org>
13260
13261         mempcpy: Move AC_LIBOBJ invocations to module description.
13262         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
13263         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
13264         here...
13265         * modules/mempcpy (configure.ac): ... to here.
13266
13267 2011-05-21  Bruno Haible  <bruno@clisp.org>
13268
13269         memmove: Move AC_LIBOBJ invocations to module description.
13270         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
13271         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
13272         here...
13273         * modules/memmove (configure.ac): ... to here.
13274
13275 2011-05-21  Bruno Haible  <bruno@clisp.org>
13276
13277         memmem*: Move AC_LIBOBJ invocations to module description.
13278         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
13279         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
13280         here...
13281         (gl_FUNC_MEMMEM): ... and here...
13282         * modules/memmem-simple (configure.ac): ... to here.
13283         * modules/memmem (configure.ac): ... and here.
13284
13285 2011-05-21  Bruno Haible  <bruno@clisp.org>
13286
13287         memcpy: Move AC_LIBOBJ invocations to module description.
13288         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
13289         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
13290         here...
13291         * modules/memcpy (configure.ac): ... to here.
13292
13293 2011-05-21  Bruno Haible  <bruno@clisp.org>
13294
13295         memcmp: Simplify autoconf macro.
13296         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
13297         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
13298         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
13299
13300 2011-05-21  Bruno Haible  <bruno@clisp.org>
13301
13302         memcmp: Move AC_LIBOBJ invocations to module description.
13303         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
13304         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
13305         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
13306         * modules/memcmp (configure.ac): ... to here.
13307         (Depends-on): Update conditions.
13308
13309 2011-05-21  Bruno Haible  <bruno@clisp.org>
13310
13311         memchr: Respect rules for use of AC_LIBOBJ.
13312         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
13313         invocations from here...
13314         * modules/memchr (configure.ac): ... to here.
13315
13316 2011-05-21  Bruno Haible  <bruno@clisp.org>
13317
13318         mbtowc: Move AC_LIBOBJ invocations to module description.
13319         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
13320         invocations from here...
13321         * modules/mbtowc (configure.ac): ... to here.
13322
13323 2011-05-21  Bruno Haible  <bruno@clisp.org>
13324
13325         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
13326         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
13327         gl_PREREQ_MBSRTOWCS invocations from here...
13328         * modules/mbsrtowcs (configure.ac): ... to here.
13329
13330 2011-05-21  Bruno Haible  <bruno@clisp.org>
13331
13332         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
13333         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
13334         gl_PREREQ_MBSNRTOWCS invocations from here...
13335         * modules/mbsnrtowcs (configure.ac): ... to here.
13336
13337 2011-05-21  Bruno Haible  <bruno@clisp.org>
13338
13339         mbsinit: Move AC_LIBOBJ invocations to module description.
13340         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
13341         invocations from here...
13342         * modules/mbsinit (configure.ac): ... to here.
13343
13344 2011-05-21  Bruno Haible  <bruno@clisp.org>
13345
13346         mbrlen: Move AC_LIBOBJ invocations to module description.
13347         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
13348         invocations from here...
13349         * modules/mbrlen (configure.ac): ... to here.
13350
13351 2011-05-21  Bruno Haible  <bruno@clisp.org>
13352
13353         mbrtowc: Respect rules for use of AC_LIBOBJ.
13354         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
13355         invocations from here...
13356         * modules/mbrtowc (configure.ac): ... to here.
13357
13358 2011-05-21  Bruno Haible  <bruno@clisp.org>
13359
13360         malloc-*: Move AC_LIBOBJ invocations to module description.
13361         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
13362         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
13363         AC_LIBOBJ invocations from here...
13364         * modules/malloc-gnu (configure.ac): ... to here.
13365         * modules/malloc-posix (configure.ac): ... and here.
13366
13367 2011-05-21  Bruno Haible  <bruno@clisp.org>
13368
13369         lstat, openat: Respect rules for use of AC_LIBOBJ.
13370         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
13371         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
13372         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
13373         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
13374         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
13375         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
13376         here.
13377         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
13378
13379 2011-05-21  Bruno Haible  <bruno@clisp.org>
13380
13381         lseek: Move AC_LIBOBJ invocations to module description.
13382         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
13383         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
13384         * modules/lseek (configure.ac): ... to here.
13385
13386 2011-05-21  Bruno Haible  <bruno@clisp.org>
13387
13388         linkat: Move AC_LIBOBJ invocations to module description.
13389         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
13390         here...
13391         * modules/linkat (configure.ac): ... to here.
13392
13393 2011-05-21  Bruno Haible  <bruno@clisp.org>
13394
13395         link: Respect rules for use of AC_LIBOBJ.
13396         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
13397         * modules/link (configure.ac): ... to here.
13398
13399 2011-05-21  Bruno Haible  <bruno@clisp.org>
13400
13401         lchown: Move AC_LIBOBJ invocations to module description.
13402         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
13403         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13404         * modules/lchown (configure.ac): ... to here.
13405
13406 2011-05-21  Bruno Haible  <bruno@clisp.org>
13407
13408         iswctype: Move AC_LIBOBJ invocations to module description.
13409         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
13410         here...
13411         * modules/iswctype (configure.ac): ... to here.
13412
13413 2011-05-21  Bruno Haible  <bruno@clisp.org>
13414
13415         iswblank: Move AC_LIBOBJ invocations to module description.
13416         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
13417         here...
13418         * modules/iswblank (configure.ac): ... to here.
13419
13420 2011-05-21  Bruno Haible  <bruno@clisp.org>
13421
13422         atanl: Move AC_LIBOBJ invocations to module description.
13423         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
13424         * modules/atanl (configure.ac): ... to here.
13425
13426 2011-05-21  Bruno Haible  <bruno@clisp.org>
13427
13428         acosl: Move AC_LIBOBJ invocations to module description.
13429         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
13430         * modules/acosl (configure.ac): ... to here.
13431
13432 2011-05-21  Bruno Haible  <bruno@clisp.org>
13433
13434         asinl: Respect rules for use of AC_LIBOBJ.
13435         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
13436         * modules/asinl (configure.ac): ... to here.
13437
13438 2011-05-21  Bruno Haible  <bruno@clisp.org>
13439
13440         tanl: Move AC_LIBOBJ invocations to module description.
13441         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
13442         * modules/tanl (configure.ac): ... to here.
13443
13444 2011-05-21  Bruno Haible  <bruno@clisp.org>
13445
13446         cosl: Move AC_LIBOBJ invocations to module description.
13447         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
13448         * modules/cosl (configure.ac): ... to here.
13449
13450 2011-05-21  Bruno Haible  <bruno@clisp.org>
13451
13452         sinl: Move AC_LIBOBJ invocations to module description.
13453         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
13454         * modules/sinl (configure.ac): ... to here.
13455
13456 2011-05-21  Bruno Haible  <bruno@clisp.org>
13457
13458         logl: Move AC_LIBOBJ invocations to module description.
13459         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
13460         * modules/logl (configure.ac): ... to here.
13461
13462 2011-05-21  Bruno Haible  <bruno@clisp.org>
13463
13464         expl: Move AC_LIBOBJ invocations to module description.
13465         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
13466         * modules/expl (configure.ac): ... to here.
13467
13468 2011-05-21  Bruno Haible  <bruno@clisp.org>
13469
13470         roundl: Move AC_LIBOBJ invocations to module description.
13471         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
13472         * modules/roundl (configure.ac): ... to here.
13473
13474 2011-05-21  Bruno Haible  <bruno@clisp.org>
13475
13476         round: Move AC_LIBOBJ invocations to module description.
13477         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
13478         * modules/round (configure.ac): ... to here.
13479
13480 2011-05-21  Bruno Haible  <bruno@clisp.org>
13481
13482         roundf: Move AC_LIBOBJ invocations to module description.
13483         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
13484         * modules/roundf (configure.ac): ... to here.
13485
13486 2011-05-21  Bruno Haible  <bruno@clisp.org>
13487
13488         truncl: Move AC_LIBOBJ invocations to module description.
13489         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
13490         * modules/truncl (configure.ac): ... to here.
13491
13492 2011-05-21  Bruno Haible  <bruno@clisp.org>
13493
13494         trunc: Move AC_LIBOBJ invocations to module description.
13495         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
13496         * modules/trunc (configure.ac): ... to here.
13497
13498 2011-05-21  Bruno Haible  <bruno@clisp.org>
13499
13500         truncf: Move AC_LIBOBJ invocations to module description.
13501         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
13502         * modules/truncf (configure.ac): ... to here.
13503
13504 2011-05-21  Bruno Haible  <bruno@clisp.org>
13505
13506         ceill: Move AC_LIBOBJ invocations to module description.
13507         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
13508         * modules/ceill (configure.ac): ... to here.
13509
13510 2011-05-21  Bruno Haible  <bruno@clisp.org>
13511
13512         ceil: Move AC_LIBOBJ invocations to module description.
13513         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
13514         * modules/ceil (configure.ac): ... to here.
13515
13516 2011-05-21  Bruno Haible  <bruno@clisp.org>
13517
13518         ceilf: Move AC_LIBOBJ invocations to module description.
13519         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
13520         * modules/ceilf (configure.ac): ... to here.
13521
13522 2011-05-21  Bruno Haible  <bruno@clisp.org>
13523
13524         floorl: Respect rules for use of AC_LIBOBJ.
13525         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
13526         * modules/floorl (configure.ac): ... to here.
13527
13528 2011-05-21  Bruno Haible  <bruno@clisp.org>
13529
13530         floor: Respect rules for use of AC_LIBOBJ.
13531         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
13532         * modules/floor (configure.ac): ... to here.
13533
13534 2011-05-21  Bruno Haible  <bruno@clisp.org>
13535
13536         floorf: Move AC_LIBOBJ invocations to module description.
13537         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
13538         * modules/floorf (configure.ac): ... to here.
13539
13540 2011-05-20  Bruno Haible  <bruno@clisp.org>
13541
13542         sqrtl: Respect rules for use of AC_LIBOBJ.
13543         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
13544         * modules/sqrtl (configure.ac): ... to here.
13545
13546 2011-05-20  Bruno Haible  <bruno@clisp.org>
13547
13548         ldexpl: Respect rules for use of AC_LIBOBJ.
13549         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
13550         * modules/ldexpl (configure.ac): ... to here.
13551
13552 2011-05-20  Bruno Haible  <bruno@clisp.org>
13553
13554         frexpl*: Respect rules for use of AC_LIBOBJ.
13555         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
13556         invocation from here...
13557         * modules/frexpl (configure.ac): ... to here.
13558         * modules/frexpl-nolibm (configure.ac): ... and here.
13559
13560 2011-05-20  Bruno Haible  <bruno@clisp.org>
13561
13562         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
13563         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
13564         invocation from here...
13565         * modules/frexp (configure.ac): ... to here.
13566         * modules/frexp-nolibm (configure.ac): ... and here.
13567
13568 2011-05-20  Bruno Haible  <bruno@clisp.org>
13569
13570         isnan: Respect rules for use of AC_LIBOBJ.
13571         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
13572         invocations here.
13573         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
13574         REPLACE_ISNAN.
13575         * modules/isnand (configure.ac): Likewise.
13576         * modules/isnanl (configure.ac): Likewise.
13577
13578 2011-05-20  Bruno Haible  <bruno@clisp.org>
13579
13580         isnanl*: Respect rules for use of AC_LIBOBJ.
13581         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
13582         invocation from here...
13583         * modules/isnanl (configure.ac): ... to here.
13584         * modules/isnanl-nolibm (configure.ac): ... and here.
13585
13586 2011-05-20  Bruno Haible  <bruno@clisp.org>
13587
13588         isnand*: Move AC_LIBOBJ invocations to module description.
13589         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
13590         invocation from here...
13591         * modules/isnand (configure.ac): ... to here.
13592         * modules/isnand-nolibm (configure.ac): ... and here.
13593
13594 2011-05-20  Bruno Haible  <bruno@clisp.org>
13595
13596         isnanf*: Move AC_LIBOBJ invocations to module description.
13597         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
13598         invocation from here...
13599         * modules/isnanf (configure.ac): ... to here.
13600         * modules/isnanf-nolibm (configure.ac): ... and here.
13601
13602 2011-05-20  Bruno Haible  <bruno@clisp.org>
13603
13604         isnan*: Separate the AC_LIBOBJ invocations.
13605         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
13606         AC_LIBOBJ invocation.
13607         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
13608         here.
13609         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
13610         AC_LIBOBJ invocation.
13611         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
13612         here.
13613         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
13614         AC_LIBOBJ invocation.
13615         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
13616         here.
13617         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
13618
13619 2011-05-08  Bruno Haible  <bruno@clisp.org>
13620
13621         isinf: Move AC_LIBOBJ invocations to module description.
13622         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
13623         * modules/isinf (configure.ac): ... to here.
13624
13625 2011-05-08  Bruno Haible  <bruno@clisp.org>
13626
13627         isfinite: Move AC_LIBOBJ invocations to module description.
13628         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
13629         * modules/isfinite (configure.ac): ... to here.
13630
13631 2011-05-08  Bruno Haible  <bruno@clisp.org>
13632
13633         isblank: Move AC_LIBOBJ invocations to module description.
13634         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
13635         here...
13636         * modules/isblank (configure.ac): ... to here.
13637
13638 2011-05-08  Bruno Haible  <bruno@clisp.org>
13639
13640         isapipe: Move AC_LIBOBJ invocations to module description.
13641         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
13642         gl_PREREQ_ISAPIPE invocations from here...
13643         * modules/isapipe (configure.ac): ... to here.
13644         (Depends-on): Update condition.
13645
13646 2011-05-08  Bruno Haible  <bruno@clisp.org>
13647
13648         ioctl: Move AC_LIBOBJ invocations to module description.
13649         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
13650         invocations from here...
13651         * modules/ioctl (configure.ac): ... to here.
13652         (Depends-on): Update condition.
13653
13654 2011-05-08  Bruno Haible  <bruno@clisp.org>
13655
13656         imaxdiv: Move AC_LIBOBJ invocations to module description.
13657         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
13658         invocations from here...
13659         * modules/imaxdiv (configure.ac): ... to here.
13660
13661 2011-05-08  Bruno Haible  <bruno@clisp.org>
13662
13663         imaxabs: Move AC_LIBOBJ invocations to module description.
13664         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
13665         invocations from here...
13666         * modules/imaxabs (configure.ac): ... to here.
13667
13668 2011-05-08  Bruno Haible  <bruno@clisp.org>
13669
13670         getaddrinfo: Move AC_LIBOBJ invocations to module description.
13671         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
13672         AC_LIBOBJ invocations from here...
13673         * modules/getaddrinfo (configure.ac): ... to here.
13674         (Depends-on): Add conditions.
13675
13676 2011-05-08  Bruno Haible  <bruno@clisp.org>
13677
13678         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13679         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
13680         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13681         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
13682         (gl_PREREQ_INET_PTON): ... from here.
13683         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
13684         gl_PREREQ_INET_PTON here.
13685         (Depends-on): Update condition.
13686
13687 2011-05-08  Bruno Haible  <bruno@clisp.org>
13688
13689         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13690         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
13691         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13692         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
13693         (gl_PREREQ_INET_NTOP): ... from here.
13694         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
13695         gl_PREREQ_INET_NTOP here.
13696         (Depends-on): Update condition.
13697
13698 2011-05-08  Bruno Haible  <bruno@clisp.org>
13699
13700         iconv_open: Move AC_LIBOBJ invocations to module description.
13701         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
13702         AC_LIBOBJ invocations from here...
13703         * modules/iconv_open (configure.ac): ... to here.
13704
13705 2011-05-08  Bruno Haible  <bruno@clisp.org>
13706
13707         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
13708         If module 'iconv_open' is among the main modules and module
13709         'iconv_open-utf' is among the tests dependencies, then
13710         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
13711         return the special iconv_t values. Therefore iconv() and iconv_close()
13712         must support these special iconv_t values, already in lib, not only in
13713         tests.
13714         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
13715         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
13716         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
13717         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
13718         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
13719         (Depends-on): Add the dependencies of iconv_open-utf.
13720         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
13721         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
13722         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
13723
13724 2011-05-08  Bruno Haible  <bruno@clisp.org>
13725
13726         group-member: Move AC_LIBOBJ invocations to module description.
13727         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
13728         gl_PREREQ_GROUP_MEMBER invocations from here...
13729         * modules/group-member (configure.ac): ... to here.
13730
13731 2011-05-08  Bruno Haible  <bruno@clisp.org>
13732
13733         grantpt: Move AC_LIBOBJ invocations to module description.
13734         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
13735         invocations from here...
13736         * modules/grantpt (configure.ac): ... to here.
13737
13738 2011-05-08  Bruno Haible  <bruno@clisp.org>
13739
13740         glob: Move AC_LIBOBJ invocations to module description.
13741         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
13742         from here...
13743         * modules/glob (configure.ac): ... to here.
13744
13745 2011-05-08  Bruno Haible  <bruno@clisp.org>
13746
13747         getusershell: Move AC_LIBOBJ invocations to module description.
13748         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
13749         Move AC_LIBOBJ invocation from here...
13750         * modules/getusershell (configure.ac): ... to here.
13751         (Depends-on): Update condition.
13752
13753 2011-05-08  Bruno Haible  <bruno@clisp.org>
13754
13755         gettimeofday: Move AC_LIBOBJ invocations to module description.
13756         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
13757         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
13758         gl_PREREQ_GETTIMEOFDAY invocations from here...
13759         * modules/gettimeofday (configure.ac): ... to here.
13760
13761 2011-05-08  Bruno Haible  <bruno@clisp.org>
13762
13763         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
13764         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
13765         just gl_FUNC_TZSET.
13766         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
13767         (gl_FUNC_TZSET_CLOBBER): Remove actions.
13768         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
13769         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
13770
13771 2011-05-08  Bruno Haible  <bruno@clisp.org>
13772
13773         getsubopt: Move AC_LIBOBJ invocations to module description.
13774         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
13775         gl_PREREQ_GETSUBOPT invocations from here...
13776         * modules/getsubopt (configure.ac): ... to here.
13777
13778 2011-05-08  Bruno Haible  <bruno@clisp.org>
13779
13780         getpass-gnu: Move AC_LIBOBJ invocations to module description.
13781         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
13782         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
13783         * modules/getpass-gnu (configure.ac): ... to here.
13784
13785 2011-05-08  Bruno Haible  <bruno@clisp.org>
13786
13787         getpass: Move AC_LIBOBJ invocations to module description.
13788         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
13789         gl_PREREQ_GETPASS invocations from here...
13790         * modules/getpass (configure.ac): ... to here.
13791
13792 2011-05-08  Bruno Haible  <bruno@clisp.org>
13793
13794         getpagesize: Move AC_LIBOBJ invocations to module description.
13795         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
13796         from here...
13797         * modules/getpagesize (configure.ac): ... to here.
13798
13799 2011-05-08  Bruno Haible  <bruno@clisp.org>
13800
13801         getopt: Move AC_LIBOBJ invocations to module description.
13802         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
13803         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
13804         invocations from here...
13805         * modules/getopt-gnu (configure.ac): ... to here.
13806         * modules/getopt-posix (configure.ac): ... and here.
13807         (Depends-on): Update condition.
13808
13809 2011-05-08  Bruno Haible  <bruno@clisp.org>
13810
13811         getopt, argp: Respect rules for use of AC_LIBOBJ.
13812         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
13813         (gl_REPLACE_GETOPT_ALWAYS): New macro.
13814         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
13815         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
13816
13817 2011-05-08  Bruno Haible  <bruno@clisp.org>
13818
13819         getlogin_r: Move AC_LIBOBJ invocations to module description.
13820         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
13821         gl_PREREQ_GETLOGIN_R invocations from here...
13822         * modules/getlogin_r (configure.ac): ... to here.
13823
13824 2011-05-08  Bruno Haible  <bruno@clisp.org>
13825
13826         getlogin: Move AC_LIBOBJ invocations to module description.
13827         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
13828         here...
13829         * modules/getlogin (configure.ac): ... to here.
13830
13831 2011-05-08  Bruno Haible  <bruno@clisp.org>
13832
13833         getloadavg: Move AC_LIBOBJ invocations to module description.
13834         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
13835         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
13836         * modules/getloadavg (configure.ac): ... to here.
13837
13838 2011-05-08  Bruno Haible  <bruno@clisp.org>
13839
13840         gethrxtime: Move AC_LIBOBJ invocations to module description.
13841         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
13842         LIB_GETHRXTIME from here...
13843         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
13844         invocations from here...
13845         * modules/gethrxtime (configure.ac): ... to here.
13846
13847 2011-05-08  Bruno Haible  <bruno@clisp.org>
13848
13849         gethostname: Move AC_LIBOBJ invocations to module description.
13850         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
13851         gl_PREREQ_GETHOSTNAME invocations from here...
13852         * modules/gethostname (configure.ac): ... to here.
13853
13854 2011-05-08  Bruno Haible  <bruno@clisp.org>
13855
13856         getgroups: Move AC_LIBOBJ invocations to module description.
13857         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
13858         here...
13859         * modules/getgroups (configure.ac): ... to here.
13860
13861 2011-05-08  Bruno Haible  <bruno@clisp.org>
13862
13863         getdtablesize: Move AC_LIBOBJ invocations to module description.
13864         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
13865         invocation from here...
13866         * modules/getdtablesize (configure.ac): ... to here.
13867
13868 2011-05-08  Bruno Haible  <bruno@clisp.org>
13869
13870         getdomainname: Move AC_LIBOBJ invocations to module description.
13871         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
13872         gl_PREREQ_GETDOMAINNAME invocations from here...
13873         * modules/getdomainname (configure.ac): ... to here.
13874
13875 2011-05-08  Bruno Haible  <bruno@clisp.org>
13876
13877         getline: Move AC_LIBOBJ invocations to module description.
13878         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
13879         invocations from here...
13880         * modules/getline (configure.ac): ... to here.
13881
13882 2011-05-08  Bruno Haible  <bruno@clisp.org>
13883
13884         getline: Simplify.
13885         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
13886         It's already handled through the module dependency.
13887
13888 2011-05-08  Bruno Haible  <bruno@clisp.org>
13889
13890         getdelim: Move AC_LIBOBJ invocations to module description.
13891         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
13892         and gl_PREREQ_GETDELIM invocations from here...
13893         * modules/getdelim (configure.ac): ... to here.
13894         (Depends-on): Fix condition.
13895
13896 2011-05-08  Bruno Haible  <bruno@clisp.org>
13897
13898         getcwd: Move AC_LIBOBJ invocations to module description.
13899         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
13900         invocations from here...
13901         * modules/getcwd (configure.ac): ... to here.
13902
13903 2011-05-08  Bruno Haible  <bruno@clisp.org>
13904
13905         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
13906         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
13907         here...
13908         * modules/getcwd-lgpl (configure.ac): ... to here.
13909
13910 2011-05-07  Bruno Haible  <bruno@clisp.org>
13911
13912         crypto/gc: Move AC_LIBOBJ invocations to module description.
13913         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
13914         * modules/crypto/gc (configure.ac): ... to here.
13915
13916 2011-05-07  Bruno Haible  <bruno@clisp.org>
13917
13918         fwriting: Move AC_LIBOBJ invocations to module description.
13919         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
13920         here...
13921         * modules/fwriting (configure.ac): ... to here.
13922
13923 2011-05-07  Bruno Haible  <bruno@clisp.org>
13924
13925         fwritable: Move AC_LIBOBJ invocations to module description.
13926         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
13927         here...
13928         * modules/fwritable (configure.ac): ... to here.
13929
13930 2011-05-07  Bruno Haible  <bruno@clisp.org>
13931
13932         futimens: Move AC_LIBOBJ invocations to module description.
13933         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
13934         here...
13935         * modules/futimens (configure.ac): ... to here.
13936
13937 2011-05-07  Bruno Haible  <bruno@clisp.org>
13938
13939         ftruncate: Move AC_LIBOBJ invocations to module description.
13940         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
13941         gl_PREREQ_FTRUNCATE invocations from here...
13942         * modules/ftruncate (configure.ac): ... to here.
13943
13944 2011-05-07  Bruno Haible  <bruno@clisp.org>
13945
13946         fsync: Move AC_LIBOBJ invocations to module description.
13947         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
13948         invocations from here...
13949         * modules/fsync (configure.ac): ... to here.
13950
13951 2011-05-07  Bruno Haible  <bruno@clisp.org>
13952
13953         fsusage: Move AC_LIBOBJ invocations to module description.
13954         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
13955         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
13956         * modules/fsusage (configure.ac): ... to here.
13957
13958 2011-05-07  Bruno Haible  <bruno@clisp.org>
13959
13960         freopen: Move AC_LIBOBJ invocations to module description.
13961         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
13962         invocations from here...
13963         * modules/freopen (configure.ac): ... to here.
13964
13965 2011-05-07  Bruno Haible  <bruno@clisp.org>
13966
13967         free: Move AC_LIBOBJ invocations to module description.
13968         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
13969         invocations from here...
13970         * modules/free (configure.ac): ... to here.
13971
13972 2011-05-07  Bruno Haible  <bruno@clisp.org>
13973
13974         freadable: Move AC_LIBOBJ invocations to module description.
13975         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
13976         here...
13977         * modules/freadable (configure.ac): ... to here.
13978
13979 2011-05-07  Bruno Haible  <bruno@clisp.org>
13980
13981         fpurge: Move AC_LIBOBJ invocations to module description.
13982         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
13983         invocations from here...
13984         * modules/fpurge (configure.ac): ... to here.
13985
13986 2011-05-07  Bruno Haible  <bruno@clisp.org>
13987
13988         fpending: Move AC_LIBOBJ invocations to module description.
13989         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
13990         gl_FUNC_FPENDING.
13991         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
13992         invocations from here...
13993         * modules/fpending (configure.ac): ... to here.
13994
13995 2011-05-07  Bruno Haible  <bruno@clisp.org>
13996
13997         fopen: Move AC_LIBOBJ invocations to module description.
13998         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
13999         invocations from here...
14000         * modules/fopen (configure.ac): ... to here.
14001
14002 2011-05-07  Bruno Haible  <bruno@clisp.org>
14003
14004         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
14005         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
14006         gl_FUNC_FNMATCH_POSIX.
14007         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
14008         invocations from here...
14009         * modules/fnmatch (configure.ac): ... to here.
14010         * modules/fnmatch-gnu (configure.ac): ... and here.
14011
14012 2011-05-07  Bruno Haible  <bruno@clisp.org>
14013
14014         flock: Move AC_LIBOBJ invocations to module description.
14015         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
14016         invocations from here...
14017         * modules/flock (configure.ac): ... to here.
14018
14019 2011-05-07  Bruno Haible  <bruno@clisp.org>
14020
14021         fileblocks: Move AC_LIBOBJ invocations to module description.
14022         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
14023         gl_PREREQ_FILEBLOCKS invocations from here...
14024         * modules/fileblocks (configure.ac): ... to here.
14025
14026 2011-05-06  Bruno Haible  <bruno@clisp.org>
14027
14028         fflush: Move AC_LIBOBJ invocations to module description.
14029         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
14030         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
14031         invocations from here...
14032         * modules/fflush (configure.ac): ... to here.
14033
14034 2011-05-06  Bruno Haible  <bruno@clisp.org>
14035
14036         fdopendir: Move AC_LIBOBJ invocations to module description.
14037         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
14038         here...
14039         * modules/fdopendir (configure.ac): ... to here.
14040         (Depends-on): Improve conditions.
14041
14042 2011-05-06  Bruno Haible  <bruno@clisp.org>
14043
14044         _Exit: Move AC_LIBOBJ invocations to module description.
14045         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
14046         invocations from here...
14047         * modules/_Exit (configure.ac): ... to here.
14048
14049 2011-05-21  Bruno Haible  <bruno@clisp.org>
14050
14051         euidaccess: Respect rules for use of AC_LIBOBJ.
14052         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14053         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
14054         from here...
14055         * modules/euidaccess (configure.ac): ... to here.
14056
14057 2011-05-06  Bruno Haible  <bruno@clisp.org>
14058
14059         error: Move AC_LIBOBJ invocations to module description.
14060         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
14061         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
14062         invocations from here...
14063         * modules/error (configure.ac): ... to here.
14064
14065 2011-05-06  Bruno Haible  <bruno@clisp.org>
14066
14067         duplocale: Move AC_LIBOBJ invocations to module description.
14068         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
14069         gl_PREREQ_DUPLOCALE invocations from here...
14070         * modules/duplocale (configure.ac): ... to here.
14071
14072 2011-05-05  Bruno Haible  <bruno@clisp.org>
14073
14074         dirfd: Move AC_LIBOBJ invocations to module description.
14075         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
14076         gl_FUNC_DIRFD.
14077         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
14078         here...
14079         * modules/dirfd (configure.ac): ... to here.
14080         (Depends-on): Fix condition.
14081
14082 2011-05-05  Bruno Haible  <bruno@clisp.org>
14083
14084         chown: Respect rules for use of AC_LIBOBJ.
14085         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
14086         * modules/chown (configure.ac): ... to here.
14087
14088 2011-05-05  Bruno Haible  <bruno@clisp.org>
14089
14090         chdir-long: Move AC_LIBOBJ invocations to module description.
14091         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
14092         gl_PREREQ_CHDIR_LONG invocations from here...
14093         * modules/chdir-long (configure.ac): ... to here.
14094
14095 2011-05-05  Bruno Haible  <bruno@clisp.org>
14096
14097         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
14098         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
14099         from here...
14100         * modules/canonicalize-lgpl (configure.ac): ... to here.
14101
14102 2011-05-05  Bruno Haible  <bruno@clisp.org>
14103
14104         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
14105         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
14106         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
14107         REPLACE_CALLOC.
14108         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
14109         * modules/calloc-gnu (configure.ac): Likewise.
14110
14111 2011-05-05  Bruno Haible  <bruno@clisp.org>
14112
14113         btowc: Move AC_LIBOBJ invocations to module description.
14114         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
14115         invocations from here...
14116         * modules/btowc (configure.ac): ... to here.
14117
14118 2011-05-21  Bruno Haible  <bruno@clisp.org>
14119
14120         atexit: Move AC_LIBOBJ invocations to module description.
14121         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
14122         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
14123         here...
14124         * modules/atexit (configure.ac): ... to here.
14125
14126 2011-05-05  Bruno Haible  <bruno@clisp.org>
14127
14128         atoll: Move AC_LIBOBJ invocations to module description.
14129         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
14130         invocations from here...
14131         * modules/atoll (configure.ac): ... to here.
14132
14133 2011-05-05  Bruno Haible  <bruno@clisp.org>
14134
14135         argz: Move AC_LIBOBJ invocations to module description.
14136         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
14137         * modules/argz (configure.ac): ... to here.
14138
14139 2011-05-05  Bruno Haible  <bruno@clisp.org>
14140
14141         alphasort: Move AC_LIBOBJ invocations to module description.
14142         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
14143         gl_PREREQ_ALPHASORT invocations from here...
14144         * modules/alphasort (configure.ac): ... to here.
14145
14146 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
14147
14148         verify: new macro verify_expr; verify_true deprecated
14149         * NEWS: Mention this.
14150         * doc/verify.texi (Compile-time Assertions): Document this.
14151         * lib/verify.h (verify_true): Deprecate.
14152         (verify_expr): New macro.
14153         * tests/test-verify.c (function): Test verify_expr.
14154
14155 2011-06-14  Jim Meyering  <meyering@redhat.com>
14156
14157         init.sh: give more portable redirection-related advice in a comment
14158         * tests/init.sh (stderr_fileno_): Update the advice in comments.
14159         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
14160         for lots of discussion.  Stefano Lattarini suggested the solution
14161         of putting "9>&2" after the command.  Reported by Bruno Haible.
14162
14163 2011-06-13  Bruno Haible  <bruno@clisp.org>
14164
14165         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
14166         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
14167         'none'.
14168
14169 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
14170
14171         ftoastr: use strtof only if HAVE_STRTOF
14172         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
14173         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
14174         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
14175         * modules/ftoastr (configure.ac): Check for strtof.
14176
14177 2011-06-13  Bruno Haible  <bruno@clisp.org>
14178
14179         gnulib-tool: Addendum to 2011-06-08 commit.
14180         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
14181         and --witness-c-macro have been given, augment AM_CPPFLAGS.
14182
14183 2011-06-13  Bruno Haible  <bruno@clisp.org>
14184
14185         fseeko: Provide a non-inline replacement of fseek().
14186         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
14187         * modules/fseeko (Depends-on): Add fseek.
14188         * modules/fseek (License): Change to LGPLv2+.
14189
14190 2011-06-13  Bruno Haible  <bruno@clisp.org>
14191
14192         ftello: Provide a non-inline replacement of ftell().
14193         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
14194         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
14195         not have ftello() (such as on mingw).
14196         * modules/ftello (Depends-on): Add ftell.
14197         * modules/ftell (License): Change to LGPLv2+.
14198
14199 2011-05-07  Bruno Haible  <bruno@clisp.org>
14200
14201         ftell: Move AC_LIBOBJ invocations to module description.
14202         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
14203         * modules/ftell (configure.ac): ... to here.
14204
14205 2011-05-07  Bruno Haible  <bruno@clisp.org>
14206
14207         ftello: Respect rules for use of AC_LIBOBJ.
14208         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
14209         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
14210         here...
14211         * modules/ftello (configure.ac): ... to here.
14212
14213 2011-05-07  Bruno Haible  <bruno@clisp.org>
14214
14215         fseeko: Simplify.
14216         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
14217         (gl_FUNC_FSEEKO): Inline it here.
14218
14219 2011-05-07  Bruno Haible  <bruno@clisp.org>
14220
14221         fseek: Move AC_LIBOBJ invocations to module description.
14222         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
14223         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14224         * modules/fseek (configure.ac): ... to here.
14225
14226 2011-05-07  Bruno Haible  <bruno@clisp.org>
14227
14228         fseek: Respect rules for use of AC_LIBOBJ.
14229         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
14230         here...
14231         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
14232
14233 2011-05-07  Bruno Haible  <bruno@clisp.org>
14234
14235         fseeko: Respect rules for use of AC_LIBOBJ.
14236         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
14237         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
14238         here...
14239         * modules/fseeko (configure.ac): ... to here.
14240
14241 2011-06-13  Bruno Haible  <bruno@clisp.org>
14242
14243         gnulib-tool: Allow comments in the 'Depends-on' section.
14244         * doc/gnulib.texi (Module description): Mention comment syntax in the
14245         Depends-on section.
14246         * gnulib-tool (func_get_dependencies): Filter out comment lines.
14247
14248 2011-06-13  Bruno Haible  <bruno@clisp.org>
14249
14250         file-set.h: guard __attibute__ use, now that it's not always defined
14251         * lib/file-set.h (record_file): Use __attribute__ only with compiler
14252         versions that support it.  This fixes a coreutils build failure with
14253         the vendor cc on HP-UX 11.31.
14254
14255 2011-06-12  Bruno Haible  <bruno@clisp.org>
14256
14257         acl: Add support for HP-UX >= 11.11 JFS ACLs.
14258         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
14259         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
14260         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
14261         (acl, aclsort): New declarations.
14262         (aclv_nontrivial): New declaration.
14263         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
14264         (file_has_acl): Read also the second kind of HP-UX ACLs.
14265         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
14266         kind of HP-UX ACLs if the first kind fails.
14267         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
14268         second kind of HP-UX ACLs.
14269         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
14270         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
14271         agree.
14272         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14273         hpuxjfs.
14274         Handle hpuxjfs.
14275         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14276         hpuxjfs.
14277         Handle hpuxjfs.
14278         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14279         (func_test_same_acls): Use both lsacl and getacl.
14280         Handle hpuxjfs.
14281         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14282         (func_test_same_acls): Use both lsacl and getacl.
14283         Handle hpuxjfs.
14284
14285 2011-06-12  Bruno Haible  <bruno@clisp.org>
14286
14287         acl: Complete the 2010-08-10 fix.
14288         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
14289         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
14290         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
14291         explicitly.
14292         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
14293         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
14294
14295 2011-06-12  Bruno Haible  <bruno@clisp.org>
14296
14297         spawn-pipe tests: Comments.
14298         * tests/test-spawn-pipe-child.c (main): Update comment.
14299         Reported by James Youngman <jay@gnu.org>.
14300
14301 2011-06-11  James Youngman  <jay@gnu.org>
14302
14303         New module 'stat-size'.
14304         * modules/stat-size: New module.  Provides macros for accessing
14305         file size information in instances of struct stat.  Depends on the
14306         fileblocks module because it calls st_blocks.
14307         * lib/stat-size.h: New file, adapted from coreutils' system.h.
14308         * doc/gnulib.texi: Include stat-size.texi.
14309         * doc/stat-size.texi: Documentation for this module.
14310         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
14311         * m4/fileblocks.m4: Mention that stat-size depends on the call to
14312         AC_STRUCT_ST_BLOCKS.
14313
14314 2011-06-09  Bruno Haible  <bruno@clisp.org>
14315
14316         thread: Support pthreads-win32.
14317         * lib/glthread/thread.h (gl_thread_self): Define differently on
14318         pthreads-win32.
14319         (gl_null_thread): New declaration.
14320         (gl_thread_self_pointer): New macro.
14321         * lib/glthread/thread.c (gl_null_thread): New constant.
14322         * tests/test-lock.c: Use gl_thread_self_pointer instead of
14323         gl_thread_self.
14324         * tests/test-tls.c: Likewise.
14325         Suggested by Paul Eggert. Reported by Eric Blake.
14326
14327 2011-06-09  Bruno Haible  <bruno@clisp.org>
14328
14329         thread: Fix confusion between NULL and 0.
14330         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
14331         Reported by Paul Eggert.
14332
14333 2011-06-09  Bruno Haible  <bruno@clisp.org>
14334
14335         spawn-pipe tests: Avoid test failure on HP-UX 11.
14336         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
14337         is closed.
14338
14339 2011-06-09  Bruno Haible  <bruno@clisp.org>
14340
14341         acl tests: Fix compilation error on HP-UX 11.
14342         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
14343
14344 2011-06-09  Bruno Haible  <bruno@clisp.org>
14345
14346         rmdir: Avoid test failure on HP-UX 10.20.
14347         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
14348         EEXIST.
14349
14350 2011-06-08  Eric Blake  <eblake@redhat.com>
14351
14352         perror: fix test on mingw
14353         * modules/perror-tests (Depends-on): Add dup2.
14354
14355         strerror_r-posix: fix on MacOS
14356         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
14357         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
14358         logic bug.
14359         * lib/strerror_r.c (strerror_r): Fix the bug.
14360         * lib/strerror.c (strerror): Likewise.
14361         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14362         problem.
14363         * doc/posix-functions/strerror.texi (strerror): Likewise.
14364         * doc/posix-functions/perror.texi (perror): Likewise.
14365         * tests/test-strerror.c (main): Enhance test.
14366         * tests/test-strerror_r.c (main): Likewise.
14367
14368 2011-06-08  Bruno Haible  <bruno@clisp.org>
14369
14370         gnulib-tool: Better isolation between different gnulib-tool invocations.
14371         * gnulib-tool: New option --witness-c-macro.
14372         (witness_c_macro): New variable.
14373         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
14374         AM_CPPFLAGS define it as a C macro.
14375         (func_emit_tests_Makefile_am): Likewise.
14376         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
14377         read it from there.
14378         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
14379         m4_define, not AC_DEFUN.
14380         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
14381         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
14382         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
14383         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
14384         s|...|...|, to substitute the values of the GNULIB_* module indicator
14385         variables.
14386         * modules/dirent (Makefile.am): Likewise.
14387         * modules/fcntl-h (Makefile.am): Likewise.
14388         * modules/iconv-h (Makefile.am): Likewise.
14389         * modules/langinfo (Makefile.am): Likewise.
14390         * modules/locale (Makefile.am): Likewise.
14391         * modules/math (Makefile.am): Likewise.
14392         * modules/netdb (Makefile.am): Likewise.
14393         * modules/poll-h (Makefile.am): Likewise.
14394         * modules/pty (Makefile.am): Likewise.
14395         * modules/search (Makefile.am): Likewise.
14396         * modules/signal (Makefile.am): Likewise.
14397         * modules/spawn (Makefile.am): Likewise.
14398         * modules/stdio (Makefile.am): Likewise.
14399         * modules/stdlib (Makefile.am): Likewise.
14400         * modules/string (Makefile.am): Likewise.
14401         * modules/sys_ioctl (Makefile.am): Likewise.
14402         * modules/sys_select (Makefile.am): Likewise.
14403         * modules/sys_socket (Makefile.am): Likewise.
14404         * modules/sys_stat (Makefile.am): Likewise.
14405         * modules/sys_times (Makefile.am): Likewise.
14406         * modules/sys_utsname (Makefile.am): Likewise.
14407         * modules/sys_wait (Makefile.am): Likewise.
14408         * modules/termios (Makefile.am): Likewise.
14409         * modules/time (Makefile.am): Likewise.
14410         * modules/unistd (Makefile.am): Likewise.
14411         * modules/wchar (Makefile.am): Likewise.
14412
14413 2011-06-08  Eric Blake  <eblake@redhat.com>
14414
14415         strerror: simplify replacement
14416         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
14417         * modules/strerror (configure.ac): No prereqs needed here...
14418         * modules/strerror-override (configure.ac): ...but this needs it.
14419         (Files): Add file for needed prereq macro.
14420
14421 2011-06-08  Bruno Haible  <bruno@clisp.org>
14422
14423         strerror_r-posix: Tweaks.
14424         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
14425         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
14426         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
14427         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
14428         (gl_FUNC_STRERROR_R): ... to here.
14429         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
14430
14431 2011-06-07  Eric Blake  <eblake@redhat.com>
14432
14433         perror: document fixed bugs
14434         * doc/posix-functions/perror.texi (perror): Document recent
14435         patches.
14436
14437 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
14438
14439         stat-time: get_stat_birthtime failure is better-defined
14440         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
14441         return a timestamp whose tv_sec and tv_nsec values are both -1.
14442         Previously, the spec said only that the tv_nsec value was negative.
14443         This upward-compatible change simplifies GNU tar a bit.
14444
14445 2011-06-07  Eric Blake  <eblake@redhat.com>
14446
14447         strerror_r-posix: work around cygwin 1.7.9
14448         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
14449         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
14450         bug without replacing strerror_r.
14451         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
14452         strerror_r is buggy, but without requiring strerror_r compilation.
14453         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
14454
14455         test-perror: relax test to ignore cygwin bug
14456         * tests/test-perror2.c (main): Relax test on requiring detection
14457         of stream errors, and use unbuffered stream.
14458         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
14459         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
14460         * doc/posix-functions/fputc.texi (fputc): Likewise.
14461         * doc/posix-functions/fputs.texi (fputs): Likewise.
14462         * doc/posix-functions/fputws.texi (fputws): Likewise.
14463         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
14464         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
14465         * doc/posix-functions/getopt.texi (getopt): Likewise.
14466         * doc/posix-functions/perror.texi (perror): Likewise.
14467         * doc/posix-functions/printf.texi (printf): Likewise.
14468         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
14469         * doc/posix-functions/psignal.texi (psignal): Likewise.
14470         * doc/posix-functions/putc.texi (putc): Likewise.
14471         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
14472         Likewise.
14473         * doc/posix-functions/putchar.texi (putchar): Likewise.
14474         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
14475         Likewise.
14476         * doc/posix-functions/puts.texi (puts): Likewise.
14477         * doc/posix-functions/putwc.texi (putwc): Likewise.
14478         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
14479         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
14480         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
14481         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
14482         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
14483         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
14484         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
14485         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
14486
14487 2011-05-22  Bruno Haible  <bruno@clisp.org>
14488
14489         strerror: Move AC_LIBOBJ invocations to module description.
14490         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
14491         gl_PREREQ_STRERROR invocations from here...
14492         * modules/strerror (configure.ac): ... to here.
14493
14494 2011-05-21  Bruno Haible  <bruno@clisp.org>
14495
14496         perror: Use common idiom.
14497         * modules/perror (configure.ac): Reorder statements.
14498
14499 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14500
14501         tests: fix usage message in 'mktempd_'
14502         * tests/init.sh (mktempd_): In the usage message, use literal
14503         'mktempd_', not '$ME' (which is even undefined), as the name of
14504         the subroutine.
14505
14506 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14507
14508         tests init: new function 'fatal_', for hard errors
14509         Before this patch, the only way offered by tests/init.sh to
14510         properly signal a hard error was the `framework_failure_'
14511         function.  But the error message issued by that function,
14512         as its name would suggest, refers to a set-up failure in the
14513         testsuite, while hard errors can obviously also be due to
14514         other reasons.  The best way to fix this inconsistency is to
14515         introduce a new function with a more general error message.
14516         * tests/init.sh (fatal_): New function.
14517
14518 2011-06-06  Eric Blake  <eblake@redhat.com>
14519
14520         canonicalize-lgpl: use common idiom
14521         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
14522         over newer POSIX -Rf.
14523         Reported by Bruno Haible.
14524
14525         canonicalize-lgpl: work around AIX realpath bug
14526         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
14527         * doc/posix-functions/realpath.texi (realpath): Document it.
14528         Reported by Bruno Haible.
14529
14530         strerror: work around FreeBSD bug
14531         * lib/strerror.c (strerror): Special case 0.
14532         Reported by Bruno Haible.
14533
14534         strerror-override: avoid bloating errno module
14535         * modules/errno (Files, configure.ac): Move replacement strings...
14536         * modules/strerror-override: ...to new module.
14537         * modules/strerror (Depends-on): Add strerror-override.
14538         * modules/strerror_r-posix (Depends-on): Likewise.
14539         * MODULES.html.sh: Document new module.
14540         Reported by Bruno Haible.
14541
14542 2011-06-06  Bruno Haible  <bruno@clisp.org>
14543
14544         spawn-pipe tests: Rename program.
14545         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
14546         * tests/test-spawn-pipe-child.c: Update comment.
14547         * tests/test-spawn-pipe.sh: Update.
14548         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
14549
14550         spawn-pipe tests: Link the child program only against libc.
14551         * tests/test-spawn-pipe-child.c: New file, extracted from
14552         tests/test-spawn-pipe.c.
14553         (main): Expect only one argument.
14554         (is_open): New function, copied from tests/test-pipe.c.
14555         * tests/test-spawn-pipe.c: Don't include <errno.h>.
14556         (child_main): Remove function.
14557         (test_pipe): Pass only one argument to the child program.
14558         (main): Remove child process code. Expect the child program's name as
14559         first argument.
14560         * tests/test-spawn-pipe.sh: Pass the child program's name as first
14561         argument.
14562         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
14563         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
14564         test-spawn-pipe-child against no libraries.
14565
14566 2011-06-06  Bruno Haible  <bruno@clisp.org>
14567
14568         careadlinkat: Avoid mismatch between ssize_t and int.
14569         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
14570         * lib/careadlinkat.c (careadlinkatcwd): Define always.
14571
14572 2011-06-06  Jim Meyering  <meyering@redhat.com>
14573
14574         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
14575         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
14576         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
14577
14578 2011-06-05  Bruno Haible  <bruno@clisp.org>
14579
14580         ansi-c++-opt: Interoperability with libtool.
14581         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
14582         set the variable to "no", not to ":".
14583         * NEWS: Mention the change.
14584
14585 2011-06-05  Bruno Haible  <bruno@clisp.org>
14586
14587         acl: Fix test failure on AIX 7.
14588         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
14589         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
14590
14591 2011-06-05  Bruno Haible  <bruno@clisp.org>
14592
14593         pipe-filter-ii: Fix test failure on AIX and IRIX.
14594         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
14595         with EAGAIN, retry with a smaller buffer size.
14596
14597 2011-06-05  Bruno Haible  <bruno@clisp.org>
14598
14599         localename: Fix link dependencies.
14600         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
14601         * modules/localename-tests (Makefile.am): Link test-localename with
14602         $(LIBTHREAD).
14603
14604 2011-06-05  Bruno Haible  <bruno@clisp.org>
14605
14606         error: Avoid gcc warning.
14607         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
14608
14609 2011-06-05  Bruno Haible  <bruno@clisp.org>
14610
14611         unsetenv: Avoid gcc warning.
14612         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
14613
14614 2011-06-05  Bruno Haible  <bruno@clisp.org>
14615
14616         setenv: Avoid gcc warning.
14617         * lib/setenv.c (setenv): Provide declaration if system lacks it.
14618
14619 2011-06-05  Bruno Haible  <bruno@clisp.org>
14620
14621         sys_select: Ensure memset is declared also on AIX 7.
14622         * lib/sys_select.in.h: Include <string.h> also on AIX.
14623         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
14624         self-contained also on AIX 7.1.
14625
14626 2011-06-04  Jim Meyering  <meyering@redhat.com>
14627
14628         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
14629         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
14630         function name, "error".
14631         (_gl_translatable_diag_func_re): New configurable variable.
14632
14633 2011-06-04  Bruno Haible  <bruno@clisp.org>
14634
14635         getopt: Avoid gcc warning.
14636         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
14637
14638 2011-06-04  Bruno Haible  <bruno@clisp.org>
14639
14640         strerror_r: Fix comments.
14641         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
14642         commit.
14643
14644 2011-06-04  Bruno Haible  <bruno@clisp.org>
14645
14646         perror: Fix compilation error.
14647         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
14648         Undefine fprintf, not sprintf.
14649         * modules/perror (Depends-on): Remove intprops, verify.
14650
14651 2011-06-04  Bruno Haible  <bruno@clisp.org>
14652
14653         setlocale: Enable replacement on Cygwin 1.5.
14654         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
14655         Cygwin 1.5.x.
14656         * doc/posix-functions/setlocale.texi: Mention that the problem with the
14657         LC_CTYPE category also exists on Cygwin 1.5.x.
14658
14659 2011-06-04  Bruno Haible  <bruno@clisp.org>
14660
14661         strerror-override: Don't disable symbol renamings.
14662         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
14663         * lib/strerror-override.c: Include config.h.
14664         (strerror_override): Don't undefine.
14665
14666 2011-06-03  Bruno Haible  <bruno@clisp.org>
14667
14668         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
14669         * lib/localename.h: Update copyright header.
14670         * lib/localename.c: Likewise.
14671         * lib/relocatable.h: Likewise.
14672         * lib/relocatable.c: Likewise.
14673
14674 2011-06-02  Bruno Haible  <bruno@clisp.org>
14675
14676         doc: Fix a module name.
14677         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
14678
14679 2011-06-02  Bruno Haible  <bruno@clisp.org>
14680
14681         pipe2: Remove dependency on 'nonblocking' module.
14682         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
14683         O_NONBLOCK is defined by gnulib.
14684         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
14685         is zero.
14686         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
14687         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
14688         defined by gnulib.
14689         (get_nonblocking_flag): New function.
14690         (main): Test O_NONBLOCK flag only if it is nonzero.
14691         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
14692
14693 2011-06-03  Jim Meyering  <meyering@redhat.com>
14694
14695         maint: three new prohibit-header-without-use rules
14696         Prohibit use of cloexec.h, posixver.h, same.h without use.
14697         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
14698         (sc_prohibit_posixver_without_use): Likewise.
14699         (sc_prohibit_same_without_use): Likewise.
14700
14701 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
14702
14703         allocator: 'die' routine is now given requested size
14704         * lib/allocator.h (struct allocator.die): New size arg.
14705         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
14706         If the actual problem is an ssize_t limitation, not a size_t or
14707         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
14708
14709 2011-06-01  Eric Blake  <eblake@redhat.com>
14710
14711         strerror: drop strerror_r dependency
14712         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
14713         * lib/strerror-override.c (strerror_override): ...to new file.
14714         * lib/strerror-override.h: Add prototype.
14715         * lib/strerror-impl.h: Delete.
14716         * lib/strerror.c (strerror): New implementation.
14717         * modules/errno (Files): Add new files.
14718         (configure.ac): Compile new file as appropriate.
14719         * modules/strerror (Files): Drop unused file.
14720         (Depends-on): Drop strerror_r-posix.
14721         * MODULES.html.sh: Document strerror_r-posix.
14722         Requested by Sam Steingold.
14723
14724         perror: call strerror_r directly
14725         * modules/perror (Files): Drop strerror-impl.h.
14726         * lib/perror.c (perror): Use our own stack buffer, rather than
14727         calling a wrapper that uses static storage.
14728         * doc/posix-functions/perror.texi (perror): Document a limitation
14729         of our replacement.
14730
14731         strerror_r: fix includes for FreeBSD
14732         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
14733         since we use abort on some platforms.
14734         Reported by Matthias Bolte.
14735
14736 2011-05-31  Bruno Haible  <bruno@clisp.org>
14737
14738         Fix link errors in tests: openat-die uses gettext-h.
14739         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
14740         against $(LIBINTL).
14741         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
14742         against $(LIBINTL).
14743         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
14744         $(LIBINTL).
14745         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
14746         against $(LIBINTL).
14747         * modules/linkat-tests (Makefile.am): Link test-linkat against
14748         $(LIBINTL).
14749         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
14750         $(LIBINTL).
14751         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
14752         against $(LIBINTL).
14753         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
14754         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
14755         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
14756         $(LIBINTL).
14757         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
14758         $(LIBINTL).
14759         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
14760         $(LIBINTL).
14761         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14762
14763 2011-05-31  Bruno Haible  <bruno@clisp.org>
14764
14765         Fix link errors in tests: wait-process uses gettext-h.
14766         * modules/nonblocking-pipe-tests (Makefile.am): Set
14767         test_nonblocking_pipe_main_LDADD.
14768         * modules/nonblocking-socket-tests (Makefile.am): Link
14769         test-nonblocking-socket-main against $(LIBINTL).
14770         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14771
14772 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
14773
14774         assert-h: work around 'verify' incompatibility
14775         * lib/verify.h: Use @...@ directives, not ifdef.
14776         * modules/assert-h (assert.h): Implement the directives.
14777         (assert.h): Substitute the symbol-prefix more consistently.
14778
14779 2011-05-29  Jim Meyering  <meyering@redhat.com>
14780
14781         trim: remove three superfluous assignments
14782         * lib/trim.c (trim2): Remove three superfluous assignments
14783         and correct brace positioning.
14784
14785 2011-05-29  Bruno Haible  <bruno@clisp.org>
14786
14787         wctype-h: Avoid namespace pollution on Solaris 2.6.
14788         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
14789         identifiers.
14790         * doc/posix-headers/wctype.texi: Mention the problem.
14791         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14792
14793 2011-05-28  Jim Meyering  <meyering@redhat.com>
14794
14795         parse-datetime.y: accommodate -Wstrict-overflow
14796         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
14797         placate -Wstrict-overflow.
14798
14799         trim: avoid a warning from -O2 -Wstrict-overflow
14800         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
14801
14802 2011-05-29  Bruno Haible  <bruno@clisp.org>
14803
14804         gnulib-tool: Fix bug in yesterday's commit.
14805         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
14806         twice.
14807
14808 2011-05-29  Bruno Haible  <bruno@clisp.org>
14809
14810         Allow multiple gnulib generated include files to be combined.
14811         * gnulib-tool (func_compute_include_guard_prefix): New function.
14812         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
14813         ${gl_include_guard_prefix} references.
14814         (func_import, func_create_testdir): Invoke
14815         func_compute_include_guard_prefix.
14816         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
14817         * lib/ctype.in.h: Likewise.
14818         * lib/dirent.in.h: Likewise.
14819         * lib/errno.in.h: Likewise.
14820         * lib/fcntl.in.h: Likewise.
14821         * lib/float.in.h: Likewise.
14822         * lib/getopt.in.h: Likewise.
14823         * lib/iconv.in.h: Likewise.
14824         * lib/langinfo.in.h: Likewise.
14825         * lib/locale.in.h: Likewise.
14826         * lib/math.in.h: Likewise.
14827         * lib/netdb.in.h: Likewise.
14828         * lib/netinet_in.in.h: Likewise.
14829         * lib/poll.in.h: Likewise.
14830         * lib/pthread.in.h: Likewise.
14831         * lib/pty.in.h: Likewise.
14832         * lib/sched.in.h: Likewise.
14833         * lib/se-selinux.in.h: Likewise.
14834         * lib/search.in.h: Likewise.
14835         * lib/signal.in.h: Likewise.
14836         * lib/spawn.in.h: Likewise.
14837         * lib/stdarg.in.h: Likewise.
14838         * lib/stddef.in.h: Likewise.
14839         * lib/stdint.in.h: Likewise.
14840         * lib/stdio.in.h: Likewise.
14841         * lib/stdlib.in.h: Likewise.
14842         * lib/string.in.h: Likewise.
14843         * lib/strings.in.h: Likewise.
14844         * lib/sys_file.in.h: Likewise.
14845         * lib/sys_ioctl.in.h: Likewise.
14846         * lib/sys_select.in.h: Likewise.
14847         * lib/sys_socket.in.h: Likewise.
14848         * lib/sys_stat.in.h: Likewise.
14849         * lib/sys_time.in.h: Likewise.
14850         * lib/sys_times.in.h: Likewise.
14851         * lib/sys_uio.in.h: Likewise.
14852         * lib/sys_utsname.in.h: Likewise.
14853         * lib/sys_wait.in.h: Likewise.
14854         * lib/sysexits.in.h: Likewise.
14855         * lib/termios.in.h: Likewise.
14856         * lib/time.in.h: Likewise.
14857         * lib/unistd.in.h: Likewise.
14858         * lib/wchar.in.h: Likewise.
14859         * lib/wctype.in.h: Likewise.
14860         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
14861         * modules/ctype (Makefile.am): Likewise.
14862         * modules/dirent (Makefile.am): Likewise.
14863         * modules/errno (Makefile.am): Likewise.
14864         * modules/fcntl-h (Makefile.am): Likewise.
14865         * modules/float (Makefile.am): Likewise.
14866         * modules/getopt-posix (Makefile.am): Likewise.
14867         * modules/iconv-h (Makefile.am): Likewise.
14868         * modules/langinfo (Makefile.am): Likewise.
14869         * modules/locale (Makefile.am): Likewise.
14870         * modules/math (Makefile.am): Likewise.
14871         * modules/netdb (Makefile.am): Likewise.
14872         * modules/netinet_in (Makefile.am): Likewise.
14873         * modules/poll-h (Makefile.am): Likewise.
14874         * modules/pthread (Makefile.am): Likewise.
14875         * modules/pty (Makefile.am): Likewise.
14876         * modules/sched (Makefile.am): Likewise.
14877         * modules/search (Makefile.am): Likewise.
14878         * modules/selinux-h (Makefile.am): Likewise.
14879         * modules/signal (Makefile.am): Likewise.
14880         * modules/spawn (Makefile.am): Likewise.
14881         * modules/stdarg (Makefile.am): Likewise.
14882         * modules/stddef (Makefile.am): Likewise.
14883         * modules/stdint (Makefile.am): Likewise.
14884         * modules/stdio (Makefile.am): Likewise.
14885         * modules/stdlib (Makefile.am): Likewise.
14886         * modules/string (Makefile.am): Likewise.
14887         * modules/strings (Makefile.am): Likewise.
14888         * modules/sys_file (Makefile.am): Likewise.
14889         * modules/sys_ioctl (Makefile.am): Likewise.
14890         * modules/sys_select (Makefile.am): Likewise.
14891         * modules/sys_socket (Makefile.am): Likewise.
14892         * modules/sys_stat (Makefile.am): Likewise.
14893         * modules/sys_time (Makefile.am): Likewise.
14894         * modules/sys_times (Makefile.am): Likewise.
14895         * modules/sys_uio (Makefile.am): Likewise.
14896         * modules/sys_utsname (Makefile.am): Likewise.
14897         * modules/sys_wait (Makefile.am): Likewise.
14898         * modules/sysexits (Makefile.am): Likewise.
14899         * modules/termios (Makefile.am): Likewise.
14900         * modules/time (Makefile.am): Likewise.
14901         * modules/unistd (Makefile.am): Likewise.
14902         * modules/wchar (Makefile.am): Likewise.
14903         * modules/wctype-h (Makefile.am): Likewise.
14904         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
14905
14906 2011-05-29  Bruno Haible  <bruno@clisp.org>
14907
14908         assert-h: Allow multiple gnulib generated replacements to coexist.
14909         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
14910
14911 2011-05-29  Bruno Haible  <bruno@clisp.org>
14912
14913         argp: Allow coexistence with strerror_r-posix module.
14914         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
14915         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
14916         by gnulib's <string.h> replacement), assume it has the POSIX signature,
14917         not the glibc signature.
14918
14919 2011-05-28  Bruno Haible  <bruno@clisp.org>
14920
14921         gnulib-tool: Alternative structure of testdirs, similar to --import.
14922         * gnulib-tool: New option --single-configure.
14923         (func_usage): Document it.
14924         (single_configure): New variable.
14925         (func_modules_transitive_closure_separately,
14926         func_modules_transitive_closure_separately,
14927         func_determine_use_libtests, func_modules_add_dummy_separately,
14928         func_modules_to_filelist_separately): New functions, extracted from
14929         func_import.
14930         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
14931         (func_import): Use the new functions.
14932         (func_create_testdir): Set final_modules. Handle $single_configure =
14933         true case.
14934
14935 2011-05-28  Bruno Haible  <bruno@clisp.org>
14936
14937         getloadavg: Remove an unreliable safety check.
14938         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
14939         getloadavg.c is in place.
14940         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
14941         Reported by Sam Steingold <sds@gnu.org>.
14942
14943 2011-05-28  Bruno Haible  <bruno@clisp.org>
14944
14945         doc: Cleanup yet another file produced by texinfo.tex.
14946         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
14947
14948 2011-05-28  Bruno Haible  <bruno@clisp.org>
14949
14950         Finish the conditional dependencies mechanism.
14951         * gnulib-tool: New option --no-conditional-dependencies.
14952         (func_usage): Document it. Don't mark --conditional-dependencies as
14953         experimental.
14954         (cond_dependencies): The possible values can now be true, false, empty.
14955         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
14956         (func_import): Store setting in gnulib-cache.m4 and read it from there.
14957         * doc/gnulib-tool.texi (Conditional dependencies): New section.
14958
14959 2011-05-28  Bruno Haible  <bruno@clisp.org>
14960
14961         doc: Use a recent texinfo.tex.
14962         * doc/Makefile (tex_opts): New variable.
14963         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
14964
14965 2011-05-28  Jim Meyering  <meyering@redhat.com>
14966
14967         intprops.h: adjust comment to match code change
14968         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
14969         only once, it *may* have side effects.  Also fix an unrelated typo.
14970         (_GL_INT_SIGNED): Likewise.
14971
14972 2011-05-26  Simon Josefsson  <simon@josefsson.org>
14973
14974         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
14975
14976 2011-05-26  Bruno Haible  <bruno@clisp.org>
14977
14978         mbsrchr: Avoid collision with system function on Interix.
14979         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
14980         Reported by Markus Duft <mduft@gentoo.org>.
14981
14982 2011-05-15  James Youngman  <jay@gnu.org>
14983
14984         getopt: for ambiguous options, enumerate the possibilities.
14985         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
14986         the ambiguous options when an ambiguous prefix is given. This was
14987         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
14988         glibc change was
14989         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
14990
14991 2011-05-25  Eric Blake  <eblake@redhat.com>
14992
14993         getcwd: work around mingw bug
14994         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
14995         * doc/posix-functions/getcwd.texi (getcwd): Document it.
14996         Reported by Matthias Bolte.
14997
14998 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
14999
15000         test-intprops: disable -Wtype-limits diagnostics
15001         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
15002         diagnostics.  Otherwise, the integer overflow macros generate many
15003         diagnostics.  Reported by Jim Meyering in
15004         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15005
15006         intprops: shorten, to pacify gcc -Woverlength-strings
15007         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
15008         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
15009         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
15010         likely to run afoul of C compiler limits for string constant lengths.
15011         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15012
15013 2011-05-24  Eric Blake  <eblake@redhat.com>
15014
15015         docs: document recently fixed glibc printf bug
15016         * doc/posix-functions/fprintf.texi (fprintf): Document it.
15017         * doc/posix-functions/printf.texi (printf): Likewise.
15018         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15019         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15020
15021         closein-tests: convert to init.sh
15022         * modules/closein-tests (Files): Add init.sh
15023         * tests/test-closein.sh Use it.
15024
15025         yesno-tests: convert to init.sh
15026         * modules/yesno-tests (Files): Add init.sh.
15027         * tests/test-yesno.sh: Use it.
15028
15029         atexit-tests: ensure reliable exit status
15030         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
15031         Reported by Bruno Haible.
15032
15033 2011-05-24  Bruno Haible  <bruno@clisp.org>
15034
15035         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
15036         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
15037         gl_PREREQ_STRERROR_R invocations from here...
15038         * modules/strerror_r-posix (configure.ac): ... to here.
15039
15040 2011-05-24  Eric Blake  <eblake@redhat.com>
15041
15042         strerror_r: fix missing header
15043         * lib/strerror_r.c: Avoid compiler warning about snprintf.
15044
15045         strerror_r: fix AIX test failures
15046         * lib/strerror_r.c (strerror_r): Convert silent truncation to
15047         ERANGE failure.
15048
15049         strerror_r: fix Solaris test failures
15050         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
15051         failures.
15052         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15053
15054         strerror_r: enforce POSIX recommendations
15055         * lib/strerror_r.c (safe_copy): New helper method.
15056         (strerror_r): Guarantee a non-empty string.
15057         * tests/test-strerror_r.c (main): Enhance tests to incorporate
15058         recent POSIX rulings and to match our strerror guarantees.
15059         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15060
15061 2011-05-24  Jim Meyering  <meyering@redhat.com>
15062
15063         test-perror2.c: avoid warning about unused variable
15064         * tests/test-perror2.c (main): Remove declaration of unused "fp".
15065
15066 2011-05-24  Eric Blake  <eblake@redhat.com>
15067
15068         perror: avoid spurious test failure on HP-UX
15069         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
15070
15071         tests: fix logic bug in init.sh
15072         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
15073         shell.
15074
15075 2011-05-24  Jim Meyering  <meyering@redhat.com>
15076
15077         utimensat: do not reference an out-of-scope buffer
15078         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
15079         declared in an inner scope, yet "times" would be dereferenced outside
15080         the scope in which "ts" was valid.
15081         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
15082         of ts[2] "out/up", so that the use of aliased "times" (via
15083         "times = ts;") does not end up referencing an out-of-scope "ts"
15084
15085         opendir-safer.c: don't clobber errno; don't close negative FD
15086         * lib/opendir-safer.c (opendir_safer):
15087         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
15088         file descriptor, and more importantly, don't clobber the
15089         offending errno value with EINVAL.  Before, upon failure
15090         of dup_safer, we would pass the negative file descriptor to
15091         fdopendir, which would clobber errno.
15092
15093 2011-05-23  Bruno Haible  <bruno@clisp.org>
15094
15095         idcache: Fix module description.
15096         * modules/idcache (Include): Set to "idcache.h".
15097
15098 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
15099
15100         gnulib-tool: fix portability problem with MacOS sed
15101         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
15102         before the "}".  Problem reported by Leo in
15103         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
15104         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
15105         sed_extract_condition1, sed_extract_condition2.
15106
15107 2011-05-23  Bruno Haible  <bruno@clisp.org>
15108
15109         hash: Simplify autoconf macro.
15110         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
15111
15112 2011-05-23  Bruno Haible  <bruno@clisp.org>
15113
15114         getugroups: Fix module description.
15115         * modules/getugroups (Include): Set to "getugroups.h".
15116
15117 2011-05-23  Bruno Haible  <bruno@clisp.org>
15118
15119         linkat: Simplify autoconf macro.
15120         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
15121
15122 2011-05-23  Bruno Haible  <bruno@clisp.org>
15123             Eric Blake  <eblake@redhat.com>
15124
15125         linkat, renameat: Update dependencies.
15126         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
15127         * modules/linkat (Depends-on): Likewise. Remove also readlink,
15128         symlinkat.
15129
15130 2011-05-23  Jim Meyering  <meyering@redhat.com>
15131
15132         maint.mk: more tight_scope improvements
15133         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
15134         (_gl_TS_headers): Define only in if-0'd block.
15135         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
15136         sometimes we must *not* use it.  Adjust uses accordingly.
15137         (sc_tight_scope): Use much simpler grep-based test to determine
15138         whether we skip this rule.
15139
15140         maint.mk: generalize/improve the tight-scope rule
15141         * top/maint.mk: Emit a warning when the test is skipped.
15142         (_gl_TS_dir): Add $(srcdir)/ prefix.
15143         (_gl_TS_function_match): Simplify, rather than trying
15144         to enumerate common types.  Otherwise, it would fail to match an
15145         "extern unsigned char const *" declaration in idutils.
15146         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
15147         a way to support use of that type of macro.
15148         (_gl_TS_var_match): Simplify regexp.
15149         (_gl_TS_obj_files): New configurable variable.
15150         (_gl_TS_headers): Likewise.
15151
15152 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
15153
15154         verify: fix bug when gnulib <assert.h> is also included
15155         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
15156         is defined, not if _GL_STATIC_ASSERT_H is not defined.
15157         Perhaps there's a better way, but this fixes the immediate problem.
15158         Problem reported by Bruno Haible in
15159         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
15160
15161 2011-05-22  Bruno Haible  <bruno@clisp.org>
15162
15163         xgetcwd: Simplify autoconf macro.
15164         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
15165
15166 2011-05-22  Bruno Haible  <bruno@clisp.org>
15167
15168         New module 'mktime-internal'.
15169         * modules/mktime-internal: New file.
15170         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
15171         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
15172         mktime_internal as a C macro if libc has __mktime_internal.
15173         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
15174         conditions.
15175         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
15176
15177 2011-05-22  Bruno Haible  <bruno@clisp.org>
15178
15179         timegm: Correct mktime replacement statements.
15180         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
15181         defining mktime as a C macro. This completes a 2009-07-28 commit.
15182
15183 2011-05-22  Bruno Haible  <bruno@clisp.org>
15184
15185         timegm: Simplify autoconf macro.
15186         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
15187
15188 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
15189
15190         clock-time: change to LGPLv2+.
15191         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
15192         BSD-like but we have no mark for that; this is good enough for now.
15193
15194 2011-05-21  Bruno Haible  <bruno@clisp.org>
15195
15196         strerror_r: Fix comments.
15197         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
15198
15199 2011-05-21  Bruno Haible  <bruno@clisp.org>
15200
15201         relocatable-prog-wrapper: Fix possible link error.
15202         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
15203         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
15204         (gl_FUNC_SETENV): ... to here.
15205         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
15206         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
15207
15208 2011-05-21  Bruno Haible  <bruno@clisp.org>
15209
15210         relocatable-prog-wrapper: Assume strerror() exists.
15211         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
15212         m4/strerror.m4.
15213         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
15214         * lib/relocwrapper.c: Remove mention of strerror module.
15215         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
15216         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
15217         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
15218         C macro.
15219
15220 2011-05-21  Bruno Haible  <bruno@clisp.org>
15221
15222         select: Simplify replacement idiom.
15223         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
15224         Win32 platforms.
15225         * lib/sys_select.in.h (select): Simplify accordingly.
15226         * modules/select (Depends-on): Likewise.
15227
15228 2011-05-21  Bruno Haible  <bruno@clisp.org>
15229
15230         mkdir-p: Simplify autoconf macro.
15231         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
15232         gl_FUNC_LCHOWN.
15233
15234 2011-05-21  Eric Blake  <eblake@redhat.com>
15235
15236         strerror_r: avoid clobbering strerror on cygwin
15237         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
15238         fall back instead to sys_errlist.
15239         * modules/strerror (configure.ac): Add witness.
15240         * tests/test-strerror_r.c (main): Enhance test.
15241         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15242         * tests/test-perror2.c (main): Free memory before exit.
15243
15244 2011-05-21  Bruno Haible  <bruno@clisp.org>
15245
15246         mkdtemp: Use gnulib naming conventions.
15247         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
15248         * modules/mkdtemp (configure.ac): Update.
15249
15250 2011-05-20  Eric Blake  <eblake@redhat.com>
15251
15252         strerror_r: avoid corrupting errno on Solaris
15253         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
15254         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15255
15256         strerror_r: avoid compiler warning
15257         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
15258
15259         strerror_r: simplify AIX code
15260         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
15261
15262         test-perror: avoid spurious failure on FreeBSD
15263         * modules/perror-tests (Depends-on): Add strerror, now that
15264         strerror_r no longer pulls it in.
15265
15266 2011-05-20  Bruno Haible  <bruno@clisp.org>
15267
15268         strerror_r-posix: Remove unused dependencies.
15269         * modules/strerror_r-posix (Depends-on): Remove strerror.
15270         Reported by Eric Blake.
15271
15272 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
15273
15274         intprops: remove assumption about A|B representation
15275         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
15276         is a valid integer if both A and B are.  Although this is true for
15277         all known practical hosts, the C standard doesn't guarantee it,
15278         and the code need not assume it.  Also, this change may work around
15279         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
15280         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
15281
15282 2011-05-20  Eric Blake  <eblake@redhat.com>
15283
15284         perror: work around FreeBSD bug
15285         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
15286         is broken.  Move AC_LIBOBJ...
15287         * modules/perror (configure.ac): Here.
15288         * doc/posix-functions/perror.texi (perror): Document this.
15289         * tests/test-perror2.c (main): Enhance test.
15290
15291         test-perror: check for strerror interactions
15292         * tests/macros.h (STREQ): Add macro.
15293         * modules/perror-tests (Files): Add second test.
15294         * tests/test-perror2.c (main): New file.
15295         * doc/posix-functions/perror.texi (perror): Document glibc bug.
15296
15297         test-perror: rewrite to use init script
15298         * modules/perror-tests (Files): Add init.sh.
15299         * tests/test-perror.sh: Use temporary directory.
15300
15301 2011-05-20  Jim Meyering  <meyering@redhat.com>
15302
15303         maint: replace misused "a" with "an"
15304         * doc/intprops.texi: "a integer"
15305         * doc/regex.texi: "a explanation"
15306         * lib/alignof.h: "a object"
15307         * lib/argmatch.h: "a explanation"
15308         * lib/argp-help.c: "a option" and "a OPTION_DOC"
15309         * lib/stdint.in.h: "a integer"
15310         * lib/userspec.c: "a owner"
15311         * doc/gnulib.texi: Fix "a idea", and reword.
15312
15313 2011-05-19  Jim Meyering  <meyering@redhat.com>
15314
15315         maint: correct misuse of "a" and "an"
15316         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
15317         * lib/argp-help.c: "an docum...": s/an/a/
15318         * lib/argp-parse.c: "An vector": s/An/A/
15319         * lib/execute.c: "an native": s/an/a/
15320         * lib/spawn-pipe.c: Likewise.
15321         * lib/gc.h: "an Gc_rc": s/an/a/
15322         * lib/unigbrk.in.h: "an grapheme": s/an/a/
15323         * lib/fts.c: "an stat.st_dev": s/an/a/
15324
15325 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15326
15327         intprops-tests: work around HP-UX 11.23 cc bug with constants
15328         * tests/test-intprops.c (VERIFY): New macro.
15329         (main): Use it, instead of verify, to work around the compiler bug; see
15330         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15331
15332         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
15333         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
15334         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
15335         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
15336         (_GL_REMAINDER_OVERFLOW): Use it.
15337
15338         intprops-tests: revert unsigned part of previous change
15339         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
15340         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
15341         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
15342         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
15343
15344 2011-05-19  Bruno Haible  <bruno@clisp.org>
15345
15346         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
15347         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
15348         strerror_r() returned without filling the buffer.
15349         Reported by Eric Blake.
15350
15351 2011-05-19  Eric Blake  <eblake@redhat.com>
15352
15353         strerror_r: guarantee unchanged errno
15354         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
15355         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
15356         failure.
15357         * tests/test-strerror_r.c (main): Enhance test.
15358
15359 2011-05-19  Bruno Haible  <bruno@clisp.org>
15360
15361         strerror_r: Reorder #if blocks.
15362         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
15363         for consistency with the previous commit.
15364
15365 2011-05-19  Bruno Haible  <bruno@clisp.org>
15366
15367         perror: Avoid clobbering the strerror buffer when possible.
15368         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
15369         * lib/strerror.c: Include it.
15370         * modules/strerror (Files): Add lib/strerror-impl.h.
15371         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
15372         (my_strerror): New function, defined through lib/strerror-impl.h.
15373         (perror): Use it instead of strerror.
15374         * modules/perror (Files): Add lib/strerror-impl.h.
15375         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
15376
15377 2011-05-19  Eric Blake  <eblake@redhat.com>
15378
15379         strerror_r: fix on newer cygwin
15380         * lib/strerror_r.c (strerror_r): Cygwin now has
15381         __xpg_strerror_r, use it.
15382
15383 2011-05-19  Bruno Haible  <bruno@clisp.org>
15384
15385         strerror_r: Avoid clobbering the strerror buffer when possible.
15386         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
15387         (sys_nerr, sys_errlist): New declarations.
15388         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
15389         HP-UX, native Win32, IRIX, and 32-bit Solaris.
15390         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
15391
15392 2011-05-19  Bruno Haible  <bruno@clisp.org>
15393
15394         strerror_r: Fix test failure on mingw.
15395         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
15396         EXTEND_STRERROR_R.
15397         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
15398         macros from errno.in.h instead.
15399
15400 2011-05-19  Eric Blake  <eblake@redhat.com>
15401
15402         strerror: relax test for Solaris
15403         * tests/test-strerror.c (main): Permit Solaris behavior.
15404         * tests/test-strerror_r.c (main): Likewise.
15405
15406         strerror: enforce POSIX ruling on strerror(0)
15407         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
15408         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
15409         * lib/strerror_r.c (rpl_strerror_r): Work around it.
15410         * doc/posix-functions/strerror.texi (strerror): Document it.
15411         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
15412         * tests/test-strerror.c (main): Strengthen test.
15413         * tests/test-strerror_r.c (main): Likewise.
15414
15415 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15416
15417         intprop-tests: port to older and more-pedantic compilers
15418         * modules/intprops-tests (Files): Add tests/macros.h.
15419         * tests/test-intprops.c: Include macros.h.
15420         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
15421         it's no longer documented to expand to an integer constant expression.
15422         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
15423         argument is floating point, as it's no longer documented to expand
15424         to an integer constant expression in that case.
15425         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
15426         compiler bugs reported by Bruno Haible.  See
15427         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15428         (U0, U1): New constants, to work around the same bugs.  Also,
15429         in tests, use e.g., "(unsigned int) 39" rather than "39u".
15430
15431         intprops: work around C compiler bugs
15432         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
15433         bug in Sun C 5.11 2010/08/13 and other compilers; see
15434         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15435
15436         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
15437         * doc/intprops.texi (Integer Type Determination): Fix
15438         documentation for TYPE_IS_INTEGER: it returns an constant
15439         expression, not an integer constant expression.  Fix doc for
15440         TYPE_SIGNED: it returns an integer constant expression only if its
15441         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
15442         hardly worth documented that way....)
15443
15444 2011-05-18  Bruno Haible  <bruno@clisp.org>
15445
15446         strerror_r: Avoid clobbering the strerror buffer when possible.
15447         * lib/strerror_r.c (strerror_r): Merge the three implementations.
15448         Handle gnulib defined errno values here. When strerror() returns NULL
15449         or an empty string, return EINVAL.
15450         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
15451         gnulib defined errno values here.
15452         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
15453
15454 2011-05-18  Eric Blake  <eblake@redhat.com>
15455
15456         fnmatch: avoid compiler warning
15457         * lib/fnmatch_loop.c (FCT): Use correct type.
15458         Reported by Matthias Bolte.
15459
15460 2011-05-13  Jim Meyering  <meyering@redhat.com>
15461
15462         maint.mk: three new prohibit_<HDR>_without_use rules
15463         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
15464         (sc_prohibit_stdio-safer_without_use): Likewise.
15465         (sc_prohibit_xfreopen_without_use): Likewise.
15466
15467 2011-05-17  Jim Meyering  <meyering@redhat.com>
15468
15469         announce-gen: fail if the NEWS delta is empty
15470         If there's nothing noteworthy in NEWS, then either you forgot
15471         or you shouldn't be releasing.
15472         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
15473
15474 2011-05-17  Pádraig Brady <P@draigBrady.com>
15475
15476         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
15477         reserved symbols starting with double underscore from the check.
15478
15479 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
15480
15481         intprops: add doc
15482         * doc/intprops.texi: New file, documenting intprops.
15483         * doc/gnulib.texi (Particular Modules): Include it.
15484
15485         verify: add doc to gnulib manual and fix example
15486         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
15487         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
15488         (Compile-time Assertions): Fix example so it can't overflow.
15489
15490 2011-05-17  Jim Meyering  <meyering@redhat.com>
15491
15492         warnings.m4: don't usurp save_CPPFLAGS variable name
15493         * m4/warnings.m4: Prefix local temporary variable name with gl_.
15494
15495         doc: fix typo
15496         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
15497
15498 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15499             Bruno Haible  <bruno@clisp.org>
15500
15501         doc: Tweak recent change.
15502         * README (Portability guidelines): Tweak new text.
15503         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
15504         Interix 6.1.
15505
15506 2011-05-16  Eric Blake  <eblake@redhat.com>
15507
15508         inttypes: avoid autoconf warning
15509         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
15510         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15511
15512 2011-05-16  Sam Steingold <sds@gnu.org>
15513         and Eric Blake  <eblake@redhat.com>
15514
15515         vc-list-files: accept multiple directory operands
15516         * build-aux/vc-list-files: Iterate over all remaining operands.
15517
15518 2011-05-16  Bruno Haible  <bruno@clisp.org>
15519
15520         Fix confusion regarding deprecated modules.
15521         * modules/calloc (Status, Notice): Mark module as deprecated, not
15522         obsolete.
15523         * modules/fnmatch-posix (Status, Notice): Likewise.
15524         * modules/getdate (Status, Notice): Likewise.
15525         * modules/getopt (Status, Notice): Likewise.
15526         * modules/malloc (Status, Notice): Likewise.
15527         * modules/pipe (Status, Notice): Likewise.
15528         * modules/realloc (Status, Notice): Likewise.
15529         * modules/rename-dest-slash (Status, Notice): Likewise.
15530         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
15531         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
15532         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
15533         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
15534         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
15535
15536 2011-05-16  Bruno Haible  <bruno@clisp.org>
15537
15538         doc: List the target platforms.
15539         * doc/gnulib-intro.texi (Target Platforms): New section.
15540         * doc/gnulib.texi (Introduction): Update menu.
15541         * README (Portability guidelines): Refer to the new section. Update
15542         statement about oldest supported environment. Remove rationale why
15543         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
15544         unportable C89 function.
15545         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
15546         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
15547
15548 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15549
15550         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
15551
15552 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
15553
15554         intprops-tests: new module
15555         * modules/intprops-tests, tests/test-intprops.c: New files.
15556
15557         intprops: add safe, portable integer overflow checking
15558         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
15559         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
15560         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
15561         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
15562         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
15563         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
15564         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
15565         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
15566         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
15567         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
15568         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
15569
15570 2011-05-12  James Youngman  <jay@gnu.org>
15571
15572         Add a test for glibc's Bugzilla bug #12378.
15573         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
15574         doesn't allow the literal matching of a lone "[" (which is
15575         required by POSIX).
15576         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
15577
15578 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
15579
15580         Sync glibc change fixing Bugzilla bug #12378.
15581         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
15582         beginning and fall back to matching as normal character if the
15583         string ends before the matching ']' is found.  This is what POSIX
15584         requires.
15585
15586 2011-05-13  Eric Blake  <eblake@redhat.com>
15587
15588         getcwd-lgpl: relax test for FreeBSD
15589         * doc/posix-functions/getcwd.texi (getcwd): Document portability
15590         issue.
15591         * tests/test-getcwd-lgpl.c (main): Relax test.
15592         Reported by Matthias Bolte.
15593
15594 2011-05-11  Eric Blake  <eblake@redhat.com>
15595
15596         test-fflush: silence compiler warning
15597         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
15598
15599 2011-05-11  Bruno Haible  <bruno@clisp.org>
15600
15601         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
15602         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
15603         * modules/canonicalize (Depends-on): Add 'nocrash'.
15604         * modules/canonicalize-lgpl (Depends-on): Likewise.
15605         * doc/posix-functions/realpath.texi: Update platforms list.
15606         Reported by Ryan Schmidt <ryandesign@macports.org>.
15607
15608 2011-05-11  Bruno Haible  <bruno@clisp.org>
15609
15610         group-member: Declare function in <unistd.h>.
15611         * lib/unistd.in.h (group_member): New declaration.
15612         * lib/group-member.h: Remove file.
15613         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
15614         * tests/test-unistd-c++.cc: Check signature of group_member.
15615         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
15616         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
15617         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
15618         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
15619         HAVE_GROUP_MEMBER.
15620         * modules/group-member (Files): Remove lib/group-member.h.
15621         (Depends-on): Add unistd. Specify conditions.
15622         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15623         (Include): Change to <unistd.h>.
15624         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
15625         HAVE_GROUP_MEMBER.
15626         * NEWS: Mention the change.
15627         * lib/euidaccess.c: Don't include group-member.h.
15628
15629 2011-05-11  Bruno Haible  <bruno@clisp.org>
15630
15631         group-member: Document module.
15632         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
15633         module.
15634
15635 2011-05-11  Bruno Haible  <bruno@clisp.org>
15636
15637         fclose: Fix mistake earlier today.
15638         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
15639
15640 2011-05-11  Eric Blake  <eblake@redhat.com>
15641
15642         fclose: preserve fflush errors
15643         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
15644         Reported by Jim Meyering.
15645
15646         bootstrap: support a prereq of 'rpcgen -' on RHEL5
15647         * build-aux/bootstrap (check_versions): When no specific version
15648         is required, merely check that the app produces an exit status
15649         that indicates its existence.
15650
15651         maint.mk: drop redundant check
15652         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
15653         the same but better.
15654
15655 2011-05-11  Bruno Haible  <bruno@clisp.org>
15656
15657         fclose: Fix possible link error.
15658         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
15659         unregister_shadow_fd. Improve comments.
15660         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
15661         Eric Blake.
15662
15663 2011-05-11  Jim Meyering  <meyering@redhat.com>
15664
15665         maint.mk: improve "can not" detection and generalize rule name
15666         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
15667         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
15668         Use the same technique as in sc_prohibit_doubled_word, so that
15669         we recognize "can not" also when the words are separated by a newline.
15670         Suggested by Eric Blake.
15671         (perl_filename_lineno_text_): Define.  Factored out of...
15672         (prohibit_doubled_word_): ...here.  Use the new definition.
15673         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
15674         (prohibit_undesirable_word_seq_RE_): New overridable variable.
15675         (ignore_undesirable_word_sequence_RE_): New overridable variable.
15676
15677 2011-05-10  Eric Blake  <eblake@redhat.com>
15678
15679         fclose: avoid double close race when possible
15680         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
15681         all but WINDOWS_SOCKETS.
15682
15683 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
15684
15685         openat: correct new comment
15686         * lib/openat-proc.c (openat_proc_name): Correct the comment.
15687
15688 2011-05-10  Jim Meyering  <meyering@redhat.com>
15689
15690         openat: add comments
15691         * lib/openat-proc.c (openat_proc_name): Add comments,
15692         mostly from Eric Blake.
15693
15694 2011-05-09  Eric Blake  <eblake@redhat.com>
15695
15696         openat: reduce syscalls in first probe of /proc
15697         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
15698         be a directory.  Simplify the probe for .. bugs.
15699         * modules/openat (Depends-on): Drop same-inode.
15700         Reported by Bastien ROUCARIES.
15701
15702 2011-05-09  Jim Meyering  <meyering@redhat.com>
15703
15704         maint.mk: change semantics/name of tight_scope variables
15705         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
15706         Rename variables to align with semantics that make them more useful.
15707
15708         maint.mk: tweak new rule's name not to impinge
15709         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
15710         (sc_tight_scope): Use new rule name rather than $@-0.
15711
15712         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
15713         * top/maint.mk (sc_tight_scope): New rule.
15714         (sc_tight_scope-0): New rule, ifdef'd out.
15715         (_gl_TS_dir): Default.
15716         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
15717         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
15718
15719 2011-05-09  Simon Josefsson  <simon@josefsson.org>
15720
15721         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
15722         Haible <bruno@clisp.org>.
15723
15724 2011-05-08  Bruno Haible  <bruno@clisp.org>
15725
15726         Comments.
15727         * m4/isnanf.m4: Add comment.
15728         * m4/isnanl.m4: Likewise.
15729
15730 2011-05-08  Bruno Haible  <bruno@clisp.org>
15731
15732         glob: Remove obsolete macro.
15733         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
15734
15735 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
15736
15737         intprops: Sun C 5.11 supports __typeof__
15738         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
15739         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
15740         which is new.
15741         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
15742
15743         intprops: switch to usual gnulib indenting and naming
15744         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
15745         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
15746
15747         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
15748
15749 2011-05-08  Jim Meyering  <meyering@redhat.com>
15750
15751         maint.mk: suppress "Entering/Leaving directory" diag in announcement
15752         * top/maint.mk (release-prep): Use make's --no-print-directory
15753         option when generating the announcement.  This eliminates the
15754         pesky "make[2]: Entering/Leaving directory" diagnostics in the
15755         generated announcement template.
15756
15757 2011-05-08  Bruno Haible  <bruno@clisp.org>
15758
15759         tzset: Fix gettimeofday wrapper on Solaris 2.6.
15760         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
15761         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
15762
15763 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
15764
15765         ignore-value, verify: Omit include files from lib_SOURCES.
15766         * modules/ignore-value, modules/verify (Makefile.am):
15767         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
15768         that leads Automake to duplicate use of am__objects_... variables
15769         in Makefile.in.  See
15770         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
15771
15772 2011-05-07  Bruno Haible  <bruno@clisp.org>
15773
15774         fclose: Simplify autoconf macro.
15775         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
15776         defined.
15777
15778 2011-05-07  Bruno Haible  <bruno@clisp.org>
15779
15780         canonicalize-lgpl: Fix autoconf macro ordering bug.
15781         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
15782         gl_STDLIB_H_DEFAULTS.
15783
15784 2011-05-06  Eric Blake  <eblake@redhat.com>
15785
15786         maintainer-makefile: make sc_po_check easier to tune
15787         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
15788         to probe for strings, such as an alternate location for gnulib.
15789
15790         fclose: guarantee behavior on seekable stdin
15791         * modules/fclose (Depends-on): Add fflush.
15792         * doc/posix-functions/fclose.texi (fclose): Document this.
15793         * tests/test-fclose.c (main): Make test for this unconditional.
15794
15795 2011-05-06  Bruno Haible  <bruno@clisp.org>
15796
15797         fflush, fpurge: Relicense under LGPLv2+.
15798         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
15799         * modules/fpurge (License): Likewise.
15800         With permission from Eric Blake and Jim Meyering.
15801         Suggested by Eric Blake.
15802
15803 2011-05-06  Karl Berry  <karl@gnu.org>
15804
15805         * MODULES.html.sh (func_all_modules): remove exit.
15806
15807 2011-05-06  Jim Meyering  <meyering@redhat.com>
15808
15809         maint.mk: use info-gnu@ as the default only for a stable release
15810         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
15811         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
15812         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
15813         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
15814
15815 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15816
15817         assert-h: new module, which supports C1X-style static_assert
15818         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
15819         * lib/verify.h: Revamp so that this can be copied into assert.h,
15820         while retaining the ability to use it standalone as before.
15821         Rename private identifiers so as not to encroach on the
15822         standard C namespace, since this is now used by assert.h.
15823         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
15824         the old verify_true.
15825         (_GL_VERIFY_TRUE): New macro, with much of the contents of
15826         the old verify_true.  Use _GL_VERIFY_TYPE.
15827         (_GL_VERIFY): New macro, with much of the contents of the old verify.
15828         (static_assert): New macro, if _GL_STATIC_ASSERT_H
15829         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
15830         defined when this file is copied into the replacement assert.h.
15831         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
15832         and _Static_assert is not built in.
15833         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
15834         defined, and use the new macros mentioned above.
15835         * doc/posix-headers/assert.texi: Document this.
15836
15837 2011-05-05  Bruno Haible  <bruno@clisp.org>
15838
15839         fclose, fflush: Respect rules for use of AC_LIBOBJ.
15840         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
15841         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
15842         gl_REPLACE_FCLOSE here.
15843         * modules/fflush (Depends-on): Remove fclose.
15844         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
15845         combination with module 'fclose'.
15846
15847 2011-05-05  Bruno Haible  <bruno@clisp.org>
15848
15849         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
15850         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
15851         gl_FUNC_FFLUSH.
15852         (gl_FUNC_FFLUSH): Use it.
15853         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
15854         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
15855         gl_REPLACE_FSEEKO here.
15856
15857 2011-05-05  Bruno Haible  <bruno@clisp.org>
15858
15859         tzset: Relicense under LGPL.
15860         * modules/tzset (License): Change to LGPL.
15861         No agreement needed; it's a no-op.
15862
15863         strtoimax, strtoumax: Relicense under LGPL.
15864         * modules/strtoimax (License): Change to LGPL.
15865         * modules/strtoumax (License): Likewise.
15866         With permission from Jim Meyering, Paul Eggert:
15867         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
15868         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
15869
15870         getgroups: Relicense under LGPL.
15871         * modules/getgroups (License): Change to LGPL.
15872         With permission from Jim Meyering, Paul Eggert, Eric Blake:
15873         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
15874         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
15875         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15876
15877         nanosleep: Relicense under LGPL.
15878         * modules/nanosleep (License): Change to LGPL.
15879         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
15880         Haible:
15881         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
15882         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
15883         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15884         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
15885
15886         futimens: Relicense under LGPL.
15887         * modules/futimens (License): Change to LGPL.
15888         With permission from Eric Blake:
15889         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15890
15891         fflush: Relicense under LGPL.
15892         * modules/fflush (License): Change to LGPL.
15893         With permission from Eric Blake, Bruno Haible, Jim Meyering:
15894         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15895         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
15896         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
15897
15898         tmpfile: Relicense under LGPL.
15899         * modules/tmpfile (License): Change to LGPL.
15900         With permission from Ben Pfaff:
15901         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
15902
15903         isfinite: Relicense under LGPL.
15904         * modules/isfinite (License): Change to LGPL.
15905         With permission from Ben Pfaff, Bruno Haible:
15906         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
15907         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
15908
15909         acosl..tanl: Relicense under LGPL.
15910         * modules/acosl (License): Change to LGPL.
15911         * modules/asinl (License): Likewise.
15912         * modules/atanl (License): Likewise.
15913         * modules/cosl (License): Likewise.
15914         * modules/expl (License): Likewise.
15915         * modules/logl (License): Likewise.
15916         * modules/sinl (License): Likewise.
15917         * modules/sqrtl (License): Likewise.
15918         * modules/tanl (License): Likewise.
15919         Source code originally from glibc and Paolo Bonzini. Agreements:
15920         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
15921         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
15922
15923 2011-05-05  Bruno Haible  <bruno@clisp.org>
15924
15925         signal: Define sighandler_t.
15926         * lib/signal.in.h (sighandler_t): New type.
15927         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
15928         whether sighandler_t is defined.
15929         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
15930         * modules/signal (Depends-on): Add extensions.
15931         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
15932         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
15933         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
15934
15935 2011-05-05  Eric Blake  <eblake@redhat.com>
15936
15937         maint: remove useless REPLACE_*_H macros
15938         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
15939         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
15940         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
15941         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
15942         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
15943         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
15944         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
15945         * m4/btowc.m4: Update callers.
15946         * m4/dirfd.m4: Likewise.
15947         * m4/duplocale.m4: Likewise.
15948         * m4/fchdir.m4: Likewise.
15949         * m4/fdopendir.m4: Likewise.
15950         * m4/inet_ntop.m4: Likewise.
15951         * m4/inet_pton.m4: Likewise.
15952         * m4/ioctl.m4: Likewise.
15953         * m4/mbrlen.m4: Likewise.
15954         * m4/mbrtowc.m4: Likewise.
15955         * m4/mbsinit.m4: Likewise.
15956         * m4/mbsnrtowcs.m4: Likewise.
15957         * m4/mbsrtowcs.m4: Likewise.
15958         * m4/poll.m4: Likewise.
15959         * m4/setlocale.m4: Likewise.
15960         * m4/wcrtomb.m4: Likewise.
15961         * m4/wcsnrtombs.m4: Likewise.
15962         * m4/wcsrtombs.m4: Likewise.
15963         * m4/wctob.m4: Likewise.
15964         * m4/wcwidth.m4: Likewise.
15965         * modules/posix_spawn: Likewise.
15966         * modules/posix_spawn_file_actions_addclose: Likewise.
15967         * modules/posix_spawn_file_actions_adddup2: Likewise.
15968         * modules/posix_spawn_file_actions_addopen: Likewise.
15969         * modules/posix_spawn_file_actions_destroy: Likewise.
15970         * modules/posix_spawn_file_actions_init: Likewise.
15971         * modules/posix_spawnattr_destroy: Likewise.
15972         * modules/posix_spawnattr_getflags: Likewise.
15973         * modules/posix_spawnattr_getpgroup: Likewise.
15974         * modules/posix_spawnattr_getschedparam: Likewise.
15975         * modules/posix_spawnattr_getschedpolicy: Likewise.
15976         * modules/posix_spawnattr_getsigdefault: Likewise.
15977         * modules/posix_spawnattr_getsigmask: Likewise.
15978         * modules/posix_spawnattr_init: Likewise.
15979         * modules/posix_spawnattr_setflags: Likewise.
15980         * modules/posix_spawnattr_setpgroup: Likewise.
15981         * modules/posix_spawnattr_setschedparam: Likewise.
15982         * modules/posix_spawnattr_setschedpolicy: Likewise.
15983         * modules/posix_spawnattr_setsigdefault: Likewise.
15984         * modules/posix_spawnattr_setsigmask: Likewise.
15985         * modules/posix_spawnp: Likewise.
15986
15987 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
15988
15989         Add option to do-release-commit-and-tag to specify branch.
15990         * build-aux/do-release-commit-and-tag: Add --branch.
15991
15992 2011-05-03  Bruno Haible  <bruno@clisp.org>
15993
15994         Avoid unnecessary compilation units, through conditional dependencies.
15995         * modules/accept (Depends-on): Add conditions to the dependencies.
15996         * modules/acosl (Depends-on): Likewise.
15997         * modules/argz (Depends-on): Likewise.
15998         * modules/asinl (Depends-on): Likewise.
15999         * modules/atanl (Depends-on): Likewise.
16000         * modules/atoll (Depends-on): Likewise.
16001         * modules/bind (Depends-on): Likewise.
16002         * modules/btowc (Depends-on): Likewise.
16003         * modules/canonicalize-lgpl (Depends-on): Likewise.
16004         * modules/ceil (Depends-on): Likewise.
16005         * modules/ceilf (Depends-on): Likewise.
16006         * modules/ceill (Depends-on): Likewise.
16007         * modules/chdir-long (Depends-on): Likewise.
16008         * modules/chown (Depends-on): Likewise.
16009         * modules/close (Depends-on): Likewise.
16010         * modules/connect (Depends-on): Likewise.
16011         * modules/cosl (Depends-on): Likewise.
16012         * modules/dirfd (Depends-on): Likewise.
16013         * modules/dprintf (Depends-on): Likewise.
16014         * modules/dprintf-posix (Depends-on): Likewise.
16015         * modules/error (Depends-on): Likewise.
16016         * modules/euidaccess (Depends-on): Likewise.
16017         * modules/expl (Depends-on): Likewise.
16018         * modules/faccessat (Depends-on): Likewise.
16019         * modules/fchdir (Depends-on): Likewise.
16020         * modules/fclose (Depends-on): Likewise.
16021         * modules/fcntl (Depends-on): Likewise.
16022         * modules/fdopendir (Depends-on): Likewise.
16023         * modules/fflush (Depends-on): Likewise.
16024         * modules/floor (Depends-on): Likewise.
16025         * modules/floorf (Depends-on): Likewise.
16026         * modules/floorl (Depends-on): Likewise.
16027         * modules/fnmatch (Depends-on): Likewise.
16028         * modules/fopen (Depends-on): Likewise.
16029         * modules/fprintf-posix (Depends-on): Likewise.
16030         * modules/frexp (Depends-on): Likewise.
16031         * modules/frexp-nolibm (Depends-on): Likewise.
16032         * modules/frexpl (Depends-on): Likewise.
16033         * modules/frexpl-nolibm (Depends-on): Likewise.
16034         * modules/fseek (Depends-on): Likewise.
16035         * modules/fsusage (Depends-on): Likewise.
16036         * modules/ftell (Depends-on): Likewise.
16037         * modules/ftello (Depends-on): Likewise.
16038         * modules/futimens (Depends-on): Likewise.
16039         * modules/getcwd (Depends-on): Likewise.
16040         * modules/getcwd-lgpl (Depends-on): Likewise.
16041         * modules/getdelim (Depends-on): Likewise.
16042         * modules/getdomainname (Depends-on): Likewise.
16043         * modules/getgroups (Depends-on): Likewise.
16044         * modules/gethostname (Depends-on): Likewise.
16045         * modules/getline (Depends-on): Likewise.
16046         * modules/getlogin_r (Depends-on): Likewise.
16047         * modules/getopt-posix (Depends-on): Likewise.
16048         * modules/getpeername (Depends-on): Likewise.
16049         * modules/getsockname (Depends-on): Likewise.
16050         * modules/getsockopt (Depends-on): Likewise.
16051         * modules/getsubopt (Depends-on): Likewise.
16052         * modules/getusershell (Depends-on): Likewise.
16053         * modules/glob (Depends-on): Likewise.
16054         * modules/grantpt (Depends-on): Likewise.
16055         * modules/iconv_open (Depends-on): Likewise.
16056         * modules/iconv_open-utf (Depends-on): Likewise.
16057         * modules/inet_ntop (Depends-on): Likewise.
16058         * modules/inet_pton (Depends-on): Likewise.
16059         * modules/ioctl (Depends-on): Likewise.
16060         * modules/isapipe (Depends-on): Likewise.
16061         * modules/isfinite (Depends-on): Likewise.
16062         * modules/isinf (Depends-on): Likewise.
16063         * modules/lchown (Depends-on): Likewise.
16064         * modules/ldexpl (Depends-on): Likewise.
16065         * modules/link (Depends-on): Likewise.
16066         * modules/linkat (Depends-on): Likewise.
16067         * modules/listen (Depends-on): Likewise.
16068         * modules/logl (Depends-on): Likewise.
16069         * modules/lstat (Depends-on): Likewise.
16070         * modules/mbrlen (Depends-on): Likewise.
16071         * modules/mbrtowc (Depends-on): Likewise.
16072         * modules/mbsinit (Depends-on): Likewise.
16073         * modules/mbsnrtowcs (Depends-on): Likewise.
16074         * modules/mbsrtowcs (Depends-on): Likewise.
16075         * modules/mbtowc (Depends-on): Likewise.
16076         * modules/memcmp (Depends-on): Likewise.
16077         * modules/mkdir (Depends-on): Likewise.
16078         * modules/mkdtemp (Depends-on): Likewise.
16079         * modules/mkfifo (Depends-on): Likewise.
16080         * modules/mkfifoat (Depends-on): Likewise.
16081         * modules/mknod (Depends-on): Likewise.
16082         * modules/mkostemp (Depends-on): Likewise.
16083         * modules/mkostemps (Depends-on): Likewise.
16084         * modules/mkstemp (Depends-on): Likewise.
16085         * modules/mkstemps (Depends-on): Likewise.
16086         * modules/mktime (Depends-on): Likewise.
16087         * modules/nanosleep (Depends-on): Likewise.
16088         * modules/open (Depends-on): Likewise.
16089         * modules/openat (Depends-on): Likewise.
16090         * modules/perror (Depends-on): Likewise.
16091         * modules/poll (Depends-on): Likewise.
16092         * modules/popen (Depends-on): Likewise.
16093         * modules/posix_spawn (Depends-on): Likewise.
16094         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
16095         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
16096         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
16097         * modules/posix_spawnp (Depends-on): Likewise.
16098         * modules/pread (Depends-on): Likewise.
16099         * modules/printf-posix (Depends-on): Likewise.
16100         * modules/ptsname (Depends-on): Likewise.
16101         * modules/putenv (Depends-on): Likewise.
16102         * modules/pwrite (Depends-on): Likewise.
16103         * modules/readline (Depends-on): Likewise.
16104         * modules/readlink (Depends-on): Likewise.
16105         * modules/readlinkat (Depends-on): Likewise.
16106         * modules/recv (Depends-on): Likewise.
16107         * modules/recvfrom (Depends-on): Likewise.
16108         * modules/regex (Depends-on): Likewise.
16109         * modules/remove (Depends-on): Likewise.
16110         * modules/rename (Depends-on): Likewise.
16111         * modules/renameat (Depends-on): Likewise.
16112         * modules/rmdir (Depends-on): Likewise.
16113         * modules/round (Depends-on): Likewise.
16114         * modules/roundf (Depends-on): Likewise.
16115         * modules/roundl (Depends-on): Likewise.
16116         * modules/rpmatch (Depends-on): Likewise.
16117         * modules/select (Depends-on): Likewise.
16118         * modules/send (Depends-on): Likewise.
16119         * modules/sendto (Depends-on): Likewise.
16120         * modules/setenv (Depends-on): Likewise.
16121         * modules/setlocale (Depends-on): Likewise.
16122         * modules/setsockopt (Depends-on): Likewise.
16123         * modules/shutdown (Depends-on): Likewise.
16124         * modules/sigaction (Depends-on): Likewise.
16125         * modules/signbit (Depends-on): Likewise.
16126         * modules/sigprocmask (Depends-on): Likewise.
16127         * modules/sinl (Depends-on): Likewise.
16128         * modules/sleep (Depends-on): Likewise.
16129         * modules/snprintf (Depends-on): Likewise.
16130         * modules/snprintf-posix (Depends-on): Likewise.
16131         * modules/socket (Depends-on): Likewise.
16132         * modules/sprintf-posix (Depends-on): Likewise.
16133         * modules/sqrtl (Depends-on): Likewise.
16134         * modules/stat (Depends-on): Likewise.
16135         * modules/strchrnul (Depends-on): Likewise.
16136         * modules/strdup-posix (Depends-on): Likewise.
16137         * modules/strerror (Depends-on): Likewise.
16138         * modules/strerror_r-posix (Depends-on): Likewise.
16139         * modules/strndup (Depends-on): Likewise.
16140         * modules/strnlen (Depends-on): Likewise.
16141         * modules/strptime (Depends-on): Likewise.
16142         * modules/strsep (Depends-on): Likewise.
16143         * modules/strsignal (Depends-on): Likewise.
16144         * modules/strstr-simple (Depends-on): Likewise.
16145         * modules/strtod (Depends-on): Likewise.
16146         * modules/strtoimax (Depends-on): Likewise.
16147         * modules/strtok_r (Depends-on): Likewise.
16148         * modules/strtoumax (Depends-on): Likewise.
16149         * modules/symlink (Depends-on): Likewise.
16150         * modules/symlinkat (Depends-on): Likewise.
16151         * modules/tanl (Depends-on): Likewise.
16152         * modules/tcgetsid (Depends-on): Likewise.
16153         * modules/tmpfile (Depends-on): Likewise.
16154         * modules/trunc (Depends-on): Likewise.
16155         * modules/truncf (Depends-on): Likewise.
16156         * modules/truncl (Depends-on): Likewise.
16157         * modules/uname (Depends-on): Likewise.
16158         * modules/unlink (Depends-on): Likewise.
16159         * modules/unlockpt (Depends-on): Likewise.
16160         * modules/unsetenv (Depends-on): Likewise.
16161         * modules/usleep (Depends-on): Likewise.
16162         * modules/utimensat (Depends-on): Likewise.
16163         * modules/vasprintf (Depends-on): Likewise.
16164         * modules/vdprintf (Depends-on): Likewise.
16165         * modules/vdprintf-posix (Depends-on): Likewise.
16166         * modules/vfprintf-posix (Depends-on): Likewise.
16167         * modules/vprintf-posix (Depends-on): Likewise.
16168         * modules/vsnprintf (Depends-on): Likewise.
16169         * modules/vsnprintf-posix (Depends-on): Likewise.
16170         * modules/vsprintf-posix (Depends-on): Likewise.
16171         * modules/wcrtomb (Depends-on): Likewise.
16172         * modules/wcscasecmp (Depends-on): Likewise.
16173         * modules/wcscspn (Depends-on): Likewise.
16174         * modules/wcsdup (Depends-on): Likewise.
16175         * modules/wcsncasecmp (Depends-on): Likewise.
16176         * modules/wcsnrtombs (Depends-on): Likewise.
16177         * modules/wcspbrk (Depends-on): Likewise.
16178         * modules/wcsrtombs (Depends-on): Likewise.
16179         * modules/wcsspn (Depends-on): Likewise.
16180         * modules/wcsstr (Depends-on): Likewise.
16181         * modules/wcstok (Depends-on): Likewise.
16182         * modules/wcswidth (Depends-on): Likewise.
16183         * modules/wctob (Depends-on): Likewise.
16184         * modules/wctomb (Depends-on): Likewise.
16185         * modules/wctype (Depends-on): Likewise.
16186         * modules/wcwidth (Depends-on): Likewise.
16187         * modules/write (Depends-on): Likewise.
16188
16189 2011-05-03  Bruno Haible  <bruno@clisp.org>
16190
16191         Support for conditional dependencies.
16192         * doc/gnulib.texi (Module description): Document the syntax of
16193         conditional dependencies.
16194         * gnulib-tool: New option --conditional-dependencies.
16195         (func_usage): Document it.
16196         (cond_dependencies): New variable.
16197         (func_get_automake_snippet_conditional,
16198         func_get_automake_snippet_unconditional): New functions, extracted from
16199         func_get_automake_snippet.
16200         (func_get_automake_snippet): Use them.
16201         (sed_first_32_chars): New variable.
16202         (func_module_shellfunc_name): New function.
16203         (func_module_shellvar_name): New function.
16204         (func_module_conditional_name): New function.
16205         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
16206         func_cond_module_condition): New functions.
16207         (func_modules_transitive_closure): Add support for conditional
16208         dependencies.
16209         (func_emit_lib_Makefile_am): For a conditional module, enclose the
16210         conditional automake snippet in an automake conditional.
16211         (func_emit_autoconf_snippets): Emit shell functions that contain the
16212         code for conditional modules.
16213         (func_import, func_create_testdir): Update specification.
16214
16215 2011-05-03  Eric Blake  <eblake@redhat.com>
16216
16217         test-getaddrinfo: report error information
16218         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
16219
16220 2011-05-03  Jim Meyering  <meyering@redhat.com>
16221
16222         bootstrap: avoid build failure when $GZIP is set
16223         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
16224         program name.  If defined at all, it is supposed to list gzip options.
16225         Reported by Alan Curry in http://debbugs.gnu.org/8609
16226
16227 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
16228
16229         readme-release: new module with release instructions
16230         * modules/readme-release: New module.
16231         * top/README-release: New file, from coreutils, grep, diffutils.
16232         * MODULES.html.sh (Support for maintaining and releasing): Add it.
16233
16234 2011-05-02  Eric Blake  <eblake@redhat.com>
16235
16236         fflush: also replace fclose when fixing fflush
16237         * modules/fflush (Depends-on): Add fclose.
16238         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
16239         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
16240         memstreams with no backing fd.
16241         * doc/posix-functions/fclose.texi (fclose): Document the use of
16242         fflush module to fix the bug.
16243         * tests/test-fclose.c (main): Relax test when fclose is used in
16244         isolation.
16245
16246         fclose: add some tests
16247         * modules/fclose-tests: New test module.
16248         * tests/test-fclose.c: New file.
16249         * doc/posix-functions/fclose.texi (fclose): Document the bug.
16250
16251         fclose: reduced dependencies
16252         * modules/fclose (Depends-on): Switch from fflush/fseeko to
16253         simpler lseek.
16254         * lib/fclose.c (rpl_fclose): Likewise.
16255         Reported by Simon Josefsson.
16256
16257         exit: drop remaining clients
16258         * modules/argmatch (Depends-on): Replace exit with stdlib.
16259         * modules/copy-file (Depends-on): Likewise.
16260         * modules/execute (Depends-on): Likewise.
16261         * modules/exitfail (Depends-on): Likewise.
16262         * modules/obstack (Depends-on): Likewise.
16263         * modules/pagealign_alloc (Depends-on): Likewise.
16264         * modules/pipe-filter-gi (Depends-on): Likewise.
16265         * modules/pipe-filter-ii (Depends-on): Likewise.
16266         * modules/savewd (Depends-on): Likewise.
16267         * modules/spawn-pipe (Depends-on): Likewise.
16268         * modules/wait-process (Depends-on): Likewise.
16269         * modules/xsetenv (Depends-on): Likewise.
16270         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
16271         * modules/git-merge-changelog (Depends-on): Likewise.
16272         * modules/long-options (Depends-on): Likewise.
16273         * modules/pt_chown (Depends-on): Likewise.
16274         * modules/sysexits (Depends-on): Likewise.
16275
16276         freading: relax license from LGPLv3+ to LGPLv2+
16277         * modules/freading (License): Relax LGPL version.
16278
16279 2011-05-02  Bruno Haible  <bruno@clisp.org>
16280
16281         fchdir: Remove unused dependencies.
16282         * modules/fchdir (Depends-on): Remove include_next.
16283
16284 2011-05-02  Bruno Haible  <bruno@clisp.org>
16285
16286         gnulib-tool: Refactor.
16287         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
16288         from func_emit_autoconf_snippets.
16289         (func_emit_autoconf_snippets): Use it.
16290
16291 2011-05-02  Simon Josefsson  <simon@josefsson.org>
16292
16293         * NEWS: Document removal of 'exit'.
16294         * modules/exit: Remove file.
16295
16296 2011-05-01  Bruno Haible  <bruno@clisp.org>
16297
16298         Update DEPENDENCIES.
16299         * DEPENDENCIES (gettext): Recommend the newest release.
16300         Reported by Simon Josefsson.
16301
16302 2011-05-01  Bruno Haible  <bruno@clisp.org>
16303
16304         gnulib-tool: Reduce code duplication.
16305         * gnulib-tool (func_emit_autoconf_snippets): New function.
16306         (func_import, func_create_testdir): Use it.
16307
16308 2011-04-30  Eric Blake  <eblake@redhat.com>
16309
16310         fclose: don't fail on non-seekable input stream
16311         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
16312         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
16313         since fflush is allowed to fail in that case.
16314
16315 2011-04-30  Bruno Haible  <bruno@clisp.org>
16316
16317         dup3: cleanup
16318         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
16319
16320 2011-04-30  Bruno Haible  <bruno@clisp.org>
16321
16322         netdb: Make it work in C++ mode.
16323         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
16324         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
16325         module.
16326         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
16327         gl_MODULE_INDICATOR_FOR_TESTS.
16328         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
16329         * modules/netdb-c++-tests: New file.
16330         * tests/test-netdb-c++.cc: New file.
16331
16332 2011-04-30  Bruno Haible  <bruno@clisp.org>
16333
16334         New modules 'vfscanf', 'vscanf'.
16335         * modules/vfscanf: New file.
16336         * modules/vscanf: New file.
16337         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
16338         here.
16339         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
16340         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
16341
16342 2011-04-30  Bruno Haible  <bruno@clisp.org>
16343
16344         passfd: Add comments.
16345         * lib/passfd.c: Add comments about platforms.
16346
16347 2011-04-30  Bruno Haible  <bruno@clisp.org>
16348
16349         sys_uio: Make <sys/uio.h> self-contained.
16350         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
16351         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
16352
16353 2011-04-30  Bruno Haible  <bruno@clisp.org>
16354
16355         sys_socket: Ensure 'struct iovec' definition.
16356         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
16357         <sys/socket.h>.
16358         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
16359
16360 2011-04-30  Bruno Haible  <bruno@clisp.org>
16361
16362         sys_uio: Protect definition of 'struct iovec'.
16363         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
16364         it as a C struct.
16365
16366 2011-04-30  Bruno Haible  <bruno@clisp.org>
16367
16368         manywarnings: fix indentation
16369         * m4/manywarnings.m4: Indent by 2 spaces consistently.
16370
16371 2011-04-30  Pádraig Brady <P@draigBrady.com>
16372
16373         manywarnings: add -Wno-missing-field-initializers if needed.
16374         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
16375         option if it's needed to allow initialization with { 0, }
16376
16377 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
16378
16379         announce-gen: cosmetic improvement
16380         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
16381
16382 2011-04-29  Jim Meyering  <meyering@redhat.com>
16383
16384         vc-list-files: indent with spaces, not TABs
16385         * build-aux/vc-list-files: Convert leading TABs to spaces,
16386         to match the style of most other files in gnulib.
16387
16388         announce-gen: indent with spaces, not TABs
16389         * build-aux/announce-gen: Convert all TABs to spaces, to match
16390         the style of most other files in gnulib.
16391
16392 2011-04-29  Eric Blake  <eblake@redhat.com>
16393
16394         quotearg: avoid uninitialized variable use
16395         * lib/quotearg.c (quoting_options_from_style): Initialize
16396         remaining fields, and ensure that custom styles are only used via
16397         quoting_options rather than quoting_style.
16398
16399 2011-04-29  Jim Meyering  <meyering@redhat.com>
16400
16401         maint.mk: remove unused VC-tag variable
16402         * top/maint.mk (VC-tag): Remove unused variable.
16403
16404 2011-04-29  Bruno Haible  <bruno@clisp.org>
16405
16406         netdb: fix gai_strerror replacements
16407         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
16408         * modules/netdb: Substitute it.
16409
16410 2011-04-29  Jim Meyering  <meyering@redhat.com>
16411
16412         test-getcwd.c: avoid new set-but-not-used warning
16413         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
16414         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
16415         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
16416         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
16417
16418         test-hash.c: avoid a new shadowing warning
16419         * tests/test-hash.c (main): Don't shadow "dup".
16420
16421 2011-04-28  Eric Blake  <eblake@redhat.com>
16422
16423         getaddrinfo: fix gai_strerror signature
16424         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
16425         and work around mingw with UNICODE defined.
16426         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
16427         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
16428         * modules/netdb (Makefile.am): Substitute it.
16429         * lib/netdb.in.h (gai_strerror): Declare replacement.
16430         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
16431         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
16432         the fix.
16433
16434         getsockopt: avoid compiler warning
16435         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
16436         Reported by Matthias Bolte.
16437
16438         tests: drop unused link dependency
16439         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
16440         * modules/dirent-safer-tests (Makefile.am): Likewise.
16441         * modules/fdopendir-tests (Makefile.am): Likewise.
16442         * modules/mkfifoat-tests (Makefile.am): Likewise.
16443         * modules/openat-safer-tests (Makefile.am): Likewise.
16444         * modules/openat-tests (Makefile.am): Likewise.
16445         * modules/readlinkat-tests (Makefile.am): Likewise.
16446         * modules/symlinkat-tests (Makefile.am): Likewise.
16447         * modules/linkat-tests (Makefile.am): Likewise.
16448         (Depends-on): Switch to filenamecat-lgpl.
16449         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
16450         LIBINTL.
16451         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
16452         * tests/test-linkat.c (main): Don't require xalloc.
16453
16454         hash, mgetgroups: drop xalloc dependency
16455         * lib/hash.c (includes): Adjust includes.
16456         * lib/mgetgroups.c (includes): Likewise.
16457         (xgetgroups): Move...
16458         * lib/xgetgroups.c: ...to new file.
16459         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
16460         * modules/xgetgroups: New file, split from...
16461         * modules/mgetgroups: ...here.
16462         (Depends-on): Add xalloc-oversized.
16463         * modules/hash (Depends-on): Likewise.
16464         * modules/hash-tests (Depends-on): Drop xalloc.
16465         (test_hash_LDADD): Drop unused library.
16466         * tests/test-hash.c (main): Break xalloc dependency.
16467         (includes): Drop unused include.
16468
16469         xalloc-oversized: new module
16470         * modules/xalloc-oversized: New module.
16471         * modules/xalloc (Depends-on): Add it.
16472         * lib/xalloc.h (xalloc_oversized): Move...
16473         * lib/xalloc-oversized.h: ...into new file.
16474
16475         utimecmp: drop dependency on xmalloc
16476         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
16477         due to memory pressure.
16478         * modules/utimecmp (Depends-on): Drop xalloc.
16479
16480 2011-04-27  Eric Blake  <eblake@redhat.com>
16481
16482         getcwd: fix mingw bugs
16483         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
16484         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
16485         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
16486
16487 2011-04-27  Bruno Haible  <bruno@clisp.org>
16488
16489         mkstemps: Ensure declaration on MacOS X 10.5.
16490         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
16491         * doc/glibc-functions/mkstemps.texi: Document header file problem on
16492         MacOS X.
16493
16494 2011-04-27  Bruno Haible  <bruno@clisp.org>
16495
16496         mkstemp: More documentation.
16497         * doc/posix-functions/mkstemp.texi: Document header file problem on
16498         MacOS X.
16499
16500 2011-04-27  Bruno Haible  <bruno@clisp.org>
16501
16502         mkstemp: Tweak configure message when cross-compiling.
16503         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
16504         result as a guess.
16505
16506 2011-04-27  Bruno Haible  <bruno@clisp.org>
16507
16508         clean-temp: Clarify what it does.
16509         * lib/clean-temp.h: Add more comments.
16510         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
16511         module.
16512         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
16513         * doc/glibc-functions/mkstemps.texi: Likewise.
16514         * doc/glibc-functions/mkostemps.texi: Likewise.
16515
16516 2011-04-27  Eric Blake  <eblake@redhat.com>
16517
16518         fchdir: avoid extra chdir and fix test
16519         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
16520         getcwd-lgpl.
16521         * lib/fchdir.c (get_name): Any absolute name will do; it does not
16522         have to be canonical.
16523         (canonicalize_file_name): Drop unused macro.
16524         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
16525
16526         filenamecat-lgpl: fix licence
16527         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
16528         when it was first created.
16529
16530         linkat, renameat: add missing dependency
16531         * modules/linkat (Depends-on): Require getcwd-lgpl.
16532         * modules/renameat (Depends-on): Likewise.
16533
16534         tests: reduce dependencies
16535         * tests/test-linkat.c (main): Use lighter-weight getcwd.
16536         * tests/test-renameat.c (main): Likewise.
16537         * modules/linkat-tests (Depends-on): Relax dependency.
16538         * modules/renameat-tests (Depends-on): Likewise.
16539         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
16540         dependency explicit.
16541
16542         save-cwd: reduce default dependency
16543         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
16544         * lib/save-cwd.c: Update comments.
16545         * NEWS: Document the semantic change.
16546
16547         getcwd: enhance tests
16548         * tests/test-getcwd-lgpl.c: New file, taken from...
16549         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
16550         repeat long path stress tests from m4 probe.
16551         * modules/getcwd-lgpl-tests: New module.
16552         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
16553         * m4/getcwd-abort-bug.m4: Update comment.
16554         * m4/getcwd-path-max.m4: Likewise.
16555
16556         getcwd-lgpl: new module
16557         * modules/getcwd-lgpl: New module.
16558         * lib/getcwd-lgpl.c: New file.
16559         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16560         * MODULES.html.sh (lacking POSIX:2008): Likewise.
16561         * modules/getcwd (configure.ac): Set C witness.
16562         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
16563
16564         getcwd: tweak comments
16565         * m4/getcwd-abort-bug.m4: Fix comments.
16566         * m4/getcwd-path-max.m4: Likewise.
16567         * m4/getcwd.m4: Likewise.
16568
16569 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16570         and Eric Blake  <eblake@redhat.com>
16571
16572         mkstemp: replace if system version uses wrong permissions
16573         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
16574         read/write mode bits set in file created by mkstemp.
16575         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
16576
16577 2011-04-27  Eric Blake  <eblake@redhat.com>
16578
16579         passfd: avoid compiler warning
16580         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
16581         Reported by Laine Stump.
16582
16583 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
16584
16585         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
16586         required by the NetBSD (and perhaps other 4.4BSD derived) join.
16587
16588 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16589         and Eric Blake  <eblake@redhat.com>
16590
16591         mkstemp: mention clean-temp module
16592         * lib/mkstemp.c: Add comment.
16593         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
16594
16595 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
16596
16597         inttypes: also provide default values for 32-bit tests
16598         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
16599         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
16600
16601 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
16602
16603         strtoumax: remove dependency on strtoimax
16604         This is like the strtoull change of yesterday.
16605         * modules/strtoumax (Files): Add lib/strtoimax.c.
16606         (Depends-on): Remove strtoimax and add verify.
16607
16608         inttypes-incomplete: new module
16609         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
16610         all but the PRI* and SCN* parts of gl_INTTYPES_H.
16611         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
16612         of gl_INTTYPES_H.
16613         (gl_INTTYPES_H): Rewrite in terms of these new macros.
16614         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
16615         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
16616         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
16617         * modules/strtoumax, modules/xstrtol (Depends-on):
16618         Depend on inttypes-incomplete, not inttypes.
16619         * modules/inttypes-incomplete: New module, containing the contents
16620         of the old modules/inttypes module, except that the Files: section
16621         omits m4/inttypes-pri.m4, and the configure.ac section invokes
16622         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
16623         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
16624         (Depends-on): Depend only on inttypes-incomplete.
16625         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
16626
16627         inttypes: omit now-redundant strtoimax and strtoumax work
16628         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
16629         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
16630
16631         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
16632         This supports apps that need pointers to strtoimax and strtoumax,
16633         and ports to HP-UX 11.00 64.bit, which has macros that expand to
16634         nonexistent functions.  See
16635         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
16636         et seq.
16637         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
16638         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
16639         a macro.
16640         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
16641
16642 2011-04-25  Simon Josefsson  <simon@josefsson.org>
16643
16644         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
16645
16646 2011-04-25  Bruno Haible  <bruno@clisp.org>
16647
16648         strtol, strtoul: Mark modules as obsolete.
16649         * modules/strtol (Status, Notice): New sections.
16650         * modules/strtoul (Status, Notice): New sections.
16651
16652 2011-04-25  Bruno Haible  <bruno@clisp.org>
16653
16654         strtod: Remove check for strtod, unless supporting old platforms.
16655         * modules/strtod-obsolete: New file.
16656         * m4/strtod-obsolete.m4: New file.
16657         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
16658         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
16659         * modules/strtod (Depends-on): Add strtod-obsolete.
16660         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
16661
16662 2011-04-25  Bruno Haible  <bruno@clisp.org>
16663
16664         strcase: Make module obsolete.
16665         * modules/strcase (Status, Notice): New sections.
16666
16667 2011-04-25  Bruno Haible  <bruno@clisp.org>
16668
16669         dup2: Remove check for dup2, unless supporting old obsolete platforms.
16670         * modules/dup2-obsolete: New file.
16671         * m4/dup2-obsolete.m4: New file.
16672         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
16673         gl_FUNC_DUP2_OBSOLETE is not also defined.
16674         * modules/dup2 (Depends-on): Add dup2-obsolete.
16675         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
16676
16677 2011-04-25  Bruno Haible  <bruno@clisp.org>
16678
16679         strnlen: Avoid memchr related link error on old obsolete platforms.
16680         * modules/memchr-obsolete: New file.
16681         * m4/memchr-obsolete.m4: New file.
16682         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
16683         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
16684         * modules/memchr (Depends-on): Add memchr-obsolete.
16685         * modules/strnlen (Depends-on): Likewise.
16686         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
16687
16688 2011-04-25  Jim Meyering  <meyering@redhat.com>
16689
16690         maint.mk: makefile_at_at_check extend and clean up
16691         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
16692         in addition to */Makefile.am.
16693         Exempt legitimate uses of @VAR@ notation, e.g.,
16694         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
16695         Remove obsolete coreutils-specific comment.
16696         Prompted by discussion here:
16697         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
16698
16699 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
16700
16701         strtoul: remove dependency on strtol
16702         This is so that 'configure' need not check for strtol merely because
16703         the application needs strtoul.
16704         * modules/strtoul (Files): Add lib/strtol.c.
16705         (Depends-on): Remove strtol.
16706
16707         strtoull: remove dependency on strtoul
16708         This is like the strtoll change.
16709         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
16710         (Depends-on): Remove strtoul.
16711
16712         strtoll: remove dependency on strtol
16713         This is so that 'configure' need not check for strtol merely because
16714         the application needs strtoll.
16715         * modules/strtoll (Files): Add lib/strtol.c.
16716         (Depends-on): Remove strtol.
16717
16718 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16719
16720         inttypes: Move some configure check to module 'imaxdiv'.
16721         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
16722         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
16723         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
16724
16725 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16726
16727         inttypes: Move some configure check to module 'imaxabs'.
16728         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
16729         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
16730         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
16731
16732 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16733
16734         inttypes: Remove configure tests that are not needed since 2009-12-31.
16735         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
16736         gl_cv_header_working_inttypes_h.
16737
16738 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16739
16740         * modules/strnlen (Depends-on): Remove memchr.
16741         The strnlen implementation doesn't need the memchr module's fixes; see
16742         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
16743
16744         strtol: remove dependency on wchar
16745         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
16746         * modules/strtol (Depends-on): Remove wchar.
16747
16748 2011-04-21  Eric Blake  <eblake@redhat.com>
16749
16750         passfd: fix test regression on Linux
16751         * modules/passfd-tests (configure.ac): Correct socketpair check.
16752
16753         passfd: speed up configure and drop unused code
16754         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
16755         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
16756         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
16757         Instead of probing at configure for unix_scm_rights_bsd44_way,
16758         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
16759         check to a struct member probe.
16760         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
16761         (sendfd, recvfd): Update preprocessor checks.
16762         * modules/passfd (Files): Reflect rename, and drop unused file.
16763         (Depends-on): Drop unused dependency.
16764
16765         passfd: allow compilation on mingw
16766         * modules/sys_socket (Depends-on): Add sys_uio.
16767         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
16768         iovec and a minimal struct msghdr.
16769         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
16770         * tests/test-sys_socket.c (main): Enhance test.
16771         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
16772         guaranteed to provide what we need.
16773         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
16774         * modules/passfd-tests (Depends-on): Add sys_wait.
16775         * tests/test-passfd.c (main): Skip test on mingw, for now.
16776         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
16777         partial 'struct msghdr' implementation.
16778
16779         sys_uio: new module
16780         * modules/sys_uio: New module.
16781         * modules/sys_uio-tests: Likewise.
16782         * lib/sys_uio.in.h: New file.
16783         * m4/sys_uio_h.m4: Likewise.
16784         * tests/test-sys_uio.c: Likewise.
16785         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
16786         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
16787
16788 2011-04-20  Jim Meyering  <meyering@redhat.com>
16789
16790         useless-if-before-free: avoid false-positive
16791         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
16792         disjunct so that it too requires a terminating ";".  Without that,
16793         this script would identify as useless one statement from gcc that
16794         was not:
16795           if (aligned_ptr)
16796             free (((void **) aligned_ptr) [-1]);
16797
16798 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
16799
16800         doc: update users.txt.
16801         * users.txt: Add barcode.
16802
16803 2011-04-19  Bruno Haible  <bruno@clisp.org>
16804
16805         ioctl: Remove link dependency on native Windows.
16806         * lib/fd-hook.h: Renamed from lib/close-hook.h.
16807         (gl_close_fn, gl_ioctl_fn): New types.
16808         (struct fd_hook): Renamed from struct close_hook. Change type of
16809         private_close_fn field. Add private_ioctl_fn field.
16810         (close_hook_fn): Add parameter for primary close method.
16811         (execute_close_hooks, execute_all_close_hooks): Likewise.
16812         (ioctl_hook_fn): New type.
16813         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
16814         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
16815         argument.
16816         (unregister_fd_hook): Renamed from unregister_close_hook.
16817         * lib/fd-hook.c: Renamed from lib/close-hook.c.
16818         Don't include <unistd.h>.
16819         (close): Remove undef.
16820         (anchor): Update.
16821         (execute_close_hooks): Add argument for primary close method.
16822         (execute_all_close_hooks): Likewise.
16823         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
16824         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
16825         argument. Allow each argument to be NULL.
16826         (unregister_fd_hook): Renamed from unregister_close_hook.
16827         * lib/close.c (rpl_close): Pass 'close' function pointer to
16828         execute_all_close_hooks.
16829         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
16830         (primary_ioctl): New function.
16831         (ioctl): Don't call ioctlsocket here. Instead, call
16832         execute_all_ioctl_hooks.
16833         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
16834         close method.
16835         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
16836         (fd_sockets_hook): Renamed from close_sockets_hook.
16837         (gl_sockets_startup, gl_sockets_cleanup): Update.
16838         * modules/fd-hook: Renamed from modules/close-hook. Update.
16839         * modules/close (Depends-on): Add fd-hook, remove close-hook.
16840         * modules/sockets (Depends-on): Likewise.
16841         * modules/ioctl (Depends-on): Add fd-hook.
16842         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
16843         GNULIB_SOCKET.
16844
16845 2011-04-19  Bruno Haible  <bruno@clisp.org>
16846
16847         Move the support of O_NONBLOCK in open() to the 'open' module.
16848         * modules/nonblocking (Depends-on): Remove 'open'.
16849         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
16850         gl_cv_have_open_O_NONBLOCK.
16851         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
16852         O_NONBLOCK support.
16853         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
16854
16855 2011-04-17  Bruno Haible  <bruno@clisp.org>
16856
16857         pipe2: Simplify code.
16858         * lib/pipe2.c (pipe2): Reduce code duplication.
16859
16860 2011-04-17  Bruno Haible  <bruno@clisp.org>
16861
16862         nonblocking: Add comment.
16863         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
16864
16865 2011-04-17  Bruno Haible  <bruno@clisp.org>
16866
16867         nonblocking: Add tests for sockets.
16868         * tests/test-nonblocking-socket.sh: New file.
16869         * tests/test-nonblocking-socket-main.c: New file.
16870         * tests/test-nonblocking-socket-child.c: New file.
16871         * tests/test-nonblocking-socket.h: New file.
16872         * tests/socket-server.h: New file.
16873         * tests/socket-client.h: New file.
16874         * modules/nonblocking-socket-tests: New file.
16875         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
16876
16877 2011-04-17  Bruno Haible  <bruno@clisp.org>
16878
16879         nonblocking: Add tests for pipes.
16880         * tests/test-nonblocking-pipe.sh: New file.
16881         * tests/test-nonblocking-pipe-main.c: New file.
16882         * tests/test-nonblocking-pipe-child.c: New file.
16883         * tests/test-nonblocking-pipe.h: New file.
16884         * tests/test-nonblocking-writer.h: New file.
16885         * tests/test-nonblocking-reader.h: New file.
16886         * tests/test-nonblocking-misc.h: New file.
16887         * modules/nonblocking-pipe-tests: New file.
16888         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
16889
16890 2011-04-16  Bruno Haible  <bruno@clisp.org>
16891
16892         gettext: Clarify the needed programmer actions.
16893         * modules/gettext (Notice): New field.
16894         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
16895
16896 2011-04-16  Bruno Haible  <bruno@clisp.org>
16897
16898         strchrnul: Tweak last commit.
16899         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
16900         bug.
16901         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
16902         as in _GL_FUNCDECL_SYS.
16903         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
16904         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
16905
16906 2011-04-15  Eric Blake  <eblake@redhat.com>
16907
16908         strchrnul: work around cygwin bug
16909         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
16910         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
16911         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
16912         * modules/string (Makefile.am): Substitute it.
16913         * lib/string.in.h (strchrnul): Use it.
16914
16915 2011-04-15  Bruno Haible  <bruno@clisp.org>
16916
16917         Don't require lib/stdio-write.c when only module 'stdio' is used.
16918         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
16919         invocation.
16920         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
16921
16922 2011-04-14  Bruno Haible  <bruno@clisp.org>
16923
16924         Support non-blocking pipe I/O in read() on native Windows.
16925         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
16926         (read): New declaration.
16927         * lib/read.c: New file.
16928         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
16929         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
16930         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
16931         vscanf): New declarations.
16932         * lib/stdio-read.c: New file.
16933         * m4/read.m4: New file.
16934         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
16935         REPLACE_READ.
16936         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
16937         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
16938         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
16939         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
16940         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
16941         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
16942         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
16943         * modules/read: New file.
16944         * modules/nonblocking (Files): Add lib/stdio-read.c.
16945         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
16946         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
16947         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
16948         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
16949         * modules/pread (Depends-on): Add read.
16950         * modules/safe-read (Depends-on): Likewise.
16951         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
16952         gets, scanf, vfscanf, vscanf): Verify signatures.
16953         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
16954         problem with non-blocking pipes.
16955         * doc/posix-functions/fgetc.texi: Likewise.
16956         * doc/posix-functions/fgets.texi: Likewise.
16957         * doc/posix-functions/fread.texi: Likewise.
16958         * doc/posix-functions/fscanf.texi: Likewise.
16959         * doc/posix-functions/getc.texi: Likewise.
16960         * doc/posix-functions/getchar.texi: Likewise.
16961         * doc/posix-functions/gets.texi: Likewise.
16962         * doc/posix-functions/scanf.texi: Likewise.
16963         * doc/posix-functions/vfscanf.texi: Likewise.
16964         * doc/posix-functions/vscanf.texi: Likewise.
16965
16966 2011-04-14  Bruno Haible  <bruno@clisp.org>
16967
16968         Support non-blocking pipe I/O in write() on native Windows.
16969         * lib/write.c (rpl_write): Split a write request that failed merely
16970         because the byte count was larger than the pipe buffer's size.
16971         * doc/posix-functions/write.texi: Mention the problem with large byte
16972         counts.
16973
16974 2011-04-14  Bruno Haible  <bruno@clisp.org>
16975
16976         wchar: Ensure that wchar_t gets defined on uClibc.
16977         * lib/wchar.in.h: On uClibc, include <stddef.h>.
16978         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
16979
16980 2011-04-13  Bruno Haible  <bruno@clisp.org>
16981
16982         safe-write, full-read: Avoid unnecessary compilation units.
16983         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
16984         (Depends-on): Remove safe-read. Add ssize_t.
16985         * modules/full-read (Files): Add lib/full-write.c.
16986         (Depends-on): Add full-write.
16987
16988 2011-04-13  Bruno Haible  <bruno@clisp.org>
16989
16990         Support non-blocking pipe I/O and SIGPIPE in pwrite().
16991         * modules/pwrite (Depends-on): Add 'write'.
16992
16993 2011-04-13  Bruno Haible  <bruno@clisp.org>
16994
16995         Support non-blocking pipe I/O in write() on native Windows.
16996         * lib/unistd.in.h (write): Enable replacement also if
16997         GNULIB_UNISTD_H_NONBLOCKING is 1.
16998         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
16999         (rpl_write): When failing to write on a non-blocking pipe, change
17000         errno from ENOSPC to EAGAIN.
17001         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
17002         putchar, puts, vfprintf, vprintf): Enable replacement also if
17003         GNULIB_STDIO_H_NONBLOCKING is 1.
17004         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
17005         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
17006         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
17007         CALL_WITH_SIGPIPE_EMULATION.
17008         (CALL_WITH_SIGPIPE_EMULATION): Use them.
17009         * m4/nonblocking.m4: New file.
17010         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
17011         for non-blocking I/O support.
17012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17013         GNULIB_UNISTD_H_NONBLOCKING.
17014         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
17015         required for non-blocking I/O support.
17016         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
17017         * modules/nonblocking (Files): Add m4/nonblocking.m4,
17018         lib/stdio-write.c, m4/asm-underscore.m4.
17019         (Depends-on): Add stdio, unistd.
17020         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
17021         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
17022         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
17023         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
17024         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
17025         problem with non-blocking pipes.
17026         * doc/posix-functions/fputc.texi: Likewise.
17027         * doc/posix-functions/fputs.texi: Likewise.
17028         * doc/posix-functions/fwrite.texi: Likewise.
17029         * doc/posix-functions/printf.texi: Likewise.
17030         * doc/posix-functions/putc.texi: Likewise.
17031         * doc/posix-functions/putchar.texi: Likewise.
17032         * doc/posix-functions/puts.texi: Likewise.
17033         * doc/posix-functions/vfprintf.texi: Likewise.
17034         * doc/posix-functions/vprintf.texi: Likewise.
17035         * doc/posix-functions/write.texi: Likewise.
17036
17037 2011-04-10  Jim Meyering  <meyering@redhat.com>
17038
17039         maint.mk: prohibit doubled words
17040         Detect them also when they're separated by a newline.
17041         There are 3 ways to customize it:
17042           - disable the test on a per file basis, as usual with rules using
17043             $(VC_LIST_EXCEPT)
17044           - replace the default doubled-word-selecting regexp (affects all files)
17045           - ignore a particular file-vs-doubled-word match
17046         I nearly used that last one to ignore the "is is" match in
17047         coreutils' NEWS file, since the text was "ls -is is ..."
17048         To do that, I would have added this line to cfg.mk:
17049           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
17050         but it would have ignored any "is is" match in NEWS.
17051         Low probability, but still...
17052         Instead, I changed the text, slightly:
17053           -  ls -is is now consistent with ls -lis in ignoring values returned
17054           +  "ls -is" is now consistent with ls -lis in ignoring values returned
17055         * top/maint.mk (prohibit_double_word_RE_): Provide default.
17056         (prohibit_doubled_word_): Define.
17057         (sc_prohibit_doubled_word): New rule.
17058         (sc_prohibit_the_the): Remove.  Subsumed by the above.
17059
17060 2011-04-10  Jim Meyering  <meyering@redhat.com>
17061
17062         maint: fix doubled-word typo in comment
17063         * m4/gethostname.m4: s/is is/it is/
17064         * m4/getdomainname.m4: Likewise.
17065
17066 2011-04-10  Jim Meyering  <meyering@redhat.com>
17067
17068         maint: remove doubled word: s/it it/it/
17069         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
17070
17071 2011-04-10  Jim Meyering  <meyering@redhat.com>
17072
17073         maint.mk: remove useless semicolon and backslash
17074         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
17075         semicolon and backslash.
17076
17077 2011-04-10  Bruno Haible  <bruno@clisp.org>
17078
17079         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
17080         * modules/stdint-tests (Depends-on): Add wchar.
17081
17082 2011-04-10  Jim Meyering  <meyering@redhat.com>
17083
17084         maint: remove doubled words in comments, e.g., s/a a/a/
17085         * lib/strptime.c (day_of_the_week): s/the the/the/
17086         * tests/test-chown.h (test_chown): s/a a/a/
17087
17088         test-chown.h: correct a cast
17089         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
17090         when the destination is a stat.st_gid.
17091
17092 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
17093
17094         getaddrinfo: Fix test for sa_len member.
17095         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
17096         include <sys/types.h> before <sys/socket.h>.
17097
17098 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17099
17100         maint: change "can not" to "cannot"
17101         * doc/posix-functions/iconv.texi (iconv): This one crossed line
17102         boundaries.
17103
17104 2011-04-09  Jim Meyering  <meyering@redhat.com>
17105
17106         maint: change "a a" to "a"
17107         * tests/test-lchown.h (test_lchown): s/a a/a/
17108
17109         maint.mk: prohibit \<the the\>
17110         * top/maint.mk (sc_prohibit_the_the): New rule.
17111
17112         maint: fix "the the" in comment
17113         * lib/count-one-bits.h: s/the the/the/
17114
17115         maint: change "can not" to "cannot"
17116         But do not change the occurrences in maintain.texi or in
17117         build-aux/po/Makefile.in.in, which I presume comes from gettext.
17118         * doc/gnulib-tool.texi: s/can not/cannot/
17119         * doc/posix-functions/accept.texi (accept): Likewise.
17120         * doc/posix-functions/socket.texi (socket): Likewise.
17121         * lib/mbrtowc.c: Likewise.
17122
17123         maint.mk: prohibit use of "can not"
17124         * top/maint.mk (sc_prohibit_can_not): New rule.
17125         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
17126
17127 2011-04-09  Bruno Haible  <bruno@clisp.org>
17128
17129         careadlinkat: Guard against misuse of careadlinkatcwd.
17130         * lib/careadlinkat.c: Include <stdlib.h>.
17131         (careadlinkatcwd): Check that the fd argument is as expected.
17132
17133 2011-04-09  Bruno Haible  <bruno@clisp.org>
17134
17135         careadlinkat: Use common coding style.
17136         * lib/careadlinkat.c: Move gnulib includes after system includes.
17137
17138 2011-04-09  Bruno Haible  <bruno@clisp.org>
17139
17140         careadlinkat: Clarify specification.
17141         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
17142         (careadlinkatcwd): Add comment.
17143         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
17144
17145 2011-04-09  Bruno Haible  <bruno@clisp.org>
17146
17147         areadlinkat: Avoid link error on many platforms.
17148         * modules/areadlinkat (Depends-on): Add areadlink.
17149
17150 2011-04-09  Bruno Haible  <bruno@clisp.org>
17151
17152         allocator, careadlinkat: Fix double-inclusion guard.
17153         * lib/allocator.h: Fix double-inclusion guard.
17154         * lib/careadlinkat.h: Likewise.
17155
17156 2011-04-09  Bruno Haible  <bruno@clisp.org>
17157
17158         relocatable-prog-wrapper: Update after module 'areadlink' changed.
17159         * lib/relocwrapper.c: Update dependencies hierarchy.
17160         * build-aux/install-reloc: Update list of files to be compiled.
17161         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
17162         lib/allocator.[hc].
17163
17164 2011-04-08  Eric Blake  <eblake@redhat.com>
17165
17166         strftime: silence gnulib-tool warning
17167         * modules/strftime-tests (Depends-on): Drop automatic dependency.
17168
17169 2011-04-08  Bruno Haible  <bruno@clisp.org>
17170
17171         verify: Fix syntax error with GCC 4.6 in C++ mode.
17172         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
17173         (HAVE_STATIC_ASSERT): New macro.
17174         (verify_true, verify): Use 'static_assert' if it is supported and
17175         '_Static_assert' is not supported.
17176
17177 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
17178
17179         allocator: New module.
17180         * modules/allocator, lib/allocator.c: New files.
17181         * lib/allocator.h (stdlib_allocator): New decl.
17182         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
17183         Remove.  Do not include <stdlib.h>.
17184         (careadlinkat): Use stdlib_allocator instead of rolling our own.
17185         * modules/careadlinkat (Files): Remove lib/allocator.h.
17186         (Depends-on): Add allocator.
17187
17188         stdlib: let modules use system malloc, realloc
17189         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
17190         if !_GL_USE_STDLIB_ALLOC.
17191         (malloc, realloc): Limit this change to a smaller scope.
17192
17193         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
17194         (malloc, realloc): Don't #undef; no longer needed.
17195         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17196         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17197         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17198         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17199         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17200         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17201         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17202         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17203
17204         careadlinkat: rename members to avoid problem
17205         * lib/allocator.h (struct allocator): Rename members from
17206         malloc/realloc to allocate/reallocate, to avoid problems if malloc
17207         and realloc are #define'd.  Reported by Eric Blake in
17208         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
17209         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
17210
17211 2011-04-08  Eric Blake  <eblake@redhat.com>
17212
17213         nonblocking: reduce dependency
17214         * tests/test-nonblocking.c: Only test sockets when in use.
17215         * modules/nonblocking-tests (Depends-on): Drop socket.
17216         (Makefile.am): Link even if sockets are not present.
17217         * modules/pipe2-tests (Makefile.am): Likewise.
17218         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
17219
17220         pipe2: fix O_NONBLOCK support on mingw
17221         * modules/pipe2 (Depends-on): Add nonblocking.
17222         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
17223         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
17224         * tests/test-nonblocking.c (main): Likewise.
17225         * modules/pipe2-tests (Makefile.am): Avoid link failure.
17226
17227         fcntl-h: fix O_ACCMODE on cygwin
17228         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
17229         * lib/fcntl.in.h (O_ACCMODE): Fix it.
17230
17231         pipe-filter: drop O_NONBLOCK workarounds
17232         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
17233         * modules/pipe-filter-ii (Depends-on): Likewise.
17234         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
17235
17236         nonblocking: provide O_NONBLOCK for mingw
17237         * modules/nonblocking (Depends-on): Add open.
17238         (configure.ac): Set new witness macro.
17239         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
17240         * modules/fcntl-h (Makefile.am): Substitute it.
17241         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
17242         nonblocking module is in use.
17243         * lib/nonblocking.c: Adjust portability test.
17244         * lib/open.c (open): Don't let native open see gnulib flag.
17245         * tests/test-fcntl-h.c (main): Enhance test.
17246         * tests/test-open.h (test_open): Likewise.
17247         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
17248
17249         careadlinkat: fix compilation error on mingw
17250         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
17251         within struct allocator.
17252
17253 2011-04-06  Eric Blake  <eblake@redhat.com>
17254
17255         binary-io: relicense under LGPLv2+
17256         * modules/binary-io (License): Relax to LGPLv2+.
17257         Requested for libvirt, and required by pipe2.
17258
17259 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
17260
17261         verify: use _Static_assert if available
17262         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
17263         (verify_true, verify): Use it if available.  This generates better
17264         diagnostics with GCC 4.6.0 and later.
17265
17266 2011-04-05  Bruno Haible  <bruno@clisp.org>
17267
17268         Remove leftover generated .h files after config.status changed.
17269
17270         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
17271         GL_GENERATE_ALLOCA_H.
17272         * modules/alloca-opt (Makefile.am): Remove alloca.h if
17273         GL_GENERATE_ALLOCA_H evaluates to false.
17274
17275         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
17276         GL_GENERATE_ARGZ_H.
17277         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
17278         evaluates to false.
17279
17280         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
17281         GL_GENERATE_BYTESWAP_H.
17282         * modules/byteswap (Makefile.am): Remove byteswap.h if
17283         GL_GENERATE_BYTESWAP_H evaluates to false.
17284
17285         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
17286         GL_GENERATE_ERRNO_H.
17287         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
17288         evaluates to false.
17289
17290         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
17291         GL_GENERATE_FLOAT_H.
17292         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
17293         evaluates to false.
17294
17295         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
17296         GL_GENERATE_FNMATCH_H.
17297         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
17298         GL_GENERATE_FNMATCH_H evaluates to false.
17299
17300         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
17301         GL_GENERATE_GLOB_H.
17302         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
17303         evaluates to false.
17304
17305         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
17306         automake conditional GL_GENERATE_ICONV_H.
17307         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
17308         evaluates to false.
17309
17310         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
17311         GL_GENERATE_NETINET_IN_H.
17312         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
17313         GL_GENERATE_NETINET_IN_H evaluates to false.
17314
17315         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
17316         conditional GL_GENERATE_PTHREAD_H.
17317         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
17318         * modules/pthread (Makefile.am): Remove pthread.h if
17319         GL_GENERATE_PTHREAD_H evaluates to false.
17320
17321         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
17322         GL_GENERATE_SCHED_H.
17323         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
17324         evaluates to false.
17325
17326         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
17327         conditional GL_GENERATE_SELINUX_CONTEXT_H.
17328         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
17329         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
17330
17331         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
17332         GL_GENERATE_STDARG_H.
17333         * modules/stdarg (Makefile.am): Remove stdarg.h if
17334         GL_GENERATE_STDARG_H evaluates to false.
17335
17336         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
17337         GL_GENERATE_STDBOOL_H.
17338         * modules/stdbool (Makefile.am): Remove stdbool.h if
17339         GL_GENERATE_STDBOOL_H evaluates to false.
17340
17341         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
17342         conditional GL_GENERATE_STDDEF_H.
17343         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
17344         * modules/stddef (Makefile.am): Remove stddef.h if
17345         GL_GENERATE_STDDEF_H evaluates to false.
17346
17347         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
17348         GL_GENERATE_STDINT_H.
17349         * modules/stdint (Makefile.am): Remove stdint.h if
17350         GL_GENERATE_STDINT_H evaluates to false.
17351
17352         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
17353         GL_GENERATE_SYSEXITS_H.
17354         * modules/sysexits (Makefile.am): Remove sysexits.h if
17355         GL_GENERATE_SYSEXITS_H evaluates to false.
17356
17357         Reported by Karl Berry and Ralf Wildenhues.
17358
17359 2011-04-05  Bruno Haible  <bruno@clisp.org>
17360
17361         Ensure to rebuild generated .h files when config.status has changed.
17362         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
17363         config.status.
17364         * modules/ctype (Makefile.am): Likewise.
17365         * modules/dirent (Makefile.am): Likewise.
17366         * modules/errno (Makefile.am): Likewise.
17367         * modules/fcntl-h (Makefile.am): Likewise.
17368         * modules/float (Makefile.am): Likewise.
17369         * modules/getopt-posix (Makefile.am): Likewise.
17370         * modules/glob (Makefile.am): Likewise.
17371         * modules/iconv-h (Makefile.am): Likewise.
17372         * modules/inttypes (Makefile.am): Likewise.
17373         * modules/langinfo (Makefile.am): Likewise.
17374         * modules/locale (Makefile.am): Likewise.
17375         * modules/math (Makefile.am): Likewise.
17376         * modules/netdb (Makefile.am): Likewise.
17377         * modules/netinet_in (Makefile.am): Likewise.
17378         * modules/poll-h (Makefile.am): Likewise.
17379         * modules/pthread (Makefile.am): Likewise.
17380         * modules/pty (Makefile.am): Likewise.
17381         * modules/sched (Makefile.am): Likewise.
17382         * modules/search (Makefile.am): Likewise.
17383         * modules/selinux-h (Makefile.am): Likewise.
17384         * modules/signal (Makefile.am): Likewise.
17385         * modules/spawn (Makefile.am): Likewise.
17386         * modules/stdarg (Makefile.am): Likewise.
17387         * modules/stdbool (Makefile.am): Likewise.
17388         * modules/stddef (Makefile.am): Likewise.
17389         * modules/stdint (Makefile.am): Likewise.
17390         * modules/stdio (Makefile.am): Likewise.
17391         * modules/stdlib (Makefile.am): Likewise.
17392         * modules/string (Makefile.am): Likewise.
17393         * modules/strings (Makefile.am): Likewise.
17394         * modules/sys_file (Makefile.am): Likewise.
17395         * modules/sys_ioctl (Makefile.am): Likewise.
17396         * modules/sys_select (Makefile.am): Likewise.
17397         * modules/sys_socket (Makefile.am): Likewise.
17398         * modules/sys_stat (Makefile.am): Likewise.
17399         * modules/sys_time (Makefile.am): Likewise.
17400         * modules/sys_times (Makefile.am): Likewise.
17401         * modules/sys_utsname (Makefile.am): Likewise.
17402         * modules/sys_wait (Makefile.am): Likewise.
17403         * modules/sysexits (Makefile.am): Likewise.
17404         * modules/termios (Makefile.am): Likewise.
17405         * modules/time (Makefile.am): Likewise.
17406         * modules/unistd (Makefile.am): Likewise.
17407         * modules/wchar (Makefile.am): Likewise.
17408         * modules/wctype-h (Makefile.am): Likewise.
17409         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
17410
17411 2011-04-05  Bruno Haible  <bruno@clisp.org>
17412
17413         pipe2: Relicense under LGPLv2+.
17414         * modules/pipe2 (License): Change to LGPLv2+.
17415         Requested by Eric Blake, for libvirt.
17416
17417 2011-04-05  Bruce Korb  <bkorb@gnu.org>
17418
17419         bootstrap: compute gnulib_extra_files after updating build_aux
17420         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
17421         change build_aux or also supply gnulib_extra_files.  Handle correctly.
17422
17423 2011-04-05  Eric Blake  <eblake@redhat.com>
17424
17425         bootstrap: preserve git whitelist item sorting
17426         * build-aux/bootstrap (sort_patterns): New function.
17427         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
17428
17429 2011-04-05  Simon Josefsson  <simon@josefsson.org>
17430
17431         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
17432         sc_space_tab check.
17433
17434 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
17435
17436         areadlink, areadlinkat: rewrite in terms of careadlinkat
17437         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
17438         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
17439         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
17440         (malloc, realloc): Remove #undefs.
17441         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
17442         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
17443         readlink, ssize_t, stdint, unistd.
17444         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
17445         areadlink, stdint.
17446
17447         careadlinkat: new module
17448         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
17449         * modules/careadlinkat: New files, written by me with
17450         a review and feedback from Ben Pfaff in
17451         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
17452
17453 2011-04-01  Bruno Haible  <bruno@clisp.org>
17454
17455         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
17456         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
17457         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
17458         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
17459         Reported by Bruce Korb <bruce.korb@gmail.com>.
17460
17461 2011-04-01  Bruno Haible  <bruno@clisp.org>
17462
17463         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
17464         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
17465         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
17466         * modules/wcpcpy (Depends-on): Add extensions.
17467         * modules/wcpncpy (Depends-on): Likewise.
17468         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
17469         systems.
17470         * doc/posix-functions/wcpncpy.texi: Likewise.
17471         * doc/posix-functions/wcwidth.texi: Likewise.
17472
17473 2011-03-31  Eric Blake  <eblake@redhat.com>
17474
17475         nonblocking: fix mingw test failures
17476         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
17477         non-blocking flag on regular file.
17478         (get_nonblocking_flag): Set errno on invalid fd.
17479         * tests/test-nonblocking.c (main): Avoid test failure on
17480         directories if fchdir is not active.
17481         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
17482
17483 2011-03-31  Bruno Haible  <bruno@clisp.org>
17484
17485         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
17486         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
17487         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
17488         Reported by Simon Josefsson <simon@josefsson.org>.
17489
17490 2011-03-31  Bruno Haible  <bruno@clisp.org>
17491         and Eric Blake  <eblake@redhat.com>
17492
17493         nonblocking: new module
17494         * modules/nonblocking: New module.
17495         * modules/nonblocking-tests: Likewise.
17496         * lib/nonblocking.h: New file.
17497         * lib/nonblocking.c: Likewise.
17498         * tests/test-nonblocking.c: New test.
17499         * lib/ioctl.c (ioctl) [mingw]: Update comment.
17500
17501 2011-03-30  Bruno Haible  <bruno@clisp.org>
17502
17503         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
17504         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
17505         instead of 'printf' format for GCC >= 4.4.
17506         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
17507         (fprintf, printf, vfprintf, vprintf): Declare with
17508         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
17509         the system's vfprintf() function.
17510         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
17511
17512 2011-03-30  Eric Blake  <eblake@redhat.com>
17513
17514         passfd: fix scoping bug
17515         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
17516         before sendmsg/recvmsg.
17517
17518         passfd: standardize coding conventions
17519         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
17520         can be learned at compile time.
17521         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
17522         ifdefs.
17523         (sendfd, recvfd): Follow gnulib code conventions.
17524
17525         passfd: fix incorrect sendmsg arguments
17526         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
17527         incorrect msg_controllen value.
17528         * modules/passfd-tests (Depends-on): Check for alarm.
17529         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
17530         Reported by Bastien ROUCARIES.
17531
17532 2011-03-30  Bruno Haible  <bruno@clisp.org>
17533
17534         c-strcasestr: Relicense under LGPLv2+.
17535         * modules/c-strcasestr (License): Change to LGPLv2+.
17536         Requested by Eric Blake, for libvirt.
17537
17538 2011-03-30  Simon Josefsson  <simon@josefsson.org>
17539
17540         * users.txt: Add libidn2.  Fix libtasn1 link.
17541
17542 2011-03-30  Jim Meyering  <meyering@redhat.com>
17543
17544         tests: readlink* ("",... fails with EINVAL on newer kernels
17545         readlink and readlinkat have typically failed with ENOENT for
17546         the invalid, empty file name,  "".  However, with the advent
17547         of linux-2.6.39, they fail with EINVAL.
17548         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
17549         when operating on the empty file name.
17550         * tests/test-readlink.h (test_readlink): Likewise.
17551
17552 2011-03-29  Bruno Haible  <bruno@clisp.org>
17553
17554         Relicense some modules under LGPLv2+, for libidn2.
17555         * modules/array-mergesort (License): Change to LGPLv2+.
17556         * modules/c-strcaseeq (License): Likewise.
17557         * modules/striconveh (License): Likewise.
17558         * modules/striconveha (License): Likewise.
17559         * modules/uniconv/base (License): Likewise.
17560         * modules/uniconv/u8-conv-from-enc (License): Likewise.
17561         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
17562         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
17563         * modules/unictype/base (License): Likewise.
17564         * modules/unictype/bidiclass-of (License): Likewise.
17565         * modules/unictype/category-M (License): Likewise.
17566         * modules/unictype/category-none (License): Likewise.
17567         * modules/unictype/category-of (License): Likewise.
17568         * modules/unictype/category-test (License): Likewise.
17569         * modules/unictype/category-test-withtable (License): Likewise.
17570         * modules/unictype/combining-class (License): Likewise.
17571         * modules/unictype/joiningtype-of (License): Likewise.
17572         * modules/unictype/scripts (License): Likewise.
17573         * modules/uninorm/base (License): Likewise.
17574         * modules/uninorm/canonical-decomposition (License): Likewise.
17575         * modules/uninorm/composition (License): Likewise.
17576         * modules/uninorm/decompose-internal (License): Likewise.
17577         * modules/uninorm/decomposition-table (License): Likewise.
17578         * modules/uninorm/nfc (License): Likewise.
17579         * modules/uninorm/nfd (License): Likewise.
17580         * modules/uninorm/u32-normalize (License): Likewise.
17581         * modules/unistr/base (License): Likewise.
17582         * modules/unistr/u32-cpy (License): Likewise.
17583         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
17584         * modules/unistr/u32-to-u8 (License): Likewise.
17585         * modules/unistr/u32-uctomb (License): Likewise.
17586         * modules/unistr/u8-check (License): Likewise.
17587         * modules/unistr/u8-mblen (License): Likewise.
17588         * modules/unistr/u8-mbtouc (License): Likewise.
17589         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
17590         * modules/unistr/u8-mbtoucr (License): Likewise.
17591         * modules/unistr/u8-prev (License): Likewise.
17592         * modules/unistr/u8-strlen (License): Likewise.
17593         * modules/unistr/u8-to-u32 (License): Likewise.
17594         * modules/unistr/u8-uctomb (License): Likewise.
17595         * modules/unitypes (License): Likewise.
17596         Requested by Simon Josefsson.
17597
17598 2011-03-29  Simon Josefsson  <simon@josefsson.org>
17599
17600         lib-symbol-visibility: Add a notice.
17601         * modules/lib-symbol-visibility (Notice): New field.
17602
17603 2011-03-29  Bruno Haible  <bruno@clisp.org>
17604
17605         getaddrinfo: Doc fix.
17606         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
17607         section "fixed in Gnulib".
17608
17609 2011-03-28  Simon Josefsson  <simon@josefsson.org>
17610
17611         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
17612         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
17613
17614 2011-03-26  Bruno Haible  <bruno@clisp.org>
17615
17616         unictype/property-byname: Reduce the number of load-time relocations.
17617         * lib/unictype/pr_byname.c: Include <stdlib.h>.
17618         (UC_PROPERTY_INDEX_*): New enumeration values.
17619         (uc_property_byname): Convert an index from the lookup table to an
17620         uc_property_t.
17621         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
17622         values.
17623
17624 2011-03-26  Bruno Haible  <bruno@clisp.org>
17625
17626         unictype/property-byname: Allow omitted word separators and aliases.
17627         * lib/unictype/pr_byname.gperf: Add property names without word
17628         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
17629         for 'space'.
17630
17631 2011-03-26  Bruno Haible  <bruno@clisp.org>
17632
17633         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
17634         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
17635         also hyphens to space.
17636         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
17637         without spaces.
17638         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
17639
17640 2011-03-26  Bruno Haible  <bruno@clisp.org>
17641
17642         unictype/joiningtype-byname: Recognize long names as well.
17643         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
17644         a long name.
17645         * lib/unictype/joiningtype_byname.c: Include <string.h>,
17646         unictype/joiningtype_byname.h.
17647         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
17648         * lib/unictype/joiningtype_byname.gperf: New file.
17649         * modules/unictype/joiningtype-byname (Files): Add
17650         lib/unictype/joiningtype_byname.gperf.
17651         (Depends-on): Add gperf.
17652         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
17653         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
17654         long names.
17655
17656         Tests for module 'unictype/joiningtype-longname'.
17657         * modules/unictype/joiningtype-longname-tests: New file.
17658         * tests/unictype/test-joiningtype_longname.c: New file.
17659
17660         New module 'unictype/joiningtype-longname'.
17661         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
17662         * lib/unictype/joiningtype_longname.c: New file.
17663         * modules/unictype/joiningtype-longname: New file.
17664         * modules/unictype/joiningtype-all (Depends-on): Add
17665         unictype/joiningtype-longname.
17666
17667 2011-03-26  Bruno Haible  <bruno@clisp.org>
17668
17669         unictype/bidiclass-byname: Recognize long names as well.
17670         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
17671         name.
17672         * lib/unictype/bidi_byname.c: Include <string.h>,
17673         unictype/bidi_byname.h.
17674         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
17675         * lib/unictype/bidi_byname.gperf: New file.
17676         * modules/unictype/bidiclass-byname (Files): Add
17677         lib/unictype/bidi_byname.gperf.
17678         (Depends-on): Add gperf.
17679         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
17680         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
17681         long names.
17682
17683         Tests for module 'unictype/bidiclass-longname'.
17684         * modules/unictype/bidiclass-longname-tests: New file.
17685         * tests/unictype/test-bidi_longname.c: New file.
17686
17687         New module 'unictype/bidiclass-longname'.
17688         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
17689         * lib/unictype/bidi_longname.c: New file.
17690         * modules/unictype/bidiclass-longname: New file.
17691         * modules/unictype/bidiclass-all (Depends-on): Add
17692         unictype/bidiclass-longname.
17693
17694 2011-03-26  Bruno Haible  <bruno@clisp.org>
17695
17696         unictype/bidi*: Rename modules.
17697         * modules/unictype/bidiclass-all: Renamed from
17698         modules/unictype/bidicategory-all.
17699         * modules/unictype/bidiclass-name: Renamed from
17700         modules/unictype/bidiclass-name.
17701         (Description): Update.
17702         * modules/unictype/bidiclass-name-tests: Renamed from
17703         modules/unictype/bidicategory-name-tests.
17704         * modules/unictype/bidiclass-byname: Renamed from
17705         modules/unictype/bidicategory-byname.
17706         (Description): Update.
17707         * modules/unictype/bidiclass-byname-tests: Renamed from
17708         modules/unictype/bidicategory-byname-tests.
17709         * modules/unictype/bidiclass-of: Renamed from
17710         modules/unictype/bidicategory-of.
17711         (Description): Update.
17712         * modules/unictype/bidiclass-of-tests: Renamed from
17713         modules/unictype/bidicategory-of-tests.
17714         * modules/unictype/bidiclass-test: Renamed from
17715         modules/unictype/bidicategory-test.
17716         (Description): Update.
17717         * modules/unictype/bidiclass-test-tests: Renamed from
17718         modules/unictype/bidicategory-test-tests.
17719         * modules/unictype/bidicategory-all: New file, a simple redirection.
17720         * modules/unictype/bidicategory-name: Likewise.
17721         * modules/unictype/bidicategory-byname: Likewise.
17722         * modules/unictype/bidicategory-of: Likewise.
17723         * modules/unictype/bidicategory-test: Likewise.
17724         * modules/unictype/property-bidi-* (Dependencies): Update.
17725         * lib/unictype/bidi_*.c: Update comment.
17726
17727 2011-03-26  Bruno Haible  <bruno@clisp.org>
17728
17729         unictype/bidi*: Rename functions, part 2.
17730         * modules/unictype/bidicategory-name (configure.ac): Update required
17731         libunistring version.
17732         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
17733
17734 2011-03-25  Bruno Haible  <bruno@clisp.org>
17735
17736         New module 'unictype/combining-class-all'.
17737         * modules/unictype/combining-class-all: New file.
17738
17739         Tests for module 'unictype/combining-class-byname'.
17740         * modules/unictype/combining-class-byname-tests: New file.
17741         * tests/unictype/test-combiningclass_byname.c: New file.
17742
17743         New module 'unictype/combining-class-byname'.
17744         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
17745         * lib/unictype/combiningclass_byname.c: New file.
17746         * lib/unictype/combiningclass_byname.gperf: New file.
17747         * modules/unictype/combining-class-byname: New file.
17748
17749         Tests for module 'unictype/combining-class-longname'.
17750         * modules/unictype/combining-class-longname-tests: New file.
17751         * tests/unictype/test-combiningclass_longname.c: New file.
17752
17753         New module 'unictype/combining-class-longname'.
17754         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
17755         * lib/unictype/combiningclass_longname.c: New file.
17756         * modules/unictype/combining-class-longname: New file.
17757
17758         Tests for module 'unictype/combining-class-name'.
17759         * modules/unictype/combining-class-name-tests: New file.
17760         * tests/unictype/test-combiningclass_name.c: New file.
17761
17762         New module 'unictype/combining-class-name'.
17763         * lib/unictype.in.h (uc_combining_class_name): New declaration.
17764         * lib/unictype/combiningclass_name.c: New file.
17765         * modules/unictype/combining-class-name: New file.
17766
17767 2011-03-25  Bruno Haible  <bruno@clisp.org>
17768
17769         unictype/combining-class: Rename source files.
17770         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
17771         of unictype/combining.h.
17772         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
17773         Update.
17774         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
17775         * modules/unictype/combining-class (Description): Fix.
17776         (Files, Makefile.am): Update.
17777         * tests/unictype/test-combiningclass.c: Renamed from
17778         tests/unictype/test-combining.c.
17779         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
17780
17781 2011-03-25  Bruno Haible  <bruno@clisp.org>
17782
17783         unictype: Update list of canonical combining classes.
17784         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
17785
17786 2011-03-25  Bruno Haible  <bruno@clisp.org>
17787
17788         unictype/category-byname: Recognize long names as well.
17789         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
17790         a long name.
17791         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
17792         unictype/categ_byname.h.
17793         (UC_CATEGORY_INDEX_*): New enumeration values.
17794         (uc_general_category_byname): Use uc_general_category_lookup and
17795         convert from index to value.
17796         * lib/unictype/categ_byname.gperf: New file.
17797         * modules/unictype/category-byname (Files): Add
17798         lib/unictype/categ_byname.gperf.
17799         (Depends-on): Add gperf.
17800         (Makefile.am): Add rule for generating unictype/categ_byname.h.
17801         * tests/unictype/test-categ_byname.c (main): Test the recognition of
17802         long names.
17803
17804         Tests for module 'unictype/category-longname'.
17805         * modules/unictype/category-longname-tests: New file.
17806         * tests/unictype/test-categ_longname.c: New file.
17807
17808         New module 'unictype/category-longname'.
17809         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
17810         * lib/unictype/categ_longname.c: New file.
17811         * modules/unictype/category-longname: New file.
17812         * modules/unictype/category-all (Depends-on): Add it.
17813
17814 2011-03-25  Bruno Haible  <bruno@clisp.org>
17815
17816         Tests for module 'unictype/category-LC'.
17817         * modules/unictype/category-LC-tests: New file.
17818         * tests/unictype/test-categ_LC.c: New file, automatically generated.
17819
17820         New module 'unictype/category-LC'.
17821         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
17822         (UC_CATEGORY_LC): New declaration.
17823         (UC_CASED_LETTER): New macro.
17824         * lib/gen-uni-tables.c (is_category_LC): New function.
17825         (output_categories): Also handle category LC.
17826         (UC_CATEGORY_MASK_LC): New enumeration value.
17827         (general_category_byname): Also handle category LC.
17828         * lib/unictype/categ_LC.c: New file.
17829         * lib/unictype/categ_LC.h: New file, automatically generated.
17830         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
17831         category LC.
17832         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
17833         * modules/unictype/category-LC: New file.
17834         * modules/unictype/category-byname (Depends-on): Add
17835         unictype/category-LC.
17836         * modules/unictype/category-all (Depends-on): Likewise.
17837
17838 2011-03-25  Eric Blake  <eblake@redhat.com>
17839
17840         xmalloc: revert yesterday's regression
17841         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
17842         realloc's underlying behavior (allowing allocation of zero-size
17843         objects, especially if malloc-gnu is also in use).
17844
17845 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
17846
17847         maint.mk: add missing version to VC-tag
17848         * top/maint.mk: git tag was missing actual tag name; add it.
17849
17850         valgrind: do leak checking, and exit with code 1 on error (not 0)
17851         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
17852         to VALGRIND.
17853
17854 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
17855
17856         posix-modules: say what it does.
17857         * posix-modules: Add a line to the --help output saying what it does.
17858
17859 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
17860
17861         xmalloc: Do not leak if underlying realloc is C99 compatible.
17862         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
17863         This avoids a leak on C99-based systems.  See
17864         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
17865
17866 2011-03-24  Eric Blake  <eblake@redhat.com>
17867
17868         realloc: document portability problem
17869         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
17870         passing 0 size to realloc.
17871
17872 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
17873
17874         doc: update users.txt
17875         * users.txt: Add cvsps, tmpwatch
17876
17877 2011-03-23  Matt Rice  <ratmice@gmail.com>
17878
17879         doc: update users.txt
17880         * users.txt: Add gdb.
17881
17882 2011-03-23  Jim Meyering  <meyering@redhat.com>
17883
17884         doc: update users.txt
17885         Looking through matches up to the following URL (there are still
17886         several more pages), I found several projects that use gnulib:
17887         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
17888         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
17889         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
17890
17891 2011-03-22  Bruno Haible  <bruno@clisp.org>
17892
17893         unictype/bidi*: Rename functions.
17894         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
17895         uc_bidi_class, uc_is_bidi_class): New declarations.
17896         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
17897         uc_bidi_category_byname.
17898         (uc_bidi_category_byname): New function.
17899         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
17900         u_bidi_category_name.
17901         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
17902         (uc_bidi_category_name): New function.
17903         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
17904         uc_bidi_category.
17905         (uc_bidi_category): New function.
17906         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
17907         uc_is_bidi_category. Invoke uc_bidi_class.
17908         (uc_is_bidi_category): New function.
17909         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
17910         instead of uc_bidi_category_byname.
17911         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
17912         instead of uc_bidi_category_name.
17913         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
17914         uc_bidi_category.
17915         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
17916         instead of uc_is_bidi_category.
17917
17918 2011-03-21  Bruno Haible  <bruno@clisp.org>
17919
17920         New module 'unictype/joininggroup-all'.
17921         * modules/unictype/joininggroup-all: New file.
17922
17923         Tests for module 'unictype/joininggroup-of'.
17924         * modules/unictype/joininggroup-of-tests: New file.
17925         * tests/unictype/test-joininggroup_of.c: New file.
17926         * tests/unictype/test-joininggroup_of.h: New file, automatically
17927         generated by gen-uni-tables.
17928
17929         New module 'unictype/joininggroup-of'.
17930         * modules/unictype/joininggroup-of: New file.
17931         * lib/unictype/joininggroup_of.c: New file.
17932         * lib/unictype/joininggroup_of.h: New file, automatically generated by
17933         gen-uni-tables.
17934
17935         Tests for module 'unictype/joininggroup-byname'.
17936         * modules/unictype/joininggroup-byname-tests: New file.
17937         * tests/unictype/test-joininggroup_byname.c: New file.
17938
17939         New module 'unictype/joininggroup-byname'.
17940         * modules/unictype/joininggroup-byname: New file.
17941         * lib/unictype/joininggroup_byname.c: New file.
17942         * lib/unictype/joininggroup_byname.gperf: New file.
17943
17944         Tests for module 'unictype/joininggroup-name'.
17945         * modules/unictype/joininggroup-name-tests: New file.
17946         * tests/unictype/test-joininggroup_name.c: New file.
17947
17948         New module 'unictype/joininggroup-name'.
17949         * modules/unictype/joininggroup-name: New file.
17950         * lib/unictype/joininggroup_name.c: New file.
17951         * lib/unictype/joininggroup_name.h: New file.
17952
17953         New module 'unictype/joiningtype-all'.
17954         * modules/unictype/joiningtype-all: New file.
17955
17956         Tests for module 'unictype/joiningtype-of'.
17957         * modules/unictype/joiningtype-of-tests: New file.
17958         * tests/unictype/test-joiningtype_of.c: New file.
17959         * tests/unictype/test-joiningtype_of.h: New file, automatically
17960         generated by gen-uni-tables.
17961
17962         New module 'unictype/joiningtype-of'.
17963         * modules/unictype/joiningtype-of: New file.
17964         * lib/unictype/joiningtype_of.c: New file.
17965         * lib/unictype/joiningtype_of.h: New file, automatically generated by
17966         gen-uni-tables.
17967
17968         Tests for module 'unictype/joiningtype-byname'.
17969         * modules/unictype/joiningtype-byname-tests: New file.
17970         * tests/unictype/test-joiningtype_byname.c: New file.
17971
17972         New module 'unictype/joiningtype-byname'.
17973         * modules/unictype/joiningtype-byname: New file.
17974         * lib/unictype/joiningtype_byname.c: New file.
17975
17976         Tests for module 'unictype/joiningtype-name'.
17977         * modules/unictype/joiningtype-name-tests: New file.
17978         * tests/unictype/test-joiningtype_name.c: New file.
17979
17980         New module 'unictype/joiningtype-name'.
17981         * modules/unictype/joiningtype-name: New file.
17982         * lib/unictype/joiningtype_name.c: New file.
17983
17984         unictype: Add support for Arabic shaping properties.
17985         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
17986         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
17987         declarations.
17988         (UC_JOINING_GROUP_*): New enumeration values.
17989         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
17990         declarations.
17991         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
17992         (unicode_joining_type): New variable.
17993         (UC_JOINING_GROUP_*): New enumeration values.
17994         (unicode_joining_group): New variable.
17995         (fill_arabicshaping, joining_type_as_c_identifier,
17996         output_joining_type_test, output_joining_type,
17997         joining_group_as_c_identifier, output_joining_group_test,
17998         output_joining_group): New functions.
17999         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
18000         fill_arabicshaping and output_joining_type_test, output_joining_type,
18001         output_joining_group_test, output_joining_group.
18002         Reported by Simon Josefsson.
18003
18004 2011-03-21  Jim Meyering  <meyering@redhat.com>
18005
18006         strftime: fix a bug in yesterday's change
18007         * lib/strftime.c (add): Accommodate width's initial value of -1.
18008         Otherwise, nstrftime would copy uninitialized data into
18009         the result buffer.
18010
18011 2011-03-21  Jim Meyering  <meyering@redhat.com>
18012
18013         tests: add strftime-tests module
18014         * tests/test-strftime.c: New file.
18015         * modules/strftime-tests: New module.
18016
18017 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18018
18019         strftime: don't assume a byte count fits in 'int'
18020         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
18021         found this problem by static analysis, using gcc -Wstrict-overflow
18022         (GCC 4.5.2, x86-64).  This reported an optimization that depended
18023         on an integer overflow having undefined behavior, but it turns out
18024         that the argument is a size, which might not fit in 'int' anyway,
18025
18026 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18027
18028         stdio: don't require ignore_value around fwrite
18029
18030         This patch works around libc bug 11959
18031         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
18032         Without this patch, applications must often write
18033         ignore_value (fwrite (...)) even though the ignore_value is
18034         not helpful here.  It's common to write many objects, using
18035         fwrite/printf/etc., and then use ferror to detect output error.
18036
18037         I considered making this patch optional, but decided against it,
18038         because libc is obviously being inconsistent here: there is no
18039         reason libc should insist that user code must inspect fwrite
18040         return's value without also insisting that it inspect printf's,
18041         putchar's, etc.  If user code wants to have a strict style where
18042         all these functions' values are checked (so that ferror need not
18043         be checked), we could add support for that style in a new gnulib
18044         module, but in the meantime it's better to be consistent and to
18045         support common usage.
18046
18047         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
18048         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
18049         that we are compiling in checking mode, and if not C++, and
18050         if not already wrapping fwrite for some other reason.
18051         (fwrite): #define to rpl_fwrite if the latter is defined.
18052
18053 2011-03-20  Bruno Haible  <bruno@clisp.org>
18054
18055         verror: Fix compilation error introduced on 2011-02-13.
18056         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
18057         instead of __attribute__.
18058         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18059
18060 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18061             Bruno Haible  <bruno@clisp.org>
18062
18063         socklen: do not depend on sys_socket
18064         While trying to modify Emacs to use gnulib's socklen module,
18065         I discovered a circular dependency: socklen depends on sys_socket
18066         and vice versa.  Emacs can use socklen, but it does not need
18067         sys_socket because it has its own substitute for sys/socket.h.
18068         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
18069         gl_TYPE_SOCKLEN_T.
18070         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
18071         gl_PREREQ_SYS_H_SOCKET.
18072         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
18073         gl_PREREQ_SYS_H_SOCKET.
18074         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
18075         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
18076         * modules/socklen (Depends-on): Do not depend on sys_socket.
18077         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
18078
18079 2011-03-20  Jim Meyering  <meyering@redhat.com>
18080
18081         maint.mk: sort file names *after* new transformation
18082         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
18083         prefix would have led to an unwarranted failure in GNU parted.
18084         Sort after that transformation.
18085
18086 2011-03-19  Jim Meyering  <meyering@redhat.com>
18087
18088         maint.mk: fix po-file syntax-check rule
18089         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
18090         Patch by Bruno Haible.
18091
18092 2011-03-19  Bruno Haible  <bruno@clisp.org>
18093
18094         socklen: Update comment.
18095         * m4/socklen.m4: Update comment about platforms.
18096
18097 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18098             Bruno Haible  <bruno@clisp.org>
18099
18100         inet_ntop, inet_pton: Simplify.
18101         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
18102         documented to provide socklen_t and we already depend on sys_socket.
18103         * modules/inet_pton (Depends-on): Likewise.
18104         * lib/arpa_inet.in.h: Adjust comment.
18105
18106 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18107             Bruno Haible  <bruno@clisp.org>
18108
18109         netdb: Simplify.
18110         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
18111         documented to provide socklen_t and we already depend on sys_socket.
18112         * lib/netdb.in.h: Adjust comment.
18113
18114 2011-03-19  Bruno Haible  <bruno@clisp.org>
18115
18116         sys_socket, netdb: Document problem with socklen_t.
18117         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
18118         platforms.
18119         * doc/posix-headers/netdb.texi: Likewise.
18120
18121 2011-03-18  Eric Blake  <eblake@redhat.com>
18122
18123         maint.mk: let po check work in VPATH build
18124         * top/maint.mk (po_file): Allow cfg.mk override.
18125         (sc_po_check): Allow VPATH use.
18126         Reported by Jiri Denemark.
18127
18128 2011-03-16  Jim Meyering  <meyering@redhat.com>
18129
18130         maint.mk: allow fine-grained syntax-check exclusion via Make variables
18131         Before, you would have had to create one .x-sc_ file per rule in order
18132         to exempt offending files.  Now, you may instead use a Make variable --
18133         usually defined in cfg.mk -- whose name identifies the affected rule.
18134         * top/maint.mk (_sc_excl): Define.
18135         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
18136         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
18137
18138 2011-03-13  Bruno Haible  <bruno@clisp.org>
18139
18140         ignore-value tests: Avoid warnings.
18141         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
18142         empty for gcc < 3.4.
18143
18144 2011-03-13  Bruno Haible  <bruno@clisp.org>
18145
18146         passfd: Fix link error on Solaris.
18147         * modules/passfd (Description): Correct.
18148         (Depends-on): Add socketlib.
18149         (Link): New section.
18150         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
18151
18152 2011-03-13  Bruno Haible  <bruno@clisp.org>
18153
18154         passfd: Fix link error on AIX 5.2.
18155         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
18156
18157 2011-03-13  Bruno Haible  <bruno@clisp.org>
18158
18159         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
18160         * lib/sys_socket.in.h: Include <stddef.h>.
18161         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
18162         CMSG_FIRSTHDR. Remove unused variable.
18163
18164 2011-03-13  Bruno Haible  <bruno@clisp.org>
18165
18166         passfd: Fix compilation error on OpenBSD.
18167         * lib/passfd.c: Include <sys/uio.h>.
18168
18169 2011-03-13  Bruno Haible  <bruno@clisp.org>
18170
18171         passfd test: Fix warnings.
18172         * tests/test-passfd.c: Include <sys/wait.h>.
18173         (main): Fix typo.
18174
18175 2011-03-13  Bruno Haible  <bruno@clisp.org>
18176
18177         passfd module, part 4, tweaks.
18178         * tests/test-passfd.c: Reorder includes.
18179         (main): Fix perror and printf calls.
18180
18181 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18182
18183         passfd module, part 4.
18184         * modules/passfd-tests: New file.
18185         * tests/test-passfd.c: New file.
18186
18187 2011-03-13  Jim Meyering  <meyering@redhat.com>
18188
18189         Makefile: rely on GNU make; derive syntax-check rule names
18190         Rather than requiring that each sc_ rule be listed as a dependent
18191         of "check", use features of GNU make to derive the list.
18192         * Makefile (syntax-check-rules): Define.
18193         (check): Depend on the new variable, not the hard-coded list.
18194
18195 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
18196             Bruno Haible  <bruno@clisp.org>
18197
18198         passfd module, part 3.
18199         * lib/passfd.h (recvfd): Add a flags argument.
18200         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
18201         (recvfd): Add a flags argument.
18202         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
18203         exists.
18204         * modules/passfd (Depends-on): Add cloexec.
18205         Suggested by Eric Blake.
18206
18207 2011-03-13  Bruno Haible  <bruno@clisp.org>
18208
18209         passfd module, part 2, tweaks.
18210         * modules/passfd (Files): Reorder.
18211         (Depends-on): Remove errno.
18212         (Include): Remove <sys/socket.h>, <sys/un.h>.
18213         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
18214         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
18215         specification header. Include <sys/socket.h> always. Don't include
18216         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
18217         (sendfd): Clarify that it sets errno when it fails.
18218         (recvfd): Fix specification.
18219
18220 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18221
18222         passfd module, part 2.
18223         * modules/passfd: New file.
18224         * lib/passfd.h: New file.
18225         * lib/passfd.c: New file.
18226
18227 2011-03-12  Bruno Haible  <bruno@clisp.org>
18228
18229         wcswidth, mbswidth: Avoid integer overflow.
18230         * lib/wcswidth.c: Include <limits.h>.
18231         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
18232         * lib/mbswidth.c: Include <limits.h>.
18233         (mbsnwidth): Avoid 'int' overflow.
18234         Reported by Jim Meyering.
18235
18236 2011-03-12  Bruno Haible  <bruno@clisp.org>
18237
18238         futimens, utimensat: Avoid endless recursion on Solaris 10.
18239         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
18240         Solaris.
18241         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
18242         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
18243
18244 2011-03-11  Jim Meyering  <meyering@redhat.com>
18245
18246         maint.mk: relax a regexp to accommodate other formatting styles
18247         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
18248         between "ngettext" and the following "(".
18249
18250 2011-03-11  Pádraig Brady <P@draigBrady.com>
18251
18252         maint.mk: suppress a false positive warning
18253         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
18254         diagnostics are marked with ngettext.
18255
18256 2011-03-10  Eric Blake  <eblake@redhat.com>
18257
18258         wchar: add explicit dependencies, for Tru64
18259         * modules/mbmemcasecoll (Depends-on): Add wchar.
18260         * modules/mbtowc (Depends-on): Likewise.
18261         * modules/vasnprintf (Depends-on): Likewise.
18262         * modules/unistdio/u-printf-args (Depends-on): Likewise.
18263         * modules/wctomb (Depends-on): Likewise.
18264         Reported by Peter O'Gorman.
18265
18266 2011-03-08  Bruno Haible  <bruno@clisp.org>
18267
18268         passfd module, part 1, tweaks.
18269         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
18270         Improve indentation. Improve AC_MSG_CHECKING messages.
18271         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
18272         gl_SOCKET_FAMILIES.
18273
18274 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18275
18276         passfd module, part 1.
18277         * m4/afunix.m4: New file.
18278         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
18279         sockets.
18280
18281 2011-03-08  Bruno Haible  <bruno@clisp.org>
18282
18283         regex-quote: New API.
18284         * lib/regex-quote.h: Include <stdbool.h>.
18285         (struct regex_quote_spec): New type.
18286         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18287         New declarations.
18288         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18289         'const struct regex_quote_spec *' argument.
18290         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
18291         (pcre_special): New constant.
18292         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18293         New functions.
18294         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18295         'const struct regex_quote_spec *' argument.
18296         * modules/regex-quote (Depends-on): Add stdbool.
18297         * tests/test-regex-quote.c (check): Update for new API. Add test for
18298         anchored results.
18299         * NEWS: Mention the API change.
18300         Reported by Reuben Thomas and Eric Blake.
18301
18302 2011-03-06  Bruno Haible  <bruno@clisp.org>
18303
18304         regex-quote: Fix creation of POSIX extended regular expressions.
18305         * lib/regex-quote.c (ere_special): Add grouping and alternation
18306         operators.
18307
18308 2011-03-05  Bruno Haible  <bruno@clisp.org>
18309
18310         doc: Improve doc regarding autopoint vs. gnulib.
18311         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
18312         disable autopoint while running autoreconf.
18313         Suggested by Ralf Wildenhues.
18314
18315 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18316
18317         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
18318         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
18319
18320 2011-03-03  Bruce Korb  <bkorb@gnu.org>
18321
18322         parse-duration: remove xalloc.h dependency
18323         * lib/parse-duration.c (parse_period): handle NULL return from
18324         strdup instead of calling xstrdup().
18325         * modules/parse-duration: remove "xalloc" dependency
18326
18327 2011-03-03  Matthew Booth  <mbooth@redhat.com>
18328
18329         bootstrap: honor m4_base when running aclocal
18330         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
18331
18332 2011-03-02  Jim Meyering  <meyering@redhat.com>
18333
18334         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
18335         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
18336         on request from Matt Booth.
18337
18338 2011-03-01  Eric Blake  <eblake@redhat.com>
18339
18340         test-link: work on Hurd
18341         * tests/test-link.h (test_link): Hurd rejects linking directories
18342         with EISDIR instead of the POSIX-mandated EPERM.
18343
18344 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
18345
18346         stdio: simplify by moving files to printf-posix, sigpipe
18347         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
18348         since this symbol is needed only if printf is replaced.
18349         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
18350         Require gl_ASM_SYMBOL_PREFIX.
18351         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
18352         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
18353         (Depends-on): Add 'raise'.
18354         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
18355         * modules/stdio (Files): Remove lib/stdio-write.c,
18356         m4/asm-underscore.m4.
18357         (Depends-on): Remove 'raise'.
18358
18359         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
18360         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
18361         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
18362         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
18363
18364 2011-02-28  Bruno Haible  <bruno@clisp.org>
18365
18366         localcharset: Assume ANSI C behaviour of free().
18367         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
18368         calling free().
18369         Suggested by Simon Josefsson <simon@josefsson.org>.
18370
18371 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
18372             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
18373             Bruno Haible  <bruno@clisp.org>  (tiny change)
18374
18375         On Cygwin, use /proc file system instead of win32 API.
18376         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
18377         Win32 file names.
18378         (DllMain): Simplify by removing Cygwin specific code.
18379         (find_shared_library_fullname): Use Linux specific implementation also
18380         for Cygwin.
18381         (get_shared_library_fullname): Update accordingly.
18382         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
18383         Win32 file names.
18384         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
18385         Cygwin specific code.
18386
18387 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
18388             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
18389
18390         Fix OpenMP flag detection for various Fortran compilers.
18391         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
18392         OpenMP-conditional compilation construct, to force compile
18393         failure with missing OpenMP flag.
18394         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
18395
18396 2011-02-25  Eric Blake  <eblake@redhat.com>
18397
18398         strstr: expand test coverage
18399         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
18400         compilation.
18401         * tests/test-memmem.c (main): Duplicate tests.
18402         * tests/test-strcasestr.c (main): Likewise.
18403         * tests/test-c-strcasestr.c (main): Likewise.
18404
18405 2011-02-25  Jim Meyering  <meyering@redhat.com>
18406
18407         maint.mk: detect missing-NL-at-EOF, too
18408         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
18409         it also detects when a file lacks a newline at EOF.
18410         (require_exactly_one_NL_at_EOF_): Renamed from
18411         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
18412         since people may well have .x-sc_... file names tied to the
18413         existing name.  Suggested by Eric Blake.
18414
18415 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
18416
18417         dirname: move m4/dos.m4 functionality into lib/dosname.h
18418
18419         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
18420         extracts symbols from it, puts them into config.h; but it's much
18421         easier to use the symbols directly.  filename.h already does this,
18422         but it disagrees with dos.m4 in some respects.  This patch
18423         introduces a different include file dosname.h that packages up
18424         dos.m4, and then later we can work on merging filename.h and
18425         dosname.h.  Applications that need only the easy-to-configure
18426         symbols should consider including dosname.h rather than dirname.h.
18427         * NEWS: Mention incompatible changes.
18428         * m4/dos.m4: Remove.
18429         * lib/dosname.h, modules/dosname: New files.
18430         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
18431         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
18432         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
18433         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
18434         Include dosname.h, not dirname.h.
18435         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
18436         Include dosname.h, for definitions of symbols like ISSLASH
18437         that used to be in config.h.
18438         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
18439         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18440         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18441         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18442         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
18443         * modules/rmdir (Files): Likewise.
18444         * modules/stat (Files): Likewise.
18445         * modules/unlink (Files): Likewise.
18446         * modules/dirname-lgpl (Depends-on): Add dosname.
18447         * modules/lstat (Depends-on): Likewise.
18448         * modules/openat (Depends-on): Likewise.
18449         * modules/rmdir (Depends-on): Likewise.
18450         * modules/savewd (Depends-on): Likewise.
18451         * modules/stat (Depends-on): Likewise.
18452         * modules/unlink (Depends-on): Likewise.
18453         * modules/openat (Depends-on): Remove dirname-lgpl.
18454         * modules/savewd (Depends-on): Likewise.
18455         * tests/test-dirname.c: Do not use removed symbols like
18456         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
18457         the remaining symbols, e.g., ISSLASH ('\\').
18458
18459 2011-02-25  Eric Blake  <eblake@redhat.com>
18460
18461         strstr: revert patches that introduced bug and pessimization
18462         * lib/str-two-way.h: Add another reference.
18463         (two_way_short_needle, two_way_long_needle): Revert changes from
18464         2011-02-24; they pessimize search speed.
18465         (critical_factorization): Partially revert changes from
18466         2010-06-22; they violate the requirement that the left half of the
18467         needle be smaller than the period of the needle.
18468
18469 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
18470
18471         filenamecat: remove unnecessary dependency on dirname-lgpl
18472         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
18473         is no direct dependency, just an indirect one via filenamecat-lgpl.
18474
18475         remove: remove unnecessary use of m4/dos.m4
18476         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
18477         * modules/remove (FILES): Remove m4/dos.m4.
18478
18479         * lib/openat-proc.c: Don't include dirname.h; not needed.
18480
18481         backupfile: remove unnecessary use of m4/dos.m4
18482         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
18483         of its symbols are used by the backupfile code.  backupfile.c does
18484         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
18485         for the rare case of programs that want all their backup file
18486         names to live within 8+3 limits, and dos.m4 doesn't address that.
18487         * modules/backupfile (Files): Remove m4/dos.m4.
18488
18489 2011-02-24  Jim Meyering  <meyering@redhat.com>
18490
18491         strstr: fix a bug whereby strstr would mistakenly return NULL
18492         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
18493         in period calculation.
18494         (two_way_long_needle): Likewise.
18495         The original problem was reported by Mike Stump in
18496         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
18497         Ralf Wildenhues provided the short needle and haystack.
18498         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
18499         Add a more involved test to trigger the bug in two_way_long_needle.
18500
18501 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
18502
18503         gnulib-tool: remove use of bold display in help screen
18504         * gnulib-tool (func_usage): Do not use bold display anymore in the
18505         help screen.  That was just meant to be a temporary emphasis for a
18506         backward-incompatible change.
18507
18508 2011-02-23  Bruno Haible  <bruno@clisp.org>
18509
18510         Fix misindentation of preprocessor directives.
18511         * lib/argp-namefrob.h: Reindent preprocessor directives.
18512         * lib/getopt_int.h (struct _getopt_data): Likewise.
18513         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
18514         * lib/vasnprintf.c (decode_long_double): Likewise.
18515         * tests/test-argmatch.c: Insert blank lines, for clarity.
18516         * tests/test-exclude.c: Likewise.
18517
18518 2011-02-22  Bruno Haible  <bruno@clisp.org>
18519
18520         ioctl: Fix for MacOS X in 64-bit mode.
18521         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
18522         value.
18523         Suggested by Eric Blake.
18524         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
18525
18526 2011-02-22  Jim Meyering  <meyering@redhat.com>
18527
18528         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
18529         * Makefile (sc_cpp_indent_check): Don't limit the check to files
18530         in lib/.
18531
18532 2011-02-22  Eric Blake  <eblake@redhat.com>
18533
18534         maint: avoid any CDPATH issue
18535         * Makefile (sc_cpp_indent_check): Anchor cd argument.
18536
18537         maint: adjust cpp indentation for my modules, as well
18538         * Makefile (sc_cpp_indent_check): Add my name.
18539         * lib/fbufmode.c: Filter through cppi.
18540         * lib/fpurge.c: Likewise.
18541         * lib/freadable.c: Likewise.
18542         * lib/freading.c: Likewise.
18543         * lib/fwritable.c: Likewise.
18544         * lib/fwriting.c: Likewise.
18545         * lib/sigaction.c: Likewise.
18546
18547 2011-02-22  Jim Meyering  <meyering@redhat.com>
18548
18549         maint: adjust cpp indentation to reflect nesting depth
18550         I.e., in a block of code that begins with an unnested "#if",
18551         put one space between the "#" in column 1 and following token.
18552         For example,
18553         -#include <sys/vfs.h>
18554         +# include <sys/vfs.h>
18555         Do this only in .c files that are part of a module I maintain.
18556         * lib/linkat.c: Filter through cppi.
18557         * lib/nanosleep.c: Likewise.
18558         * lib/openat.c: Likewise.
18559         * lib/openat-die.c: Likewise.
18560         * lib/dup3.c: Likewise.
18561         * lib/fchownat.c: Likewise.
18562         * lib/flock.c: Likewise.
18563         * lib/fsync.c: Likewise.
18564         * lib/fts.c: Likewise.
18565         * lib/getpass.c: Likewise.
18566         * lib/gettimeofday.c: Likewise.
18567         * lib/userspec.c: Likewise.
18568         * Makefile (sc_cpp_indent_check): New rule, to check this.
18569
18570 2011-02-22  Bruno Haible  <bruno@clisp.org>
18571
18572         New module 'wctomb'.
18573         * lib/stdlib.in.h (wctomb): New declaration.
18574         * lib/wctomb.c: New file.
18575         * lib/wctomb-impl.h: New file.
18576         * m4/wctomb.m4: New file.
18577         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
18578         REPLACE_WCTOMB.
18579         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
18580         REPLACE_WCTOMB.
18581         * modules/wctomb: New file.
18582         * tests/test-stdlib-c++.cc: Test signature of wctomb.
18583         * doc/posix-functions/wctomb.texi: Mention the new module.
18584         * modules/wctob (Depends-on): Add wctomb.
18585
18586 2011-02-22  Bruno Haible  <bruno@clisp.org>
18587
18588         New module 'mbtowc'.
18589         * lib/stdlib.in.h (mbtowc): New declaration.
18590         * lib/mbtowc.c: New file.
18591         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
18592         * m4/mbtowc.m4: New file.
18593         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
18594         REPLACE_MBTOWC.
18595         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
18596         REPLACE_MBTOWC.
18597         * modules/mbtowc: New file.
18598         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
18599         * doc/posix-functions/mbtowc.texi: Mention the new module.
18600         * modules/btowc (Depends-on): Add mbtowc.
18601
18602 2011-02-22  Bruno Haible  <bruno@clisp.org>
18603
18604         wcrtomb: Add more tests for native Windows platforms.
18605         * tests/test-wcrtomb-w32-1.sh: New file.
18606         * tests/test-wcrtomb-w32-2.sh: New file.
18607         * tests/test-wcrtomb-w32-3.sh: New file.
18608         * tests/test-wcrtomb-w32-4.sh: New file.
18609         * tests/test-wcrtomb-w32-5.sh: New file.
18610         * tests/test-wcrtomb-w32.c: New file.
18611         * modules/wcrtomb-tests (Files): Add them.
18612         (Makefile.am): Arrange to run these tests.
18613         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
18614         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
18615
18616 2011-02-20  Bruno Haible  <bruno@clisp.org>
18617
18618         wcrtomb: Enhance test.
18619         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
18620
18621 2011-02-20  Bruno Haible  <bruno@clisp.org>
18622
18623         mbrtowc: Tiny optimization.
18624         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
18625
18626 2011-02-20  Jim Meyering  <meyering@redhat.com>
18627
18628         test-exclude.c: remove unmatched #endif
18629         * tests/test-exclude.c: Remove stray #endif, left over from
18630         the change of a week ago.
18631
18632 2011-02-19  Jim Meyering  <meyering@redhat.com>
18633
18634         git-version-gen: skip "-dirty" check when appropriate
18635         * build-aux/git-version-gen: Don't run any git commands when the
18636         version string comes from .tarball-version.  Prior to this, we
18637         would run git update-index --refresh even from a just-unpacked
18638         tarball directory, and that could affect a .git/ directory in a
18639         parent of the build directory.  Reported by Mike Frysinger.
18640
18641 2011-02-19  Bruno Haible  <bruno@clisp.org>
18642
18643         unictype/property-byname: Reduce the size of the 'data' segment.
18644         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
18645
18646 2011-02-19  Bruno Haible  <bruno@clisp.org>
18647
18648         unictype/scripts: Reduce the size of the 'data' segment.
18649         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
18650         '%pic'.
18651         * lib/unictype/scripts_byname.gperf: Regenerated.
18652
18653 2011-02-19  Bruno Haible  <bruno@clisp.org>
18654
18655         stdint: Update documentation.
18656         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
18657
18658 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
18659
18660         stdint: omit redundant check for wchar.h
18661         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
18662         always tests whether wchar.h exists, so remove the now-redundant test.
18663
18664 2011-02-18  Bruno Haible  <bruno@clisp.org>
18665
18666         stdint: Cut dependency to module 'wchar'.
18667         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
18668         include the necessary prerequisites.
18669         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
18670         * modules/stdint (Depends-on): Remove wchar.
18671         (Makefile.am): Substitute HAVE_WCHAR_H.
18672         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
18673
18674 2011-02-18  Eric Blake  <eblake@redhat.com>
18675
18676         longlong: skip, rather than fail, on cross-compilation
18677         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
18678         when cross-compiling; regression from 2011-02-16.
18679
18680 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18681
18682         * NEWS: Mention 2011-02-08 change to stdlib.
18683
18684 2011-02-17  Bruno Haible  <bruno@clisp.org>
18685
18686         getloadavg: Add comments about platforms.
18687         * m4/getloadavg.m4: Add comment.
18688         * lib/getloadavg.c: Likewise.
18689
18690 2011-02-17  Bruno Haible  <bruno@clisp.org>
18691
18692         getloadavg: Fix link error on Solaris 2.6.
18693         * modules/getloadavg (Link): New section.
18694         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
18695         linking test-getloadavg.
18696         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
18697         getloadavg.
18698
18699 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18700
18701         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
18702         It was 'int', but this doesn't match the IRIX 6.5 manual.
18703         Suggested by Bruno Haible in
18704         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
18705
18706 2011-02-17  Bruno Haible  <bruno@clisp.org>
18707
18708         havelib: Fix comments.
18709         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
18710         change.
18711
18712 2011-02-17  Bruno Haible  <bruno@clisp.org>
18713
18714         havelib: Update config.rpath.
18715         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
18716
18717 2011-02-17  Bruno Haible  <bruno@clisp.org>
18718
18719         getloadavg test: Add some plausibility checks.
18720         * tests/test-getloadavg.c (check_avg): Print a warning when the value
18721         is improbable.
18722
18723 2011-02-16  Eric Blake  <eblake@redhat.com>
18724
18725         maintainer-makefile: make syntax-check a no-op from tarballs
18726         * top/maint.mk (no-vc-detected): New rule.
18727         (local-checks-available): Use it to avoid hanging if someone tries
18728         'make syntax-check' from a tarball.  Also append to any non-syntax
18729         checks already defined in cfg.mk.
18730
18731 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
18732
18733         longlong: tune, particularly for common case of c99
18734
18735         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
18736         or running anything if c99, or if unsigned long long int does not
18737         work.  In either case, we know the answer without further tests.
18738         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
18739         it at most once, and use its results for both long long int and
18740         unsigned long long int.  This is more likely to be efficient in
18741         the common case where the program wants to check for both long
18742         long int and unsigned long long int.
18743         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
18744         since the answer is already known.
18745
18746 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
18747
18748         getloadavg: set errno
18749         * lib/getloadavg.c: Set errno when returning -1.  If no other
18750         error number looks appropriate, set it to ENOSYS if the getloadavg
18751         looks like it can't possibly ever work, ENOTSUP otherwise.
18752         Suggested by Bruno Haible in
18753         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
18754
18755         getloadavg: trim unused parts and speed up 'configure'
18756         * NEWS: Document this.
18757         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
18758         always compiled if getloadavg is absent.
18759         Move test code to ...
18760         * tests/test-getloadavg.c: New file, containing previous
18761         contents of test from lib/getloadavg.c.  It also contains
18762         suggestions by Bruno Haible in
18763         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
18764         * modules/getloadavg-tests: New file.
18765         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
18766         Do tests in the same order as they're needed for getloadavg.c.
18767         Omit setgid-related tests that generate symbols KMEM_GROUP,
18768         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
18769         Do only the tests that are needed to see whether the system has
18770         getloadavg, moving the other tests into ...
18771         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
18772         NLIST_NAME_UNION; nobody should be using it.  Do not define
18773         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
18774         relevant, as the user of this module shouldn't care how getloadavg
18775         is implemented.
18776
18777         getloadavg: omit unused var
18778         * lib/getloadavg.c (getloadavg): Omit unused local variable.
18779
18780 2011-02-15  Jim Meyering  <meyering@redhat.com>
18781
18782         doc: update users.txt
18783         * users.txt: Update iwhd's URL.
18784
18785 2011-02-13  Bruno Haible  <bruno@clisp.org>
18786
18787         Consistent macro naming for macros that use GCC __attribute__.
18788         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
18789         _ATTRIBUTE_NONNULL_.
18790         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
18791         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
18792         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
18793         ATTRIBUTE_DEPRECATED.
18794         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
18795         ATTRIBUTE_NORETURN.
18796         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18797         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18798         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18799         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18800         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
18801         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
18802         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
18803         ATTRIBUTE_SENTINEL.
18804         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
18805         ATTRIBUTE_RETURN_CHECK.
18806         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
18807         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
18808         ATTRIBUTE_NORETURN.
18809         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
18810         Reported by Paul Eggert.
18811
18812 2011-02-13  Bruno Haible  <bruno@clisp.org>
18813
18814         Don't interfere with a program's definition of __attribute__.
18815         * lib/argp.h (__attribute__): Remove definition.
18816         (_GL_ATTRIBUTE_FORMAT): New macro.
18817         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
18818         * lib/argp-fmtstream.h (__attribute__): Remove definition.
18819         (_GL_ATTRIBUTE_FORMAT): New macro.
18820         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
18821         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
18822         GCC 3 or newer.
18823         * lib/error.h (__attribute__): Remove definition.
18824         (_GL_ATTRIBUTE_FORMAT): New macro.
18825         (error, error_at_line): Use it.
18826         * lib/hash.h (__attribute__): Remove definition.
18827         (ATTRIBUTE_WUR): Update definition. Define always.
18828         * lib/openat.h (__attribute__): Remove definition.
18829         (ATTRIBUTE_NORETURN): Update definition. Define always.
18830         * lib/sigpipe-die.h (__attribute__): Remove definition.
18831         (ATTRIBUTE_NORETURN): Update definition. Define always.
18832         * lib/vasnprintf.h (__attribute__): Remove definition.
18833         (_GL_ATTRIBUTE_FORMAT): New macro.
18834         (asnprintf, vasnprintf): Use it.
18835         * lib/xalloc.h (__attribute__): Remove definition.
18836         (ATTRIBUTE_NORETURN): Update definition. Define always.
18837         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
18838         * lib/xmemdup0.h (__attribute__): Remove definition.
18839         (ATTRIBUTE_NORETURN): Update definition. Define always.
18840         * lib/xprintf.h (__attribute__): Remove definition.
18841         (_GL_ATTRIBUTE_FORMAT): New macro.
18842         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
18843         * lib/xstrtol.h (__attribute__): Remove definition.
18844         (ATTRIBUTE_NORETURN): Update definition. Define always.
18845         * lib/xvasprintf.h (__attribute__): Remove definition.
18846         (_GL_ATTRIBUTE_FORMAT): New macro.
18847         (xasprintf, xvasprintf): Use it.
18848         * tests/test-argmatch.c (__attribute__): Remove definition.
18849         (ATTRIBUTE_NORETURN): Update definition. Define always.
18850         * tests/test-exclude.c (__attribute__): Remove definition.
18851         (ATTRIBUTE_NORETURN): Update definition. Define always.
18852         Reported by Paul Eggert.
18853
18854 2011-02-13  Bruno Haible  <bruno@clisp.org>
18855
18856         mbrtowc: Add more tests for native Windows platforms.
18857         * tests/test-mbrtowc-w32-1.sh: New file.
18858         * tests/test-mbrtowc-w32-2.sh: New file.
18859         * tests/test-mbrtowc-w32-3.sh: New file.
18860         * tests/test-mbrtowc-w32-4.sh: New file.
18861         * tests/test-mbrtowc-w32-5.sh: New file.
18862         * tests/test-mbrtowc-w32.c: New file.
18863         * modules/mbrtowc-tests (Files): Add them.
18864         (Makefile.am): Arrange to run these tests.
18865         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
18866         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
18867
18868 2011-02-13  Bruno Haible  <bruno@clisp.org>
18869
18870         mbrtowc: Work around native Windows bug.
18871         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
18872         guess when no suitable locale for testing was found.
18873         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
18874
18875 2011-02-13  Bruno Haible  <bruno@clisp.org>
18876
18877         mbsinit: Work around mingw bug.
18878         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
18879         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
18880         Windows.
18881         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
18882
18883 2011-02-13  Bruno Haible  <bruno@clisp.org>
18884
18885         mbsinit: Don't crash for a NULL argument.
18886         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
18887         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
18888
18889 2011-02-13  Bruno Haible  <bruno@clisp.org>
18890
18891         Don't interfere with a program's definition of __attribute__.
18892         * lib/stdio.in.h (__attribute__): Remove definition.
18893         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
18894         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
18895         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
18896         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
18897         * lib/string.in.h (__attribute__): Remove definition.
18898         Reported by Paul Eggert.
18899
18900 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
18901
18902         stdlib: don't get in the way of non-GCC __attribute__
18903         See thread starting at
18904         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
18905         Revert previous stdlib change, installing the following instead:
18906         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
18907         to get in the way of a non-GCC compiler that supports __attribute__.
18908         (_GL_ATTRIBUTE_RETURN): New macro.
18909         (_Exit): Use it instead of __attribute__.
18910
18911 2011-02-12  Bruno Haible  <bruno@clisp.org>
18912
18913         quotearg test: Avoid test failure on mingw.
18914         * tests/test-quotearg.sh: Convert the locale identifier from native
18915         Windows syntax to Unix syntax.
18916
18917 2011-02-12  Bruno Haible  <bruno@clisp.org>
18918
18919         setlocale: Prefer gnulib's override over libintl's override.
18920         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
18921         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
18922         GNULIB_defined_setlocale is set.
18923
18924 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
18925
18926         stdlib: support non-GCC __attribute__
18927
18928         Fix a serious and tricky problem encountered when attempting to
18929         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
18930         5.5, but it crashed due to memory corruption on Solaris 10 with
18931         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
18932         bits that are otherwise zero.  This tagging is optional inside
18933         Emacs but is preferred and is used when __attribute__ ((__aligned
18934         (8))) works, as it does with both recent-enough GCC and with Sun C
18935         5.11.  However, Sun C 5.11 is not GCC and does not #define
18936         __GNUC__ and __GNUC_MINOR__.
18937
18938         When I added the getloadavg module to Emacs, it brought in
18939         stdlib.in.h, which contained this fragment:
18940
18941            #ifndef __attribute__
18942            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
18943            #  define __attribute__(Spec)   /* empty */
18944            # endif
18945            #endif
18946
18947         When files that include <stdlib.h> were compiled with Sun C 5.11,
18948         the above code disabled __attribute__ ((__aligned (8))), which
18949         caused variables to not be properly aligned, which eventually led
18950         to the pointer corruption mentioned above.  (This was a bit hard
18951         to diagnose, unfortunately.)
18952
18953         Several "#define __attribute__(X) /* empty */" code snippets need
18954         to be eradicated from Gnulib to work with non-GCC compilers that
18955         support __attribute__.  The Autoconf way to do this is to test for
18956         each kind of attribute that we want support for, and selectively
18957         enable that in source code.
18958
18959         Fix this problem just for stdlib.h, by adding a test for the
18960         __noreturn__ attribute, and change stdlib.in.h to use that test
18961         when needed.  This technique can be easily generalized to the
18962         other *.in.h files and attributes, and a similar technique can be
18963         used for *.h and *.c files.  This patch is enough to solve the
18964         problem for Emacs + getloadavg, and I thought I'd publish it for
18965         feedback before undertaking further, similar fixes in other
18966         modules.
18967
18968         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
18969         because it's not needed for stdlib.h.  It merely substitutes the
18970         value directly into stdlib.h.  We may well need to #define it, or
18971         similar symbols, for other modules, but it's nice to also have an
18972         option to not #define it for applications like Emacs that do not
18973         need it.
18974
18975         * lib/stdlib.in.h (__attribute__): Do not #define.
18976         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
18977         be defined only if the _Exit module is also used.
18978         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
18979         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
18980         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
18981         platforms.
18982         * modules/_Exit (Files): Add m4/attribute.m4.
18983         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
18984         * m4/attribute.m4: New file.
18985
18986 2011-02-12  Bruno Haible  <bruno@clisp.org>
18987
18988         wcsrtombs: Work around bug on native Windows.
18989         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
18990         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
18991         instead of len.
18992         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
18993
18994 2011-02-12  Bruno Haible  <bruno@clisp.org>
18995
18996         mbsrtowcs: Work around bug on native Windows.
18997         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
18998         against mingw bug.
18999         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
19000
19001 2011-02-12  Bruno Haible  <bruno@clisp.org>
19002
19003         Avoid setlocale bugs in tests.
19004         * modules/btowc (Dependencies): Add setlocale.
19005         * modules/c-strcase (Dependencies): Likewise.
19006         * modules/mbmemcasecmp (Dependencies): Likewise.
19007         * modules/mbmemcasecoll (Dependencies): Likewise.
19008         * modules/mbrtowc (Dependencies): Likewise.
19009         * modules/mbscasecmp (Dependencies): Likewise.
19010         * modules/mbscasestr (Dependencies): Likewise.
19011         * modules/mbschr (Dependencies): Likewise.
19012         * modules/mbscspn (Dependencies): Likewise.
19013         * modules/mbsinit (Dependencies): Likewise.
19014         * modules/mbsncasecmp (Dependencies): Likewise.
19015         * modules/mbsnrtowcs (Dependencies): Likewise.
19016         * modules/mbspbrk (Dependencies): Likewise.
19017         * modules/mbspcasecmp (Dependencies): Likewise.
19018         * modules/mbsrchr (Dependencies): Likewise.
19019         * modules/mbsrtowcs (Dependencies): Likewise.
19020         * modules/mbsspn (Dependencies): Likewise.
19021         * modules/mbsstr (Dependencies): Likewise.
19022         * modules/nl_langinfo (Dependencies): Likewise.
19023         * modules/quotearg (Dependencies): Likewise.
19024         * modules/unicase/locale-language (Dependencies): Likewise.
19025         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
19026         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
19027         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
19028         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
19029         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
19030         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
19031         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
19032         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
19033         * modules/vasnprintf-posix (Dependencies): Likewise.
19034         * modules/wcrtomb (Dependencies): Likewise.
19035         * modules/wcsnrtombs (Dependencies): Likewise.
19036         * modules/wcsrtombs (Dependencies): Likewise.
19037
19038 2011-02-12  Bruno Haible  <bruno@clisp.org>
19039
19040         setlocale: Workaround native Windows bug.
19041         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
19042         succeeds but sets LC_CTYPE to "C", report a failure.
19043         * tests/test-setlocale2.sh: New file.
19044         * tests/test-setlocale2.c: New file.
19045         * modules/setlocale-tests (Files): Add the new files.
19046         (Makefile.am): Enable test-setlocale2.sh test.
19047         * doc/posix-functions/setlocale.texi: Mention workaround.
19048
19049 2011-02-11  Bruno Haible  <bruno@clisp.org>
19050
19051         Tests for module 'setlocale'.
19052         * modules/setlocale-tests: New file.
19053         * tests/test-setlocale1.sh: New file.
19054         * tests/test-setlocale1.c: New file.
19055
19056         New module 'setlocale'.
19057         * lib/locale.in.h (setlocale): New declaration.
19058         * lib/setlocale.c: New file, based on
19059         gettext/gettext-runtime/intl/setlocale.c.
19060         * m4/setlocale.m4: New file.
19061         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
19062         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
19063         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
19064         REPLACE_SETLOCALE.
19065         * modules/setlocale: New file.
19066         * tests/test-locale-c++.cc: Test the declaration of setlocale.
19067         * doc/posix-functions/setlocale.texi: Mention the new module.
19068
19069 2011-02-11  Bruno Haible  <bruno@clisp.org>
19070
19071         Prepare for locale dependent tests on mingw.
19072         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
19073         because it has the wrong locale encoding.
19074         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
19075         French_France.1252 instead of "fr".
19076         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
19077         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
19078         because it has the wrong locale encoding.
19079         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
19080         native Windows, try Turkish_Turkey.65001.
19081         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
19082         Chinese_China.54936.
19083
19084         Prepare for locale dependent tests on mingw.
19085         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
19086         differently.
19087         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
19088         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
19089         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19090         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19091
19092 2011-02-11  Eric Blake  <eblake@redhat.com>
19093
19094         strptime: avoid compiler warnings
19095         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
19096         compiler warnings about dead code.
19097         Reported by Daniel P. Berrange.
19098
19099 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
19100
19101         doc: update users.txt
19102         * users.txt: Add rcs.
19103
19104 2011-02-10  John W. Eaton  <jwe@gnu.org>
19105
19106         doc: update users.txt
19107         * users.txt: Add octave.
19108
19109 2011-02-10  Jim Meyering  <meyering@redhat.com>
19110
19111         doc: update users.txt
19112         * users.txt: Add iwhd.
19113
19114 2011-02-09  Bruno Haible  <bruno@clisp.org>
19115
19116         gnulib-tool: Make copyright notice adjustment more robust.
19117         * gnulib-tool (func_import): In sed_transform_main_lib_file,
19118         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
19119         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
19120         License".
19121         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
19122
19123 2011-02-06  Bruno Haible  <bruno@clisp.org>
19124
19125         New module 'towctrans'.
19126         * modules/towctrans: New file.
19127         * lib/wctype.in.h (towctrans): New declaration.
19128         * lib/towctrans.c: New file.
19129         * lib/towctrans-impl.h: New file.
19130         * m4/towctrans.m4: New file.
19131         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
19132         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
19133         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
19134         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
19135         * doc/posix-functions/towctrans.texi: Mention the new module.
19136
19137 2011-02-06  Bruno Haible  <bruno@clisp.org>
19138
19139         New module 'wctrans'.
19140         * modules/wctrans: New file.
19141         * lib/wctype.in.h (wctrans): New declaration.
19142         * lib/wctrans.c: New file.
19143         * lib/wctrans-impl.h: New file.
19144         * m4/wctrans.m4: New file.
19145         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
19146         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
19147         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
19148         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
19149         * doc/posix-functions/wctrans.texi: Mention the new module.
19150
19151 2011-02-06  Bruno Haible  <bruno@clisp.org>
19152
19153         New module 'iswctype'.
19154         * modules/iswctype: New file.
19155         * lib/wctype.in.h (iswctype): New declaration.
19156         * lib/iswctype.c: New file.
19157         * lib/iswctype-impl.h: New file.
19158         * m4/iswctype.m4: New file.
19159         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
19160         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
19161         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
19162         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
19163         * doc/posix-functions/iswctype.texi: Mention the new module and the
19164         HP-UX 11.00 problem.
19165
19166 2011-02-06  Bruno Haible  <bruno@clisp.org>
19167
19168         New module 'wctype'.
19169         * modules/wctype: Change to represent the wctype() substitute.
19170         * lib/wctype.in.h (wctype): New declaration.
19171         * lib/wctype.c: New file.
19172         * lib/wctype-impl.h: New file.
19173         * m4/wctype.m4: New file.
19174         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
19175         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
19176         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
19177         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
19178         * doc/posix-functions/wctype.texi: Mention the new module and the
19179         HP-UX 11.00 problem.
19180
19181 2011-02-06  Bruno Haible  <bruno@clisp.org>
19182
19183         wctype-h: Ensure wctype_t and wctrans_t are defined.
19184         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
19185         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19186         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19187         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
19188         HAVE_WCTRANS_T.
19189         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
19190
19191 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
19192
19193         flock: fix license typo
19194
19195         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
19196         omitted.
19197
19198 2011-02-08  Bruno Haible  <bruno@clisp.org>
19199
19200         Split large sed scripts, for HP-UX sed.
19201         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
19202         to avoid HP-UX limit of 99 commands, in the near future.
19203         * modules/stdlib (Makefile.am): Likewise.
19204         * modules/unistd (Makefile.am): Likewise.
19205         * modules/wchar (Makefile.am): Likewise.
19206         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19207         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
19208         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
19209
19210 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19211             Bruno Haible  <bruno@clisp.org>
19212
19213         stdlib: improve random_r modularization
19214         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
19215         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
19216         you also need the random_r module to get this material right.
19217         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
19218         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
19219         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
19220
19221 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19222
19223         stdlib: don't depend on stdint
19224         * lib/stdlib.in.h: Don't include <stdint.h> merely because
19225         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
19226         be independent of whether stdint.h is needed.
19227         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
19228         here, instead of ...
19229         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
19230         struct random_data should be using the random_r module, not just
19231         the stdlib module (which wouldn't make sense: what package needs
19232         just struct random_data without also needing random_r?).
19233         * modules/stdlib (Depends-on): Remove stdint.
19234
19235         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
19236         See the thread rooted at
19237         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
19238         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
19239         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
19240         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
19241         __VMS)); previously it was always included (via fcntl--.h).
19242         (getloadavg): Do not use c_strtod.  Instead, approximate it by
19243         hand; this is good enough for load averages.  Also, do not use
19244         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
19245         flags directly if available and don't bother otherwise.  (Packages
19246         that need the extra reliability should use the modules that define
19247         these flags on older platforms that lack them.)
19248         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
19249         fcntl-safer.
19250
19251 2011-02-08  Jim Meyering  <meyering@redhat.com>
19252
19253         di-set.h, ino-map.h: add multiple-inclusion guard
19254         Technically, the guard is required only for ino-map.h, due to its
19255         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
19256         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
19257         * lib/ino-map.h: Likewise.
19258
19259 2011-02-06  Bruno Haible  <bruno@clisp.org>
19260
19261         iswblank: Ensure declaration on glibc systems.
19262         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
19263         * modules/iswblank (Dependencies): Add 'extensions'.
19264         * doc/posix-functions/iswblank.texi: Document the glibc problem.
19265
19266 2011-02-06  Bruno Haible  <bruno@clisp.org>
19267
19268         New module 'iswblank'.
19269         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
19270         * modules/iswblank: New file.
19271         * modules/wctype-h (Files): Remove lib/iswblank.c.
19272         (Makefile.am): Substitute GNULIB_ISWBLANK.
19273         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
19274         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
19275         (gl_WCTYPE_H_DEFAULTS): New macro.
19276         (gl_WCTYPE_H): Require it. Remove iswblank related code.
19277         * modules/iswblank-tests: New file.
19278         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
19279         * tests/test-wctype-h.c (main): Remove iswblank tests.
19280         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
19281         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
19282         of 'wctype-h'.
19283         * NEWS: Mention the change.
19284         * modules/mbchar (Depends-on): Add iswblank.
19285
19286 2011-02-08  Bruno Haible  <bruno@clisp.org>
19287
19288         di-set tests: Refactor.
19289         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
19290         unnecessary includes.
19291         (ASSERT): Remove macro.
19292         (main): Make C90 compliant by avoiding variable declaration after
19293         statement.
19294         * modules/di-set-tests (Files): Add tests/macros.h.
19295
19296 2011-02-08  Bruno Haible  <bruno@clisp.org>
19297
19298         ino-map tests: Refactor.
19299         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
19300         unnecessary includes.
19301         (ASSERT): Remove macro.
19302         (main): Make C90 compliant by avoiding variable declaration after
19303         statement.
19304         * modules/ino-map-tests (Files): Add tests/macros.h.
19305
19306 2011-02-08  Jim Meyering  <meyering@redhat.com>
19307
19308         di-set: add "const" to a cast
19309         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
19310         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
19311
19312 2011-02-06  Bruno Haible  <bruno@clisp.org>
19313
19314         Rename module 'wctype' to 'wctype-h'.
19315         * modules/wctype-h: Renamed from modules/wctype.
19316         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
19317         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
19318         (Files, Depends-on, Makefile.am): Update.
19319         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
19320         (Files, Makefile.am): Update.
19321         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
19322         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
19323         * doc/posix-headers/wctype.texi: Update.
19324         * doc/posix-functions/iswalnum.texi: Update.
19325         * doc/posix-functions/iswalpha.texi: Update.
19326         * doc/posix-functions/iswblank.texi: Update.
19327         * doc/posix-functions/iswcntrl.texi: Update.
19328         * doc/posix-functions/iswdigit.texi: Update.
19329         * doc/posix-functions/iswgraph.texi: Update.
19330         * doc/posix-functions/iswlower.texi: Update.
19331         * doc/posix-functions/iswprint.texi: Update.
19332         * doc/posix-functions/iswpunct.texi: Update.
19333         * doc/posix-functions/iswspace.texi: Update.
19334         * doc/posix-functions/iswupper.texi: Update.
19335         * doc/posix-functions/iswxdigit.texi: Update.
19336         * doc/posix-functions/towlower.texi: Update.
19337         * doc/posix-functions/towupper.texi: Update.
19338         * NEWS: Mention the change.
19339         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
19340         * modules/mbchar (Dependencies): Likewise.
19341         * modules/mbswidth (Dependencies): Likewise.
19342         * modules/quotearg (Dependencies): Likewise.
19343         * modules/regex (Dependencies): Likewise.
19344         * modules/wcscasecmp (Dependencies): Likewise.
19345         * modules/wcsncasecmp (Dependencies): Likewise.
19346         * modules/wcwidth (Dependencies): Likewise.
19347
19348 2011-02-06  Bruno Haible  <bruno@clisp.org>
19349
19350         New module 'wcswidth'.
19351         * modules/wcswidth: New file.
19352         * lib/wchar.in.h (wcswidth): New declaration.
19353         * lib/wcswidth.c: New file.
19354         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
19355         * m4/wcswidth.m4: New file.
19356         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
19357         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
19358         REPLACE_WCSWIDTH.
19359         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
19360         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
19361         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
19362         * doc/posix-functions/wcswidth.texi: Mention the new module.
19363
19364 2011-02-06  Bruno Haible  <bruno@clisp.org>
19365
19366         New module 'wcstok'.
19367         * modules/wcstok: New file.
19368         * lib/wchar.in.h (wcstok): New declaration.
19369         * lib/wcstok.c: New file.
19370         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
19371         * m4/wcstok.m4: New file.
19372         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
19373         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
19374         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
19375         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
19376         * doc/posix-functions/wcstok.texi: Mention the new module.
19377
19378 2011-02-06  Bruno Haible  <bruno@clisp.org>
19379
19380         New module 'wcsstr'.
19381         * modules/wcsstr: New file.
19382         * lib/wchar.in.h (wcsstr): New declaration.
19383         * lib/wcsstr.c: New file.
19384         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
19385         * m4/wcsstr.m4: New file.
19386         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
19387         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
19388         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
19389         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
19390         * doc/posix-functions/wcsstr.texi: Mention the new module.
19391
19392 2011-02-06  Bruno Haible  <bruno@clisp.org>
19393
19394         New module 'wcspbrk'.
19395         * modules/wcspbrk: New file.
19396         * lib/wchar.in.h (wcspbrk): New declaration.
19397         * lib/wcspbrk.c: New file.
19398         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
19399         * m4/wcspbrk.m4: New file.
19400         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
19401         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
19402         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
19403         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
19404         * doc/posix-functions/wcspbrk.texi: Mention the new module.
19405
19406 2011-02-06  Bruno Haible  <bruno@clisp.org>
19407
19408         New module 'wcsspn'.
19409         * modules/wcsspn: New file.
19410         * lib/wchar.in.h (wcsspn): New declaration.
19411         * lib/wcsspn.c: New file.
19412         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
19413         * m4/wcsspn.m4: New file.
19414         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
19415         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
19416         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
19417         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
19418         * doc/posix-functions/wcsspn.texi: Mention the new module.
19419
19420 2011-02-06  Bruno Haible  <bruno@clisp.org>
19421
19422         New module 'wcscspn'.
19423         * modules/wcscspn: New file.
19424         * lib/wchar.in.h (wcscspn): New declaration.
19425         * lib/wcscspn.c: New file.
19426         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
19427         * m4/wcscspn.m4: New file.
19428         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
19429         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
19430         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
19431         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
19432         * doc/posix-functions/wcscspn.texi: Mention the new module.
19433
19434 2011-02-06  Bruno Haible  <bruno@clisp.org>
19435
19436         New module 'wcsrchr'.
19437         * modules/wcsrchr: New file.
19438         * lib/wchar.in.h (wcsrchr): New declaration.
19439         * lib/wcsrchr.c: New file.
19440         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
19441         * m4/wcsrchr.m4: New file.
19442         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
19443         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
19444         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
19445         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
19446         * doc/posix-functions/wcsrchr.texi: Mention the new module.
19447
19448 2011-02-06  Bruno Haible  <bruno@clisp.org>
19449
19450         New module 'wcschr'.
19451         * modules/wcschr: New file.
19452         * lib/wchar.in.h (wcschr): New declaration.
19453         * lib/wcschr.c: New file.
19454         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
19455         * m4/wcschr.m4: New file.
19456         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
19457         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
19458         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
19459         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
19460         * doc/posix-functions/wcschr.texi: Mention the new module.
19461
19462 2011-02-06  Bruno Haible  <bruno@clisp.org>
19463
19464         New module 'wcsdup'.
19465         * modules/wcsdup: New file.
19466         * lib/wchar.in.h (wcsdup): New declaration.
19467         * lib/wcsdup.c: New file.
19468         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
19469         * m4/wcsdup.m4: New file.
19470         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
19471         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
19472         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
19473         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
19474         * doc/posix-functions/wcsdup.texi: Mention the new module.
19475
19476 2011-02-06  Bruno Haible  <bruno@clisp.org>
19477
19478         New module 'wcsxfrm'.
19479         * modules/wcsxfrm: New file.
19480         * lib/wchar.in.h (wcsxfrm): New declaration.
19481         * lib/wcsxfrm.c: New file.
19482         * lib/wcsxfrm-impl.h: New file.
19483         * m4/wcsxfrm.m4: New file.
19484         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
19485         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
19486         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
19487         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
19488         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
19489
19490 2011-02-06  Bruno Haible  <bruno@clisp.org>
19491
19492         New module 'wcscoll'.
19493         * modules/wcscoll: New file.
19494         * lib/wchar.in.h (wcscoll): New declaration.
19495         * lib/wcscoll.c: New file.
19496         * lib/wcscoll-impl.h: New file.
19497         * m4/wcscoll.m4: New file.
19498         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
19499         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
19500         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
19501         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
19502         * doc/posix-functions/wcscoll.texi: Mention the new module.
19503
19504 2011-02-06  Bruno Haible  <bruno@clisp.org>
19505
19506         New module 'wcsncasecmp'.
19507         * modules/wcsncasecmp: New file.
19508         * lib/wchar.in.h (wcsncasecmp): New declaration.
19509         * lib/wcsncasecmp.c: New file.
19510         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
19511         * m4/wcsncasecmp.m4: New file.
19512         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
19513         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
19514         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
19515         HAVE_WCSNCASECMP.
19516         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
19517         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
19518
19519 2011-02-06  Bruno Haible  <bruno@clisp.org>
19520
19521         New module 'wcscasecmp'.
19522         * modules/wcscasecmp: New file.
19523         * lib/wchar.in.h (wcscasecmp): New declaration.
19524         * lib/wcscasecmp.c: New file.
19525         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
19526         * m4/wcscasecmp.m4: New file.
19527         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
19528         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
19529         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
19530         HAVE_WCSCASECMP.
19531         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
19532         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
19533
19534 2011-02-05  Bruno Haible  <bruno@clisp.org>
19535
19536         New module 'wcsncmp'.
19537         * modules/wcsncmp: New file.
19538         * lib/wchar.in.h (wcsncmp): New declaration.
19539         * lib/wcsncmp.c: New file.
19540         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
19541         * m4/wcsncmp.m4: New file.
19542         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
19543         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
19544         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
19545         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
19546         * doc/posix-functions/wcsncmp.texi: Mention the new module.
19547
19548 2011-02-05  Bruno Haible  <bruno@clisp.org>
19549
19550         New module 'wcscmp'.
19551         * modules/wcscmp: New file.
19552         * lib/wchar.in.h (wcscmp): New declaration.
19553         * lib/wcscmp.c: New file.
19554         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
19555         * m4/wcscmp.m4: New file.
19556         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
19557         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
19558         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
19559         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
19560         * doc/posix-functions/wcscmp.texi: Mention the new module.
19561
19562 2011-02-05  Bruno Haible  <bruno@clisp.org>
19563
19564         New module 'wcsncat'.
19565         * modules/wcsncat: New file.
19566         * lib/wchar.in.h (wcsncat): New declaration.
19567         * lib/wcsncat.c: New file.
19568         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
19569         * m4/wcsncat.m4: New file.
19570         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
19571         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
19572         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
19573         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
19574         * doc/posix-functions/wcsncat.texi: Mention the new module.
19575
19576 2011-02-05  Bruno Haible  <bruno@clisp.org>
19577
19578         New module 'wcscat'.
19579         * modules/wcscat: New file.
19580         * lib/wchar.in.h (wcscat): New declaration.
19581         * lib/wcscat.c: New file.
19582         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
19583         * m4/wcscat.m4: New file.
19584         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
19585         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
19586         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
19587         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
19588         * doc/posix-functions/wcscat.texi: Mention the new module.
19589
19590 2011-02-05  Bruno Haible  <bruno@clisp.org>
19591
19592         New module 'wcpncpy'.
19593         * modules/wcpncpy: New file.
19594         * lib/wchar.in.h (wcpncpy): New declaration.
19595         * lib/wcpncpy.c: New file.
19596         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
19597         * m4/wcpncpy.m4: New file.
19598         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
19599         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
19600         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
19601         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
19602         * doc/posix-functions/wcpncpy.texi: Mention the new module.
19603
19604 2011-02-05  Bruno Haible  <bruno@clisp.org>
19605
19606         New module 'wcsncpy'.
19607         * modules/wcsncpy: New file.
19608         * lib/wchar.in.h (wcsncpy): New declaration.
19609         * lib/wcsncpy.c: New file.
19610         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
19611         * m4/wcsncpy.m4: New file.
19612         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
19613         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
19614         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
19615         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
19616         * doc/posix-functions/wcsncpy.texi: Mention the new module.
19617
19618 2011-02-05  Bruno Haible  <bruno@clisp.org>
19619
19620         New module 'wcpcpy'.
19621         * modules/wcpcpy: New file.
19622         * lib/wchar.in.h (wcpcpy): New declaration.
19623         * lib/wcpcpy.c: New file.
19624         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
19625         * m4/wcpcpy.m4: New file.
19626         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
19627         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
19628         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
19629         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
19630         * doc/posix-functions/wcpcpy.texi: Mention the new module.
19631
19632 2011-02-05  Bruno Haible  <bruno@clisp.org>
19633
19634         New module 'wcscpy'.
19635         * modules/wcscpy: New file.
19636         * lib/wchar.in.h (wcscpy): New declaration.
19637         * lib/wcscpy.c: New file.
19638         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
19639         * m4/wcscpy.m4: New file.
19640         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
19641         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
19642         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
19643         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
19644         * doc/posix-functions/wcscpy.texi: Mention the new module.
19645
19646 2011-02-05  Bruno Haible  <bruno@clisp.org>
19647
19648         New module 'wcsnlen'.
19649         * modules/wcsnlen: New file.
19650         * lib/wchar.in.h (wcsnlen): New declaration.
19651         * lib/wcsnlen.c: New file.
19652         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
19653         * m4/wcsnlen.m4: New file.
19654         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
19655         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
19656         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
19657         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
19658         * doc/posix-functions/wcsnlen.texi: Mention the new module.
19659
19660 2011-02-05  Bruno Haible  <bruno@clisp.org>
19661
19662         New module 'wcslen'.
19663         * modules/wcslen: New file.
19664         * lib/wchar.in.h (wcslen): New declaration.
19665         * lib/wcslen.c: New file.
19666         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
19667         * m4/wcslen.m4: New file.
19668         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
19669         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
19670         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
19671         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
19672         * doc/posix-functions/wcslen.texi: Mention the new module.
19673
19674 2011-02-05  Bruno Haible  <bruno@clisp.org>
19675
19676         New module 'wmemset'.
19677         * modules/wmemset: New file.
19678         * lib/wchar.in.h (wmemset): New declaration.
19679         * lib/wmemset.c: New file.
19680         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
19681         * m4/wmemset.m4: New file.
19682         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
19683         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
19684         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
19685         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
19686         * doc/posix-functions/wmemset.texi: Mention the new module.
19687
19688 2011-02-05  Bruno Haible  <bruno@clisp.org>
19689
19690         New module 'wmemmove'.
19691         * modules/wmemmove: New file.
19692         * lib/wchar.in.h (wmemmove): New declaration.
19693         * lib/wmemmove.c: New file.
19694         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
19695         * m4/wmemmove.m4: New file.
19696         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
19697         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
19698         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
19699         HAVE_WMEMMOVE.
19700         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
19701         * doc/posix-functions/wmemmove.texi: Mention the new module.
19702
19703 2011-02-05  Bruno Haible  <bruno@clisp.org>
19704
19705         New module 'wmemcpy'.
19706         * modules/wmemcpy: New file.
19707         * lib/wchar.in.h (wmemcpy): New declaration.
19708         * lib/wmemcpy.c: New file.
19709         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
19710         * m4/wmemcpy.m4: New file.
19711         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
19712         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
19713         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
19714         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
19715         * doc/posix-functions/wmemcpy.texi: Mention the new module.
19716
19717 2011-02-05  Bruno Haible  <bruno@clisp.org>
19718
19719         New module 'wmemcmp'.
19720         * modules/wmemcmp: New file.
19721         * lib/wchar.in.h (wmemcmp): New declaration.
19722         * lib/wmemcmp.c: New file.
19723         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
19724         * m4/wmemcmp.m4: New file.
19725         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
19726         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
19727         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
19728         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
19729         * doc/posix-functions/wmemcmp.texi: Mention the new module.
19730
19731 2011-02-07  Jim Meyering  <meyering@redhat.com>
19732
19733         di-set, ino-map: new modules, from coreutils
19734         * lib/di-set.c: New file.
19735         * lib/di-set.h: Likewise.
19736         * lib/ino-map.c: Likewise.
19737         * lib/ino-map.h: Likewise.
19738         * modules/di-set: Likewise.
19739         * modules/di-set-tests: Likewise.
19740         * modules/ino-map: Likewise.
19741         * modules/ino-map-tests: Likewise.
19742         * tests/test-di-set.c: Likewise.
19743         * tests/test-ino-map.c: Likewise.
19744
19745 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
19746
19747         getloadavg: merge minor changes from Emacs
19748
19749         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
19750         (getloadavg): Use memset, not bzero.
19751
19752         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
19753         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
19754         clash (bug#86).
19755
19756 2010-11-14  Bruno Haible  <bruno@clisp.org>
19757
19758         Allow multiple gnulib generated replacements to coexist.
19759         * lib/getopt.in.h (struct option): Avoid identical redefinition.
19760         * lib/inttypes.in.h (imaxdiv_t): Likewise.
19761         * lib/langinfo.in.h (nl_item): Likewise.
19762         * lib/math.in.h (_NaN, NAN): Likewise.
19763         * lib/netdb.in.h (struct addrinfo): Likewise.
19764         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
19765         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
19766         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
19767         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
19768         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
19769         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
19770         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
19771         pthread_mutexattr_init, pthread_mutexattr_settype,
19772         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
19773         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
19774         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
19775         pthread_spin_trylock, pthread_spin_unlock): Likewise.
19776         * lib/sched.in.h (struct sched_param): Likewise.
19777         * lib/se-selinux.in.h (security_class_t, security_context_t,
19778         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
19779         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
19780         lsetfilecon, fsetfilecon, security_check_context,
19781         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
19782         Likewise.
19783         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
19784         Likewise.
19785         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
19786         _gl_function_taking_int_returning_void_t, union sigval,
19787         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
19788         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
19789         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19790         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
19791         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
19792         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
19793         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
19794         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
19795         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
19796         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
19797         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
19798         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
19799         socklen_t, rpl_fd_isset): Likewise.
19800         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
19801         * lib/sys_time.in.h (struct timeval): Likewise.
19802         * lib/sys_times.in.h (struct tms): Likewise.
19803         * lib/sys_utsname.in.h (struct utsname):
19804         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
19805         * lib/unistd.in.h (getpagesize): Likewise.
19806         * lib/wchar.in.h (mbstate_t): Likewise.
19807         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
19808         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
19809         towlower, towupper): Likewise.
19810         Reported by Sam Steingold <sds@gnu.org>.
19811
19812 2011-02-05  Eric Blake  <eblake@redhat.com>
19813
19814         unsetenv: work around Haiku issues
19815         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
19816         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
19817
19818 2010-12-30  Bruce Korb  <bkorb@gnu.org>
19819
19820         libposix: avoid calling error() within libposix
19821         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
19822         is defined.
19823
19824 2011-02-05  Eric Blake  <eblake@redhat.com>
19825
19826         strerror_r-posix: port to cygwin
19827         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
19828         implementation.
19829         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
19830         * tests/test-strerror_r.c (main): Fix test.
19831         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
19832         issue.
19833
19834 2011-02-05  Bruno Haible  <bruno@clisp.org>
19835
19836         New module 'wmemchr'.
19837         * modules/wmemchr: New file.
19838         * lib/wchar.in.h (wmemchr): New declaration.
19839         * lib/wmemchr.c: New file.
19840         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
19841         * m4/wmemchr.m4: New file.
19842         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
19843         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
19844         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
19845         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
19846         * doc/posix-functions/wmemchr.texi: Mention the new module.
19847
19848 2011-02-04  Eric Blake  <eblake@redhat.com>
19849
19850         fdopendir: detect FreeBSD bug
19851         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
19852         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
19853
19854 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
19855
19856         stdbool: do not define HAVE_STDBOOL_H
19857         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
19858         AC_HEADER_STDBOOL.  All uses changed.  Do not define
19859         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
19860         imported from the latest Autoconf git.  It was motivated by Emacs,
19861         which uses gnulib but does not need HAVE_STDBOOL_H.
19862
19863 2011-02-04  Bruno Haible  <bruno@clisp.org>
19864
19865         wcsnrtombs: Prepare for new module wwcsnrtombs.
19866         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
19867         * lib/wcsnrtombs.c: Include it.
19868         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
19869
19870         wcsrtombs: Prepare for new module wwcsrtombs.
19871         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
19872         * lib/wcsrtombs.c: Include it.
19873         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
19874
19875         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
19876         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
19877         * lib/mbsnrtowcs.c: Include it.
19878         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
19879
19880         mbsrtowcs: Prepare for new module mbsrtowwcs.
19881         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
19882         * lib/mbsrtowcs.c: Include it.
19883         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
19884
19885 2011-02-04  Bruno Haible  <bruno@clisp.org>
19886
19887         vasnprintf: Reduce use of malloc for small format strings.
19888         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
19889         (arguments): Add room for the first 7 arguments.
19890         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
19891         (char_directives, u8_directives, u16_directives, u32_directives): Add
19892         room for the first 7 directives.
19893         * lib/printf-parse.c: Include <string.h>.
19894         (PRINTF_PARSE): Change memory handling code so that it uses the first
19895         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
19896         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
19897         Reported by Pádraig Brady <P@draigbrady.com>.
19898
19899 2011-01-31  Eric Blake  <eblake@redhat.com>
19900
19901         dup2: work around Haiku bug
19902         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
19903         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
19904         * doc/posix-functions/dup2.texi (dup2): Document the bug.
19905         * tests/test-dup2.c (main): Enhance test.
19906
19907 2011-01-31  Simon Josefsson  <simon@josefsson.org>
19908
19909         doc: off_t is not available in eglibc 2.11.2 stdio.h.
19910         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
19911         declared by eglibc 2.11.2.
19912         * lib/stdio.in.h: Likewise.
19913
19914 2011-01-31  Eric Blake  <eblake@redhat.com>
19915
19916         ignore-value: add missing test dependency
19917         * tests/test-ignore-value.c: Revert previous change; stdio.h
19918         provides off_t.
19919         * modules/ignore-value-tests (Depends-on): Add missing dependency.
19920
19921 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
19922
19923         mktime: clarify long_int width checking
19924         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
19925         the top level, to make it clearer that the assumption about
19926         long_int width is being checked.  See
19927         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
19928
19929 2011-01-30  Simon Josefsson  <simon@josefsson.org>
19930
19931         ignore-value: Fix self-test.
19932         * tests/test-ignore-value.c: Include sys/types.h for off_t.
19933
19934 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
19935
19936         TYPE_MAXIMUM: avoid theoretically undefined behavior
19937         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
19938         negative number, which the C Standard says has undefined behavior.
19939         In practice this is not a problem, but might as well do it by the book.
19940         Reported by Rich Felker and Eric Blake; see
19941         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
19942         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
19943         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19944         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19945         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
19946         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19947         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
19948
19949         mktime: #undef mktime before #defining it
19950         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
19951
19952         mktime: systematically normalize tm_isdst comparisons
19953         * lib/mktime.c (isdst_differ): New function.
19954         (__mktime_internal): Use it systematically for all isdst comparisons.
19955         This completes the fix for libc BZ #6723, and removes the need for
19956         normalizing tm_isdst.  See
19957         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
19958         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
19959
19960         mktime: fix some integer overflow issues and sidestep the rest
19961
19962         This was prompted by a bug report by Benjamin Lindner for MinGW
19963         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
19964         His bug is due to signed integer overflow (0 - INT_MIN), and I
19965         I scanned through mktime.c looking for other integer overflow
19966         problems, fixing all the bugs I found.
19967
19968         Although the C Standard says the resulting code is still not safe
19969         in the presence of integer overflow, in practice it should be good
19970         enough for all real-world two's-complement implementations, except
19971         for debugging environments that deliberately trap on integer
19972         overflow (e.g., gcc -ftrapv).
19973
19974         * lib/mktime.c (WRAPV): New macro.
19975         (SHR): Also check that long_int and time_t shift right in the
19976         usual way, before using the fast-but-unportable method.
19977         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
19978         used.  The code already assumed two's complement, so there's
19979         no need to test for alternatives.  All uses removed.
19980         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
19981         the C standard.  Problem reported by Rich Felker in
19982         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
19983         (twos_complement_arithmetic): Also check long_int and time_t.
19984         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
19985         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
19986         (__mktime_internal): Avoid integer overflow with unary subtraction
19987         in two instances where -1 - X is an adequate replacement for -X,
19988         since the calculations are approximate.
19989
19990 2011-01-29  Eric Blake  <eblake@redhat.com>
19991
19992         mktime: avoid infinite loop
19993         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
19994         type; behavior is still undefined but portable to all known targets.
19995         Reported by Rich Felker.
19996
19997 2011-01-29  Simon Josefsson  <simon@josefsson.org>
19998
19999         rename, unlink, same-inode: Relicense.
20000         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
20001         * modules/unlink (License): Likewise.
20002         * modules/same-inode (License): Likewise.
20003
20004 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20005
20006         mktime: avoid problems on NetBSD 5 / i386
20007         * lib/mktime.c (long_int): New type.  This works around a problem
20008         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
20009         but time_t is 64 bits, and where I expect the existing code is
20010         wrong in some cases.
20011         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
20012         (ydhms_diff): Bring back the compile-time check for wide-enough
20013         year and yday.
20014
20015         mktime: fix misspelling in comment
20016         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
20017         This merges all recent glibc changes of importance.
20018
20019 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20020
20021         move-if-change: cope with concurrent mv of identical file.
20022         * build-aux/move-if-change (CMPPROG): Accept environment
20023         variable as an override for `cmp'.
20024         (usage): Document CMPPROG.
20025         Adjust comparison to drop stdout.  Cope with failure of mv if
20026         the target file exists and is identical to the source, for
20027         parallel builds.
20028         Report from H.J. Lu against binutils in PR binutils/12283.
20029
20030 2011-01-28  Bruce Korb  <bkorb@gnu.org>
20031
20032         * users.txt: Mention sharutils.
20033
20034 2011-01-28  Simon Josefsson  <simon@josefsson.org>
20035
20036         * users.txt: Mention OATH Toolkit.
20037
20038 2011-01-27  Bruno Haible  <bruno@clisp.org>
20039
20040         Prepare for supporting FreeBSD 10.
20041         * build-aux/config.libpath: Remove handling of freebsd1*.
20042
20043 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
20044
20045         Prepare for supporting FreeBSD 10.
20046         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
20047         match FreeBSD 10.0.
20048
20049 2011-01-27  Bruno Haible  <bruno@clisp.org>
20050
20051         vma-iter, get-rusage-as: Add OpenBSD support.
20052         * modules/vma-iter (configure.ac): Test for mquery.
20053         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
20054         * lib/vma-iter.c: Include <sys/mman.h>.
20055         (vma_iterate): Add an implementation based on mquery().
20056         * lib/resource-ext.h (get_rusage_as): Update comments.
20057         * lib/get-rusage-as.c: Likewise.
20058         * lib/get-rusage-data.c: Likewise.
20059
20060 2011-01-26  Karl Berry  <karl@gnu.org>
20061
20062         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
20063         variables to make it easier to override the makeinfo program used.
20064
20065 2011-01-26  Eric Blake  <eblake@redhat.com>
20066
20067         fcntl: work around Haiku F_DUPFD bugs
20068         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
20069         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
20070         cloexec bit on duplication.
20071         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
20072
20073 2011-01-26  Bruno Haible  <bruno@clisp.org>
20074
20075         Enable memory leak tests on AIX.
20076         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
20077         * tests/test-fprintf-posix3.c (main): Likewise.
20078
20079 2011-01-26  Bruno Haible  <bruno@clisp.org>
20080
20081         Tests for module 'get-rusage-data'.
20082         * modules/get-rusage-data-tests: New file.
20083         * tests/test-get-rusage-data.c: New file.
20084
20085         New module 'get-rusage-data'.
20086         * lib/resource-ext.h (get_rusage_data): New declaration.
20087         * lib/get-rusage-data.c: New file.
20088         * modules/get-rusage-data: New file.
20089
20090 2011-01-25  Bruno Haible  <bruno@clisp.org>
20091
20092         get-rusage-as: Allow for easier testing.
20093         * lib/resource-ext.h (get_rusage_as): Add comment.
20094         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
20095         (main): New function for interactive testing.
20096
20097 2011-01-25  Bruno Haible  <bruno@clisp.org>
20098
20099         vma-iter: Treat Haiku like BeOS.
20100         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
20101         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
20102
20103 2011-01-25  Eric Blake  <eblake@redhat.com>
20104
20105         c-stack: fix regression on cygwin when libsigsegv is present
20106         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
20107
20108 2011-01-24  Bruno Haible  <bruno@clisp.org>
20109
20110         vma-iter: Avoid empty intervals.
20111         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
20112         on an empty interval.
20113
20114 2011-01-24  Jim Meyering  <meyering@redhat.com>
20115
20116         u64: remove unnecessary #include
20117         * lib/u64.h: Don't include <stddef.h>.  It was not used.
20118
20119 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20120
20121         Allow the user to avoid the HAVE_RAW_DECL_* macros.
20122         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
20123
20124 2011-01-23  Bruno Haible  <bruno@clisp.org>
20125
20126         New module 'vma-iter'.
20127         * lib/vma-iter.h: New file.
20128         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
20129         * modules/vma-iter: New file.
20130         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
20131         for get_rusage_as_via_iterator.
20132         (vma_iterate_callback): New function.
20133         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
20134         * modules/get-rusage-as (Depends-on): Add vma-iter.
20135
20136 2011-01-23  Bruno Haible  <bruno@clisp.org>
20137
20138         uninorm: Tweak includes.
20139         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
20140         Reported by Jim Meyering.
20141
20142 2011-01-23  Bruno Haible  <bruno@clisp.org>
20143
20144         get-rusage-as: Improve on NetBSD.
20145         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
20146         /proc, like on FreeBSD.
20147
20148 2011-01-23  Jim Meyering  <meyering@redhat.com>
20149
20150         xreadlink.h: remove unnecessary #include
20151         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
20152
20153         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
20154         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
20155
20156 2011-01-23  Bruno Haible  <bruno@clisp.org>
20157
20158         get-rusage-as: Fix bug.
20159         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
20160         original limit when aborting the first loop.
20161
20162 2011-01-23  Bruno Haible  <bruno@clisp.org>
20163
20164         wctype: Ensure valid C syntax.
20165         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
20166         unconditionally, instead of gl_NEXT_HEADERS conditionally.
20167
20168 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
20169
20170         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
20171         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
20172         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
20173         as they are needed only for configure's test case.
20174         This removes two unnecessary symbols from config.h.
20175
20176         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
20177         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
20178         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
20179         AC_CHECK_HEADERS_ONCE on a header that we also invoke
20180         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
20181         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
20182         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
20183         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
20184         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20185         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20186         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20187         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20188         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20189         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20190         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
20191         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20192         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
20193         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
20194
20195 2011-01-21  Eric Blake  <eblake@redhat.com>
20196
20197         maintainer-makefile: work with older git for submodule check
20198         * top/maint.mk (public-submodule-commit): Rewrite to avoid
20199         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
20200         Reported by Matthias Bolte.
20201
20202         bootstrap: minor portability fixes
20203         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
20204         (usage): Omit leading capital and trailing . on help phrases, per
20205         GNU Coding Standards.
20206         (check_versions, top level): Prefix messages with script name.
20207
20208 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
20209
20210         bootstrap: support --no-git option
20211         * build-aux/bootstrap: Add --no-git option, to be used when
20212         --gnulib-srcdir points to the exact desired checkout.
20213
20214 2011-01-21  Eric Blake  <eblake@redhat.com>
20215
20216         strerror_r-posix: work with glibc 2.13
20217         * lib/strerror_r.c (strerror_r): Fix return type.
20218
20219 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20220             Bruno Haible  <bruno@clisp.org>
20221
20222         uN_strstr: New unit tests.
20223         * modules/unistr/u8-strstr-tests: New file.
20224         * modules/unistr/u16-strstr-tests: New file.
20225         * modules/unistr/u32-strstr-tests: New file.
20226         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
20227         * tests/unistr/test-u8-strstr.c: New file.
20228         * tests/unistr/test-u16-strstr.c: New file.
20229         * tests/unistr/test-u32-strstr.c: New file.
20230
20231 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20232             Bruno Haible  <bruno@clisp.org>
20233
20234         Make uN_strstr functions O(n) worst-case.
20235         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
20236         16-bit and 32-bit unit cases, use the unibyte algorithm from
20237         lib/mbsstr.c.
20238         * lib/unistr/u8-strstr.c: Include <string.h>.
20239         (UNIT_IS_UINT8_T): New macro.
20240         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
20241         (U_STRLEN, U_STRNLEN): New macros.
20242         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
20243         (U_STRLEN, U_STRNLEN): New macros.
20244         * modules/unistr/u8-strstr (Depends-on): Add strstr.
20245         (configure.ac): Update required libunistring version.
20246         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
20247         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
20248         malloca.
20249         (configure.ac): Update required libunistring version.
20250         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
20251         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
20252         malloca.
20253         (configure.ac): Update required libunistring version.
20254
20255 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20256             Bruno Haible  <bruno@clisp.org>
20257
20258         Prepare for faster uN_strstr functions.
20259         * lib/str-kmp.h: Support definable UNITs.
20260         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
20261         needle_len argument.
20262         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
20263         * lib/mbscasestr.c (mbscasestr): Likewise.
20264
20265 2011-01-21  Pádraig Brady <P@draigBrady.com>
20266
20267         malloca-tests: make faster by unsetting MALLOC_PERTURB_
20268         * tests/test-malloca.c (main): Unset the environment variable
20269         to greatly speed up the test.
20270         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
20271         * modules/malloca-tests: Depend on unsetenv.
20272
20273 2011-01-21  Pádraig Brady <P@draigBrady.com>
20274
20275         ignore-value: remove stdint dependency
20276         * lib/ignore-value.h: Remove <stdint.h>
20277         * modules/ignore-value: Remove stdint dependency.
20278
20279 2011-01-21  Jim Meyering  <meyering@redhat.com>
20280
20281         maint.mk: adjust variable name to be consistent with other gl_ vars
20282         * top/maint.mk (gl_public_submodule_commit): Rename the variable
20283         to be lower case.
20284
20285 2011-01-20  Jim Meyering  <meyering@redhat.com>
20286
20287         maint.mk: make "check" depend on public-submodule-commit by default
20288         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
20289
20290 2011-01-20  Bruno Haible  <bruno@clisp.org>
20291
20292         mbfile, mbiter: Complete change from 2008-12-21.
20293         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
20294         * m4/mbiter.m4 (gl_MBITER): Likewise.
20295
20296 2011-01-20  Jim Meyering  <meyering@redhat.com>
20297
20298         init.sh: insert space between each function name and "()"
20299         * tests/init.sh: Make it a little easier to see that a function's
20300         name is "warn_", and not "warn" when looking at the first part of
20301         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
20302
20303 2011-01-20  Jim Meyering  <meyering@redhat.com>
20304
20305         mountlist: clean up code formatting
20306         * lib/mountlist.c (read_file_system_list): Split a long line,
20307         correct bracing style, use NULL in place of "(struct statfs *)0",
20308         don't parenthesize return value, add spaces around "=" and after
20309         ";-in-for-stmt".
20310
20311 2011-01-14  Markus Duft <mduft@gentoo.org>
20312
20313         mountlist: add support for Interix
20314         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
20315         Apply statvfs to all entries of /dev/fs.
20316         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
20317         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
20318
20319 2011-01-20  Jim Meyering  <meyering@redhat.com>
20320
20321         maint.mk: improve the public-submodule-commit rule
20322         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
20323         to suppress printing of its commands... unless V=1.
20324         Add git submodule's --quiet option to suppress printing of e.g.,
20325         "Entering gnulib" output.
20326         "cd" into $(srcdir) before running git submodule.
20327
20328 2011-01-20  Bruno Haible  <bruno@clisp.org>
20329
20330         include_next: Fix bug introduced on 2011-01-18.
20331         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
20332         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
20333         ac_cv_header_... variable if the second argument is not 'check'.
20334         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
20335         gl_NEXT_HEADERS_INTERNAL.
20336
20337 2011-01-20  Bruno Haible  <bruno@clisp.org>
20338
20339         Allow the user to avoid the GNULIB_TEST_* macros.
20340         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
20341         Suggested by Paul Eggert.
20342
20343 2011-01-14  Jim Meyering  <meyering@redhat.com>
20344
20345         bootstrap: avoid failure when there is no .gitmodules file
20346         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
20347         has been assigned to, even when its value is the empty string.
20348         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
20349         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
20350         Reported by John W. Eaton <jwe@gnu.org>.
20351
20352 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
20353
20354         assume <ctype.h>, ..., <time.h> exist
20355         For years gnulib has been assuming the existence of the headers
20356         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
20357         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
20358         them, since they don't appear to be needed.
20359         * README (Portability guidelines): Document this.
20360         * lib/flock.c: Assume <fcntl.h> exists.
20361         * lib/regex_internal.h: Assume <locale.h> exists.
20362         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
20363         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
20364         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
20365         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
20366         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
20367         * m4/regex.m4 (gl_REGEX): Likewise.
20368         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
20369         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
20370         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
20371         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
20372         * tests/test-argp.c: Likewise.
20373         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
20374
20375         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
20376         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
20377         AA_APPLE_UNIVERSAL_BUILD.  See
20378         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
20379         * NEWS: Document this.
20380
20381 2011-01-19  Eric Blake  <eblake@redhat.com>
20382
20383         c-stack: assume stack overflow if SA_SIGINFO unsupported
20384         * lib/c-stack.c (SIGACTION_WORKS): Rename...
20385         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
20386         sigaction will work.
20387         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
20388         behavior match Linux.
20389         * tests/test-c-stack.c (main): Prefer NULL for pointers.
20390
20391         stdbool-tests: accomodate Haiku
20392         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
20393
20394         binary-io: fix O_TEXT on Haiku
20395         * modules/binary-io (Depends-on): Add fcntl-h.
20396         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
20397         than blindly undefining O_TEXT.
20398         Reported by Scott McCreary.
20399
20400 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20401
20402         include_next: do not check for standard headers like stddef.h
20403
20404         I found this problem when modifying Emacs to use gnulib.
20405         I noticed that it added HAVE_STDDEF_H to config.h, even though
20406         gnulib always assumes <stddef.h> exists as per README and this
20407         symbol is unnecessary.
20408         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
20409         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
20410         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
20411         faster for headers like stddef.h that are known to exist.
20412         (gl_CHECK_NEXT_HEADERS): Use it.
20413         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
20414         rather than gl_CHECK_NEXT_HEADERS.
20415         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
20416         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
20417
20418 2011-01-18  Eric Blake  <eblake@redhat.com>
20419
20420         ansi-c++-opt: skip C++ dependency style if C++ is unused
20421         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
20422         tests when we know C++ compilation is not desired.
20423         Reported by Scott McCreary.
20424
20425 2011-01-18  Bruno Haible  <bruno@clisp.org>
20426
20427         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
20428         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
20429         (main): Perform test also when getrlimit and setrlimit don't exist or
20430         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
20431         limiting the address space size using setrlimit, compare the address
20432         space size before and after the the test.
20433         * tests/test-dprintf-posix2.c: Likewise.
20434         * tests/test-fprintf-posix3.sh: Update skip messages.
20435         * tests/test-dprintf-posix2.sh: Likewise.
20436         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
20437         * modules/dprintf-posix-tests (Depends-on): Likewise.
20438         Reported by Bruce Korb <bkorb@gnu.org> and
20439         Gary V. Vaughan <gary@gnu.org>.
20440
20441 2011-01-18  Bruno Haible  <bruno@clisp.org>
20442
20443         get-rusage-as: Improvement for Cygwin.
20444         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
20445         areas that are merely reserved.
20446
20447 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20448
20449         strftime: remove dependencies on multibyte modules
20450
20451         strftime depended on mbrlen, mbsinit, and wchar, but these modules
20452         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
20453         only if __osf__ is defined, and I suspect OSF doesn't need these
20454         other modules.  If my guess is wrong, we'll need to come up with a
20455         variant of strftime that doesn't need the multibyte modules.
20456
20457         I discovered this problem when attempting modify Emacs to use the
20458         strftime module.  With the previous gnulib, this caused Emacs to
20459         need 31 new files, ranging from lib/config.charset to
20460         m4/wint_t.m4.  This was overkill and I expect would be offputting
20461         to the Emacs maintainers.  After this change, only 6 new files are
20462         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
20463         stdbool.m4, and tm_gmtoff.m4.
20464
20465         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
20466         Suggested by Bruno Haible in
20467         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
20468         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
20469         and do not check for wchar.h.
20470         * modules/strftime (Files): Remove m4/mbstate_t.m4.
20471         (Depends-on): Remove mbrlen, mbsinit, wchar.
20472
20473 2011-01-18  Bruno Haible  <bruno@clisp.org>
20474
20475         Tests for module 'get-rusage-as'.
20476         * modules/get-rusage-as-tests: New file.
20477         * tests/test-get-rusage-as.c: New file.
20478
20479         New module 'get-rusage-as'.
20480         * modules/get-rusage-as: New file.
20481         * lib/resource-ext.h: New file.
20482         * lib/get-rusage-as.c: New file.
20483
20484 2011-01-17  Eric Blake  <eblake@redhat.com>
20485
20486         sigaction: relax license from LGPLv3+ to LGPLv2+
20487         * modules/sigaction (License): Relax to LGPLv2+.
20488
20489 2011-01-14  Bruno Haible  <bruno@clisp.org>
20490
20491         filemode: Make function declarations usable in C++ mode.
20492         * lib/filemode.h: Enclose function declarations in extern "C" block.
20493         Reported by John W. Eaton <jwe@gnu.org>.
20494
20495 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
20496
20497         save-cwd: no longer include "xgetcwd.h"
20498         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
20499         This avoids a compilation failure in projects that use save-cwd
20500         without also using the xgetcwd module.
20501
20502 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20503
20504         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
20505         This is so that a program like Emacs, which needs only dtoastr,
20506         does not have to bother with distributing and compiling ftoastr
20507         and ldtoastr.
20508         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
20509         * modules/dtoastr, modules/ldtoastr: New files.
20510         * modules/ftoastr: Now works just for 'float'.
20511         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
20512         (Makefile.am): Remove ftoastr.h (not needed and no effect),
20513         dtoastr.c, ldtoastr.c.
20514
20515 2011-01-11  Jim Meyering  <meyering@redhat.com>
20516
20517         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
20518         There is no need to work around the lack of the fchdir function,
20519         since gnulib can now provide a replacement when required.
20520         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
20521         * modules/save-cwd (Depends-on): Add fchdir.
20522
20523 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20524
20525         openat, save-cwd: avoid xmalloc
20526
20527         This removes a direct (but undocumented) dependency of openat on
20528         xalloc, along with an indirect dependency via save-cwd.  It also
20529         removes a dependency of save-cwd on xgetcwd, and thereby
20530         indirectly on xalloc.  This change causes the openat substitute
20531         to fall back on save_cwd when memory is tight, and for save_cwd to
20532         fail instead of dying when memory is tight, but that's good enough.
20533         Problem and initial idea for fix reported by Bastien Roucaries in
20534         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
20535
20536         * lib/openat-proc.c: Include stdlib.h (for malloc), not
20537         xalloc.h (for xmalloc).
20538         (openat_proc_name): Use malloc, not xmalloc.
20539         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
20540         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
20541
20542         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
20543         This avoids heap allocation for file names whose lengths are in
20544         the range 512..1023, with the upper bound increasing to at most
20545         4031 depending on the platform's PATH_MAX.  (We do not want
20546         pathmax.h here as it might supply a non-constant PATH_MAX.)
20547         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
20548         Perhaps they should be moved to malloca.h?
20549         (OPENAT_BUFFER_SIZE): Use them.
20550
20551 2011-01-10  Bruno Haible  <bruno@clisp.org>
20552
20553         doc: Update users.txt.
20554         * users.txt: Add recutils.
20555
20556 2011-01-09  Karl Berry  <karl@gnu.org>
20557
20558         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
20559
20560         * doc/configmake.texi: New file.
20561         * doc/gnulib.texi: Include it.
20562         * modules/configmake: Move documentation from here.
20563
20564 2011-01-09  Bruno Haible  <bruno@clisp.org>
20565
20566         Update to Unicode 6.0.0.
20567         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
20568         (get_lbp): Update for Unicode 6.0.0.
20569         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
20570         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
20571         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
20572         U+11001, U+11038..U+11046. Remove U+06DE.
20573         (uc_width): Fix bounds of planes.
20574         * tests/uniwidth/test-uc_width2.sh: Same updates as in
20575         lib/uniwidth/width.c.
20576         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
20577         trailing whitespace removed.
20578         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
20579         without comments, but with the original copyright notice.
20580         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
20581         * lib/unicase/ignorable.h: Likewise.
20582         * lib/unicase/tocasefold.h: Likewise.
20583         * lib/unicase/tolower.h: Likewise.
20584         * lib/unicase/totitle.h: Likewise.
20585         * lib/unicase/toupper.h: Likewise.
20586         * lib/unictype/bidi_of.h: Likewise.
20587         * lib/unictype/blocks.h: Likewise.
20588         * lib/unictype/categ_C.h: Likewise.
20589         * lib/unictype/categ_Cn.h: Likewise.
20590         * lib/unictype/categ_L.h: Likewise.
20591         * lib/unictype/categ_Ll.h: Likewise.
20592         * lib/unictype/categ_Lm.h: Likewise.
20593         * lib/unictype/categ_Lo.h: Likewise.
20594         * lib/unictype/categ_Lu.h: Likewise.
20595         * lib/unictype/categ_M.h: Likewise.
20596         * lib/unictype/categ_Mc.h: Likewise.
20597         * lib/unictype/categ_Me.h: Likewise.
20598         * lib/unictype/categ_Mn.h: Likewise.
20599         * lib/unictype/categ_N.h: Likewise.
20600         * lib/unictype/categ_Nd.h: Likewise.
20601         * lib/unictype/categ_No.h: Likewise.
20602         * lib/unictype/categ_P.h: Likewise.
20603         * lib/unictype/categ_Po.h: Likewise.
20604         * lib/unictype/categ_S.h: Likewise.
20605         * lib/unictype/categ_Sc.h: Likewise.
20606         * lib/unictype/categ_Sk.h: Likewise.
20607         * lib/unictype/categ_Sm.h: Likewise.
20608         * lib/unictype/categ_So.h: Likewise.
20609         * lib/unictype/categ_of.h: Likewise.
20610         * lib/unictype/combining.h: Likewise.
20611         * lib/unictype/ctype_alnum.h: Likewise.
20612         * lib/unictype/ctype_alpha.h: Likewise.
20613         * lib/unictype/ctype_graph.h: Likewise.
20614         * lib/unictype/ctype_lower.h: Likewise.
20615         * lib/unictype/ctype_print.h: Likewise.
20616         * lib/unictype/ctype_punct.h: Likewise.
20617         * lib/unictype/ctype_upper.h: Likewise.
20618         * lib/unictype/decdigit.h: Likewise.
20619         * lib/unictype/digit.h: Likewise.
20620         * lib/unictype/numeric.h: Likewise.
20621         * lib/unictype/pr_alphabetic.h: Likewise.
20622         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
20623         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
20624         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
20625         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
20626         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
20627         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
20628         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
20629         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
20630         * lib/unictype/pr_case_ignorable.h: Likewise.
20631         * lib/unictype/pr_cased.h: Likewise.
20632         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
20633         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
20634         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
20635         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
20636         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
20637         * lib/unictype/pr_combining.h: Likewise.
20638         * lib/unictype/pr_composite.h: Likewise.
20639         * lib/unictype/pr_currency_symbol.h: Likewise.
20640         * lib/unictype/pr_decimal_digit.h: Likewise.
20641         * lib/unictype/pr_deprecated.h: Likewise.
20642         * lib/unictype/pr_format_control.h: Likewise.
20643         * lib/unictype/pr_grapheme_base.h: Likewise.
20644         * lib/unictype/pr_grapheme_extend.h: Likewise.
20645         * lib/unictype/pr_grapheme_link.h: Likewise.
20646         * lib/unictype/pr_id_continue.h: Likewise.
20647         * lib/unictype/pr_id_start.h: Likewise.
20648         * lib/unictype/pr_ideographic.h: Likewise.
20649         * lib/unictype/pr_lowercase.h: Likewise.
20650         * lib/unictype/pr_math.h: Likewise.
20651         * lib/unictype/pr_numeric.h: Likewise.
20652         * lib/unictype/pr_other_alphabetic.h: Likewise.
20653         * lib/unictype/pr_other_id_continue.h: Likewise.
20654         * lib/unictype/pr_other_math.h: Likewise.
20655         * lib/unictype/pr_punctuation.h: Likewise.
20656         * lib/unictype/pr_sentence_terminal.h: Likewise.
20657         * lib/unictype/pr_terminal_punctuation.h: Likewise.
20658         * lib/unictype/pr_unassigned_code_value.h: Likewise.
20659         * lib/unictype/pr_unified_ideograph.h: Likewise.
20660         * lib/unictype/pr_uppercase.h: Likewise.
20661         * lib/unictype/pr_xid_continue.h: Likewise.
20662         * lib/unictype/pr_xid_start.h: Likewise.
20663         * lib/unictype/scripts.h: Likewise.
20664         * lib/unictype/scripts_byname.gperf: Likewise.
20665         * lib/unictype/sy_java_ident.h: Likewise.
20666         * lib/unigbrk/gbrkprop.h: Likewise.
20667         * lib/unilbrk/lbrkprop1.h: Likewise.
20668         * lib/unilbrk/lbrkprop2.h: Likewise.
20669         * lib/uninorm/decomposition-table2.h: Likewise.
20670         * lib/uniwbrk/wbrkprop.h: Likewise.
20671         * tests/unicase/test-cased.c: Likewise.
20672         * tests/unicase/test-ignorable.c: Likewise.
20673         * tests/unicase/test-uc_tolower.c: Likewise.
20674         * tests/unicase/test-uc_totitle.c: Likewise.
20675         * tests/unicase/test-uc_toupper.c: Likewise.
20676         * tests/unictype/test-categ_C.c: Likewise.
20677         * tests/unictype/test-categ_Cn.c: Likewise.
20678         * tests/unictype/test-categ_L.c: Likewise.
20679         * tests/unictype/test-categ_Ll.c: Likewise.
20680         * tests/unictype/test-categ_Lm.c: Likewise.
20681         * tests/unictype/test-categ_Lo.c: Likewise.
20682         * tests/unictype/test-categ_Lu.c: Likewise.
20683         * tests/unictype/test-categ_M.c: Likewise.
20684         * tests/unictype/test-categ_Mc.c: Likewise.
20685         * tests/unictype/test-categ_Me.c: Likewise.
20686         * tests/unictype/test-categ_Mn.c: Likewise.
20687         * tests/unictype/test-categ_N.c: Likewise.
20688         * tests/unictype/test-categ_Nd.c: Likewise.
20689         * tests/unictype/test-categ_No.c: Likewise.
20690         * tests/unictype/test-categ_P.c: Likewise.
20691         * tests/unictype/test-categ_Po.c: Likewise.
20692         * tests/unictype/test-categ_S.c: Likewise.
20693         * tests/unictype/test-categ_Sc.c: Likewise.
20694         * tests/unictype/test-categ_Sk.c: Likewise.
20695         * tests/unictype/test-categ_Sm.c: Likewise.
20696         * tests/unictype/test-categ_So.c: Likewise.
20697         * tests/unictype/test-ctype_alnum.c: Likewise.
20698         * tests/unictype/test-ctype_alpha.c: Likewise.
20699         * tests/unictype/test-ctype_graph.c: Likewise.
20700         * tests/unictype/test-ctype_lower.c: Likewise.
20701         * tests/unictype/test-ctype_print.c: Likewise.
20702         * tests/unictype/test-ctype_punct.c: Likewise.
20703         * tests/unictype/test-ctype_upper.c: Likewise.
20704         * tests/unictype/test-decdigit.h: Likewise.
20705         * tests/unictype/test-digit.h: Likewise.
20706         * tests/unictype/test-numeric.h: Likewise.
20707         * tests/unictype/test-pr_alphabetic.c: Likewise.
20708         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
20709         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
20710         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
20711         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
20712         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
20713         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
20714         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
20715         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
20716         * tests/unictype/test-pr_case_ignorable.c: Likewise.
20717         * tests/unictype/test-pr_cased.c: Likewise.
20718         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
20719         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
20720         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
20721         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
20722         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
20723         * tests/unictype/test-pr_combining.c: Likewise.
20724         * tests/unictype/test-pr_composite.c: Likewise.
20725         * tests/unictype/test-pr_currency_symbol.c: Likewise.
20726         * tests/unictype/test-pr_decimal_digit.c: Likewise.
20727         * tests/unictype/test-pr_deprecated.c: Likewise.
20728         * tests/unictype/test-pr_format_control.c: Likewise.
20729         * tests/unictype/test-pr_grapheme_base.c: Likewise.
20730         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
20731         * tests/unictype/test-pr_grapheme_link.c: Likewise.
20732         * tests/unictype/test-pr_id_continue.c: Likewise.
20733         * tests/unictype/test-pr_id_start.c: Likewise.
20734         * tests/unictype/test-pr_ideographic.c: Likewise.
20735         * tests/unictype/test-pr_lowercase.c: Likewise.
20736         * tests/unictype/test-pr_math.c: Likewise.
20737         * tests/unictype/test-pr_numeric.c: Likewise.
20738         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
20739         * tests/unictype/test-pr_other_id_continue.c: Likewise.
20740         * tests/unictype/test-pr_other_math.c: Likewise.
20741         * tests/unictype/test-pr_punctuation.c: Likewise.
20742         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
20743         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
20744         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
20745         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
20746         * tests/unictype/test-pr_uppercase.c: Likewise.
20747         * tests/unictype/test-pr_xid_continue.c: Likewise.
20748         * tests/unictype/test-pr_xid_start.c: Likewise.
20749         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
20750         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
20751         changes.
20752         * lib/unictype/categ_Cc.h: Likewise.
20753         * lib/unictype/categ_Cf.h: Likewise.
20754         * lib/unictype/categ_Co.h: Likewise.
20755         * lib/unictype/categ_Cs.h: Likewise.
20756         * lib/unictype/categ_Lt.h: Likewise.
20757         * lib/unictype/categ_Nl.h: Likewise.
20758         * lib/unictype/categ_Pc.h: Likewise.
20759         * lib/unictype/categ_Pd.h: Likewise.
20760         * lib/unictype/categ_Pe.h: Likewise.
20761         * lib/unictype/categ_Pf.h: Likewise.
20762         * lib/unictype/categ_Pi.h: Likewise.
20763         * lib/unictype/categ_Ps.h: Likewise.
20764         * lib/unictype/categ_Z.h: Likewise.
20765         * lib/unictype/categ_Zl.h: Likewise.
20766         * lib/unictype/categ_Zp.h: Likewise.
20767         * lib/unictype/categ_Zs.h: Likewise.
20768         * lib/unictype/ctype_blank.h: Likewise.
20769         * lib/unictype/ctype_cntrl.h: Likewise.
20770         * lib/unictype/ctype_digit.h: Likewise.
20771         * lib/unictype/ctype_space.h: Likewise.
20772         * lib/unictype/ctype_xdigit.h: Likewise.
20773         * lib/unictype/mirror.h: Likewise.
20774         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
20775         * lib/unictype/pr_bidi_block_separator.h: Likewise.
20776         * lib/unictype/pr_bidi_common_separator.h: Likewise.
20777         * lib/unictype/pr_bidi_control.h: Likewise.
20778         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
20779         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
20780         * lib/unictype/pr_bidi_european_digit.h: Likewise.
20781         * lib/unictype/pr_bidi_pdf.h: Likewise.
20782         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
20783         * lib/unictype/pr_bidi_whitespace.h: Likewise.
20784         * lib/unictype/pr_dash.h: Likewise.
20785         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
20786         * lib/unictype/pr_diacritic.h: Likewise.
20787         * lib/unictype/pr_extender.h: Likewise.
20788         * lib/unictype/pr_hex_digit.h: Likewise.
20789         * lib/unictype/pr_hyphen.h: Likewise.
20790         * lib/unictype/pr_ids_binary_operator.h: Likewise.
20791         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
20792         * lib/unictype/pr_ignorable_control.h: Likewise.
20793         * lib/unictype/pr_iso_control.h: Likewise.
20794         * lib/unictype/pr_join_control.h: Likewise.
20795         * lib/unictype/pr_left_of_pair.h: Likewise.
20796         * lib/unictype/pr_line_separator.h: Likewise.
20797         * lib/unictype/pr_logical_order_exception.h: Likewise.
20798         * lib/unictype/pr_non_break.h: Likewise.
20799         * lib/unictype/pr_not_a_character.h: Likewise.
20800         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
20801         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
20802         * lib/unictype/pr_other_id_start.h: Likewise.
20803         * lib/unictype/pr_other_lowercase.h: Likewise.
20804         * lib/unictype/pr_other_uppercase.h: Likewise.
20805         * lib/unictype/pr_paired_punctuation.h: Likewise.
20806         * lib/unictype/pr_paragraph_separator.h: Likewise.
20807         * lib/unictype/pr_pattern_syntax.h: Likewise.
20808         * lib/unictype/pr_pattern_white_space.h: Likewise.
20809         * lib/unictype/pr_private_use.h: Likewise.
20810         * lib/unictype/pr_quotation_mark.h: Likewise.
20811         * lib/unictype/pr_radical.h: Likewise.
20812         * lib/unictype/pr_soft_dotted.h: Likewise.
20813         * lib/unictype/pr_space.h: Likewise.
20814         * lib/unictype/pr_titlecase.h: Likewise.
20815         * lib/unictype/pr_variation_selector.h: Likewise.
20816         * lib/unictype/pr_white_space.h: Likewise.
20817         * lib/unictype/pr_zero_width.h: Likewise.
20818         * lib/unictype/sy_c_ident.h: Likewise.
20819         * lib/unictype/sy_c_whitespace.h: Likewise.
20820         * lib/unictype/sy_java_whitespace.h: Likewise.
20821         * lib/uninorm/composition-table.gperf: Likewise.
20822         * lib/uninorm/decomposition-table1.h: Likewise.
20823         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
20824         LB8.
20825         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
20826         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
20827         * modules/unictype/*: Bump version number of expected libunistring
20828         version.
20829
20830 2011-01-09  Bruno Haible  <bruno@clisp.org>
20831
20832         Update to Unicode 5.2.0.
20833         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
20834         trailing whitespace removed.
20835
20836 2011-01-09  Bruno Haible  <bruno@clisp.org>
20837
20838         New Unicode character properties, from Unicode 5.2.0.
20839         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
20840         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
20841         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
20842         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
20843         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
20844         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
20845         uc_is_property_cased, uc_is_property_case_ignorable,
20846         uc_is_property_changes_when_lowercased,
20847         uc_is_property_changes_when_uppercased,
20848         uc_is_property_changes_when_titlecased,
20849         uc_is_property_changes_when_casefolded,
20850         uc_is_property_changes_when_casemapped): New declarations.
20851         * lib/unictype/pr_byname.gperf: Add the new properties.
20852         * modules/unictype/property-byname (Depends-on): Depend on the new
20853         properties modules.
20854         * modules/unictype/property-all (Depends-on): Likewise.
20855         * MODULES.html.sh (Unicode string functions): Add
20856         unictype/property-case-ignorable, unictype/property-cased,
20857         unictype/property-changes-when-casefolded,
20858         unictype/property-changes-when-casemapped,
20859         unictype/property-changes-when-lowercased,
20860         unictype/property-changes-when-titlecased,
20861         unictype/property-changes-when-uppercased.
20862
20863         New module 'unictype/property-changes-when-casemapped'.
20864         * modules/unictype/property-changes-when-casemapped: New file.
20865         * lib/unictype/pr_changes_when_casemapped.c: New file.
20866         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
20867         generated by gen-uni-tables.
20868         * modules/unictype/property-changes-when-casemapped-tests: New file.
20869         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
20870         automatically generated by gen-uni-tables.
20871
20872         New module 'unictype/property-changes-when-casefolded'.
20873         * modules/unictype/property-changes-when-casefolded: New file.
20874         * lib/unictype/pr_changes_when_casefolded.c: New file.
20875         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
20876         generated by gen-uni-tables.
20877         * modules/unictype/property-changes-when-casefolded-tests: New file.
20878         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
20879         automatically generated by gen-uni-tables.
20880
20881         New module 'unictype/property-changes-when-titlecased'.
20882         * modules/unictype/property-changes-when-titlecased: New file.
20883         * lib/unictype/pr_changes_when_titlecased.c: New file.
20884         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
20885         generated by gen-uni-tables.
20886         * modules/unictype/property-changes-when-titlecased-tests: New file.
20887         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
20888         automatically generated by gen-uni-tables.
20889
20890         New module 'unictype/property-changes-when-uppercased'.
20891         * modules/unictype/property-changes-when-uppercased: New file.
20892         * lib/unictype/pr_changes_when_uppercased.c: New file.
20893         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
20894         generated by gen-uni-tables.
20895         * modules/unictype/property-changes-when-uppercased-tests: New file.
20896         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
20897         automatically generated by gen-uni-tables.
20898
20899         New module 'unictype/property-changes-when-lowercased'.
20900         * modules/unictype/property-changes-when-lowercased: New file.
20901         * lib/unictype/pr_changes_when_lowercased.c: New file.
20902         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
20903         generated by gen-uni-tables.
20904         * modules/unictype/property-changes-when-lowercased-tests: New file.
20905         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
20906         automatically generated by gen-uni-tables.
20907
20908         New module 'unictype/property-case-ignorable'.
20909         * modules/unictype/property-case-ignorable: New file.
20910         * lib/unictype/pr_case_ignorable.c: New file.
20911         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
20912         by gen-uni-tables.
20913         * modules/unictype/property-case-ignorable-tests: New file.
20914         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
20915         generated by gen-uni-tables.
20916
20917         New module 'unictype/property-cased'.
20918         * modules/unictype/property-cased: New file.
20919         * lib/unictype/pr_cased.c: New file.
20920         * lib/unictype/pr_cased.h: New file, automatically generated by
20921         gen-uni-tables.
20922         * modules/unictype/property-cased-tests: New file.
20923         * tests/unictype/test-pr_cased.c: New file, automatically generated by
20924         gen-uni-tables.
20925
20926 2011-01-09  Bruno Haible  <bruno@clisp.org>
20927
20928         Update to Unicode 5.2.0.
20929         * lib/gen-uni-tables.c (output_predicate, output_category,
20930         output_combclass, output_bidi_category, output_decimal_digit_test,
20931         output_decimal_digit, output_digit_test, output_digit,
20932         output_numeric_test, output_numeric, output_mirror, output_scripts,
20933         output_scripts_byname, output_blocks, output_ident_category): Fix
20934         comment header.
20935         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
20936         get_wbp.
20937         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
20938         items.
20939         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
20940         Changes_When_Lowercased, Changes_When_Uppercased,
20941         Changes_When_Titlecased, Changes_When_Casefolded,
20942         Changes_When_Casemapped.
20943         (is_property_alphabetic, is_property_default_ignorable_code_point):
20944         Update for Unicode 5.2.0.
20945         (is_property_cased, is_property_case_ignorable,
20946         is_property_changes_when_lowercased,
20947         is_property_changes_when_uppercased,
20948         is_property_changes_when_titlecased,
20949         is_property_changes_when_casefolded,
20950         is_property_changes_when_casemapped): New functions.
20951         (output_properties): Output also the properties cased, case_ignorable,
20952         changes_when_lowercased, changes_when_uppercased,
20953         changes_when_titlecased, changes_when_casefolded,
20954         changes_when_casemapped.
20955         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
20956         Unicode TR#11 revision 17 -> 19.
20957         (LBP_CP): New enumeration value.
20958         (LBP_*): Adjust values accordingly.
20959         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
20960         TR#14 revision 22 -> 24.
20961         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
20962         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
20963         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
20964         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
20965         is_WBP_MIDLETTER.
20966         (output_composition_tables): Allow for 24 bits instead of 16 bits in
20967         the code1 and code2 of each composition rule.
20968         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
20969         * lib/unicase/ignorable.h: Likewise.
20970         * lib/unicase/tocasefold.h: Likewise.
20971         * lib/unicase/tolower.h: Likewise.
20972         * lib/unicase/totitle.h: Likewise.
20973         * lib/unicase/toupper.h: Likewise.
20974         * lib/unictype/bidi_of.h: Likewise.
20975         * lib/unictype/blocks.h: Likewise.
20976         * lib/unictype/categ_C.h: Likewise.
20977         * lib/unictype/categ_Cf.h: Likewise.
20978         * lib/unictype/categ_Cn.h: Likewise.
20979         * lib/unictype/categ_L.h: Likewise.
20980         * lib/unictype/categ_Ll.h: Likewise.
20981         * lib/unictype/categ_Lm.h: Likewise.
20982         * lib/unictype/categ_Lo.h: Likewise.
20983         * lib/unictype/categ_Lu.h: Likewise.
20984         * lib/unictype/categ_M.h: Likewise.
20985         * lib/unictype/categ_Mc.h: Likewise.
20986         * lib/unictype/categ_Mn.h: Likewise.
20987         * lib/unictype/categ_N.h: Likewise.
20988         * lib/unictype/categ_Nd.h: Likewise.
20989         * lib/unictype/categ_Nl.h: Likewise.
20990         * lib/unictype/categ_No.h: Likewise.
20991         * lib/unictype/categ_P.h: Likewise.
20992         * lib/unictype/categ_Pd.h: Likewise.
20993         * lib/unictype/categ_Po.h: Likewise.
20994         * lib/unictype/categ_S.h: Likewise.
20995         * lib/unictype/categ_Sc.h: Likewise.
20996         * lib/unictype/categ_So.h: Likewise.
20997         * lib/unictype/categ_of.h: Likewise.
20998         * lib/unictype/combining.h: Likewise.
20999         * lib/unictype/ctype_alnum.h: Likewise.
21000         * lib/unictype/ctype_alpha.h: Likewise.
21001         * lib/unictype/ctype_graph.h: Likewise.
21002         * lib/unictype/ctype_lower.h: Likewise.
21003         * lib/unictype/ctype_print.h: Likewise.
21004         * lib/unictype/ctype_punct.h: Likewise.
21005         * lib/unictype/ctype_upper.h: Likewise.
21006         * lib/unictype/decdigit.h: Likewise.
21007         * lib/unictype/digit.h: Likewise.
21008         * lib/unictype/numeric.h: Likewise.
21009         * lib/unictype/pr_alphabetic.h: Likewise.
21010         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21011         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21012         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21013         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21014         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21015         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21016         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21017         * lib/unictype/pr_combining.h: Likewise.
21018         * lib/unictype/pr_composite.h: Likewise.
21019         * lib/unictype/pr_currency_symbol.h: Likewise.
21020         * lib/unictype/pr_dash.h: Likewise.
21021         * lib/unictype/pr_decimal_digit.h: Likewise.
21022         * lib/unictype/pr_deprecated.h: Likewise.
21023         * lib/unictype/pr_diacritic.h: Likewise.
21024         * lib/unictype/pr_extender.h: Likewise.
21025         * lib/unictype/pr_grapheme_base.h: Likewise.
21026         * lib/unictype/pr_grapheme_extend.h: Likewise.
21027         * lib/unictype/pr_grapheme_link.h: Likewise.
21028         * lib/unictype/pr_id_continue.h: Likewise.
21029         * lib/unictype/pr_id_start.h: Likewise.
21030         * lib/unictype/pr_ideographic.h: Likewise.
21031         * lib/unictype/pr_ignorable_control.h: Likewise.
21032         * lib/unictype/pr_logical_order_exception.h: Likewise.
21033         * lib/unictype/pr_lowercase.h: Likewise.
21034         * lib/unictype/pr_numeric.h: Likewise.
21035         * lib/unictype/pr_other_alphabetic.h: Likewise.
21036         * lib/unictype/pr_punctuation.h: Likewise.
21037         * lib/unictype/pr_sentence_terminal.h: Likewise.
21038         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21039         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21040         * lib/unictype/pr_unified_ideograph.h: Likewise.
21041         * lib/unictype/pr_uppercase.h: Likewise.
21042         * lib/unictype/pr_xid_continue.h: Likewise.
21043         * lib/unictype/pr_xid_start.h: Likewise.
21044         * lib/unictype/pr_zero_width.h: Likewise.
21045         * lib/unictype/scripts.h: Likewise.
21046         * lib/unictype/scripts_byname.gperf: Likewise.
21047         * lib/unictype/sy_java_ident.h: Likewise.
21048         * lib/unigbrk/gbrkprop.h: Likewise.
21049         * lib/unilbrk/lbrkprop1.h: Likewise.
21050         * lib/unilbrk/lbrkprop2.h: Likewise.
21051         * lib/unilbrk/lbrktables.h: Likewise.
21052         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
21053         LBP_CP. Implement rule LB30.
21054         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
21055         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
21056         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
21057         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
21058         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
21059         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
21060         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
21061         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
21062         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
21063         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
21064         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
21065         bits instead of 16 bits in the code1 and code2 of each composition
21066         rule.
21067         (uc_composition): Update for Unicode 5.2.0.
21068         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
21069         * lib/uninorm/decomposition-table2.h: Likewise.
21070         * lib/uniwbrk/wbrkprop.h: Likewise.
21071         * tests/unicase/test-cased.c: Likewise.
21072         * tests/unicase/test-ignorable.c: Likewise.
21073         * tests/unicase/test-uc_tolower.c: Likewise.
21074         * tests/unicase/test-uc_totitle.c: Likewise.
21075         * tests/unicase/test-uc_toupper.c: Likewise.
21076         * tests/unictype/test-categ_C.c: Likewise.
21077         * tests/unictype/test-categ_Cf.c: Likewise.
21078         * tests/unictype/test-categ_Cn.c: Likewise.
21079         * tests/unictype/test-categ_L.c: Likewise.
21080         * tests/unictype/test-categ_Ll.c: Likewise.
21081         * tests/unictype/test-categ_Lm.c: Likewise.
21082         * tests/unictype/test-categ_Lo.c: Likewise.
21083         * tests/unictype/test-categ_Lu.c: Likewise.
21084         * tests/unictype/test-categ_M.c: Likewise.
21085         * tests/unictype/test-categ_Mc.c: Likewise.
21086         * tests/unictype/test-categ_Mn.c: Likewise.
21087         * tests/unictype/test-categ_N.c: Likewise.
21088         * tests/unictype/test-categ_Nd.c: Likewise.
21089         * tests/unictype/test-categ_Nl.c: Likewise.
21090         * tests/unictype/test-categ_No.c: Likewise.
21091         * tests/unictype/test-categ_P.c: Likewise.
21092         * tests/unictype/test-categ_Pd.c: Likewise.
21093         * tests/unictype/test-categ_Po.c: Likewise.
21094         * tests/unictype/test-categ_S.c: Likewise.
21095         * tests/unictype/test-categ_Sc.c: Likewise.
21096         * tests/unictype/test-categ_So.c: Likewise.
21097         * tests/unictype/test-ctype_alnum.c: Likewise.
21098         * tests/unictype/test-ctype_alpha.c: Likewise.
21099         * tests/unictype/test-ctype_graph.c: Likewise.
21100         * tests/unictype/test-ctype_lower.c: Likewise.
21101         * tests/unictype/test-ctype_print.c: Likewise.
21102         * tests/unictype/test-ctype_punct.c: Likewise.
21103         * tests/unictype/test-ctype_upper.c: Likewise.
21104         * tests/unictype/test-decdigit.h: Likewise.
21105         * tests/unictype/test-digit.h: Likewise.
21106         * tests/unictype/test-numeric.h: Likewise.
21107         * tests/unictype/test-pr_alphabetic.c: Likewise.
21108         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21109         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21110         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
21111         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21112         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21113         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21114         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21115         * tests/unictype/test-pr_combining.c: Likewise.
21116         * tests/unictype/test-pr_composite.c: Likewise.
21117         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21118         * tests/unictype/test-pr_dash.c: Likewise.
21119         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21120         * tests/unictype/test-pr_deprecated.c: Likewise.
21121         * tests/unictype/test-pr_diacritic.c: Likewise.
21122         * tests/unictype/test-pr_extender.c: Likewise.
21123         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21124         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21125         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21126         * tests/unictype/test-pr_id_continue.c: Likewise.
21127         * tests/unictype/test-pr_id_start.c: Likewise.
21128         * tests/unictype/test-pr_ideographic.c: Likewise.
21129         * tests/unictype/test-pr_ignorable_control.c: Likewise.
21130         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
21131         * tests/unictype/test-pr_lowercase.c: Likewise.
21132         * tests/unictype/test-pr_numeric.c: Likewise.
21133         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21134         * tests/unictype/test-pr_punctuation.c: Likewise.
21135         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21136         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21137         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21138         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21139         * tests/unictype/test-pr_uppercase.c: Likewise.
21140         * tests/unictype/test-pr_xid_continue.c: Likewise.
21141         * tests/unictype/test-pr_xid_start.c: Likewise.
21142         * tests/unictype/test-pr_zero_width.c: Likewise.
21143         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21144         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
21145         changed behaviour: line breaking is now disallowed between a letter
21146         or '=' and '('.
21147         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21148         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21149         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
21150         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
21151         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21152         lib/uniwidth/width.c.
21153         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
21154         without comments, but with the original copyright notice.
21155         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21156         changes.
21157         * lib/unictype/categ_Cc.h: Likewise.
21158         * lib/unictype/categ_Co.h: Likewise.
21159         * lib/unictype/categ_Cs.h: Likewise.
21160         * lib/unictype/categ_Lt.h: Likewise.
21161         * lib/unictype/categ_Me.h: Likewise.
21162         * lib/unictype/categ_Pc.h: Likewise.
21163         * lib/unictype/categ_Pe.h: Likewise.
21164         * lib/unictype/categ_Pf.h: Likewise.
21165         * lib/unictype/categ_Pi.h: Likewise.
21166         * lib/unictype/categ_Ps.h: Likewise.
21167         * lib/unictype/categ_Sk.h: Likewise.
21168         * lib/unictype/categ_Sm.h: Likewise.
21169         * lib/unictype/categ_Z.h: Likewise.
21170         * lib/unictype/categ_Zl.h: Likewise.
21171         * lib/unictype/categ_Zp.h: Likewise.
21172         * lib/unictype/categ_Zs.h: Likewise.
21173         * lib/unictype/ctype_blank.h: Likewise.
21174         * lib/unictype/ctype_cntrl.h: Likewise.
21175         * lib/unictype/ctype_digit.h: Likewise.
21176         * lib/unictype/ctype_space.h: Likewise.
21177         * lib/unictype/ctype_xdigit.h: Likewise.
21178         * lib/unictype/mirror.h: Likewise.
21179         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21180         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21181         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21182         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21183         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21184         * lib/unictype/pr_bidi_control.h: Likewise.
21185         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21186         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21187         * lib/unictype/pr_bidi_pdf.h: Likewise.
21188         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21189         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21190         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21191         * lib/unictype/pr_format_control.h: Likewise.
21192         * lib/unictype/pr_hex_digit.h: Likewise.
21193         * lib/unictype/pr_hyphen.h: Likewise.
21194         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21195         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21196         * lib/unictype/pr_iso_control.h: Likewise.
21197         * lib/unictype/pr_join_control.h: Likewise.
21198         * lib/unictype/pr_left_of_pair.h: Likewise.
21199         * lib/unictype/pr_line_separator.h: Likewise.
21200         * lib/unictype/pr_math.h: Likewise.
21201         * lib/unictype/pr_non_break.h: Likewise.
21202         * lib/unictype/pr_not_a_character.h: Likewise.
21203         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21204         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21205         * lib/unictype/pr_other_id_continue.h: Likewise.
21206         * lib/unictype/pr_other_id_start.h: Likewise.
21207         * lib/unictype/pr_other_lowercase.h: Likewise.
21208         * lib/unictype/pr_other_math.h: Likewise.
21209         * lib/unictype/pr_other_uppercase.h: Likewise.
21210         * lib/unictype/pr_paired_punctuation.h: Likewise.
21211         * lib/unictype/pr_paragraph_separator.h: Likewise.
21212         * lib/unictype/pr_pattern_syntax.h: Likewise.
21213         * lib/unictype/pr_pattern_white_space.h: Likewise.
21214         * lib/unictype/pr_private_use.h: Likewise.
21215         * lib/unictype/pr_quotation_mark.h: Likewise.
21216         * lib/unictype/pr_radical.h: Likewise.
21217         * lib/unictype/pr_soft_dotted.h: Likewise.
21218         * lib/unictype/pr_space.h: Likewise.
21219         * lib/unictype/pr_titlecase.h: Likewise.
21220         * lib/unictype/pr_variation_selector.h: Likewise.
21221         * lib/unictype/pr_white_space.h: Likewise.
21222         * lib/unictype/sy_c_ident.h: Likewise.
21223         * lib/unictype/sy_c_whitespace.h: Likewise.
21224         * lib/unictype/sy_java_whitespace.h: Likewise.
21225         * modules/uni*/*: Bump version number of expected libunistring version.
21226         Reported by Simon Josefsson.
21227
21228 2011-01-09  Karl Heuer  <kwzh@gnu.org>
21229
21230         useless-if-before-free: fix typo in --help and make the internal,
21231         automatic version date update process work once again.
21232         --help output contained a NUL character instead of the
21233         backslash-zero that was intended.  Also, the "must lie within
21234         the first 8 lines" line is on line 9, and hence not getting
21235         automatically updated.
21236         * build-aux/useless-if-before-free: Fix the former by adding a
21237         backslash, and the latter by condensing the three lines of what-it-does
21238         to a single line, leaving one line of slack for the future.
21239
21240 2011-01-09  Bruno Haible  <bruno@clisp.org>
21241
21242         uniwidth/width: Fix width of U+1D173..U+1D17A.
21243         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
21244         symbolic_width, output_width_property_test): New functions.
21245         (main): Invoke output_nonspacing_property, output_width_property_test.
21246         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
21247         U+1D173..U+1D17A.
21248         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
21249         1.
21250         * modules/uniwidth/*: Bump version number of expected libunistring
21251         version.
21252         * modules/unilbrk/*: Likewise.
21253
21254 2011-01-08  Bruno Haible  <bruno@clisp.org>
21255
21256         uninorm tests: Preserve copyright of Unicode data file.
21257         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
21258         Mention modifications.
21259
21260 2011-01-08  Bruno Haible  <bruno@clisp.org>
21261
21262         gen-uni-tables: Prepare for Unicode 5.2.0.
21263         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
21264         (debug_output_lbp, output_lbp): Update.
21265
21266 2011-01-08  Bruno Haible  <bruno@clisp.org>
21267
21268         unilbrk: Clarify gen-uni-tables.c code.
21269         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
21270         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
21271         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
21272
21273 2011-01-07  Bruno Haible  <bruno@clisp.org>
21274
21275         strtod: Restore errno when successfully parsing Infinity or NaN.
21276         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
21277         restore the original errno.
21278
21279 2011-01-07  Bruno Haible  <bruno@clisp.org>
21280
21281         remove test: Avoid failure on HP-UX 11.
21282         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
21283
21284 2011-01-07  Bruno Haible  <bruno@clisp.org>
21285
21286         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
21287         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
21288         error code.
21289
21290 2011-01-07  Pádraig Brady <P@draigBrady.com>
21291
21292         ignore-value: fixup comments, and add Eric Blake
21293         as an author since he rewrote the macros.
21294         * lib/ignore-value.h (ignore_value):  State that
21295         we now support aggregates.  Also specify exactly
21296         when the GCC warn_unused_result feature was added.
21297
21298 2011-01-06  Eric Blake  <eblake@redhat.com>
21299
21300         ignore-value: support aggregate types
21301         * lib/ignore-value.h (ignore_value): Provide separate gcc
21302         definition.
21303         * modules/ignore-value-tests: New test module.
21304         * tests/test-ignore-value.c: New test.
21305
21306         maint.mk: improve sc_prohibit_strcmp regex
21307         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
21308         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
21309         definition of STRNEQ.
21310
21311         signal: work around Haiku issue with SIGBUS
21312         * lib/siglist.h: Add comment.
21313         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
21314         strsignal's favoring of SIGSEGV.
21315         * tests/test-signal.c (main): Avoid test failure.
21316         * doc/posix-headers/signal.texi (signal.h): Document the issue.
21317         Reported by Scott McCreary.
21318
21319         maint.mk: add pre-release check to ensure submodule commits are public
21320         * top/maint.mk (public-submodule-commit): New rule.
21321         (submodule-checks): New variable.
21322         (alpha beta stable): Depend on the variable.
21323
21324 2011-01-05  Pádraig Brady <P@draigBrady.com>
21325         and Jim Meyering  <meyering@redhat.com>
21326
21327         ignore-value: make ignore_value more generic; deprecate ignore_ptr
21328         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
21329         (ATTRIBUTE_DEPRECATED): Define.
21330         (_ignore_case): New function.
21331         (ignore_value): New macro, to replace the old function.
21332         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
21333         * modules/ignore-value (Depends-on): Add stdint.
21334
21335 2011-01-04  Eric Blake  <eblake@redhat.com>
21336
21337         doc: regenerate INSTALL
21338         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
21339         @firstparagraphindent support, now that autoconf dropped it.
21340         (INSTALL_PRELUDE): Reinstate old macro.
21341         * doc/install.texi: Resync from autoconf.
21342         * doc/INSTALL: Reflect recent autoconf update.
21343         * doc/INSTALL.ISO: Likewise.
21344         * doc/INSTALL.UTF-8: Likewise.
21345         Reported by Karl Berry.
21346
21347 2011-01-04  Bruce Korb  <address@hidden>
21348
21349         git-version-gen: avoid a sub-shell
21350         * build-aux/git-version-gen: Redirect stderr in `...` via
21351         "exec 2>...", rather than via an added sub-shell.
21352
21353 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
21354
21355         git-version-gen: use (...) rather than sh -c '...'
21356         * build-aux/git-version-gen: Rather than hard-coding a shell's name
21357         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
21358
21359 2011-01-03  Jim Meyering  <meyering@redhat.com>
21360
21361         git-version-gen: convert leading TABs to spaces
21362         * build-aux/git-version-gen: Expand leading TABs.
21363
21364         git-version-gen: handle failed "git rev-list"
21365         * build-aux/git-version-gen: Rather than leaking a "fatal" error
21366         from git and proceeding as if it had succeeded but printed no SHA1
21367         checksums, suppress the diagnostic and handle the failure.
21368         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
21369
21370         git-version-gen: include command name in one more diagnostic
21371         * build-aux/git-version-gen: When the required .tarball-version file
21372         was missing or unreadable, you might see the diagnostic from "cat",
21373         but no trace of the name of the invoking script.  Now, you still see
21374         the diagnostic from cat, but also get one from "git-version-gen: ".
21375         Inspired by a patch from Bruce Korb.
21376
21377         update-copyright: adjust test to match changed code
21378         * tests/test-update-copyright.sh: Change test's expected output
21379         to match new actual output.
21380
21381 2011-01-02  Bruno Haible  <bruno@clisp.org>
21382
21383         getlogin_r: Avoid test failure on HP-UX 11.
21384         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
21385         ERANGE when the second argument is zero.
21386         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
21387         portability problem.
21388
21389 2011-01-02  Bruce Korb  <bkorb@gnu.org>
21390
21391         * build-aux/update-copyright: doc Simon's changes
21392
21393 2011-01-02  Simon Josefsson  <simon@josefsson.org>
21394
21395         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
21396         environment variable.
21397
21398 2011-01-02  Bruno Haible  <bruno@clisp.org>
21399
21400         unigbrk: Avoid gcc warnings.
21401         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
21402         unused variable.
21403         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
21404         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
21405         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
21406         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
21407         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
21408         Change type of first argument to 'const char *'.
21409         (main): Remove unused variable.
21410         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
21411         type of first argument to 'const char *'.
21412         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
21413         Likewise.
21414         (main): Change type of variable 's'.
21415         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
21416         to 'int'.
21417
21418 2011-01-02  Bruno Haible  <bruno@clisp.org>
21419
21420         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
21421         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
21422         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
21423         bug.
21424         * lib/pwrite.c: Undo 2010-12-31 patch.
21425         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
21426
21427 2011-01-02  Bruno Haible  <bruno@clisp.org>
21428
21429         pread: Fix test whether it works.
21430         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
21431
21432 2011-01-02  Bruno Haible  <bruno@clisp.org>
21433
21434         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
21435         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
21436         ends in "6". Don't require a specific month name. Try also the locale
21437         names found on HP-UX 11 and Solaris 7.
21438
21439 2011-01-02  Bruno Haible  <bruno@clisp.org>
21440
21441         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
21442         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
21443         C linkage.
21444         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
21445
21446 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21447
21448         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
21449         for consistency, since the "cluster" term is not used elsewhere.
21450         * lib/unigbrk.in.h: Update name.
21451         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
21452         * lib/unigbrk/u16-grapheme-next.c: Update name.
21453         * lib/unigbrk/u16-grapheme-prev.c: Update name.
21454         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
21455         * lib/unigbrk/u32-grapheme-next.c: Update name.
21456         * lib/unigbrk/u32-grapheme-prev.c: Update name.
21457         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
21458         * lib/unigbrk/u8-grapheme-next.c: Update name.
21459         * lib/unigbrk/u8-grapheme-prev.c: Update name.
21460         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
21461         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
21462         Suggested by Bruno Haible.
21463
21464 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21465
21466         Remove module 'u8-grapheme-len' as too redundant with
21467         'u8-grapheme-next'.
21468         * modules/unigbrk/u8-grapheme-len: Delete file.
21469         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
21470         * lib/unigbrk.in.h: Remove prototype for deleted function.
21471         * lib/unigbrk/u8-grapheme-len.c: Delete file.
21472         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
21473
21474         Remove module 'u16-grapheme-len' as too redundant with
21475         'u16-grapheme-next'.
21476         * modules/unigbrk/u16-grapheme-len: Delete file.
21477         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
21478         * lib/unigbrk.in.h: Remove prototype for deleted function.
21479         * lib/unigbrk/u16-grapheme-len.c: Delete file.
21480         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
21481
21482         Remove module 'u32-grapheme-len' as too redundant with
21483         'u32-grapheme-next'.
21484         * modules/unigbrk/u32-grapheme-len: Delete file.
21485         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
21486         * lib/unigbrk.in.h: Remove prototype for deleted function.
21487         * lib/unigbrk/u32-grapheme-len.c: Delete file.
21488         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
21489
21490         Suggested by Bruno Haible.
21491
21492 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21493
21494         * unigbrk.in.h: Fix typo: "ben" => "been".
21495         Reported by Bruno Haible.
21496
21497 2011-01-01  Jim Meyering  <meyering@redhat.com>
21498
21499         maint: update almost all copyright ranges to include 2011
21500         Run the new "make update-copyright" rule.
21501
21502 2011-01-01  Jim Meyering  <meyering@redhat.com>
21503
21504         maint: update-copyright: exempt doc/INSTALL*
21505         * Makefile (update-copyright): Also exclude doc/INSTALL*,
21506         since they are generated.  Suggested by Bruno Haible.
21507
21508 2011-01-01  Jim Meyering  <meyering@redhat.com>
21509
21510         maint: refine the update-copyright rule
21511         * Makefile (update-copyright): Also exclude any file that includes
21512         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
21513         code that merely generates the comment.
21514
21515 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21516
21517         New module 'u8-grapheme-len'.
21518         * modules/unigbrk/u8-grapheme-len: New file.
21519         * modules/unigbrk/u8-grapheme-len-tests: New file.
21520         * lib/unigbrk.in.h: Add prototype for new function.
21521         * lib/unigbrk/u8-grapheme-len.c: New file.
21522         * tests/unigbrk/test-u8-grapheme-len.c: New file.
21523
21524         New module 'u16-grapheme-len'.
21525         * modules/unigbrk/u16-grapheme-len: New file.
21526         * modules/unigbrk/u16-grapheme-len-tests: New file.
21527         * lib/unigbrk.in.h: Add prototype for new function.
21528         * lib/unigbrk/u16-grapheme-len.c: New file.
21529         * tests/unigbrk/test-u16-grapheme-len.c: New file.
21530
21531         New module 'u32-grapheme-len'.
21532         * modules/unigbrk/u32-grapheme-len: New file.
21533         * modules/unigbrk/u32-grapheme-len-tests: New file.
21534         * lib/unigbrk.in.h: Add prototype for new function.
21535         * lib/unigbrk/u32-grapheme-len.c: New file.
21536         * tests/unigbrk/test-u32-grapheme-len.c: New file.
21537
21538         New module 'u8-grapheme-next'.
21539         * modules/unigbrk/u8-grapheme-next: New file.
21540         * modules/unigbrk/u8-grapheme-next-tests: New file.
21541         * lib/unigbrk.in.h: Add prototype for new function.
21542         * lib/unigbrk/u8-grapheme-next.c: New file.
21543         * tests/unigbrk/test-u8-grapheme-next.c: New file.
21544
21545         New module 'u16-grapheme-next'.
21546         * modules/unigbrk/u16-grapheme-next: New file.
21547         * modules/unigbrk/u16-grapheme-next-tests: New file.
21548         * lib/unigbrk.in.h: Add prototype for new function.
21549         * lib/unigbrk/u16-grapheme-next.c: New file.
21550         * tests/unigbrk/test-u16-grapheme-next.c: New file.
21551
21552         New module 'u32-grapheme-next'.
21553         * modules/unigbrk/u32-grapheme-next: New file.
21554         * modules/unigbrk/u32-grapheme-next-tests: New file.
21555         * lib/unigbrk.in.h: Add prototype for new function.
21556         * lib/unigbrk/u32-grapheme-next.c: New file.
21557         * tests/unigbrk/test-u32-grapheme-next.c: New file.
21558
21559         New module 'u8-grapheme-prev'.
21560         * modules/unigbrk/u8-grapheme-prev: New file.
21561         * modules/unigbrk/u8-grapheme-prev-tests: New file.
21562         * lib/unigbrk.in.h: Add prototype for new function.
21563         * lib/unigbrk/u8-grapheme-prev.c: New file.
21564         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
21565
21566         New module 'u16-grapheme-prev'.
21567         * modules/unigbrk/u16-grapheme-prev: New file.
21568         * modules/unigbrk/u16-grapheme-prev-tests: New file.
21569         * lib/unigbrk.in.h: Add prototype for new function.
21570         * lib/unigbrk/u16-grapheme-prev.c: New file.
21571         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
21572
21573         New module 'u32-grapheme-prev'.
21574         * modules/unigbrk/u32-grapheme-prev: New file.
21575         * modules/unigbrk/u32-grapheme-prev-tests: New file.
21576         * lib/unigbrk.in.h: Add prototype for new function.
21577         * lib/unigbrk/u32-grapheme-prev.c: New file.
21578         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
21579
21580         New module 'u8-grapheme-breaks'.
21581         * modules/unigbrk/u8-grapheme-breaks: New file.
21582         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
21583         * lib/unigbrk.in.h: Add prototype for new function.
21584         * lib/unigbrk/u8-grapheme-breaks.c: New file.
21585         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
21586
21587         New module 'u16-grapheme-breaks'.
21588         * modules/unigbrk/u16-grapheme-breaks: New file.
21589         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
21590         * lib/unigbrk.in.h: Add prototype for new function.
21591         * lib/unigbrk/u16-grapheme-breaks.c: New file.
21592         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
21593
21594         New module 'u32-grapheme-breaks'.
21595         * modules/unigbrk/u32-grapheme-breaks: New file.
21596         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
21597         * lib/unigbrk.in.h: Add prototype for new function.
21598         * lib/unigbrk/u32-grapheme-breaks.c: New file.
21599         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
21600
21601         New module 'ulc-grapheme-breaks'.
21602         * modules/unigbrk/ulc-grapheme-breaks: New file.
21603         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
21604         * m4/locale-ar.m4: New file.
21605         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
21606         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
21607         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
21608
21609 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21610
21611         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
21612         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
21613         modified how this file was generated before I initially submitted
21614         the module, but failed to regenerate it.  This meant that several
21615         of the level2 entries were wrong.
21616         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
21617         Remove the division-by-2 that is folded into the table now that
21618         gbrkprop.h has been regenerated properly.  Now -1 entries are
21619         handled correctly.
21620
21621         New module 'unigbrk/uc-gbrk-prop-tests'.
21622         * modules/unigbrk/uc-gbrk-prop-tests: New file.
21623         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
21624         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
21625         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
21626
21627 2011-01-01  Bruno Haible  <bruno@clisp.org>
21628
21629         Avoid use of hexadecimal escapes.
21630         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
21631         instead of hexadecimal escapes.
21632
21633 2011-01-01  Jim Meyering  <meyering@redhat.com>
21634
21635         maint: new rule to update copyright year ranges
21636         * Makefile (update-copyright): New rule.
21637
21638         maint: indent with TABs in Makefile
21639         * Makefile: Expand leading sequences of spaces to TABs
21640
21641         version-etc: update the copyright year it reports
21642         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
21643
21644 2010-12-31  Bruno Haible  <bruno@clisp.org>
21645
21646         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
21647         * lib/isfinite.c (zerof, zerod, zerol): New variables.
21648         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
21649         zero.
21650
21651 2010-12-31  Bruno Haible  <bruno@clisp.org>
21652
21653         pwrite: Work around HP-UX 11.11 bug.
21654         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
21655         works and set REPLACE_PWRITE if not.
21656         * lib/pwrite.c (pwrite): Add an implementation that uses the system
21657         function.
21658         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
21659
21660 2010-12-31  Bruno Haible  <bruno@clisp.org>
21661
21662         pread: Work around HP-UX 11 bugs.
21663         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
21664         and set REPLACE_PREAD if not.
21665         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
21666
21667 2010-12-31  Eric Blake  <eblake@redhat.com>
21668
21669         nl_langinfo: fix YESEXPR on Irix 6.5
21670         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
21671         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
21672         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
21673         it.
21674
21675 2010-12-31  Bruno Haible  <bruno@clisp.org>
21676
21677         iconv: Document HP-UX 11 bug.
21678         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
21679
21680 2010-12-31  Bruno Haible  <bruno@clisp.org>
21681
21682         ldexpl: Fix link error on HP-UX 11.
21683         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
21684         LDEXPL_LIBM, using $ISNANL_LIBM.
21685
21686 2010-12-31  Eric Blake  <eblake@redhat.com>
21687
21688         ftello: avoid compilation failure with SunStudio c89
21689         * lib/ftello.c (ftello): Use lseek, not llseek.
21690
21691         tests: avoid failing coreutils tests on cygwin
21692         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
21693         (create_exe_shims_): Return 0 when skipping.
21694
21695 2010-12-31  Bruno Haible  <bruno@clisp.org>
21696
21697         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
21698         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
21699
21700 2010-12-31  Bruno Haible  <bruno@clisp.org>
21701
21702         waitpid: Fix link error in C++ mode.
21703         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
21704
21705 2010-12-31  Bruno Haible  <bruno@clisp.org>
21706
21707         isnan: Use GCC built-ins when possible.
21708         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
21709         __builtin_isnan.
21710         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
21711         (isnan): Define using GCC built-ins for GCC >= 4.0.
21712
21713 2010-12-31  Bruno Haible  <bruno@clisp.org>
21714
21715         isnand: Fix mistake.
21716         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
21717         __builtin_isnand.
21718
21719 2010-12-31  Bruno Haible  <bruno@clisp.org>
21720
21721         open: Avoid C++ error on HP-UX 11.
21722         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
21723
21724 2010-12-31  Bruno Haible  <bruno@clisp.org>
21725
21726         time_r: Add missing declarations on HP-UX 11.
21727         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
21728         instead of HAVE_LOCALTIME_R.
21729         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
21730         HAVE_LOCALTIME_R always.
21731         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
21732         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
21733         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
21734         HAVE_LOCALTIME_R.
21735         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
21736         * doc/posix-functions/localtime_r.texi: Likewise.
21737
21738 2010-12-29  Eric Blake  <eblake@redhat.com>
21739
21740         mountlist: tweak previous commit
21741         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
21742         Reported by Paul Eggert.
21743
21744         mountlist: fix local drive detection on cygwin
21745         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
21746         that works for cygwin.
21747
21748 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
21749
21750         ftoastr, snprintf: ftoastr + snprintf module
21751         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
21752         since the snprintf module now should be good enough here.
21753         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
21754         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
21755         and gl_MODULE_INDICATOR([snprintf]), but the former enables
21756         GNULIB_SNPRINTF only for the test directory, and the latter
21757         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
21758         seems to suffice by itself.
21759
21760 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
21761
21762         alloca: one step towards thread-safety
21763         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
21764         need for a static variable.  All callers changed.  This does not
21765         make the alloca replacement thread-safe, but it's one step.
21766
21767         tests: minor indenting change
21768         * tests/init.sh: Sync from coreutils housekeeping patch
21769         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
21770         to keep lines within 80 columns.
21771
21772 2010-12-28  Jim Meyering  <meyering@redhat.com>
21773
21774         regex: don't infloop on persistent failing calloc
21775         * lib/regexec.c (build_trtable): Return failure indication upon
21776         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
21777         In glibc, this was fixed for version 2.13:
21778         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
21779
21780 2010-12-28  Bruno Haible  <bruno@clisp.org>
21781             Paul Eggert <eggert@cs.ucla.edu>
21782
21783         linkat: Make implementation robust against system behaviour variations.
21784         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
21785         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
21786         way, and to -2 if it needs a generic runtime test.
21787         * lib/linkat.c (solaris_optimized_link_immediate,
21788         solaris_optimized_link_follow): New functions.
21789         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
21790         (check_same_link): Use it.
21791
21792 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
21793
21794         New module 'unigbrk/base'.
21795         * modules/unigbrk/base: New file.
21796         * lib/unigbrk.in.h: New file.
21797
21798         New module 'unigbrk/uc-gbrk-prop'.
21799         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
21800         * modules/unigbrk/uc-gbrk-prop: New file.
21801         * lib/unigbrk/gbrkprop.h: New file.
21802         * lib/unigbrk/uc-gbrk-prop.c: New file.
21803
21804         New module 'unigbrk/uc-is-grapheme-break'.
21805         * modules/unigbrk/uc-is-grapheme-break: New file.
21806         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
21807         * lib/unigbrk/uc-is-grapheme-break.c: New file.
21808         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
21809         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
21810         * tests/unigbrk/GraphemeBreakTest.txt: New file.
21811
21812         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
21813
21814 2010-12-27  Bruno Haible  <bruno@clisp.org>
21815
21816         linkat test: Avoid failure on Solaris 11 2010-11.
21817         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
21818
21819 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
21820
21821         utimens: work around glibc rounding bug on more platforms
21822         * lib/utimens.c (fdutimens): Work around rounding bug even if
21823         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
21824         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
21825
21826 2010-12-27  Bruno Haible  <bruno@clisp.org>
21827
21828         select tests: Improve comments.
21829         * tests/test-select.c (do_select): Add comments.
21830
21831 2010-12-27  Bruno Haible  <bruno@clisp.org>
21832
21833         select tests: Safer way of handling timeout.
21834         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
21835         at every invocation.
21836
21837 2010-12-27  Bruno Haible  <bruno@clisp.org>
21838
21839         select tests: Use 'bool' where appropriate.
21840         * tests/test-select.c (connect_to_socket): Change argument type to
21841         'bool'.
21842
21843 2010-12-27  Bruno Haible  <bruno@clisp.org>
21844
21845         select tests: Use existing modules.
21846         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
21847         (configure.ac): Don't test for unistd.h.
21848         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
21849         declared in <unistd.h>.
21850
21851 2010-12-27  Bruno Haible  <bruno@clisp.org>
21852
21853         mbrtowc: Work around a Solaris 7 bug.
21854         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
21855         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
21856         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
21857         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
21858         MBRTOWC_NULL_ARG1_BUG.
21859         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
21860         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
21861         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
21862         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
21863
21864 2010-12-27  Jim Meyering  <meyering@redhat.com>
21865
21866         read-file.c: tweak syntax
21867         * lib/read-file.c (fread_file): Remove space after "*" in function
21868         definitions.
21869
21870 2010-12-27  Bruno Haible  <bruno@clisp.org>
21871
21872         times test: Avoid gcc warnings on OSF/1.
21873         * tests/test-times.c (main): Cast printf arguments from clock_t to
21874         'long int'.
21875
21876 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
21877
21878         utimens: work around glibc rounding bug on older Linux kernels
21879         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
21880         on Linux with a glibc whose utimes might not work, then work
21881         around a longstanding glibc bug involving rounding rather than
21882         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
21883         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
21884
21885 2010-12-26  Bruno Haible  <bruno@clisp.org>
21886
21887         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
21888         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
21889         _GL_CXXALIAS_SYS.
21890         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21891
21892 2010-12-26  Bruno Haible  <bruno@clisp.org>
21893
21894         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
21895         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
21896         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
21897         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
21898         looking for the declaration.
21899         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
21900         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
21901         problem.
21902         * doc/posix-functions/inet_pton.texi: Likewise.
21903
21904 2010-12-26  Bruno Haible  <bruno@clisp.org>
21905
21906         arpa_inet: Use the common idioms with C++ support.
21907         * lib/arpa_inet.in.h: Include c++defs.h.
21908         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
21909         support.
21910         * modules/arpa_inet (Depends-on): Add c++defs.
21911         (Makefile.am): Substitute the contents of c++defs.h.
21912         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
21913         * modules/arpa_inet-c++-tests: New file.
21914         * tests/test-arpa_inet-c++.cc: New file.
21915
21916 2010-12-25  Bruno Haible  <bruno@clisp.org>
21917
21918         Fix more C++ link errors on Solaris 8.
21919         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
21920         $(LIB_EACCESS).
21921         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
21922         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
21923         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
21924         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
21925         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
21926
21927 2010-12-25  Bruno Haible  <bruno@clisp.org>
21928
21929         printf-posix: Fix link error when a non-GCC compiler is used.
21930         * lib/stdio.in.h (printf): When not using GCC, override printf
21931         correctly.
21932         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21933
21934 2010-12-25  Bruno Haible  <bruno@clisp.org>
21935
21936         strerror_r-posix: Update doc.
21937         * doc/posix-functions/strerror_r.texi: Update doc about the return
21938         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
21939
21940 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
21941
21942         utimens: simplify the logic of the previous change
21943         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
21944         This should not affect whether the test succeeds or fails.
21945
21946         utimens: configure better on hosts with NFS clock skew
21947         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
21948         uses the clock of the local host.  It might use the clock of the
21949         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
21950         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
21951
21952 2010-12-25  Bruno Haible  <bruno@clisp.org>
21953
21954         ptsname test: Avoid failure on Solaris.
21955         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
21956         open a pseudo-terminal; don't use BSD-style ptys.
21957         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
21958
21959 2010-12-25  Bruno Haible  <bruno@clisp.org>
21960
21961         ptsname: Avoid ERANGE failure on some systems.
21962         * lib/ptsname.c (buffer): Increase size.
21963
21964 2010-12-25  Bruno Haible  <bruno@clisp.org>
21965
21966         rename, renameat: Avoid test failures at NFS mounted locations.
21967         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
21968         so that subsequent mkdir calls succeed.
21969
21970 2010-12-25  Bruno Haible  <bruno@clisp.org>
21971
21972         iswblank: Fix C++ link error on Solaris 8.
21973         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
21974         _GL_FUNCDECL_SYS.
21975
21976 2010-12-25  Bruno Haible  <bruno@clisp.org>
21977
21978         unistd: Fix C++ link error on Solaris 8.
21979         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
21980
21981 2010-12-25  Bruno Haible  <bruno@clisp.org>
21982
21983         readlink doc: Mention an old glibc bug.
21984         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
21985
21986 2010-12-25  Bruno Haible  <bruno@clisp.org>
21987
21988         fcntl-h: Fix for use of C++ on glibc systems.
21989         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
21990         also on glibc systems in C++ mode.
21991         Reported by Gary V. Vaughan <gary@gnu.org>.
21992
21993 2010-12-25  Bruno Haible  <bruno@clisp.org>
21994
21995         roundl-ieee: Make it work on OSF/1 5.1 with cc.
21996         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
21997
21998 2010-12-25  Bruno Haible  <bruno@clisp.org>
21999
22000         truncl-ieee: Make it work on OSF/1 5.1 with cc.
22001         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
22002         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
22003         test whether truncl works according to ISO C 99 with IEC 60559.
22004         * m4/truncl-ieee.m4: New file.
22005         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
22006         m4/signbit.m4.
22007         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
22008
22009 2010-12-25  Bruno Haible  <bruno@clisp.org>
22010
22011         ceill-ieee: Make it work on OSF/1 5.1 with cc.
22012         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
22013         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
22014         test whether ceill works according to ISO C 99 with IEC 60559.
22015         * m4/ceill-ieee.m4: New file.
22016         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
22017         m4/signbit.m4.
22018         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
22019
22020 2010-12-25  Bruno Haible  <bruno@clisp.org>
22021
22022         Ensure all prerequisites of <wchar.h> are included.
22023         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
22024         before <wchar.h>.
22025         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22026         gl_MBRLEN_NUL_RETVAL): Likewise.
22027         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22028         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
22029         AC_FUNC_MBRTOWC): Likewise.
22030         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22031         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
22032         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22033         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22034         Likewise.
22035         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22036         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
22037         (gl_WCHAR_H): Improve comments.
22038         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22039
22040 2010-12-25  Bruno Haible  <bruno@clisp.org>
22041
22042         strtok_r: Fix C syntax error in autoconf macro.
22043         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
22044         characters in test program.
22045
22046 2010-12-24  Bruno Haible  <bruno@clisp.org>
22047
22048         ceil, trunc, round: Fix gcc warnings.
22049         * lib/ceil.c (MIN): Undefine before redefining.
22050         * lib/trunc.c (MIN): Likewise.
22051         * lib/round.c (MIN): Likewise.
22052         Include <math.h> first.
22053
22054 2010-12-24  Bruno Haible  <bruno@clisp.org>
22055
22056         select tests: Avoid failures on OSF/1 5.1.
22057         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
22058         failure of closing the last socket; it may fail with ECONNRESET.
22059
22060 2010-12-24  Eric Blake  <eblake@redhat.com>
22061
22062         stdint: avoid HP-UX 10.20 preprocessor bug
22063         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
22064         than #if.
22065         * tests/test-floor2.c (main): Likewise.
22066         Reported by Peter O'Gorman.
22067
22068         pipe: make obsoletion transition easier
22069         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
22070         * modules/pipe (Files): Include revived file.
22071         (Include): Drop reference, to mirror getdate's behavior.
22072
22073 2010-12-24  Bruno Haible  <bruno@clisp.org>
22074
22075         sys_socket: Hide mismatch of declarations on NonStop Kernel.
22076         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
22077         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
22078         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22079
22080 2010-12-24  Bruno Haible  <bruno@clisp.org>
22081
22082         gethostname: Ensure declaration on NonStop Kernel.
22083         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
22084         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22085
22086 2010-12-24  Bruno Haible  <bruno@clisp.org>
22087
22088         sys_select: Ensure all necessary types on NonStop Kernel.
22089         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
22090         include <sys/time.h>.
22091         * doc/posix-headers/sys_select.texi: Mention that it's missing on
22092         NonStop Kernel.
22093         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22094
22095 2010-12-24  Bruno Haible  <bruno@clisp.org>
22096
22097         sys_select: Remove unneeded include.
22098         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
22099         have <sys/select.h>.
22100
22101 2010-12-24  Bruno Haible  <bruno@clisp.org>
22102
22103         gethostname: Provide a fallback for HOST_NAME_MAX.
22104         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
22105         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
22106         instead.
22107         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22108
22109 2010-12-24  Bruno Haible  <bruno@clisp.org>
22110
22111         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
22112         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
22113         (SA_RESTART): Likewise.
22114         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22115
22116 2010-12-24  Bruno Haible  <bruno@clisp.org>
22117
22118         signal: Define NSIG.
22119         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
22120         * tests/test-signal.c (nsig): New variable.
22121         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22122
22123 2010-12-24  Bruno Haible  <bruno@clisp.org>
22124
22125         rename, renameat: Avoid test failures on OSF/1 5.1.
22126         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
22127         alternative error codes.
22128         * tests/test-renameat.c (main): Likewise.
22129
22130 2010-12-24  Bruno Haible  <bruno@clisp.org>
22131
22132         *printf: Detect large precisions bug on Solaris 10/SPARC.
22133         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
22134         by Paul Eggert.
22135         * tests/test-snprintf-posix.h (test_function): Add this test code here
22136         too.
22137         * tests/test-sprintf-posix.h (test_function): Likewise.
22138         * tests/test-vasnprintf-posix.c (test_function): Likewise.
22139         * tests/test-vasprintf-posix.c (test_function): Likewise.
22140         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
22141         around by gnulib.
22142         * doc/posix-functions/printf.texi: Likewise.
22143         * doc/posix-functions/snprintf.texi: Likewise.
22144         * doc/posix-functions/sprintf.texi: Likewise.
22145         * doc/posix-functions/vfprintf.texi: Likewise.
22146         * doc/posix-functions/vprintf.texi: Likewise.
22147         * doc/posix-functions/vsnprintf.texi: Likewise.
22148         * doc/posix-functions/vsprintf.texi: Likewise.
22149         * doc/posix-functions/dprintf.texi: Undo last commit.
22150         * doc/posix-functions/vdprintf.texi: Likewise.
22151
22152 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
22153
22154         tests: port test-fdutimensat.c to Solaris 8
22155         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
22156         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
22157         On Solaris 8, it fails with errno == ENOSYS, because there is no
22158         futimens (so it can't use the fd), and there is no lutimens (so it
22159         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
22160
22161         vsnprintf: make more consistent with snprintf; doc fixes
22162
22163         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
22164         the byte count return problem was promoted from the snprintf-posix
22165         to the snprintf module.
22166         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
22167         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
22168         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
22169         * tests/test-snprintf.c (main): Check the byte count returned.
22170         * tests/test-vsnprintf.c (main): Likewise.
22171
22172 2010-12-23  Eric Blake  <eblake@redhat.com>
22173
22174         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
22175         * modules/sigpipe (License): Relax license.
22176
22177 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22178
22179         doc: document Solaris printf bug with large float precisions
22180         * doc/posix-functions/dprintf.texi (dprintf):
22181         * doc/posix-functions/fprintf.texi (fprintf):
22182         * doc/posix-functions/printf.texi (printf):
22183         * doc/posix-functions/snprintf.texi (snprintf):
22184         * doc/posix-functions/sprintf.texi (sprintf):
22185         * doc/posix-functions/vdprintf.texi (vdprintf):
22186         * doc/posix-functions/vfprintf.texi (vfprintf):
22187         * doc/posix-functions/vprintf.texi (vprintf):
22188         * doc/posix-functions/vsnprintf.texi (vsnprintf):
22189         * doc/posix-functions/vsprintf.texi (vsprintf):
22190         Mention that these functions mishandle large floating point
22191         precisions on Solaris 10.  The same bug is also present in Solaris
22192         8, and I assume earlier.  This causes "cd gnulib-tests; make
22193         check" to fail on Solaris 8 (and I assume, later) when building
22194         the latest coreutils, in test-vasprintf-posix's call to
22195         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
22196         the wide flavors (e.g., wprintf) so this patch just updates the
22197         documentation for the narrow ones.
22198
22199         test-posixtm.c: add two tests
22200         * tests/test-posixtm.c: Add two tests, to highlight the
22201         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
22202         around this bug; this is merely to document it.
22203
22204 2010-12-22  Bruno Haible  <bruno@clisp.org>
22205
22206         getlogin_r: Work around portability problem on OSF/1.
22207         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
22208         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
22209         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
22210         test for a truncated result.
22211         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
22212         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
22213         * modules/getlogin_r (Depends-on): Add memchr.
22214         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
22215
22216 2010-12-22  Bruno Haible  <bruno@clisp.org>
22217
22218         ptsname: Avoid test failure on OSF/1 5.1.
22219         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
22220         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
22221         (same_slave): New function.
22222         (main): Use it to compare ptsname's result with the expected file name.
22223
22224 2010-12-22  Bruno Haible  <bruno@clisp.org>
22225
22226         Port extended stdio modules to HP NonStop Kernel.
22227         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
22228         macros.
22229         * lib/fbufmode.c: Update comments.
22230         * lib/fflush.c: Likewise.
22231         * lib/fpurge.c: Likewise.
22232         * lib/freadable.c: Likewise.
22233         * lib/freadahead.c: Likewise.
22234         * lib/freading.c: Likewise.
22235         * lib/freadptr.c: Likewise.
22236         * lib/freadseek.c: Likewise.
22237         * lib/fseeko.c: Likewise.
22238         * lib/fseterr.c: Likewise.
22239         * lib/fwritable.c: Likewise.
22240         * lib/fwriting.c: Likewise.
22241         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22242
22243 2010-12-22  Bruno Haible  <bruno@clisp.org>
22244
22245         ttyname_r: Work around bug on OSF/1 5.1.
22246         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
22247         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
22248         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
22249         present.
22250         * lib/ttyname_r.c (ttyname_r): Update comments.
22251
22252 2010-12-22  Bruno Haible  <bruno@clisp.org>
22253
22254         round: Implement result sign according to IEEE 754.
22255         * lib/round.c (MIN, MINUS_ZERO): New macros.
22256         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
22257         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
22258         * tests/test-round-ieee.c (main): Likewise.
22259         * tests/test-roundl-ieee.c (main): Likewise.
22260
22261         trunc: Implement result sign according to IEEE 754.
22262         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
22263         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
22264         * tests/test-trunc2.c: Include minus-zero.h.
22265         (MINUS_ZERO): New macro.
22266         (trunc_reference): Keep in sync with lib/trunc.c.
22267         * tests/test-truncf2.c: Include minus-zero.h.
22268         (MINUS_ZERO): New macro.
22269         (truncf_reference): Keep in sync with lib/trunc.c.
22270         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
22271         * tests/test-trunc-ieee.c (main): Likewise.
22272         * tests/test-truncl-ieee.c (main): Likewise.
22273
22274         ceil: Implement result sign according to IEEE 754.
22275         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
22276         (FUNC): Return -0.0 for -1 < x < 0.
22277         * tests/test-ceil2.c: Include minus-zero.h.
22278         (MINUS_ZERO): New macro.
22279         (ceil_reference): Keep in sync with lib/ceil.c.
22280         * tests/test-ceilf2.c: Include minus-zero.h.
22281         (MINUS_ZERO): New macro.
22282         (ceilf_reference): Keep in sync with lib/ceil.c.
22283         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
22284         * tests/test-ceil-ieee.c (main): Likewise.
22285         * tests/test-ceill-ieee.c (main): Likewise.
22286
22287         floor: Implement result sign according to IEEE 754.
22288         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
22289         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
22290         * tests/test-floorf2.c (floorf_reference): Likewise.
22291         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
22292         * tests/test-floor-ieee.c (main): Likewise.
22293         * tests/test-floorl-ieee.c (main): Likewise.
22294
22295 2010-12-22  Bruno Haible  <bruno@clisp.org>
22296
22297         getaddrinfo: Update doc.
22298         * doc/posix-functions/gai_strerror.texi: Return type is also different
22299         on AIX and HP-UX.
22300
22301 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22302
22303         getaddrinfo, inet_ntop: Update doc for Solaris.
22304         * doc/posix-functions/gai_strerror.texi: Return type is also an
22305         issue on Solaris 9 and earlier.
22306         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
22307         on Solaris 10 and earlier.
22308
22309 2010-12-21  Bruno Haible  <bruno@clisp.org>
22310
22311         New module 'roundl-ieee'.
22312         * modules/roundl-ieee: New file.
22313         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
22314         test whether roundl works according to ISO C 99 with IEC 60559.
22315         * m4/roundl-ieee.m4: New file.
22316         * modules/roundl-ieee-tests: New file.
22317         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
22318         * tests/test-roundl.c (main): Remove signbit tests.
22319         * modules/roundl-tests (Depends-on): Remove signbit.
22320         * doc/posix-functions/roundl.texi: Mention the new module.
22321
22322 2010-12-21  Bruno Haible  <bruno@clisp.org>
22323
22324         New module 'truncl-ieee'.
22325         * modules/truncl-ieee: New file.
22326         * modules/truncl-ieee-tests: New file.
22327         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
22328         * tests/test-truncl.c (main): Remove signbit tests.
22329         * modules/truncl-tests (Depends-on): Remove signbit.
22330         * doc/posix-functions/truncl.texi: Mention the new module.
22331
22332 2010-12-21  Bruno Haible  <bruno@clisp.org>
22333
22334         New module 'ceill-ieee'.
22335         * modules/ceill-ieee: New file.
22336         * modules/ceill-ieee-tests: New file.
22337         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
22338         * tests/test-ceill.c (main): Remove signbit tests.
22339         * modules/ceill-tests (Depends-on): Remove signbit.
22340         * doc/posix-functions/ceill.texi: Mention the new module.
22341
22342 2010-12-21  Bruno Haible  <bruno@clisp.org>
22343
22344         New module 'floorl-ieee'.
22345         * modules/floorl-ieee: New file.
22346         * modules/floorl-ieee-tests: New file.
22347         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
22348         * tests/test-floorl.c (main): Remove signbit tests.
22349         * modules/floorl-tests (Depends-on): Remove signbit.
22350         * doc/posix-functions/floorl.texi: Mention the new module.
22351
22352 2010-12-21  Bruno Haible  <bruno@clisp.org>
22353
22354         New module 'round-ieee'.
22355         * modules/round-ieee: New file.
22356         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
22357         whether round works according to ISO C 99 with IEC 60559.
22358         * m4/round-ieee.m4: New file.
22359         * modules/round-ieee-tests: New file.
22360         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
22361         * tests/test-round1.c (main): Remove signbit tests.
22362         * modules/round-tests (Depends-on): Remove 'signbit'.
22363         * doc/posix-functions/round.texi: Mention the new module.
22364
22365 2010-12-21  Bruno Haible  <bruno@clisp.org>
22366
22367         New module 'trunc-ieee'.
22368         * modules/trunc-ieee: New file.
22369         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
22370         whether trunc works according to ISO C 99 with IEC 60559.
22371         * m4/trunc-ieee.m4: New file.
22372         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
22373         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
22374         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
22375         * modules/trunc-ieee-tests: New file.
22376         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
22377         * tests/test-trunc1.c (main): Remove signbit tests.
22378         * modules/trunc-tests (Depends-on): Remove 'signbit'.
22379         * doc/posix-functions/trunc.texi: Mention the new module.
22380
22381 2010-12-21  Bruno Haible  <bruno@clisp.org>
22382
22383         New module 'ceil-ieee'.
22384         * modules/ceil-ieee: New file.
22385         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
22386         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
22387         ISO C 99 with IEC 60559.
22388         * m4/ceil-ieee.m4: New file.
22389         * modules/ceil (Files): Add lib/ceil.c.
22390         (Depends-on): Add 'float'.
22391         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22392         * lib/math.in.h (ceil): New declaration.
22393         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
22394         REPLACE_CEIL.
22395         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
22396         * modules/ceil-ieee-tests: New file.
22397         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
22398         * tests/test-math-c++.cc: Check the signature of 'ceil'.
22399         * doc/posix-functions/ceil.texi: Mention the new module.
22400
22401 2010-12-21  Bruno Haible  <bruno@clisp.org>
22402
22403         New module 'floor-ieee'.
22404         * modules/floor-ieee: New file.
22405         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
22406         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
22407         ISO C 99 with IEC 60559.
22408         * m4/floor-ieee.m4: New file.
22409         * modules/floor (Files): Add lib/floor.c.
22410         (Depends-on): Add 'float'.
22411         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22412         * lib/math.in.h (floor): New declaration.
22413         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
22414         REPLACE_FLOOR.
22415         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
22416         * modules/floor-ieee-tests: New file.
22417         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
22418         * tests/test-math-c++.cc: Check the signature of 'floor'.
22419         * doc/posix-functions/floor.texi: Mention the new module.
22420
22421 2010-12-21  Bruno Haible  <bruno@clisp.org>
22422
22423         New module 'roundf-ieee'.
22424         * modules/roundf-ieee: New file.
22425         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
22426         test whether roundf works according to ISO C 99 with IEC 60559.
22427         * m4/roundf-ieee.m4: New file.
22428         * modules/roundf-ieee-tests: New file.
22429         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
22430         * tests/test-roundf1.c (main): Remove signbit tests.
22431         * modules/roundf-tests (Depends-on): Remove 'signbit'.
22432         * doc/posix-functions/roundf.texi: Mention the new module.
22433
22434 2010-12-21  Bruno Haible  <bruno@clisp.org>
22435
22436         New module 'truncf-ieee'.
22437         * modules/truncf-ieee: New file.
22438         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
22439         test whether truncf works according to ISO C 99 with IEC 60559.
22440         * m4/truncf-ieee.m4: New file.
22441         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
22442         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
22443         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
22444         * modules/truncf-ieee-tests: New file.
22445         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
22446         * tests/test-truncf1.c (main): Remove signbit tests.
22447         * modules/truncf-tests (Depends-on): Remove 'signbit'.
22448         * doc/posix-functions/truncf.texi: Mention the new module.
22449
22450 2010-12-21  Bruno Haible  <bruno@clisp.org>
22451
22452         New module 'ceilf-ieee'.
22453         * modules/ceilf-ieee: New file.
22454         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
22455         test whether ceilf works according to ISO C 99 with IEC 60559.
22456         * m4/ceilf-ieee.m4: New file.
22457         * modules/ceilf-ieee-tests: New file.
22458         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
22459         * tests/test-ceilf1.c (main): Remove signbit tests.
22460         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
22461         * doc/posix-functions/ceilf.texi: Mention the new module.
22462
22463 2010-12-21  Bruno Haible  <bruno@clisp.org>
22464
22465         New module 'floorf-ieee'.
22466         * modules/floorf-ieee: New file.
22467         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
22468         test whether floorf works according to ISO C 99 with IEC 60559.
22469         * m4/floorf-ieee.m4: New file.
22470         * modules/floorf-ieee-tests: New file.
22471         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
22472         * tests/test-floorf1.c (main): Remove signbit tests.
22473         * modules/floorf-tests (Depends-on): Remove 'signbit'.
22474         * doc/posix-functions/floorf.texi: Mention the new module.
22475
22476 2010-12-21  Bruno Haible  <bruno@clisp.org>
22477
22478         Support for minus zero in autoconf macros.
22479         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
22480         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
22481         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
22482         * tests/minus-zero.h: Update comments.
22483
22484 2010-12-21  Bruno Haible  <bruno@clisp.org>
22485
22486         Tests for module 'ceil'.
22487         * modules/ceil-tests: New file.
22488         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
22489         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
22490
22491 2010-12-21  Bruno Haible  <bruno@clisp.org>
22492
22493         Tests for module 'floor'.
22494         * modules/floor-tests: New file.
22495         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
22496         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
22497
22498 2010-12-21  Bruno Haible  <bruno@clisp.org>
22499
22500         math: Fix indentation.
22501         * lib/math.in.h (floorf): Fix indentation.
22502
22503 2010-12-21  Bruno Haible  <bruno@clisp.org>
22504
22505         Fix cross-compilation guesses on Solaris.
22506         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
22507         not match "solaris2.10".
22508         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22509         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
22510         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
22511
22512 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
22513
22514         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
22515         This fixes a problem observed with the latest coreutils snapshot
22516         that caused a test to fail on Solaris 8.  src/csplit.c's call
22517         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
22518         earlier, instead of returning the number of bytes that would have
22519         been generated; this causes csplit to incorrectly report memory
22520         exhaustion.
22521         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
22522         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
22523         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
22524         comments to match.
22525         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
22526         Fix typo in matching older versions of Solaris: "solaris2.10"
22527         is matched by the shell pattern "solaris2.[0-9]*".  This matters
22528         only for guessing while cross-compiling.
22529         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
22530
22531 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
22532
22533         ftoastr: fix comment again
22534         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22535         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
22536         Also, simplify example a bit by using flags = 0.
22537
22538 2010-12-20  Bruno Haible  <bruno@clisp.org>
22539
22540         round*, trunc*: Update documentation regarding glibc.
22541         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
22542         * doc/posix-functions/round.texi: Likewise.
22543         * doc/posix-functions/roundl.texi: Likewise.
22544         * doc/posix-functions/truncf.texi: Likewise.
22545         * doc/posix-functions/trunc.texi: Likewise.
22546         * doc/posix-functions/truncl.texi: Likewise.
22547
22548 2010-12-20  Bruno Haible  <bruno@clisp.org>
22549
22550         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
22551         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
22552         * doc/posix-functions/round.texi: Likewise.
22553         * doc/posix-functions/roundl.texi: Likewise.
22554
22555 2010-12-20  Bruno Haible  <bruno@clisp.org>
22556
22557         ttyname_r: Add missing declaration on HP-UX 11.
22558         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
22559         HAVE_TTYNAME_R.
22560         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
22561         declared. Set HAVE_TTYNAME_R always.
22562         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22563         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
22564         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
22565         HAVE_TTYNAME_R.
22566         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
22567
22568 2010-12-20  Bruno Haible  <bruno@clisp.org>
22569
22570         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
22571         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
22572         * doc/posix-functions/getlogin_r.texi: Likewise.
22573         * tests/test-getlogin.c: Include <errno.h>.
22574         (main): Avoid test failure on HP-UX 11.11.
22575         * tests/test-getlogin_r.c (main): Likewise.
22576
22577 2010-12-20  Bruno Haible  <bruno@clisp.org>
22578
22579         getlogin_r: Add missing declaration on HP-UX 11.
22580         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
22581         declared also when it exists as a function.
22582         * doc/posix-functions/getlogin_r.texi: Document this workaround.
22583
22584 2010-12-20  Bruno Haible  <bruno@clisp.org>
22585
22586         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
22587         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
22588         through wcrtomb.
22589
22590 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
22591
22592         ftoastr: fix comment
22593         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22594         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
22595
22596 2010-12-19  Bruno Haible  <bruno@clisp.org>
22597
22598         isnan: Ensure it is a macro.
22599         * lib/math.in.h (isnan): Define as a macro if not already a macro.
22600         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
22601         Solaris.
22602
22603 2010-12-19  Bruno Haible  <bruno@clisp.org>
22604
22605         ldexpl test: Fix link error on OSF/1 5.1.
22606         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
22607
22608 2010-12-19  Bruno Haible  <bruno@clisp.org>
22609
22610         wctype: Make it work in C++ mode on OSF/1 5.1.
22611         * lib/wctype.in.h (iswblank): Declare but not define here.
22612         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
22613         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
22614         * modules/wctype (Files): Add lib/iswblank.c.
22615
22616 2010-12-19  Bruno Haible  <bruno@clisp.org>
22617
22618         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
22619         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
22620         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
22621
22622 2010-12-19  Bruno Haible  <bruno@clisp.org>
22623
22624         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
22625         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
22626         _POSIX_PII_SOCKET.
22627         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
22628         * doc/posix-functions/recvfrom.texi: Likewise.
22629         * doc/posix-functions/send.texi: Likewise.
22630         * doc/posix-functions/sendto.texi: Likewise.
22631
22632 2010-12-19  Bruno Haible  <bruno@clisp.org>
22633
22634         tcgetsid: Add missing declaration on OSF/1 5.1.
22635         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
22636         HAVE_TCGETSID.
22637         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
22638         Don't set HAVE_TCGETSID.
22639         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
22640         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
22641         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
22642         HAVE_TCGETSID.
22643         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
22644
22645 2010-12-19  Bruno Haible  <bruno@clisp.org>
22646
22647         stdio: Fix problem with popen() declaration on OSF/1 5.1.
22648         * lib/stdio.in.h: During the include_next statement, let recursive
22649         includes of this file include only the system header file.
22650
22651 2010-12-19  Bruno Haible  <bruno@clisp.org>
22652
22653         iconv_open: Fix regression from 2010-12-04.
22654         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
22655         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
22656
22657 2010-12-19  Bruno Haible  <bruno@clisp.org>
22658
22659         stdbool test: Avoid a gcc warning.
22660         * tests/test-stdbool.c (main): Fail if e1 is false.
22661         Reported by Jim Meyering.
22662
22663 2010-12-19  Jim Meyering  <meyering@redhat.com>
22664
22665         setenv: restore to working order
22666         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
22667         mistakenly removed.
22668         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
22669         HAVE_SETENV.
22670         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
22671         HAVE_SETENV.
22672
22673 2010-12-19  Bruno Haible  <bruno@clisp.org>
22674
22675         Document some different function declarations on OSF/1 5.1.
22676         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
22677         * doc/posix-functions/inet_ntop.texi: Likewise.
22678         * doc/posix-functions/gethostname.texi: Likewise.
22679         * lib/unistd.in.h (gethostname): Update comment.
22680
22681 2010-12-19  Bruno Haible  <bruno@clisp.org>
22682
22683         doc: Mention vasprintf-posix module.
22684         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
22685         the 'vasprintf-posix' module.
22686         * doc/glibc-functions/vasprintf.texi: Likewise.
22687
22688 2010-12-19  Bruno Haible  <bruno@clisp.org>
22689
22690         unsetenv: Add missing declaration on OSF/1 5.1.
22691         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
22692         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
22693         Don't set HAVE_UNSETENV. In the test program, set _BSD.
22694         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
22695         not HAVE_UNSETENV.
22696         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
22697         HAVE_UNSETENV.
22698         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
22699
22700 2010-12-19  Bruno Haible  <bruno@clisp.org>
22701
22702         setenv: Add missing declaration on OSF/1 5.1.
22703         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
22704         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
22705         declared. Don't set HAVE_SETENV.
22706         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
22707         not HAVE_SETENV.
22708         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
22709         HAVE_SETENV.
22710         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
22711
22712 2010-12-19  Bruno Haible  <bruno@clisp.org>
22713
22714         nl_langinfo tests: Avoid gcc warning.
22715         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
22716
22717 2010-12-19  Bruno Haible  <bruno@clisp.org>
22718
22719         mknod: Avoid error in C++ mode on OSF/1 with GCC.
22720         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
22721         _GL_CXXALIAS_SYS.
22722
22723 2010-12-19  Bruno Haible  <bruno@clisp.org>
22724
22725         stdbool: Relax test.
22726         * tests/test-stdbool.c (e): Don't require that casts from a variable's
22727         address to 'bool' work in static initializer, for compilers other than
22728         GCC.
22729
22730 2010-12-19  Bruno Haible  <bruno@clisp.org>
22731
22732         ftello: Add missing declaration on OSF/1 5.1.
22733         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
22734         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
22735         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
22736         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
22737         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
22738
22739 2010-12-19  Bruno Haible  <bruno@clisp.org>
22740
22741         fseeko: Add missing declaration on OSF/1 5.1.
22742         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
22743         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
22744         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
22745         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
22746         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
22747
22748 2010-12-19  Bruno Haible  <bruno@clisp.org>
22749
22750         fchdir: Add missing declaration on OSF/1 5.1.
22751         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
22752         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
22753         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
22754         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
22755         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
22756
22757 2010-12-19  Bruno Haible  <bruno@clisp.org>
22758
22759         relocatable-prog-wrapper: Separate from relocatable-prog.
22760         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
22761         uninstall-relocwrapper rule here.
22762         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
22763         Reported by Ian Beckwith <ianb@erislabs.net>.
22764
22765 2010-12-19  Bruno Haible  <bruno@clisp.org>
22766
22767         unistr/u8-mbsnlen: Add missing dependency.
22768         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
22769         Reported by Ian Beckwith <ianb@erislabs.net>.
22770
22771 2010-12-19  Bruno Haible  <bruno@clisp.org>
22772
22773         iconv: Make it possible again to use this module without 'iconv-h'.
22774         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
22775         if it is not defined.
22776         Reported by Ian Beckwith <ianb@erislabs.net>.
22777
22778 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
22779
22780         acl: port to Solaris 8 when copying from tmpfs to ufs
22781         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
22782         error number.  Problem observed on Solaris 8 with latest
22783         coreutils, with "mv A B", where A is on a tmpfs file system and B
22784         is on a ufs file system.  This caused coreutils' mv/part-symlink
22785         test to fail.
22786
22787         tests: set fail=0 at start
22788         * tests/init.sh (setup_): Move fail=0 initialization here ...
22789         (mktempd_): ... from here, so that tests can rely on fail being
22790         set to 0 initially.  This fixes a problem in coreutils; see:
22791         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
22792
22793 2010-12-18  Bruno Haible  <bruno@clisp.org>
22794
22795         memmem-simple: Stylistic changes.
22796         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
22797         Fix preprocessor directive indentation.
22798
22799 2010-12-15  Pádraig Brady <P@draigBrady.com>
22800
22801         memmem, memmem-simple: reorganize and expand empty needle check
22802         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
22803         functional checks to memmem-simple so that one has a fully functional
22804         memmem by using just this module.
22805         Restrict the performance only check to the memmem module.
22806         Also expand the empty needle check to ensure the correct
22807         pointer is returned, not just a non NULL pointer.
22808         * doc/glibc-functions/memmem.texi: Rearrange the portability
22809         documentation to correlate with the rearranged checks.
22810         Clarify exactly how the memmem and memmem-simple modules
22811         relate to each other.
22812
22813 2010-12-15  Pádraig Brady <P@draigBrady.com>
22814             Bruno Haible  <bruno@clisp.org>
22815
22816         Improve cross-compilation guesses for uClibc.
22817         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
22818         that uClibc does not have the glibc bug.
22819         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
22820         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
22821
22822 2010-12-14  Eric Blake  <eblake@redhat.com>
22823
22824         configmake: provide fallbacks for oldest supported autotools
22825         * m4/configmake.m4: New file.
22826         * modules/configmake (Files): Ship it.
22827         (configure.ac): Use it to guarantee fallbacks.
22828
22829 2010-12-13  Pádraig Brady <P@draigBrady.com>
22830
22831         read-file: Improve handling of large files
22832         * lib/read-file.c (fread_file): Minimize realloc()s
22833         for regular files, and better manage sizes around SIZE_MAX.
22834
22835 2010-12-13  Eric Blake  <eblake@redhat.com>
22836
22837         cloexec, fcntl: relax license
22838         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
22839         consent from all contributors.
22840         * modules/fcntl (License): Likewise.
22841
22842 2010-12-10  Bruno Haible  <bruno@clisp.org>
22843
22844         Tests for module 'pipe-posix'.
22845         * modules/pipe-posix-tests: New file.
22846         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
22847
22848 2010-12-10  Bruno Haible  <bruno@clisp.org>
22849
22850         pipe-posix: Make it work in C++ mode.
22851         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
22852         (pipe): Use common idiom, not a macro definition.
22853         * lib/pipe.c: New file.
22854         * m4/pipe.m4: New file.
22855         * modules/pipe-posix (Description): Enhance.
22856         (Files): Add lib/pipe.c, m4/pipe.m4.
22857         (configure.ac): Invoke gl_FUNC_PIPE.
22858         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
22859         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
22860         * tests/test-unistd-c++.cc: Check the signature of pipe.
22861
22862 2010-12-10  Bruno Haible  <bruno@clisp.org>
22863
22864         Rename module 'pipe' to 'spawn-pipe'.
22865         * modules/spawn-pipe: New file, renamed from modules/pipe.
22866         (Files, configure.ac, Makefile.am): Update.
22867         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
22868         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
22869         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
22870         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
22871         "spawn-pipe.h" instead of "pipe.h".
22872         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
22873         to gl_SPAWN_PIPE.
22874         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
22875         (Files, Makefile.am): Update.
22876         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
22877         Update.
22878         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
22879         Include "spawn-pipe.h" instead of "pipe.h".
22880         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
22881         * lib/javacomp.c: Likewise.
22882         * lib/javaversion.c: Likewise.
22883         * lib/pipe-filter-gi.c: Likewise.
22884         * lib/pipe-filter-ii.c: Likewise.
22885         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
22886         * modules/javacomp (Depends-on): Likewise.
22887         * modules/javaversion (Depends-on): Likewise.
22888         * modules/pipe-filter-gi (Depends-on): Likewise.
22889         * modules/pipe-filter-ii (Depends-on): Likewise.
22890         * MODULES.html.sh (Executing programs): Update.
22891         * NEWS: Mention the change.
22892
22893 2010-12-10  Eric Blake  <eblake@redhat.com>
22894
22895         pipe-posix: new module
22896         * modules/pipe-posix: New file.
22897         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
22898         (gl_UNISTD_H): Check for declaration.
22899         * modules/unistd (Makefile.am): Substitute it.
22900         * lib/unistd.in.h (pipe): Provide it for mingw.
22901         * doc/posix-functions/pipe.texi (pipe): Update documentation.
22902         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
22903
22904 2010-12-07  Bruno Haible  <bruno@clisp.org>
22905
22906         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
22907         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
22908         u8_strcmp_gnu.
22909         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
22910
22911 2010-12-06  Bruno Haible  <bruno@clisp.org>
22912
22913         Update internal documentation.
22914         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
22915
22916 2010-12-04  Bruno Haible  <bruno@clisp.org>
22917
22918         Put more information about failed tests into the test return codes.
22919         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
22920         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
22921         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
22922         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
22923         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
22924         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
22925         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22926         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22927         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
22928         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22929         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
22930         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
22931         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
22932         * m4/stdint.m4 (gl_STDINT_H): Likewise.
22933         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
22934         returns a bit mask.
22935         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
22936         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
22937         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
22938         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
22939         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
22940         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
22941         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
22942         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
22943         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22944         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
22945         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
22946         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
22947         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22948         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
22949         * m4/link.m4 (gl_FUNC_LINK): Likewise.
22950         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
22951         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
22952         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
22953         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22954         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
22955         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22956         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
22957         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
22958         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
22959         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22960         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
22961         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
22962         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
22963         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
22964         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
22965         gl_PRINTF_PRECISION): Likewise.
22966         * m4/regex.m4 (gl_REGEX): Likewise.
22967         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
22968         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
22969         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
22970         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22971         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
22972         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22973         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
22974         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
22975         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22976         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
22977         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
22978         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
22979         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
22980         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
22981         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22982         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22983         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
22984         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22985         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
22986         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
22987         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
22988         enumerated value.
22989         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
22990
22991 2010-12-04  Bruno Haible  <bruno@clisp.org>
22992
22993         Update for Solaris 11 2010-11.
22994         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
22995         Express, released in November 2010.
22996
22997 2010-12-04  Bruno Haible  <bruno@clisp.org>
22998
22999         nproc: Relax license.
23000         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
23001         and Paul Eggert.
23002         Requested by Ludovic Courtès <ludo@gnu.org>.
23003
23004 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
23005
23006         utimecmp: fine-grained src to nearby coarse-grained dest
23007
23008         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
23009         and the source is on a file system with higher-resolution time
23010         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
23011         not work, and the time stamps are close together, the algorithm to
23012         determine the exact resolution from the read-back mtime was buggy:
23013         it had a "!=" where it should have had an "==".  This bug has been
23014         in the code ever since it was introduced to gnulib.
23015         Problem reported by Dan Jacobson in
23016         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
23017
23018 2010-11-30  Bruno Haible  <bruno@clisp.org>
23019
23020         strerror_r-posix: Fix autoconf test.
23021         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
23022
23023 2010-11-28  Bruno Haible  <bruno@clisp.org>
23024             Paul Eggert  <eggert@cs.ucla.edu>
23025
23026         Tests for module 'getdomainname'.
23027         * modules/getdomainname-tests: New file.
23028         * tests/test-getdomainname.c: New file, based on
23029         tests/test-gethostname.c.
23030
23031 2010-11-28  Bruno Haible  <bruno@clisp.org>
23032             Paul Eggert  <eggert@cs.ucla.edu>
23033
23034         getdomainname: Use the system function when possible.
23035         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
23036         (getdomainname): Replace if needed. Provide the declaration if it is
23037         missing. Don't use _GL_CXXALIAS_SYS_CAST.
23038         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
23039         (getdomainname): When the system has getdomainname, call the system
23040         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
23041         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
23042         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
23043         found in libnsl. Look for the declaration also in <netdb.h>. Replace
23044         the function if its second argument is of type 'int' or if it is found
23045         in libnsl.
23046         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
23047         <sys/systeminfo.h> and sysinfo().
23048         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
23049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23050         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
23051         HAVE_GETDOMAINNAME.
23052         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
23053         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
23054         * doc/glibc-functions/getdomainname.texi: Document the problems with
23055         the getdomainname declaration.
23056
23057 2010-11-28  Bruno Haible  <bruno@clisp.org>
23058
23059         sys_socket: Ensure ss_family field on AIX.
23060         * lib/sys_socket.in.h (ss_family): New macro definition.
23061         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
23062         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
23063         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23064         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23065         * modules/sys_socket (Makefile.am): Substitute
23066         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23067         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
23068
23069 2010-11-27  Bruno Haible  <bruno@clisp.org>
23070
23071         readline: Improve configure output.
23072         * m4/readline.m4 (gl_FUNC_READLINE): Make the
23073         "checking for readline..." result understandable.
23074
23075 2010-11-27  Bruno Haible  <bruno@clisp.org>
23076
23077         *printf-posix: Detect a bug on Solaris 10/x86.
23078         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
23079         for floating-point output.
23080         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
23081         directive.
23082         * tests/test-snprintf-posix.h (test_function): Likewise.
23083         * tests/test-sprintf-posix.h (test_function): Likewise.
23084         * tests/test-vasprintf-posix.c (test_function): Likewise.
23085         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
23086         * doc/posix-functions/printf.texi: Likewise.
23087         * doc/posix-functions/snprintf.texi: Likewise.
23088         * doc/posix-functions/sprintf.texi: Likewise.
23089         * doc/posix-functions/vfprintf.texi: Likewise.
23090         * doc/posix-functions/vprintf.texi: Likewise.
23091         * doc/posix-functions/vsnprintf.texi: Likewise.
23092         * doc/posix-functions/vsprintf.texi: Likewise.
23093         * doc/glibc-functions/obstack_printf.texi: Likewise.
23094         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
23095
23096 2010-11-27  Bruno Haible  <bruno@clisp.org>
23097
23098         Fix link error when module libunistring-optional is in use.
23099         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
23100         * modules/striconveha-tests (Makefile.am): Likewise.
23101
23102 2010-11-27  Bruno Haible  <bruno@clisp.org>
23103
23104         regex: Mention link dependencies.
23105         * modules/regex (Link): New section.
23106         * modules/rpmatch (Link): Likewise.
23107         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
23108
23109 2010-11-27  Bruno Haible  <bruno@clisp.org>
23110
23111         ftoastr: Fix compilation error on Solaris.
23112         * lib/ftoastr.c: Include <config.h>.
23113
23114 2010-11-27  Bruno Haible  <bruno@clisp.org>
23115
23116         getloadavg: Update documentation.
23117         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
23118
23119 2010-11-27  Bruno Haible  <bruno@clisp.org>
23120
23121         sys_socket: Fix test whether the functions are declared.
23122         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
23123         not <sys/select.h>.
23124
23125 2010-11-27  Bruno Haible  <bruno@clisp.org>
23126
23127         getpass: Make sure to get system declaration on some platforms.
23128         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
23129         gl_USE_SYSTEM_EXTENSIONS.
23130         * modules/getpass (Depends-on): Add extensions.
23131
23132 2010-11-26  Bruno Haible  <bruno@clisp.org>
23133
23134         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
23135         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
23136         'iconv' module is present.
23137         (ICONV_CONST): New macro.
23138         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
23139         ICONV_CONST.
23140         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
23141         set ICONV_CONST.
23142         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
23143         here.
23144         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
23145         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
23146         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
23147         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
23148         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
23149         present.
23150
23151 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23152
23153         ftoastr: comment fix
23154         * lib/ftoastr.c: "little" -> "little or no" in comment
23155
23156 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
23157
23158         stdint: port to GCC 4.3 + OSX + Octave
23159         On this platform, stdint.h is buggy and defines int64_t to long
23160         long int.  The replacement defined it to long int, causing
23161         problems with C++ style name mangling.  Instead, trust the system
23162         definition if INT64_MAX is defined, and likewise for the unsigned
23163         variant.   Problem reported by Jarno Rajahalme in
23164         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
23165         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
23166         and don't mess with int64_t and INT64_MAX in this case.
23167         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
23168
23169 2010-11-24  Bruno Haible  <bruno@clisp.org>
23170
23171         doc: Corrections regarding MacOS X 10.4 and 10.5.
23172         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
23173         MacOS X.
23174         Reported by Simon Josefsson.
23175
23176 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
23177
23178         Uninstall ".bin" files installed by relocwrapper.
23179         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
23180         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
23181         unless it is already there.
23182
23183 2010-11-21  Bruno Haible  <bruno@clisp.org>
23184
23185         Update for NetBSD 5.0.
23186         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23187         NetBSD; the test fails on NetBSD 5.0.
23188         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23189         about NetBSD.
23190
23191 2010-11-21  Bruno Haible  <bruno@clisp.org>
23192
23193         Update for HP-UX 11.23 and HP-UX 11.31.
23194         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
23195         HP-UX.
23196
23197 2010-11-21  Bruno Haible  <bruno@clisp.org>
23198
23199         Update for MacOS X 10.5.
23200         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23201         MacOS X; the test fails on MacOS X 10.5.8.
23202         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23203         about MacOS X.
23204
23205 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
23206
23207         bootstrap: add bootstrap_sync option.
23208         See discussion at
23209         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
23210         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
23211         * build-aux/bootstrap: Accept --bootstrap-sync to update
23212         bootstrap if it is not identical to the local gnulib's
23213         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
23214         enable this by default.  Accept --no-bootstrap-sync to disable
23215         it.
23216
23217 2010-11-20  Bruno Haible  <bruno@clisp.org>
23218
23219         Ensure that <features.h> is included before __GLIBC__ is tested.
23220         * lib/printf-parse.h: Include <features.h>.
23221         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
23222         Reported by Mike Frysinger <vapier@gentoo.org>.
23223
23224         Ensure that <features.h> is included before __GLIBC__ is tested.
23225         * lib/wchar.in.h: Include <features.h>.
23226         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
23227         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
23228         Reported by Mike Frysinger <vapier@gentoo.org>.
23229
23230         Ensure that <features.h> is included before __GLIBC__ is tested.
23231         * lib/arpa_inet.in.h: Include <features.h>.
23232         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
23233         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
23234         Reported by Mike Frysinger <vapier@gentoo.org>.
23235
23236         Ensure that <features.h> is included before __GLIBC__ is tested.
23237         * build-aux/link-warning.h: Include <features.h>.
23238         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
23239         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
23240         Reported by Mike Frysinger <vapier@gentoo.org>.
23241
23242         Ensure that <features.h> is included before __GLIBC__ is tested.
23243         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
23244         Reported by Mike Frysinger <vapier@gentoo.org>.
23245
23246 2010-11-20  Bruno Haible  <bruno@clisp.org>
23247
23248         memmem: Fix autoconf test.
23249         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
23250
23251 2010-11-20  Bruno Haible  <bruno@clisp.org>
23252
23253         Port to uClibc.
23254         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
23255         * lib/fcntl.in.h: Likewise.
23256         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
23257         * lib/mbrtowc.c (mbrtowc): Likewise.
23258         * lib/relocatable.c (find_shared_library_fullname): Likewise.
23259         * lib/strerror_r.c: Likewise.
23260         * lib/unistr/u8-strnlen.c: Likewise.
23261         * lib/vasnprintf.c (decimal_point_char): Likewise.
23262         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23263         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
23264         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
23265         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
23266         * tests/test-sigaction.c (handler, main): Likewise.
23267         * lib/freading.h: Treat uClibc like a non-glibc platform.
23268         * lib/freading.c: Likewise.
23269         * lib/gettext.h: Likewise.
23270         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
23271         Likewise.
23272         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
23273         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
23274         * lib/propername.c (proper_name_utf8): Likewise.
23275         * lib/spawn.in.h: Likewise.
23276         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
23277         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
23278         mem_cd_iconveh_internal): Likewise.
23279         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
23280         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
23281         strstr, strcasestr): Likewise.
23282         * lib/unicodeio.c (unicode_to_mb): Likewise.
23283         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
23284         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
23285         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
23286         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
23287         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
23288         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
23289         * lib/unistr/u8-stpncpy.c: Likewise.
23290         * lib/vasnprintf.c (VASNPRINTF): Likewise.
23291         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
23292         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23293         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23294         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
23295         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
23296         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
23297         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
23298         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
23299         Likewise.
23300         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
23301         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23302         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
23303         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23304         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23305         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23306         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23307         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
23308         * tests/test-getopt.h (OPTIND_MIN): Likewise.
23309         * tests/test-striconveha.c (main): Likewise.
23310         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23311         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
23312         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
23313         * doc/posix-functions/getline.texi: Likewise.
23314         Reported by Mike Frysinger <vapier@gentoo.org>.
23315
23316 2010-11-20  Bruno Haible  <bruno@clisp.org>
23317
23318         nproc: Fix condition.
23319         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
23320         HAVE_PTHREAD_AFFINITY_NP.
23321
23322 2010-11-20  Bruno Haible  <bruno@clisp.org>
23323
23324         Fix a comment.
23325         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
23326
23327 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
23328
23329         ftoastr: don't assume snprintf
23330         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
23331         Implement a subset of snprintf here, by using sprintf safely.
23332         * modules/ftoastr (Depends-on): Remove snprintf.
23333
23334 2010-11-19  Jim Meyering  <meyering@redhat.com>
23335
23336         test-rename.h: fix compilation failure
23337         * tests/test-rename.h (test_rename): Add omitted "}".
23338
23339 2010-11-17  Jim Meyering  <meyering@redhat.com>
23340
23341         maint.mk: add a URL discussing the no-@acronym policy
23342         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
23343
23344 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
23345
23346         ftoastr: depend on snprintf, improve comments
23347         * lib/ftoastr.c: Also mention Loitsch's draft.
23348         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
23349         needed in the current implementation, but it might simplify
23350         speeding up the code later.
23351         * modules/ftoastr: Depend on snprintf; this improves portability.
23352         Suggested by Bruno Haible in the same email.
23353
23354         ftoastr: port to hosts lacking strtof and strtold
23355         Problem reported by Bruno Haible in
23356         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
23357         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
23358         environment and strtold (and presumably strtof) are not available.
23359         * modules/ftoastr (Files): Add m4/c-strtod.m4.
23360         (configure.ac): Require gl_C99_STRTOLD.
23361
23362 2010-11-18  Bruno Haible  <bruno@clisp.org>
23363
23364         c-strtold: Avoid link error on AIX 7.
23365         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
23366         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
23367         (gl_C_STRTOLD): Test whether strtold_l exists.
23368         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23369
23370 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
23371
23372         intprops: new macro INT_BITS_STRLEN_BOUND
23373         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
23374         ftoastr.h.  This exposes an internal of intprops.h that was formerly
23375         not exposed.  Also, it uses a slightly tighter bound than before;
23376         though this makes no practical difference, we might as well be as
23377         tight as we easily can.
23378
23379         ftoastr: new module, for lossless conversion of floats to short strings
23380         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
23381         * modules/ftoastr: New files.
23382
23383 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
23384
23385         bootstrap: port to Solaris sed
23386         * build-aux/bootstrap (get_version): Port to Solaris sed.
23387         See Ralf Wildenhues's note in
23388         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
23389
23390 2010-11-14  Jim Meyering  <meyering@redhat.com>
23391
23392         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
23393         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
23394         and move definition closer to sole use.
23395
23396 2010-11-13  Jim Meyering  <meyering@redhat.com>
23397
23398         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
23399         Now we require at least autoconf-2.59, which means the work-around
23400         is no longer needed.
23401         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
23402         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23403         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
23404         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
23405         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
23406
23407 2010-11-13  Bruno Haible  <bruno@clisp.org>
23408
23409         rename, renameat: Avoid test failures at NFS mounted locations.
23410         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
23411         functions.
23412         (test_rename): Use assert_nonexistent.
23413         * tests/test-rename.c: Include <dirent.h>.
23414         * tests/test-renameat.c: Likewise.
23415         Reported by Gary V. Vaughan <gary@gnu.org>.
23416
23417         rename, renameat: Document Linux bug with NFS
23418         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
23419         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
23420         * doc/posix-functions/renameat.texi: Likewise.
23421         Suggested by Eric Blake.
23422
23423 2010-11-13  Bruno Haible  <bruno@clisp.org>
23424
23425         rename test: Add comments.
23426         * tests/test-rename.h (test_rename): Add structure and comments.
23427
23428 2010-11-13  Eric Blake  <eblake@redhat.com>
23429
23430         maintainer-makefile: cover a few more files
23431         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
23432         scripts generated within C files, for libvirt.
23433
23434 2010-11-13  Bruno Haible  <bruno@clisp.org>
23435
23436         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
23437         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
23438         character, return the number of bytes that belong together, not always
23439         1.
23440         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
23441         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
23442         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
23443         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
23444         number of bytes of an invalid character.
23445         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
23446         (main): Invoke it.
23447         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
23448         results.
23449         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
23450         malformed byte sequences.
23451         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
23452         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
23453         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
23454         Reported by Ben Pfaff and Paolo Bonzini.
23455
23456 2010-11-13  Bruno Haible  <bruno@clisp.org>
23457
23458         openat: Work around glibc bug with fchownat() and empty file names.
23459         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
23460         (gl_FUNC_FCHOWNAT): Invoke it.
23461         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
23462         * doc/posix-functions/fchownat.texi: Document the glibc bug.
23463         Reported by Gary V. Vaughan <gary@gnu.org>.
23464
23465 2010-11-13  Bruno Haible  <bruno@clisp.org>
23466
23467         openat: Ensure autoconf macro ordering.
23468         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
23469         gl_USE_SYSTEM_EXTENSIONS.
23470         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
23471
23472 2010-11-13  Bruno Haible  <bruno@clisp.org>
23473
23474         Update comments.
23475         * lib/unistr/u8-check.c: Update file name in comments.
23476         * lib/unistr/u8-mblen.c: Likewise.
23477         * lib/unistr/u8-prev.c: Likewise.
23478         * lib/unistr/u8-strmblen.c: Likewise.
23479         * lib/unistr/u8-strmbtouc.c: Likewise.
23480
23481 2010-11-13  Jim Meyering  <meyering@redhat.com>
23482
23483         tests: avoid test failure on Solaris 10 due to lack of PATH export
23484         * tests/test-update-copyright.sh: Don't forget to export PATH.
23485
23486         init.sh: ensure that IFS is defined, just in case...
23487         * tests/init.sh (setup_): Ensure that IFS is defined,
23488         so that saving and restoring it works as expected.  This
23489         appears to be useful at least for an old version of dash
23490         from a long time ago (RH 6).  See here for details:
23491         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
23492
23493         maint.mk: tighten "test a == b" check
23494         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
23495         test to files that contain something like #!/bin/sh.
23496         Without this, coreutils would get two false positives in
23497         the comments of C source files.
23498
23499 2010-11-12  Eric Blake  <eblake@redhat.com>
23500
23501         bootstrap: fix typo in previous attempt
23502         * build-aux/bootstrap (buildreq): Correct the grouping.
23503         Reported by Paul Eggert.
23504
23505         maintainer-makefile: prohibit test x == x
23506         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
23507         Based on a report by Matthias Bolte.
23508
23509         bootstrap: allow FreeBSD gzip
23510         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
23511         which has no '.' and goes to stderr.
23512         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
23513         Reported by Matthias Bolte.
23514
23515         maintainer-makefile: check for i18n setup
23516         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
23517         will likely work.
23518
23519 2010-11-12  Bruno Haible  <bruno@clisp.org>
23520
23521         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
23522         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
23523         * lib/nanosleep.c (nanosleep): Likewise.
23524
23525 2010-11-11  Bruno Haible  <bruno@clisp.org>
23526
23527         fcntl-h: Fix for use of C++ on glibc systems.
23528         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23529         also on glibc systems in C++ mode.
23530         Reported by Gary V. Vaughan <gary@gnu.org>.
23531
23532 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23533
23534         mknod: avoid false failure with dash
23535         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
23536
23537 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
23538
23539         unlink: Fix "is it should" typo in diagnostic.
23540         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
23541         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
23542
23543 2010-11-11  Bruno Haible  <bruno@clisp.org>
23544
23545         Tests for module 'strerror_r-posix'.
23546         * modules/strerror_r-posix-tests: New file.
23547         * tests/test-strerror_r.c: New file.
23548         * tests/test-string-c++.cc: Check the signature of strerror_r.
23549
23550         New module 'strerror_r-posix'.
23551         * lib/string.in.h (strerror_r): New declaration.
23552         * lib/strerror_r.c: New file.
23553         * m4/strerror_r.m4: New file.
23554         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
23555         of strerror_r.
23556         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
23557         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23558         * modules/strerror_r-posix: New file.
23559         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
23560         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23561         * doc/posix-functions/strerror_r.texi: Mention the new module and the
23562         portability problems.
23563
23564 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
23565
23566         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
23567         line is also considered for output. Quoted function name in shell
23568         command, so temporary files for functions like MyClass::operator()
23569         are removed correctly without errors.
23570
23571 2010-11-09  Bruno Haible  <bruno@clisp.org>
23572
23573         * doc/posix-functions/strerror.texi: List more failing platforms.
23574
23575         * doc/posix-functions/strerror.texi: Add a comment.
23576
23577 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
23578
23579         fdopendir: fix bug on MacOS X when low on file descriptors
23580
23581         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
23582         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
23583         All callers changed.
23584         (fdopendir): Invoke save_cwd at the top level, not after using
23585         multiple dup() calls to use up file descriptors.  Then retry
23586         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
23587         less than the maximum number of open file descriptors, because
23588         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
23589         on Mac OS X 10.6.4 for tar 1.24
23590         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
23591         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
23592         and for tar 1.25
23593         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
23594
23595 2010-11-07  Bruno Haible  <bruno@clisp.org>
23596
23597         vasnprintf: Support I flag on glibc systems.
23598         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
23599         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
23600         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
23601         snprintf function.
23602         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
23603         glibc systems.
23604         * tests/test-vasnprintf-posix3.c: New file.
23605         * modules/vasnprintf-posix-tests (Files): Add it.
23606         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
23607
23608 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23609
23610         [html] Fix copy/paste bug: Use unique name for compiler warnings.
23611         * MODULES.html.sh: For compiler warnings, use name
23612         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
23613
23614 2010-11-05  Eric Blake  <eblake@redhat.com>
23615
23616         ceil, floor: avoid spurious failure with icc
23617         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
23618         [denormals-as-zero] when optimizing without -mieee-fp option.
23619         * tests/test-floorf2.c (floorf_reference): Likewise.
23620         * tests/test-ceilf1.c (dummy): New function.
23621         (main): Use it to outsmart icc's optimization.
23622         * tests/test-floorf1.c (dummy, main): Likewise.
23623
23624         tests: require working signbit
23625         * modules/ceilf-tests (Depends-on): Add signbit.
23626         * modules/ceill-tests (Depends-on): Likewise.
23627         * modules/floorf-tests (Depends-on): Likewise.
23628         * modules/floorl-tests (Depends-on): Likewise.
23629         * modules/round-tests (Depends-on): Likewise.
23630         * modules/roundf-tests (Depends-on): Likewise.
23631         * modules/roundl-tests (Depends-on): Likewise.
23632         * modules/trunc-tests (Depends-on): Likewise.
23633         * modules/truncf-tests (Depends-on): Likewise.
23634         * modules/truncl-tests (Depends-on): Likewise.
23635
23636         strtod: work around icc bug
23637         * lib/strtod.c (minus_zero): Define to working value.
23638         (strtod): Use it to avoid icc bug.
23639
23640         copysign: enhance tests
23641         * modules/copysign-tests (Files): Add minus-zero.h.
23642         * tests/test-copysign.c (main): Also test zeros.
23643
23644 2010-11-04  Eric Blake  <eblake@redhat.com>
23645
23646         ceil, floor, round, trunc: enhance tests of -0
23647         * tests/test-ceilf1.c (main): Ensure correct sign of result.
23648         * tests/test-ceill.c (main): Likewise.
23649         * tests/test-floorf1.c (main): Likewise.
23650         * tests/test-floorl.c (main): Likewise.
23651         * tests/test-round1.c (main): Likewise.
23652         * tests/test-roundf1.c (main): Likewise.
23653         * tests/test-roundl.c (main): Likewise.
23654         * tests/test-trunc1.c (main): Likewise.
23655         * tests/test-truncf1.c (main): Likewise.
23656         * tests/test-truncl.c (main): Likewise.
23657
23658 2010-11-04  Eric Blake  <eblake@redhat.com>
23659
23660         frexp, tests: work around ICC bug with -zero
23661         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
23662         works with more compilers.
23663         * tests/minus-zero.h: New file.
23664         * modules/ceilf-tests (Files): Include it.
23665         * modules/ceill-tests (Files): Likewise.
23666         * modules/floorf-tests (Files): Likewise.
23667         * modules/floorl-tests (Files): Likewise.
23668         * modules/frexp-nolibm-tests (Files): Likewise.
23669         * modules/frexp-tests (Files): Likewise.
23670         * modules/frexpl-nolibm-tests (Files): Likewise.
23671         * modules/frexpl-tests (Files): Likewise.
23672         * modules/isnan-tests (Files): Likewise.
23673         * modules/isnand-nolibm-tests (Files): Likewise.
23674         * modules/isnand-tests (Files): Likewise.
23675         * modules/isnanf-nolibm-tests (Files): Likewise.
23676         * modules/isnanf-tests (Files): Likewise.
23677         * modules/isnanl-nolibm-tests (Files): Likewise.
23678         * modules/isnanl-tests (Files): Likewise.
23679         * modules/round-tests (Files): Likewise.
23680         * modules/roundf-tests (Files): Likewise.
23681         * modules/roundl-tests (Files): Likewise.
23682         * modules/ldexpl-tests (Files): Likewise.
23683         * modules/signbit-tests (Files): Likewise.
23684         * modules/snprintf-posix-tests (Files): Likewise.
23685         * modules/sprintf-posix-tests (Files): Likewise.
23686         * modules/strtod-tests (Files): Likewise.
23687         * modules/trunc-tests (Files): Likewise.
23688         * modules/truncf-tests (Files): Likewise.
23689         * modules/truncl-tests (Files): Likewise.
23690         * modules/vsnprintf-posix-tests (Files): Likewise.
23691         * modules/vsprintf-posix-tests (Files): Likewise.
23692         * modules/vasnprintf-posix-tests (Files): Likewise.
23693         * modules/vasprintf-posix-tests (Files): Likewise.
23694         * tests/test-ceilf1.c (main): Use it.
23695         * tests/test-ceill.c (main): Likewise.
23696         * tests/test-floorf1.c (main): Likewise.
23697         * tests/test-floorl.c (main): Likewise.
23698         * tests/test-frexp.c (main): Likewise.
23699         * tests/test-frexpl.c (main): Likewise.
23700         * tests/test-isnan.c (main): Likewise.
23701         * tests/test-isnand.h (main): Likewise.
23702         * tests/test-isnanf.h (main): Likewise.
23703         * tests/test-isnanl.h (main): Likewise.
23704         * tests/test-ldexpl.c (main): Likewise.
23705         * tests/test-round.c (main): Likewise.
23706         * tests/test-roundf.c (main): Likewise.
23707         * tests/test-roundl.c (main): Likewise.
23708         * tests/test-signbit.c (test_signbitf, test_signbitd)
23709         (test_signbitl): Likewise.
23710         * tests/test-snprintf-posix.h (test_function): Likewise.
23711         * tests/test-sprintf-posix.h (test_function): Likewise.
23712         * tests/test-strtod.c (main): Likewise.
23713         * tests/test-trunc1.c (main): Likewise.
23714         * tests/test-truncf1.c (main): Likewise.
23715         * tests/test-truncl.c (main): Likewise.
23716
23717         isnanl: work around icc bug
23718         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
23719
23720 2010-11-03  Eric Blake  <eblake@redhat.com>
23721
23722         tests: fix compiler warnings
23723         * tests/test-getopt.h (test_getopt): Fix condition.
23724         * tests/test-getopt_long.h (test_getopt_long): Likewise.
23725         * tests/test-pipe2.c (main): Likewise.
23726         * tests/test-quotearg-simple.c (main): Avoid icc warning.
23727
23728         utimens: fix broken m4 test
23729         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
23730
23731 2010-10-28  Bruno Haible  <bruno@clisp.org>
23732
23733         posix_spawn*, getdtablesize: Relax license.
23734         * modules/posix_spawn (License): Change to LGPLv2+.
23735         * modules/posix_spawnp (License): Likewise.
23736         * modules/posix_spawn-internal (License): Likewise.
23737         * modules/posix_spawnattr_init (License): Likewise.
23738         * modules/posix_spawnattr_getflags (License): Likewise.
23739         * modules/posix_spawnattr_setflags (License): Likewise.
23740         * modules/posix_spawnattr_getpgroup (License): Likewise.
23741         * modules/posix_spawnattr_setpgroup (License): Likewise.
23742         * modules/posix_spawnattr_getschedparam (License): Likewise.
23743         * modules/posix_spawnattr_setschedparam (License): Likewise.
23744         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
23745         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
23746         * modules/posix_spawnattr_getsigdefault (License): Likewise.
23747         * modules/posix_spawnattr_setsigdefault (License): Likewise.
23748         * modules/posix_spawnattr_getsigmask (License): Likewise.
23749         * modules/posix_spawnattr_setsigmask (License): Likewise.
23750         * modules/posix_spawnattr_destroy (License): Likewise.
23751         * modules/posix_spawn_file_actions_init (License): Likewise.
23752         * modules/posix_spawn_file_actions_addclose (License): Likewise.
23753         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
23754         * modules/posix_spawn_file_actions_addopen (License): Likewise.
23755         * modules/posix_spawn_file_actions_destroy (License): Likewise.
23756         * modules/getdtablesize (License): Likewise.
23757         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
23758
23759 2010-10-26  Bruno Haible  <bruno@clisp.org>
23760
23761         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
23762         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
23763         Cygwin and mingw.
23764         Suggested by Eric Blake.
23765
23766 2010-10-26  Bruno Haible  <bruno@clisp.org>
23767
23768         stdio: Work around compilation error due to renameat() on Solaris 10.
23769         * lib/stdio.in.h: Include <unistd.h> on Solaris.
23770         * lib/renameat.c: Don't include <unistd.h> here.
23771         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
23772         Reported by Paul Eggert and Eric Blake.
23773
23774 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
23775
23776         renameat: port to Solaris 10, which declares renameat in unistd.h
23777
23778         * lib/renameat.c: Include unistd.h before stdio.h, because
23779         Solaris 10 declares renameat in unistd.h.  Problem encountered
23780         when building GNU tar 1.24 on Solaris 10.
23781
23782 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23783
23784         fdopendir: fix C89 compilation
23785         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
23786         compilers.
23787
23788 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
23789
23790         inttostr: simplify by removing unnecessary redundancy
23791         * lib/anytostr.c: Don't include verify.h.
23792         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
23793         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
23794         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
23795         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
23796         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
23797         Likewise.
23798         * modules/inttostr (Depends-on): Remove 'verify'.
23799
23800 2010-10-23  Bruno Haible  <bruno@clisp.org>
23801
23802         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
23803         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
23804         Reported by Eric Blake.
23805
23806 2010-10-23  Bruno Haible  <bruno@clisp.org>
23807
23808         Tests: Fix LOCALE_JA on MirBSD 10.
23809         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
23810         to an UTF-8 locale.
23811         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
23812         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23813         Reported by Eric Blake.
23814
23815 2010-10-21  Bruno Haible  <bruno@clisp.org>
23816
23817         nl_langinfo test: Avoid test failure on NetBSD 5.
23818         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
23819         Reported by Eric Blake.
23820
23821 2010-10-21  Eric Blake  <eblake@redhat.com>
23822
23823         c-stack: work around libsigsegv 2.8 bug
23824         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
23825         overflow on at least PowerPC64.
23826
23827 2010-10-17  Bruno Haible  <bruno@clisp.org>
23828
23829         userspec: Drop redundant file.
23830         * modules/userspec (Files): Remove lib/inttostr.h.
23831
23832 2010-10-17  Bruno Haible  <bruno@clisp.org>
23833
23834         nl_langinfo tests: Silence some warnings.
23835         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
23836         Reported by Jim Meyering.
23837
23838 2010-10-17  Bruno Haible  <bruno@clisp.org>
23839
23840         Make use of GCC's attribute __alloc_size__.
23841         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
23842         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
23843         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
23844         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
23845         __alloc_size__.
23846         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
23847         Suggested by Jim Meyering.
23848
23849 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
23850
23851         bootstrap: anchor .gitignore entries.
23852         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
23853         with...
23854         (insert_vc_ignore): ... this new function, which prepends `/' to
23855         all .gitignore entries before passing them to
23856         insert_sorted_if_absent.
23857
23858 2010-10-16  Bruno Haible  <bruno@clisp.org>
23859
23860         nextafter: Fix configure check.
23861         * modules/nextafter (configure.ac): Correct expected prototype.
23862
23863 2010-10-16  Bruno Haible  <bruno@clisp.org>
23864
23865         termios: Update documentation.
23866         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
23867
23868 2010-10-16  Bruno Haible  <bruno@clisp.org>
23869
23870         tests: Make them compile with TinyCC.
23871         * tests/test-strstr.c (main): Remove parentheses around array
23872         initializer.
23873
23874 2010-10-15  Eric Blake  <eblake@redhat.com>
23875
23876         ignore-value: make header idempotent
23877         * lib/ignore-value.h: Add double-inclusion guards.
23878         Reported by Stefan Berger.
23879
23880 2010-10-15  Jim Meyering  <meyering@redhat.com>
23881
23882         GNUmakefile: handle "stable" target, not "major"
23883         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
23884         lists in maint.mk and announce-gen.  Without this, "make stable"
23885         would fail to ensure that $(VERSION) is up to date.
23886
23887 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
23888
23889         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
23890         & co.
23891
23892 2010-10-14  Bruno Haible  <bruno@clisp.org>
23893
23894         vasnprintf: Don't set errno to 0.
23895         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
23896         block that sets it to 0.
23897         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
23898
23899 2010-10-14  Bruno Haible  <bruno@clisp.org>
23900
23901         socketlib: Fix.
23902         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
23903         gl_PREREQ_SYS_H_WINSOCK2.
23904         Reported by Ian Beckwith <ianb@erislabs.net>.
23905
23906 2010-10-13  Jim Meyering  <meyering@redhat.com>
23907
23908         test-select-stdin.c: avoid warn_unused_result warnings
23909         * tests/test-select-stdin.c: Include "macros.h".
23910         ASSERT that read and fflush succeed.
23911
23912 2010-10-13  Jim Meyering  <meyering@redhat.com>
23913
23914         git-version-gen: do require git-VC'd files in cwd
23915         * build-aux/git-version-gen: Reject a git version string
23916         if there are no commits associated with the current directory.
23917         This avoids an unlikely false-positive (unrelated dir whose parent
23918         repository also contains a tag matching v*), as pointed out
23919         by Giuseppe Scrivano in
23920         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
23921
23922 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
23923
23924         argv-iter: omit nonconforming declaration
23925         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
23926         enum arg_iter_err declaration, which doesn't conform to C99.
23927         Solaris 10 cc warns about this.
23928
23929 2010-10-13  Eric Blake  <eblake@redhat.com>
23930
23931         termios: fix compilation on mingw
23932         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
23933         (gl_TERMIOS_H): Adjust it on mingw.
23934         * modules/termios (Makefile.am): Substitute new key.
23935         * lib/termios.in.h (includes): Make include_next conditional.
23936         * doc/posix-headers/termios.texi (termios.h): Update
23937         documentation.
23938         Reported by Daniel P. Berrange.
23939
23940 2010-10-13  Jim Meyering  <meyering@redhat.com>
23941
23942         git-version-gen: don't require that .git/ be in the current dir
23943         * build-aux/git-version-gen: Adjust this script so that it works
23944         when run from any working directory beneath the top-level .git/-
23945         containing directory.  Inspired by a patch from Giuseppe Scrivano,
23946         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
23947
23948         test-select: avoid warn_unused_result warnings
23949         * tests/test-select.c: Include "macros.h".
23950         ASSERT that each call to read, write, and pipe succeeds.
23951         While not technically required, also check each "close".
23952         * modules/select-tests (Files): Add tests/macros.h.
23953
23954         test-symlinkat: remove declaration of unused local
23955         * tests/test-symlinkat.c (main): Remove unused local, "buf".
23956
23957         test-inttostr: avoid shadowing warnings
23958         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
23959         and use malloc rather than the stack for the same reason as
23960         mentioned in the comment justifying the other allocation.
23961
23962 2010-10-11  Bruno Haible  <bruno@clisp.org>
23963
23964         stdlib: Allow multiple gnulib generated replacements to coexist.
23965         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
23966         Reported by Sam Steingold <sds@gnu.org>.
23967
23968 2010-10-11  Jim Meyering  <meyering@redhat.com>
23969
23970         fix a documentation typo
23971         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
23972
23973 2010-10-11  Eric Blake  <eblake@redhat.com>
23974
23975         futimens: work around Solaris 11 bug
23976         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
23977         * tests/test-futimens.h (test_futimens): Enhance, rather than
23978         weaken test.
23979         * doc/posix-functions/futimens.texi (futimens): Document the bug.
23980
23981 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
23982
23983         Indentation.
23984         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
23985         higher-level operators more to the left.
23986
23987 2010-10-11  Jim Meyering  <meyering@redhat.com>
23988
23989         test-futimens: avoid unwarranted test failure on Solaris 5.11
23990         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
23991         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
23992         because it tries to dereference the NULL name argument.
23993
23994 2010-10-11  Bruno Haible  <bruno@clisp.org>
23995
23996         Indentation.
23997         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
23998         indentation.
23999
24000 2010-10-11  Jim Meyering  <meyering@redhat.com>
24001
24002         spawn.in.h: make indentation consistent with parentheses
24003         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
24004         Make indentation consistent with parentheses.
24005
24006 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
24007
24008         Fix mismatched parens in previous commit
24009         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
24010         parens.
24011
24012 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
24013
24014         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
24015
24016         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
24017         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
24018         * lib/malloca.c: Include "verify.h".
24019         (verify1): Remove, replacing with a verify call.
24020         * lib/relocwrapper.c (verify1): Likewise.
24021         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
24022         Likewise.
24023         * modules/malloca (Depends-on): Add 'verify'.
24024         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
24025         * modules/vasnprintf (Depends-on): Add 'verify'.
24026         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24027         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24028         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24029         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24030         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24031         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24032         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24033
24034         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
24035
24036         Formerly the style was sometimes 2*X - 1, because the C standard
24037         was wrongly thought to disallow ?: in integral constant expressions.
24038         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
24039         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
24040         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24041         * lib/stdint.in.h (_verify_intmax_size): Likewise.
24042         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
24043         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
24044         verify that time_t cannot be floating.
24045
24046 2010-10-08  Eric Blake  <eblake@redhat.com>
24047
24048         time: enforce recent POSIX ruling that time_t is integral
24049         * lib/time.in.h (__time_t_must_be_integral): Detect any
24050         problematic systems, allowing the rest of gnulib to assume POSIX.
24051
24052 2010-10-08  Jim Meyering  <meyering@redhat.com>
24053
24054         fdopendir: fix a bug on systems lacking openat and /proc support
24055         OpenBSD 4.7 is one such system.  The most noticeable effect was
24056         failure of any application making nontrivial use of fts: rm, du,
24057         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
24058           ./rm: traversal failed: `a': Bad file descriptor
24059         Debugging that, you see that even though FD 6 was closed just
24060         prior to the opendir call in fd_clone_opendir, its resulting
24061         dir->dd_fd was 8, rather than the expected value of 6:
24062
24063         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
24064         93                close (fd);
24065         (gdb) n
24066         94                dir = fd_clone_opendir (dupfd);
24067         (gdb) n
24068         95                saved_errno = errno;
24069         (gdb) p dir->dd_fd
24070         $11 = 8
24071
24072         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
24073         The problem is that on OpenBSD, fd_clone_opendir has to resort
24074         to using the old-style save/restore CWD mechanism, due to its
24075         lack of openat/proc support, and *that* would steal the FD (6)
24076         that opendir was supposed to use.
24077
24078         The fix is to squirrel away the desired FD so that save_cwd uses a
24079         different one, and then free the dest FD right before calling opendir.
24080         That guarantees opendir will use the required file descriptor.
24081
24082         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
24083
24084 2010-10-08  Bruno Haible  <bruno@clisp.org>
24085
24086         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
24087         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
24088
24089 2010-10-08  Bruno Haible  <bruno@clisp.org>
24090
24091         nanosleep: Make replacement POSIX compliant.
24092         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
24093         is out of range.
24094         Reported by Jim Meyering.
24095
24096 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
24097
24098         bootstrap: add hook for altering gnulib.mk, for Bison
24099         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
24100         the Bison bootstrapping process can rewrite file names and variables
24101         in this file before later parts of 'bootstrap' use the file.
24102         Bison wants to include lib/gnulib.mk from the top-level makefile,
24103         so it needs the file names in this file to be relative to the top
24104         level, not relative to lib; plus it needs variable names to be
24105         rewritten.
24106         (slurp): Use the new function.
24107
24108         bootstrap: reformat for readability
24109         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
24110
24111 2010-10-08  Eric Blake  <eblake@redhat.com>
24112
24113         docs: update cygwin progress
24114         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
24115         1.7.7.
24116         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
24117         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
24118         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
24119         * doc/posix-functions/carg.texi (carg): Likewise.
24120         * doc/posix-functions/cargf.texi (cargf): Likewise.
24121         * doc/posix-functions/casin.texi (casin): Likewise.
24122         * doc/posix-functions/casinf.texi (casinf): Likewise.
24123         * doc/posix-functions/casinh.texi (casinh): Likewise.
24124         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
24125         * doc/posix-functions/catan.texi (catan): Likewise.
24126         * doc/posix-functions/catanf.texi (catanf): Likewise.
24127         * doc/posix-functions/catanh.texi (catanh): Likewise.
24128         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
24129         * doc/posix-functions/ccos.texi (ccos): Likewise.
24130         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
24131         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
24132         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
24133         * doc/posix-functions/cexp.texi (cexp): Likewise.
24134         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
24135         * doc/posix-functions/cimag.texi (cimag): Likewise.
24136         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
24137         * doc/posix-functions/clog.texi (clog): Likewise.
24138         * doc/posix-functions/clogf.texi (clogf): Likewise.
24139         * doc/posix-functions/conj.texi (conj): Likewise.
24140         * doc/posix-functions/conjf.texi (conjf): Likewise.
24141         * doc/posix-functions/cpow.texi (cpow): Likewise.
24142         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
24143         * doc/posix-functions/cproj.texi (cproj): Likewise.
24144         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
24145         * doc/posix-functions/creal.texi (creal): Likewise.
24146         * doc/posix-functions/crealf.texi (crealf): Likewise.
24147         * doc/posix-functions/csin.texi (csin): Likewise.
24148         * doc/posix-functions/csinf.texi (csinf): Likewise.
24149         * doc/posix-functions/csinh.texi (csinh): Likewise.
24150         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
24151         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
24152         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
24153         * doc/posix-functions/ctan.texi (ctan): Likewise.
24154         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
24155         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
24156         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
24157         * doc/posix-headers/complex.texi (complex.h): Likewise.
24158
24159 2010-10-07  Jim Meyering  <meyering@redhat.com>
24160
24161         parse-datetime: avoid compilation failure on OpenBSD 4.7
24162         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
24163         This works around a compilation failure on OpenBSD 4.7:
24164         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
24165
24166 2010-10-07  Eric Blake  <eblake@redhat.com>
24167
24168         docs: update cygwin progress
24169         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
24170         1.7.6.
24171         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24172         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
24173         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
24174         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
24175         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
24176         Likewise.
24177         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
24178         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
24179         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
24180         Likewise.
24181         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
24182         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
24183         Likewise.
24184         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
24185         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
24186         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
24187         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
24188         Likewise.
24189         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
24190         Likewise.
24191         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
24192
24193         docs: update parse-datetime history
24194         * doc/parse-datetime.texi (Authors of parse_datetime): Better
24195         documentation of this function's history and alternatives.
24196
24197         cygwin: use more robust version check
24198         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
24199         exclude an eventual cygwin 1.9.1.
24200         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24201         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24202         (gl_FUNC_STRCASESTR): Likewise.
24203         Reported by Bruno Haible.
24204
24205 2010-10-06  Bruno Haible  <bruno@clisp.org>
24206
24207         string, sys_select: Avoid #including large headers unless necessary.
24208         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
24209         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
24210         OSF/1, BeOS, Haiku.
24211         Reported by Jim Meyering.
24212
24213 2010-10-05  Eric Blake  <eblake@redhat.com>
24214
24215         memmem, strstr, strcasestr: fix bug with long periodic needle
24216         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
24217         periodic needle having false positive.
24218         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
24219         and cygwin 1.7.7.
24220         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
24221         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24222         (gl_FUNC_STRCASESTR): Likewise.
24223         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24224         * tests/test-memmem.c (main): Expose the bug.
24225         * tests/test-strcasestr.c (main): Likewise.
24226         * tests/test-strstr.c (main): Likewise.
24227         * tests/test-c-strcasestr.c (main): Likewise.
24228         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
24229         * doc/posix-functions/strstr.texi (strstr): Likewise.
24230         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24231         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
24232
24233 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24234
24235         parse-datetime: do some more renaming
24236         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
24237         parse_datetime, not get_date.  Mention the renaming.
24238         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
24239         in comments.
24240         * m4/bison.m4: Likewise.
24241
24242 2010-10-05  Eric Blake  <eblake@redhat.com>
24243
24244         parse-datetime: better name than get_date
24245         * NEWS: Reword the deprecation notice.
24246         * modules/get_date: Rename to modules/parse-datetime.
24247         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
24248         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
24249         * lib/get_date.y: Rename to lib/parse-datetime.y.
24250         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
24251         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
24252         * doc/getdate.texi: Provide fallback wrapper.
24253         * lib/getdate.h: Move guts, and wrap...
24254         * lib/parse-datetime.h: ...new file.
24255         * lib/parse-datetime.y (get_date): Rename...
24256         (parse_datetime): ...to this.
24257         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
24258         (gl_PARSE_DATETIME): ...to this.
24259         * doc/posix-functions/getdate.texi (get_date): Provide fallback
24260         documentation.
24261         * modules/getdate (Files): Provide fallback docs and header.
24262         (Notice, Depends-on): Update references.
24263         * tests/test-parse-datetime.c: Likewise.
24264         * DEPENDENCIES: Likewise.
24265         * MODULES.html.sh (Date and time <time.h>): Likewise.
24266         * doc/parse-datetime.texi (Date input formats)
24267         (Authors of parse_datetime): Likewise.
24268         * modules/parse-datetime (Files, configure.ac, Makefile.am)
24269         (Include): Likewise.
24270         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
24271         * gnulib-tool: Likewise.
24272         * m4/bison.m4 (gl_BISON): Likewise.
24273         Suggested by Bruno Haible.
24274
24275 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24276
24277         more ports to Solaris tr, which needs [] around ranges
24278         * gnulib-tool: Solaris tr needs [] around ranges.
24279         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24280         * tests/test-pipe-filter-gi1.c (main): Likewise.
24281         * tests/test-pipe-filter-ii1.c (main): Likewise.
24282
24283 2010-10-05  Eric Blake  <eblake@redhat.com>
24284
24285         bootstrap: fix Solaris regression
24286         * build-aux/bootstrap (check_versions): Solaris tr still needs []
24287         around ranges.
24288         Reported by Pádraig Brady.
24289
24290         bootstrap: work with pkg-config
24291         * build-aux/bootstrap (check_versions): Also transliterate - in
24292         prerequisite name.
24293         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
24294         prerequisites that were already found, to avoid confusion.
24295         Reported by Justin Clift.
24296
24297         faccessat: remove unused wrappers
24298         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
24299         presence of these wrappers dragged in -lgen on Solaris.
24300         Reported by Clemens Brogi; fix suggested by Paul Eggert.
24301
24302 2010-10-05  Jim Meyering  <meyering@redhat.com>
24303
24304         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
24305         * Makefile (sc_pragma_columns): New syntax-check rule.
24306
24307 2010-10-04  Bruno Haible  <bruno@clisp.org>
24308
24309         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
24310         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
24311         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
24312         Reported by Bruce Korb and Eric Blake.
24313
24314 2010-10-04  Bruno Haible  <bruno@clisp.org>
24315
24316         threadlib: Make option --with-libpth-prefix work.
24317         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
24318         use $LIBPTH, not just -lpth.
24319
24320 2010-10-04  Bruno Haible  <bruno@clisp.org>
24321
24322         Avoid line length limitation from HP NonStop system header files.
24323         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
24324         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
24325         * lib/ctype.in.h: Likewise.
24326         * lib/dirent.in.h: Likewise.
24327         * lib/errno.in.h: Likewise.
24328         * lib/fcntl.in.h: Likewise.
24329         * lib/float.in.h: Likewise.
24330         * lib/getopt.in.h: Likewise.
24331         * lib/iconv.in.h: Likewise.
24332         * lib/inttypes.in.h: Likewise.
24333         * lib/langinfo.in.h: Likewise.
24334         * lib/locale.in.h: Likewise.
24335         * lib/math.in.h: Likewise.
24336         * lib/netdb.in.h: Likewise.
24337         * lib/netinet_in.in.h: Likewise.
24338         * lib/poll.in.h: Likewise.
24339         * lib/pthread.in.h: Likewise.
24340         * lib/pty.in.h: Likewise.
24341         * lib/sched.in.h: Likewise.
24342         * lib/se-selinux.in.h: Likewise.
24343         * lib/search.in.h: Likewise.
24344         * lib/signal.in.h: Likewise.
24345         * lib/spawn.in.h: Likewise.
24346         * lib/stdarg.in.h: Likewise.
24347         * lib/stddef.in.h: Likewise.
24348         * lib/stdint.in.h: Likewise.
24349         * lib/stdio.in.h: Likewise.
24350         * lib/stdlib.in.h: Likewise.
24351         * lib/string.in.h: Likewise.
24352         * lib/strings.in.h: Likewise.
24353         * lib/sys_file.in.h: Likewise.
24354         * lib/sys_ioctl.in.h: Likewise.
24355         * lib/sys_select.in.h: Likewise.
24356         * lib/sys_socket.in.h: Likewise.
24357         * lib/sys_stat.in.h: Likewise.
24358         * lib/sys_time.in.h: Likewise.
24359         * lib/sys_times.in.h: Likewise.
24360         * lib/sys_utsname.in.h: Likewise.
24361         * lib/sys_wait.in.h: Likewise.
24362         * lib/sysexits.in.h: Likewise.
24363         * lib/termios.in.h: Likewise.
24364         * lib/time.in.h: Likewise.
24365         * lib/unistd.in.h: Likewise.
24366         * lib/wchar.in.h: Likewise.
24367         * lib/wctype.in.h: Likewise.
24368         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
24369         * modules/ctype (Makefile.am): Likewise.
24370         * modules/dirent (Makefile.am): Likewise.
24371         * modules/errno (Makefile.am): Likewise.
24372         * modules/fcntl-h (Makefile.am): Likewise.
24373         * modules/float (Makefile.am): Likewise.
24374         * modules/getopt-posix (Makefile.am): Likewise.
24375         * modules/iconv-h (Makefile.am): Likewise.
24376         * modules/inttypes (Makefile.am): Likewise.
24377         * modules/langinfo (Makefile.am): Likewise.
24378         * modules/locale (Makefile.am): Likewise.
24379         * modules/math (Makefile.am): Likewise.
24380         * modules/netdb (Makefile.am): Likewise.
24381         * modules/netinet_in (Makefile.am): Likewise.
24382         * modules/poll-h (Makefile.am): Likewise.
24383         * modules/pthread (Makefile.am): Likewise.
24384         * modules/pty (Makefile.am): Likewise.
24385         * modules/sched (Makefile.am): Likewise.
24386         * modules/search (Makefile.am): Likewise.
24387         * modules/selinux-h (Makefile.am): Likewise.
24388         * modules/signal (Makefile.am): Likewise.
24389         * modules/spawn (Makefile.am): Likewise.
24390         * modules/stdarg (Makefile.am): Likewise.
24391         * modules/stddef (Makefile.am): Likewise.
24392         * modules/stdint (Makefile.am): Likewise.
24393         * modules/stdio (Makefile.am): Likewise.
24394         * modules/stdlib (Makefile.am): Likewise.
24395         * modules/string (Makefile.am): Likewise.
24396         * modules/strings (Makefile.am): Likewise.
24397         * modules/sys_file (Makefile.am): Likewise.
24398         * modules/sys_ioctl (Makefile.am): Likewise.
24399         * modules/sys_select (Makefile.am): Likewise.
24400         * modules/sys_socket (Makefile.am): Likewise.
24401         * modules/sys_stat (Makefile.am): Likewise.
24402         * modules/sys_time (Makefile.am): Likewise.
24403         * modules/sys_times (Makefile.am): Likewise.
24404         * modules/sys_utsname (Makefile.am): Likewise.
24405         * modules/sys_wait (Makefile.am): Likewise.
24406         * modules/sysexits (Makefile.am): Likewise.
24407         * modules/termios (Makefile.am): Likewise.
24408         * modules/time (Makefile.am): Likewise.
24409         * modules/unistd (Makefile.am): Likewise.
24410         * modules/wchar (Makefile.am): Likewise.
24411         * modules/wctype (Makefile.am): Likewise.
24412
24413 2010-10-04  Bruno Haible  <bruno@clisp.org>
24414
24415         read-file tests: Avoid a test failure on NonStop Kernel.
24416         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
24417         a regular file.
24418         Reported by Joachim Schmitz <schmitz@hp.com>.
24419
24420 2010-10-03  Bruno Haible  <bruno@clisp.org>
24421
24422         gnulib-tool: Fixes for --create-testdir with --libtool.
24423         * gnulib-tool (func_get_automake_snippet): Don't augment
24424         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
24425         an executable.
24426         (func_create_testdir): Handle module 'alloca' like func_import.
24427         Reported by Bruce Korb <bruce.korb@gmail.com>.
24428
24429 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
24430
24431         Avoid some lines longer than 80 characters.
24432         * lib/stdint.in.h: Break long comment lines.
24433         * lib/math.in.h: Likewise.
24434         (_GL_NUM_UINT_WORDS): New macro, for readability.
24435         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
24436         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
24437         * lib/stdlib.in.h: Likewise.
24438         * lib/spawn.in.h: Likewise.
24439         * lib/sys_socket.in.h: Update an URL.
24440         * lib/sys_stat.in.h: Break long line.
24441
24442 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
24443
24444         Improve pmccabe2html.
24445         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
24446         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
24447         when the sources change. Remove the line in the HTML about "Used
24448         ranges" (which implied that there might be other unused ranges),
24449         rename "Resume" to "Summary" (easier to understand for more users).
24450         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
24451         styles, and some unnecessary blank lines.
24452
24453 2010-10-03  Bruno Haible  <bruno@clisp.org>
24454             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
24455
24456         acl: Add support for ACLs on NonStop Kernel.
24457         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
24458         Check whether the function aclsort() exists.
24459         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
24460         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
24461         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24462         (acl_nontrivial [HAVE_ACLSORT]: New function.
24463         (file_has_acl): Implement for NonStop Kernel.
24464         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24465         (qset_acl): Implement for NonStop Kernel.
24466         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
24467         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24468         (main): Implement for NonStop Kernel.
24469         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
24470         Kernel. Handle this flavor.
24471         * tests/test-set-mode-acl.sh: Likewise.
24472         * tests/test-copy-acl.sh: Likewise.
24473         * tests/test-copy-file.sh: Likewise.
24474
24475 2010-10-03  Bruno Haible  <bruno@clisp.org>
24476
24477         Info about ACLs on NonStop Kernel.
24478         * doc/acl-resources.txt: Add info about NonStop Kernel.
24479         References by Joachim Schmitz <schmitz@hp.com>.
24480
24481 2010-10-02  Bruno Haible  <bruno@clisp.org>
24482
24483         Define missing EDQUOT on NonStop Kernel.
24484         * lib/errno.in.h (EDQUOT): Assign a value if missing.
24485         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
24486         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
24487         missing.
24488         * doc/posix-headers/errno.texi: Mention the NSK bug.
24489         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
24490         Reported by Joachim Schmitz <schmitz@hp.com>.
24491
24492 2010-10-02  Bruno Haible  <bruno@clisp.org>
24493
24494         Update doc for POSIX:2008.
24495         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
24496         Update URL of POSIX specification.
24497
24498 2010-10-02  Bruno Haible  <bruno@clisp.org>
24499
24500         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
24501         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
24502         from gnulib, not from Automake.
24503
24504 2010-10-02  Bruno Haible  <bruno@clisp.org>
24505
24506         New module 'system-posix'.
24507         * modules/system-posix: New file.
24508         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
24509         module is present.
24510         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
24511         GNULIB_SYSTEM_POSIX.
24512         * modules/stdlib (Depends-on): Remove sys_wait.
24513         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
24514         * doc/posix-functions/system.texi: Mention the new module.
24515         * doc/posix-headers/stdlib.texi: Likewise.
24516         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
24517         define test_sys_wait_macros to a no-op.
24518         Reported by Sam Steingold <sds@gnu.org>.
24519
24520 2010-09-30  Bruno Haible  <bruno@clisp.org>
24521
24522         More renaming from 'getdate' to 'get_date'.
24523         * doc/get_date.texi: Renamed from doc/getdate.texi.
24524         * modules/get_date (Files): Update.
24525         * MODULES.html.sh (Date and time <time.h>): Update.
24526         * DEPENDENCIES: Update.
24527         * gnulib-tool: Update comment.
24528         * m4/bison.m4 (gl_BISON): Likewise.
24529         * m4/get_date.m4 (gl_GET_DATE): Likewise.
24530
24531 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
24532
24533         bootstrap: support ACLOCAL_FLAGS during aclocal
24534         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
24535         can add additional -I dir for third-party .m4 files.
24536
24537 2010-09-30  Eric Blake  <eblake@redhat.com>
24538
24539         bootstrap: use glibtoolize on MacOS
24540         * build-aux/bootstrap (check_versions): Convert libtool into
24541         libtoolize.
24542         (tool search): Move libtool check earlier, and look for
24543         glibtoolize for MacOS.
24544         (gnulib_tool_options): Auto-add --libtool when appropriate.
24545         Reported by Justin Clift.
24546
24547         poll: fix typo that broke test on MacOS
24548         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
24549         Reported by Justin Clift.
24550
24551         getdate: rename to get_date
24552         Note: getdate.h is not renamed, to minimize client impact.
24553         * modules/getdate: Mark obsolete.  Move old contents...
24554         * modules/get_date: ...to new module name.
24555         * modules/getdate-tests: Move...
24556         * modules/get_date-tests: ...here.
24557         * m4/getdate.m4: Move...
24558         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
24559         * lib/getdate.y: Move...
24560         * lib/get_date.y: ...here.
24561         * tests/test-getdate.c: Move...
24562         * tests/test-get_date.c: ...here.
24563         * doc/posix-functions/getdate.texi (getdate): Update name.
24564         * NEWS: Mention the change.
24565
24566 2010-09-29  Bruno Haible  <bruno@clisp.org>
24567
24568         Separate the module 'waitpid' from the module 'sys_wait'.
24569         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
24570         present.
24571         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
24572         gl_MODULE_INDICATOR_FOR_TESTS.
24573         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
24574         * modules/sys_wait (Depends-on): Remove waitpid.
24575         (Makefile.am): Substitute GNULIB_WAITPID.
24576         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
24577         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
24578         signature only if the 'waitpid' module is present.
24579         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
24580         * NEWS: Mention the change.
24581         * modules/grantpt (Depends-on): Add waitpid.
24582         * modules/wait-process (Depends-on): Likewise.
24583
24584 2010-09-29  Bruno Haible  <bruno@clisp.org>
24585
24586         More tests for module 'sys_wait'.
24587         * modules/sys_wait-c++-tests: New file.
24588         * tests/test-sys_wait-c++.cc: New file.
24589         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
24590         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24591
24592 2010-09-29  Bruno Haible  <bruno@clisp.org>
24593
24594         New module 'waitpid'.
24595         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
24596         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
24597         Don't include <process.h>.
24598         (waitpid): Declare only, using modern idiom.
24599         * m4/waitpid.m4: New file.
24600         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
24601         * modules/waitpid: New file.
24602         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
24603         (Makefile.am): Update.
24604         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24605
24606 2010-09-28  Bruno Haible  <bruno@clisp.org>
24607
24608         poll: Assume ANSI C.
24609         * lib/poll.c (poll): Use an ANSI C declaration.
24610
24611 2010-09-28  Bruno Haible  <bruno@clisp.org>
24612
24613         poll-h: Create poll.h on all platforms.
24614         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
24615         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
24616         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
24617         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
24618         (gl_REPLACE_POLL_H): Don't set POLL_H.
24619         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
24620         * modules/poll-h (Depends-on): Add include_next.
24621         (Makefile.am): Create poll.h unconditionally. Substitute also
24622         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
24623
24624 2010-09-28  Bruno Haible  <bruno@clisp.org>
24625
24626         Tests for module 'poll-h'.
24627         * modules/poll-h-c++-tests: New file.
24628         * tests/test-poll-h-c++.cc: New file.
24629
24630         Tests for module 'poll-h'.
24631         * modules/poll-h-tests: New file.
24632         * tests/test-poll-h.c: New file.
24633
24634 2010-09-28  Bruno Haible  <bruno@clisp.org>
24635
24636         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
24637         * modules/poll-h (Depends-on): Add 'extensions'.
24638
24639 2010-09-28  Bruno Haible  <bruno@clisp.org>
24640
24641         New module 'poll-h'.
24642         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
24643         (poll): Use modern idiom.
24644         * modules/poll-h: New file.
24645         * modules/poll (Files): Remove lib/poll.in.h.
24646         (Depends-on): Add poll-h.
24647         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
24648         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
24649         * m4/poll_h.m4: New file.
24650         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
24651         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
24652         and invoke gl_REPLACE_POLL_H.
24653         * lib/poll.c: Use common idiom.
24654         * tests/test-poll.c: Likewise.
24655         * doc/posix-headers/poll.texi: Mention the poll-h module.
24656         Suggested by Eric Blake.
24657
24658 2010-09-26  Bruno Haible  <bruno@clisp.org>
24659
24660         sys_wait: Implement WSTOPSIG.
24661         * lib/sys_wait.in.h (WSTOPSIG): New macro.
24662         Reported by Simon Josefsson.
24663
24664 2010-09-26  Simon Josefsson  <simon@josefsson.org>
24665
24666         stdlib, sys_wait: Avoid compilation error on mingw.
24667         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
24668
24669 2010-09-26  Bruno Haible  <bruno@clisp.org>
24670
24671         stdlib tests: Avoid code duplication.
24672         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
24673         * modules/sys_wait-tests (Files): Likewise.
24674         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
24675         * tests/test-stdlib.c: Include test-sys_wait.h.
24676         (main): Invoke test_sys_wait_macros.
24677         * tests/test-sys_wait.c: Include test-sys_wait.h.
24678         (main): Invoke test_sys_wait_macros.
24679
24680 2010-09-25  Simon Josefsson  <simon@josefsson.org>
24681
24682         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
24683         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
24684         sure Windows sockets are working before calling getaddrinfo.
24685         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
24686         * doc/gnulib.texi (Windows sockets): Fix typo.
24687
24688 2010-09-25  Bruno Haible  <bruno@clisp.org>
24689
24690         Tests for module 'regex-quote'.
24691         * modules/regex-quote-tests: New file.
24692         * tests/test-regex-quote.c: New file.
24693
24694         New module 'regex-quote'.
24695         * lib/regex-quote.h: New file.
24696         * lib/regex-quote.c: New file.
24697         * modules/regex-quote: New file.
24698         Suggested by Reuben Thomas <rrt@sc3d.org>.
24699
24700 2010-09-24  Bruno Haible  <bruno@clisp.org>
24701
24702         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
24703         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
24704
24705 2010-09-23  Bruno Haible  <bruno@clisp.org>
24706
24707         setenv: Relax license.
24708         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
24709         Blake.
24710         Requested by Eric Blake.
24711
24712 2010-09-22  Bruno Haible  <bruno@clisp.org>
24713
24714         termios: Relax license.
24715         * modules/termios (License): Change to LGPLv2+.
24716         Requested by Eric Blake.
24717
24718 2010-09-22  Bruno Haible  <bruno@clisp.org>
24719
24720         threadlib: Allow the package to change the default to 'no'.
24721         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
24722         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
24723         Reported by Paul Eggert.
24724
24725 2010-09-22  Pádraig Brady  <P@draigbrady.com>
24726             Bruno Haible  <bruno@clisp.org>
24727
24728         Fix endless loop in mbmemcasecoll.
24729         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
24730         byte.
24731         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
24732
24733 2010-09-22  Bruno Haible  <bruno@clisp.org>
24734
24735         Tests for module 'memcoll'.
24736         * modules/memcoll-tests: New file.
24737         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
24738
24739         memcoll, xmemcoll: Clarify size vs. length.
24740         * modules/memcoll.c (memcoll0): Clarify specification.
24741         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
24742         passed to collate_error.
24743
24744 2010-09-22  Bruno Haible  <bruno@clisp.org>
24745
24746         Tests for module 'memcasecmp'.
24747         * modules/memcasecmp-tests: New file.
24748         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
24749
24750 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24751
24752         * lib/pthread.in.h: Add split double-inclusion guard, and include
24753         system <pthread.h> if there is one.  Use @@-style as in other
24754         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
24755         pthread.h doesn't.
24756         (pthread_mutexattr_destroy, pthread_mutexattr_init):
24757         (pthread_mutexattr_settype, pthread_mutex_trylock):
24758         New static inline functions, if there's no system <pthread.h>.
24759         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
24760         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
24761         Approximate with mutexes if the system lacks spinlocks, as in
24762         MacOS.
24763         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
24764         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
24765         @@-style.  Check for spinlocks separately.
24766         (gl_PTHREAD_DEFAULTS): New macro.
24767         * modules/pthread: Redo to use a more typical style for in.h files.
24768
24769 2010-09-21  Eric Blake  <eblake@redhat.com>
24770
24771         net_if: enhance tests
24772         * tests/test-net_if.c (main): Move signature checks earlier.
24773         Print failures to stderr.
24774         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
24775         Document the bug that we do not yet fix.
24776
24777 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
24778
24779         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
24780         about gnulib, not GSS.
24781
24782 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
24783
24784         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
24785         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
24786         for Emacs.
24787         * build-aux/pmccabe2html: Make Makefile.am example code more
24788         cut-and-paste friendly.
24789
24790 2010-09-21  Simon Josefsson  <simon@josefsson.org>
24791
24792         * tests/test-net_if.c: New file.
24793         * modules/net_if-tests: New file.
24794
24795 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
24796
24797         pthread: add pthread_spin_destroy
24798         * lib/pthread.in.h (pthread_spin_destroy): New function.
24799
24800 2010-09-19  Bruno Haible  <bruno@clisp.org>
24801
24802         gnulib-tool: Fix --help output.
24803         * gnulib-tool (func_usage): Fix help message.
24804         Reported by Reuben Thomas <rrt@sc3d.org>.
24805
24806 2010-09-18  Jim Meyering  <meyering@redhat.com>
24807
24808         maint.mk: avoid unexpanded \n in two diagnostics
24809         * top/maint.mk (sc_prohibit_always_true_header_tests):
24810         Don't use a literal \n in a halt=... assignment.  It would not be
24811         expanded, and the two \n bytes would appear in the diagnostic output
24812         rather than the desired newline.  Use halt=$$(printf ... instead.
24813         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
24814
24815 2010-09-18  Bruno Haible  <bruno@clisp.org>
24816
24817         netinet_in: Doc tweak.
24818         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
24819         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24820
24821 2010-09-18  Jim Meyering  <meyering@redhat.com>
24822
24823         init.sh: correct an outdated comment
24824         * tests/init.sh (create_exe_shims_):  s/function/alias/
24825
24826         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
24827         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
24828         a file named "*.exe" is removed between the glob expansion and the
24829         processing of that oddly named file.
24830
24831 2010-09-17  Eric Blake  <eblake@redhat.com>
24832
24833         mirbsd: add some more support
24834         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
24835         in BSD family.
24836         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
24837         devices as OpenBSD.
24838         * m4/host-os.m4 (mirbsd): Add MirBSD.
24839
24840         tests: fix unportable assumption on sys/wait.h
24841         * tests/test-sys_wait.c (main): Relax test.
24842         * tests/test-stdlib.c (main): Likewise.
24843
24844         init.sh: accomodate directory with no .exes
24845         * tests/init.sh: Accomodate directory containing only scripts.
24846
24847         tests: avoid compiler warning
24848         * tests/test-stdlib.c (main): Use the variable.
24849
24850         fdutimens, fdutimensat: update signature, again
24851         * lib/utimens.h (gl_futimens): Delete, and move signature...
24852         (fdutimens): ...here.
24853         (fdutimensat): Rearrange signature.
24854         (lutimensat): Rename variable for clarity.
24855         * lib/fdutimensat.c (fdutimensat): Update signature.
24856         * lib/utimens.c (fdutimens): Likewise.
24857         (gl_futimens): Delete.
24858         (utimens, lutimens): Update callers.
24859         * lib/futimens.c (futimens): Likewise.
24860         * tests/test-fdutimensat.c: Likewise.
24861         * tests/test-utimens.c: Likewise.
24862         * tests/test-futimens.h: Update comment.
24863         * NEWS: Mention this.
24864         Suggested by Paul Eggert.
24865
24866 2010-09-17  Bruno Haible  <bruno@clisp.org>
24867
24868         Take over the maintenance of some older macros from Autoconf.
24869         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
24870         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
24871         GNU Autoconf.
24872         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
24873         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
24874
24875 2010-09-17  Eric Blake  <eblake@redhat.com>
24876
24877         fdutimensat: drop atflag validation
24878         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
24879         with valid fd, to close a race scenario where futimens is
24880         unsupported and FILE was replaced by a symlink.
24881         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
24882         accordingly.
24883         Suggested by Paul Eggert.
24884
24885 2010-09-16  Bruno Haible  <bruno@clisp.org>
24886
24887         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
24888         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
24889
24890 2010-09-16  Bruno Haible  <bruno@clisp.org>
24891
24892         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
24893         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
24894         login_tty exists.
24895         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24896
24897 2010-09-16  Bruno Haible  <bruno@clisp.org>
24898
24899         login_tty: Make the replacement code work on BSD systems.
24900         * lib/login_tty.c: Include <sys/ioctl.h>.
24901         (login_tty): Use ioctl TIOCSCTTY when available.
24902         * modules/login_tty (Depends-on): Add sys_ioctl.
24903         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24904
24905 2010-09-16  Bruno Haible  <bruno@clisp.org>
24906
24907         login_tty: Stricter unit test.
24908         * modules/login_tty-tests (Depends-on): Add tcgetsid.
24909         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
24910         and tcgetsid() after login_tty.
24911         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24912
24913 2010-09-16  Bruno Haible  <bruno@clisp.org>
24914
24915         New module 'tcgetsid'.
24916         * lib/tcgetsid.c: New file.
24917         * m4/tcgetsid.m4: New file.
24918         * modules/tcgetsid: New file.
24919         * modules/termios (Depends-on): Add c++defs, warn-on-use.
24920         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
24921         GNULIB_TCGETSID, HAVE_TCGETSID.
24922         * lib/termios.in.h: Include <sys/types.h>.
24923         (tcgetsid): New declaration.
24924         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
24925         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
24926         * doc/posix-functions/tcgetsid.texi: Mention the new module.
24927         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
24928
24929 2010-09-16  Bruno Haible  <bruno@clisp.org>
24930
24931         Tests for module 'termios'.
24932         * modules/termios-c++-tests: New file.
24933         * modules/termios-tests: New file.
24934         * tests/test-termios-c++.cc: New file.
24935         * tests/test-termios.c: New file.
24936
24937         New module 'termios'.
24938         * modules/termios: New file.
24939         * lib/termios.in.h: New file.
24940         * m4/termios_h.m4: New file.
24941         * doc/posix-headers/termios.texi: Mention the new module.
24942
24943 2010-09-16  Eric Blake  <eblake@redhat.com>
24944
24945         fdutimensat: add an atflag parameter
24946         * lib/fdutimensat.c (fdutimensat): Add new parameter.
24947         * lib/utimens.h (fdutimensat): Update prototype.
24948         * tests/test-fdutimensat.c: Adjust test to match.
24949         * NEWS: Document the change.
24950         Suggested by Paul Eggert.
24951
24952 2010-09-16  Bruno Haible  <bruno@clisp.org>
24953
24954         Fix typos in comments.
24955         * lib/striconveh.h: Fix typo in comment.
24956         * lib/login_tty.c (login_tty): Likewise.
24957
24958 2010-09-15  Bruno Haible  <bruno@clisp.org>
24959
24960         stdlib: clarify MirBSD WEXITSTATUS bug
24961         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
24962         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
24963
24964 2010-09-15  Eric Blake  <eblake@redhat.com>
24965
24966         stdlib: work around MirBSD WEXITSTATUS bug
24967         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
24968         * modules/stdlib (Depends-on): Add sys_wait.
24969         * tests/test-sys_wait.c (main): Enhance test.
24970         * tests/test-stdlib.c (main): Likewise.
24971         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
24972
24973         docs: mention MacOS issue with WEXITSTATUS(constant)
24974         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
24975         issue.
24976         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
24977
24978         strnlen: add tests
24979         * modules/strnlen-tests: New file.
24980         * tests/test-strnlen.c: Likewise.
24981
24982 2010-09-14  Bruno Haible  <bruno@clisp.org>
24983
24984         unistr/base: Avoid link errors when module 'libunistring' is also used.
24985         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
24986         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
24987         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
24988         Declare also when HAVE_LIBUNISTRING is set.
24989         Reported by Pádraig Brady <P@draigbrady.com>.
24990
24991 2010-09-14  Eric Blake  <eblake@redhat.com>
24992
24993         test-rawmemchr: make more robust
24994         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
24995         (Depends-on, configure.ac): Add needed prerequisites to use it.
24996         * modules/memchr-tests (Files, Depends-on, configure.ac):
24997         Likewise, to avoid implicit reliance on memchr module prereqs.
24998         * tests/test-memchr.c (main): Ensure proper masking.
24999         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
25000         reads.
25001
25002         memchr: detect glibc Alpha bug
25003         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
25004         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
25005         Alpha.
25006         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
25007         * tests/test-memchr.c (main): Enhance test.
25008         Reported by Nelson H. F. Beebe.
25009
25010 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25011
25012         fts, getcwd, glob: audit for dirfd returning -1
25013         * lib/fts.c (opendir): Remove #define; no longer used.
25014         (opendirat): New arg PDIR_FD.  All callers changed.
25015         (fts_build, _opendir2): Use new opendirat to avoid the need for
25016         dirfd, or for checking whether dirfd returns a negative value.
25017         Don't use opendir; always use openat followed by fdopendir.
25018         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
25019         it.
25020         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
25021         returns -1 here.
25022         * modules/fts (Depends-on): Remove dirfd.
25023         * modules/getcwd (Depends-on): Likewise.
25024
25025 2010-09-13  Eric Blake  <eblake@redhat.com>
25026
25027         float: fix broken MirBSD header
25028         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
25029         * doc/posix-headers/float.texi (float.h): Document it.
25030
25031 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25032
25033         fts: use O_NOFOLLOW to avoid race condition when opening a directory
25034         * lib/fts.c (opendirat): New arg extra_flags.
25035         (__opendir2): Use it to avoid following symlinks when opening
25036         a directory, if symlinks are not supposed to be followed.  See
25037         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
25038
25039         fdopendir: preserve argument fd before returning
25040         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
25041         (fdopendir_with_dup, fd_clone_opendir): New static functions.
25042         (fdopendir): Use them, arranging for FD to be open to the same
25043         directory that it was when it started.  (It might be temporarily
25044         closed while fdopendir is running, so this not thread- or
25045         signal-safe.)  Be careful to do the right thing even when file
25046         descriptors are scarce and dup fails with errno == EMFILE.  See
25047         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
25048
25049 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
25050
25051         regex: Pass the system regex if its only problem is 32-bit regoff_t.
25052         * NEWS: Document change.
25053         * m4/regex.m4: Disable test for regoff_t size.
25054
25055 2010-09-13  Jim Meyering  <meyering@redhat.com>
25056
25057         fts: don't operate on an invalid file descriptor after failed dup
25058         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
25059         negative file descriptor.
25060
25061 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
25062
25063         savedir: add streamsavedir, deprecate fdsavedir
25064         * NEWS: Mention deprecation of fdsavedir.
25065         * lib/savedir.c (streamsavedir): New extern function, whose name
25066         ends in "savedir" to be consistent with the others.  This differs
25067         from savedirstream in that it doesn't close its argument.  The
25068         next version of GNU tar will use this instead of fdsavedir, to
25069         avoid some race conditions and conserve file descriptors.
25070         (savedirstream): Reimplement as a wrapper around streamsavedir.
25071         (fdsavedir): Add a comment deprecating this function.  As far as
25072         I know, only GNU tar used it, and GNU tar doesn't need it any more.
25073         * lib/savedir.h (streamsavedir): New decl.
25074         (fdsavedir): Add a comment deprecating this.
25075
25076 2010-09-10  Bruno Haible  <bruno@clisp.org>
25077
25078         langinfo: Fix last commit.
25079         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
25080         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
25081         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25082
25083 2010-09-10  Bruno Haible  <bruno@clisp.org>
25084
25085         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
25086         * lib/progreloc.c (O_EXEC): Define fallback.
25087
25088 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
25089
25090         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
25091         * NEWS: Document recent changes to fcntl-h.
25092         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
25093         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
25094         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
25095         Similarly for O_SEARCH; this last was already true, but not documented.
25096         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
25097         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
25098         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
25099         Likewise.
25100         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
25101         is zero, not whether it is defined.
25102         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
25103         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
25104         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
25105
25106 2010-09-10  Bruno Haible  <bruno@clisp.org>
25107
25108         langinfo, nl_langinfo: Fix for IRIX 5.3.
25109         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
25110         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
25111         HAVE_LANGINFO_YESEXPR.
25112         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
25113         HAVE_LANGINFO_YESEXPR.
25114         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
25115         HAVE_LANGINFO_T_FMT_AMPM is 0.
25116         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
25117         HAVE_LANGINFO_YESEXPR is 0.
25118         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
25119         NOEXPR.
25120         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
25121         * doc/posix-functions/nl_langinfo.texi: Likewise.
25122         Reported by Eric Blake.
25123
25124 2010-09-10  Bruno Haible  <bruno@clisp.org>
25125
25126         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
25127         * doc/glibc-functions/login_tty.texi: Mention the include file problem
25128         on FreeBSD 8.0 and OpenBSD 4.6.
25129         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
25130         * m4/pty_h.m4 (gl_PTY_H): Likewise.
25131         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
25132         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
25133         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
25134         ac_includes_default.
25135         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25136
25137 2010-09-09  Eric Blake  <eblake@redhat.com>
25138
25139         strsignal: work around NetBSD bug
25140         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
25141         * lib/string.in.h (includes): Likewise.
25142         * doc/posix-functions/strsignal.texi (strsignal): Document the
25143         bug.
25144         Reported by Nelson H. F. Beebe.
25145
25146         gnulib-tool: work with NetBSD /bin/sh
25147         * gnulib-tool (func_cache_var, func_cache_lookup_module)
25148         (func_get_description, func_get_comment, func_get_status)
25149         (func_get_notice, func_get_applicability, func_get_filelist)
25150         (func_get_dependencies, func_get_autoconf_early_snippet)
25151         (func_get_autoconf_snippet, func_get_automake_snippet)
25152         (func_get_include_directive, func_get_link_directive)
25153         (func_get_license, func_get_maintainer, func_import): Avoid
25154         shell syntax errors from parsing syntax extensions.
25155
25156 2010-09-09  Bruno Haible  <bruno@clisp.org>
25157
25158         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25159         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
25160         a reliable way to determine whether the 'alias' command works.
25161
25162 2010-09-08  Jim Meyering  <meyering@redhat.com>
25163
25164         init.sh: penalize a set-x-impaired shell; don't disqualify it
25165         * tests/init.sh: Too many shells corrupt application stderr when
25166         you set -x, so we can't afford to disqualify them, since at least
25167         on Irix-6.5, that would disqualify all bourne shells.
25168         Instead, use a two-pass approach.
25169         On the first pass, try to find a shell that meets the stricter
25170         condition that set -x does not corrupt stderr.
25171         If no shell meets the stricter condition, retest each candidate
25172         shell, but without that extra condition.  Finally, when
25173         VERBOSE=yes is requested and set -x might cause trouble, simply
25174         issue a warning and refrain from enabling debug output.
25175
25176 2010-09-08  Eric Blake  <eblake@redhat.com>
25177
25178         unsetenv: fix OpenBSD bug
25179         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
25180         * doc/posix-functions/unsetenv.texi (unsetenv): Update
25181         documentation.
25182         Reported by Jim Meyering.
25183
25184         strtod: work around IRIX 6.5 bug
25185         * lib/strtod.c (strtod): Reparse number on shorter string if
25186         exponent parse was invalid.
25187         * tests/test-strtod.c (main): Add check for "0x1p 2".
25188         Reported by Tom G. Christensen.
25189
25190         getopt: optimize previous patch
25191         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
25192         empty variable.  Speed up awk script.
25193         Reported by Paolo Bonzini.
25194
25195 2010-09-08  Jim Meyering  <meyering@redhat.com>
25196
25197         test.sh: disqualify shells for which set -x corrupts stderr
25198         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
25199         and OpenBSD 4.7.  They make it so with "set -x", environment settings
25200         appear in stderr output.  For example, this command:
25201             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
25202         prints "P=1" on those two systems:
25203
25204 2010-09-08  Bruno Haible  <bruno@clisp.org>
25205
25206         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25207         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
25208         commands, because some shells ignore redirections when there is an
25209         error in the command lookup.
25210         Reported by Eric Blake.
25211
25212 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
25213
25214         * lib/regex.h: Fix a mention of `regex_compile' (should be
25215         `re_compile_pattern').
25216         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
25217         (re_set_registers): Correct name of parameter in comment.
25218
25219         * doc/regex.texi: Add documentation for missing syntax flags.
25220         Remove commented-out documentation of defunct syntax option
25221         RE_NO_EMPTY_ALTS.
25222         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
25223         Add documentation of re_set_registers.
25224         Document trick to re-use a pattern buffer by setting fastmap manually.
25225         Update documentation of struct re_pattern_buffer per public members.
25226         Uncomment documentation of equivalence class operators and
25227         collating symbol operators, since they are now implemented,
25228         Explain leftmost-longest matching in relation to alternatives.
25229         Tidy documentation of substring matching.
25230         Remove POSIX documentation, which is done better in
25231         glibc, and refer the reader there. Keep BSD API documentation, as
25232         that is not readily available elsewhere.
25233
25234 2010-09-07  Eric Blake  <eblake@redhat.com>
25235
25236         getopt: handle POSIXLY_CORRECT set but not exported
25237         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
25238         export state of POSIXLY_CORRECT, due to bash set -o posix.
25239         Reported by Dustin J. Mitchell.
25240
25241 2010-09-05  Bruno Haible  <bruno@clisp.org>
25242
25243         gnulib-tool: Highlight the changed options.
25244         * gnulib-tool (func_usage): Display the --import, --add-import,
25245         --remove-import explanations in bold font.
25246
25247 2010-09-06  Karl Berry  <karl@gnu.org>
25248
25249         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
25250
25251 2010-09-05  Bruno Haible  <bruno@clisp.org>
25252
25253         uniwidth/width: Update comment.
25254         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
25255         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
25256
25257 2010-09-05  Bruno Haible  <bruno@clisp.org>
25258
25259         isinf, isnan: Relax license.
25260         * modules/isinf (License): Change from GPL to LGPL, with consent from
25261         Ben Pfaff.
25262         * modules/isnan (License): Likewise.
25263         Requested by Ludovic Courtès.
25264
25265 2010-09-04  Bruno Haible  <bruno@clisp.org>
25266
25267         gnulib-tool: Help migration from --import to --add-import or --update.
25268         * gnulib-tool: Emit a verbose error message when --import is used
25269         without any module name.
25270
25271 2010-09-04  Bruno Haible  <bruno@clisp.org>
25272
25273         Update doc about gnulib-tool.
25274         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
25275         'gnulib-tool --update' in more detail.
25276         Reported by Eric Blake.
25277
25278 2010-09-04  Bruno Haible  <bruno@clisp.org>
25279
25280         gnulib-tool: Change --import. New options --add/remove-import.
25281         * gnulib-tool: New options --add-import, --remove-import.
25282         (func_usage): Document them.
25283         (have_associative): Define always.
25284         (func_import): In import mode, don't merge the specified settings with
25285         the cached settings. Implement remove-import mode.
25286         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
25287         Explain when to use them versus --import.
25288         (Simple update): Use --add-import instead of --import.
25289         * NEWS: Mention the change.
25290
25291 2010-09-04  Bruno Haible  <bruno@clisp.org>
25292
25293         * doc/gnulib-tool.texi (Initial import): Update paragraph about
25294         separate gnulib.mk.
25295
25296 2010-09-04  Bruno Haible  <bruno@clisp.org>
25297
25298         gnulib-tool: Don't talk about CVS any more.
25299         * gnulib-tool (func_usage, func_import): Write "version control"
25300         instead of CVS.
25301
25302 2010-09-04  Jim Meyering  <meyering@redhat.com>
25303
25304         maint.mk: avoid obscure sc_copyright_check failure in coreutils
25305         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
25306         false positives (whose names may be ill-chosen) when searching
25307         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
25308         would cause a false-positive.
25309
25310         avoid coreutils "make distcheck" failure
25311         Coreutils tests with an absolute build directory name that contains
25312         a space.  Not quoting this directory name caused a failure.
25313         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
25314         * tests/test-vc-list-files-cvs.sh: Likewise.
25315
25316 2010-09-04  Bruno Haible  <bruno@clisp.org>
25317
25318         gnulib-tool: Avoid error when run in a package without Makefile.am.
25319         * gnulib-tool: When collecting the m4dirs in a package that does not
25320         have a Makefile.am, eliminate those directories that contain no
25321         gnulib-cache.m4. Fix expression that counts these directories.
25322
25323 2010-09-04  Bruno Haible  <bruno@clisp.org>
25324
25325         update-copyright test: Improve output when perl is missing or too old.
25326         * tests/test-update-copyright.sh: Move test of Perl version down after
25327         the test whether Perl exists. Provide an explanation relating Perl's
25328         error message to Automake's SKIP: message.
25329
25330 2010-09-04  Bruno Haible  <bruno@clisp.org>
25331
25332         Don't augment PATH in TESTS_ENVIRONMENT.
25333         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
25334         set abs_aux_dir instead of augmenting PATH.
25335         * modules/vc-list-files-tests (Makefile.am): Likewise.
25336         * tests/test-update-copyright.sh: Augment PATH here.
25337         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
25338         path_prepend_.
25339         * tests/test-vc-list-files-git.sh: Likewise.
25340
25341 2010-09-04  Jim Meyering  <meyering@redhat.com>
25342
25343         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
25344         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
25345
25346 2010-09-04  Bruno Haible  <bruno@clisp.org>
25347
25348         strdup: Fix compilation error in C++ mode.
25349         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
25350         the macro.
25351
25352 2010-09-04  Bruno Haible  <bruno@clisp.org>
25353
25354         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
25355         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
25356         macro into a function.
25357         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25358
25359 2010-09-04  Bruno Haible  <bruno@clisp.org>
25360
25361         Set PATH_SEPARATOR the same way autoconf does.
25362         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
25363         the value of PATH_SEPARATOR the same way autoconf-generated configure
25364         scripts do.
25365         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
25366         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
25367
25368 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25369
25370         Set PATH_SEPARATOR the same way autoconf does.
25371         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
25372         the same way autoconf-generated configure scripts do.
25373         * posix-modules: Likewise.
25374
25375 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
25376
25377         hash: fix safe_hasher const typo
25378         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
25379         const; otherwise, there is a type error later.
25380
25381 2010-09-02  Jim Meyering  <meyering@redhat.com>
25382
25383         test-update-copyright.sh: require perl 5.8.0
25384         * tests/test-update-copyright.sh: Require 5.8.0,
25385         which Tom G. Christensen has confirmed is adequate,
25386         while 5.6.1 is not.
25387
25388 2010-09-02  Eric Blake  <eblake@redhat.com>
25389
25390         tests: init.sh improvements for re-exec'ing with zsh
25391         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
25392         -vx through shell re-exec.
25393         Reported by Tom G. Christensen.
25394
25395         wctype: fix typo in previous commit
25396         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
25397         Reported by Ludovic Courtès.
25398
25399 2010-09-02  Jim Meyering  <meyering@redhat.com>
25400
25401         test-update-copyright.sh: skip test if Perl is too old
25402         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
25403         Reported by Tom G. Christensen.
25404
25405 2010-09-02  Bruno Haible  <bruno@clisp.org>
25406
25407         wctype: Avoid compilation error on IRIX 6.5.30.
25408         * lib/wctype.in.h (iswblank): Declare with a replacement if
25409         REPLACE_ISWBLANK is set.
25410         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
25411         declared. Set REPLACE_ISWBLANK.
25412         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
25413         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
25414         * doc/posix-headers/wctype.texi: Likewise.
25415         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25416
25417 2010-09-01  Bruno Haible  <bruno@clisp.org>
25418
25419         New module 'socketlib'.
25420         * modules/socketlib: New file.
25421         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
25422         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
25423         * modules/sockets (Depends-on): Add socketlib.
25424         Suggested by Sam Steingold <sds@gnu.org>.
25425
25426 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
25427
25428         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
25429
25430         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
25431         when one needs search access to a directory but not read access.
25432         On systems where it is available, it works in some cases where
25433         O_RDONLY does not, namely on directories that are searchable but
25434         not readable, and which need only to be searchable.  If O_SEARCH
25435         is not available, fall back to the traditional method of using
25436         O_RDONLY.
25437
25438         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
25439         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
25440         when opening a directory that needs only to be searchable.
25441         * lib/chdir-safer.c (chdir_no_follow): Likewise.
25442         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
25443         * lib/openat-proc.c (openat_proc_name): Likewise.
25444         * lib/openat.c (openat_needs_fchdir): Likewise.
25445         * lib/save-cwd.c (save_cwd): Likewise.
25446         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
25447
25448 2010-08-28  Bruno Haible  <bruno@clisp.org>
25449
25450         New module 'host-cpu-c-abi'.
25451         * modules/host-cpu-c-abi: New file.
25452         * m4/host-cpu-c-abi.m4: New file, based on part of
25453         clisp/src/m4/general.m4.
25454         Requested by Sam Steingold <sds@gnu.org>.
25455
25456 2010-08-31  Eric Blake  <eblake@redhat.com>
25457         and Jim Meyering  <meyering@redhat.com>
25458
25459         hash: factor, and guard against misbehaving hasher function
25460         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
25461         of table->hasher's return value.  Also protect against a hash value
25462         so large that adding it to table->bucket results in a NULL pointer.
25463         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
25464         Use it in place of open-coded check-and-abort.
25465
25466 2010-08-30  Bruno Haible  <bruno@clisp.org>
25467
25468         hash: silence spurious clang warning
25469         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
25470         Reported by Eric Blake.
25471
25472 2010-08-30  Eric Blake  <eblake@redhat.com>
25473
25474         strstr, memmem, strcasestr: avoid leaked shell message
25475         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
25476         FreeBSD.
25477         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25478         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25479
25480         tests: silence clang warning
25481         * tests/test-malloca.c (do_allocation): Avoid dead store.
25482
25483 2010-08-29  Bruno Haible  <bruno@clisp.org>
25484
25485         gettext: Fix recent mistake.
25486         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
25487
25488 2010-08-29  Bruno Haible  <bruno@clisp.org>
25489
25490         selinux-h: Offer a --without-selinux option.
25491         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
25492         --without-selinux was specified, skip all tests and define
25493         HAVE_SELINUX_SELINUX_H to 0.
25494         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
25495         set LIB_SELINUX to empty.
25496         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
25497         gl_LIBSELINUX. If --without-selinux was specified, replace
25498         selinux/context.h.
25499         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
25500
25501 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25502             Bruno Haible  <bruno@clisp.org>
25503
25504         Make the module 'realloc-gnu' work again on AIX and OSF/1.
25505         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
25506         of HAVE_REALLOC.
25507         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
25508         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
25509         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
25510         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25511
25512 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25513             Bruno Haible  <bruno@clisp.org>
25514
25515         Make the module 'calloc-gnu' work again on AIX and OSF/1.
25516         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
25517         HAVE_CALLOC.
25518         * lib/xmalloc.c: Update accordingly.
25519         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
25520         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
25521         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
25522
25523 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25524             Bruno Haible  <bruno@clisp.org>
25525
25526         Make the module 'malloc-gnu' work again on AIX and OSF/1.
25527         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
25528         HAVE_MALLOC.
25529         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
25530         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
25531         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25532
25533 2010-08-29  Bruno Haible  <bruno@clisp.org>
25534
25535         Update modules list.
25536         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
25537         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
25538         (String handling <string.h>): Add astrxfrm.
25539         (File system functions): Add readlinkat.
25540
25541 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25542
25543         Tests for module 'realloc-gnu'.
25544         * modules/realloc-gnu-tests: New file.
25545         * tests/test-realloc-gnu.c: New file.
25546
25547         Tests for module 'calloc-gnu'.
25548         * modules/calloc-gnu-tests: New file.
25549         * tests/test-calloc-gnu.c: New file.
25550
25551         Tests for module 'malloc-gnu'.
25552         * modules/malloc-gnu-tests: New file.
25553         * tests/test-malloc-gnu.c: New file.
25554
25555 2010-08-28  Bruno Haible  <bruno@clisp.org>
25556
25557         Rename module 'realloc' -> 'realloc-gnu'.
25558         * modules/realloc-gnu: New file, copied from modules/realloc.
25559         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
25560         obsolete.
25561         * modules/mgetgroups (Depends-on): Update.
25562         * doc/posix-functions/realloc.texi: Update.
25563         * NEWS: Mention the change.
25564
25565         Rename module 'calloc' -> 'calloc-gnu'.
25566         * modules/calloc-gnu: New file, copied from modules/calloc.
25567         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
25568         obsolete.
25569         * doc/posix-functions/calloc.texi: Update.
25570         * NEWS: Mention the change.
25571
25572         Rename module 'malloc' -> 'malloc-gnu'.
25573         * modules/malloc-gnu: New file, copied from modules/malloc.
25574         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
25575         obsolete.
25576         * modules/argp (Depends-on): Update.
25577         * modules/regex (Depends-on): Update.
25578         * doc/posix-functions/malloc.texi: Update.
25579         * NEWS: Mention the change.
25580
25581 2010-08-28  Eric Blake  <eblake@redhat.com>
25582
25583         pread, pwrite: add missing dependency
25584         * modules/pread (Depends-on): Add extensions.
25585         * modules/pwrite (Depends-on): Likewise.
25586
25587 2010-08-28  Bruno Haible  <bruno@clisp.org>
25588
25589         unistr/u*-strchr: Fix tests dependencies.
25590         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
25591         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
25592         Reported by Ian Beckwith <ianb@erislabs.net>.
25593
25594 2010-08-28  Bruno Haible  <bruno@clisp.org>
25595
25596         read-file: Don't occupy too much unused memory.
25597         * lib/read-file.c (fread_file): Shrink the buffer at the end.
25598
25599 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
25600             Eric Blake  <eblake@redhat.com>
25601             Bruno Haible  <bruno@clisp.org>
25602
25603         read-file: Avoid memory reallocations with regular files.
25604         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
25605         (fread_file): With regular files, use the remaining length as the
25606         initial buffer size.  Check against overflow.
25607         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
25608         sys_stat.
25609
25610 2010-08-28  Bruno Haible  <bruno@clisp.org>
25611
25612         ftello: Relax license.
25613         * modules/ftello (License): Relax to LGPLv2+.
25614         Reported by Eric Blake.
25615
25616 2010-08-28  Bruno Haible  <bruno@clisp.org>
25617
25618         Avoid relocwrapper link errors due to gnulib replacement functions.
25619         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
25620         function.
25621         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25622
25623 2010-08-28  Bruno Haible  <bruno@clisp.org>
25624
25625         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
25626         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
25627         defined.
25628         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
25629         Suggested by Eric Blake.
25630
25631 2010-08-28  Bruno Haible  <bruno@clisp.org>
25632
25633         sys_socket, netdb: Ensure socklen_t gets defined.
25634         * modules/sys_socket (Depends-on): Add socklen.
25635         * modules/netdb (Depends-on): Likewise.
25636         * modules/getaddrinfo (Depends-on): Remove socklen.
25637         * modules/getsockopt (Depends-on): Likewise.
25638         * modules/setsockopt (Depends-on): Likewise.
25639         * tests/test-sys_socket.c: Check that socklen_t is defined.
25640         * tests/test-netdb.c: Likewise.
25641         * m4/socklen.m4: Update comments.
25642         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25643
25644 2010-08-27  Eric Blake  <eblake@redhat.com>
25645
25646         login_tty: add missing dependency
25647         * modules/login_tty (Depends-on): Add pty.
25648
25649 2010-08-26  Eric Blake  <eblake@redhat.com>
25650
25651         lib-symbol-versions: fix m4 quoting
25652         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
25653         format for AC_LINK_IFELSE.
25654
25655         glob: fix compile test
25656         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
25657
25658         btowc: fix missing file
25659         * modules/btowc (Files): Also ship locale-fr.m4.
25660
25661         lseek: fix link test
25662         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
25663         AC_LINK_IFELSE.
25664
25665         include_next: silence autoconf 2.68 warning
25666         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
25667         AC_COMPILE_IFELSE as special.
25668         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
25669         autoconf < 2.68.
25670
25671         acl: fix compilation test
25672         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
25673         AC_COMPILE_IFELSE.
25674
25675 2010-08-26  Bruno Haible  <bruno@clisp.org>
25676
25677         Modernize AC_TRY_RUN invocations.
25678         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
25679         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
25680         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
25681         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
25682         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
25683         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
25684         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
25685         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
25686         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25687         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25688         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
25689         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25690         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
25691         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25692         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
25693         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
25694         gl_MBRLEN_NUL_RETVAL): Likewise.
25695         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25696         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
25697         Likewise.
25698         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25699         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25700         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
25701         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
25702         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
25703         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
25704         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
25705         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
25706         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
25707         Likewise.
25708         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
25709         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
25710         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25711         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25712         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25713         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
25714         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25715         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
25716         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25717         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25718
25719 2010-08-26  Bruno Haible  <bruno@clisp.org>
25720
25721         Modernize AC_TRY_LINK invocations.
25722         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
25723         AC_TRY_LINK.
25724         * m4/argp.m4 (gl_ARGP): Likewise.
25725         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
25726         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
25727         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
25728         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
25729         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
25730         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
25731         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
25732         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
25733         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
25734         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
25735         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
25736         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
25737         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
25738         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25739         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
25740         * m4/hostent.m4 (gl_HOSTENT): Likewise.
25741         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25742         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
25743         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
25744         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
25745         Likewise.
25746         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
25747         Likewise.
25748         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
25749         Likewise.
25750         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
25751         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
25752         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
25753         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
25754         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
25755         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
25756         * m4/servent.m4 (gl_SERVENT): Likewise.
25757         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
25758         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
25759         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
25760         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
25761         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25762         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
25763         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
25764         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25765         * modules/tsearch-tests (configure.ac): Likewise.
25766
25767 2010-08-26  Bruno Haible  <bruno@clisp.org>
25768
25769         Modernize AC_TRY_COMPILE invocations.
25770         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
25771         AC_TRY_COMPILE.
25772         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
25773         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
25774         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
25775         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
25776         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
25777         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
25778         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
25779         * m4/lock.m4 (gl_LOCK): Likewise.
25780         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
25781         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
25782         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
25783         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
25784         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
25785         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
25786         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
25787         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
25788         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
25789         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
25790         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
25791         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
25792         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
25793         extraneous semicolon.
25794
25795 2010-08-26  Jim Meyering  <meyering@redhat.com>
25796
25797         stat-time: relax license LGPL
25798         * modules/stat-time (License): Change from GPL to LGPL,
25799         with consent from all contributors, for use in libguile.
25800         Requested by Ludovic Courtès.
25801
25802 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
25803
25804         poll: return immediately on POLLHUP.
25805         * lib/poll.c (poll): Always set timeout before wait_timeout is
25806         computed.
25807
25808 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25809
25810         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
25811         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
25812         rmdir ("dir/.//"), unlinkat.
25813
25814 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
25815
25816         stdbool: avoid spurious failure with modern xlc
25817         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
25818
25819 2010-08-24  Bruno Haible  <bruno@clisp.org>
25820
25821         getloadavg: simplify code
25822         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
25823         gl_have_func. Update comments.
25824
25825 2010-08-24  Eric Blake  <eblake@redhat.com>
25826
25827         getloadavg: don't define SVR4 on cygwin
25828         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
25829         only define SVR4 when -lkvm is required.
25830         Reported by Yaakov Selkowitz.
25831
25832 2010-08-24  Bruno Haible  <bruno@clisp.org>
25833
25834         priv-set: fix comment
25835         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
25836
25837 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
25838
25839         priv-set: fix comments
25840         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
25841         to match code, as suggested by David Bartley in:
25842         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
25843
25844 2010-08-23  Eric Blake  <eblake@redhat.com>
25845
25846         stdbool: avoid rejecting clang
25847         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
25848         * tests/test-stdbool.c: Enable more tests if using the system
25849         <stdbool.h> instead of the gnulib replacement.
25850         (main): Move xlc bug test to a runtime test for all compilers.
25851         Reported by Anders Kaseorg.
25852
25853         argz: fix shell quoting issue
25854         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
25855         Reported by Charles Wilson.
25856
25857 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
25858             Erik Faye-Lund <kusmabite@gmail.com>
25859
25860         poll, select: handle ERROR_BROKEN_PIPE.
25861         * lib/poll.c (win32_compute_revents): Return POLLHUP when
25862         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
25863         * lib/select.c (win32_compute_revents): Do not mark a pipe
25864         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
25865
25866 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
25867
25868         fts: allow compilation with C++
25869         * lib/fts_.h: Specify extern "C" linkage with C++.
25870
25871 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25872
25873         Fix gnulib-tool sed script de-commentation for AIX sed.
25874         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
25875         sed.
25876
25877 2010-08-17  Eric Blake  <eblake@redhat.com>
25878
25879         test-stddef: test for (some) offsetof bugs
25880         * tests/test-stddef.c: Enhance test to ensure correct type of
25881         offsetof.
25882         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
25883         that we are not fixing at this time.
25884
25885 2010-08-15  Bruno Haible  <bruno@clisp.org>
25886
25887         stpncpy: Allow stpncpy to be defined as a macro.
25888         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
25889         if it's already correctly declared.
25890         * lib/string.in.h (stpncpy): Undefine before redefining.
25891         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
25892
25893 2010-08-14  Bruno Haible  <bruno@clisp.org>
25894
25895         Rename module 'memxfrm' to 'amemxfrm'.
25896         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
25897         (amemxfrm): Renamed from memxfrm.
25898         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
25899         (amemxfrm): Renamed from memxfrm.
25900         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
25901         * NEWS: Mention the change.
25902         * MODULES.html.sh (String handling <string.h>): Update.
25903         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
25904         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
25905         * lib/unicase/u16-casexfrm.c: Likewise.
25906         * lib/unicase/u32-casexfrm.c: Likewise.
25907         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
25908         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
25909         * lib/uninorm/u16-normxfrm.c: Likewise.
25910         * lib/uninorm/u32-normxfrm.c: Likewise.
25911         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
25912         memxfrm.
25913         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
25914         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
25915         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
25916         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
25917         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
25918         Suggested by Paul Eggert.
25919
25920 2010-08-14  Bruno Haible  <bruno@clisp.org>
25921
25922         Tests for module 'astrxfrm'.
25923         * modules/astrxfrm-tests: New file.
25924         * tests/test-astrxfrm.c: New file.
25925
25926         New module 'astrxfrm'.
25927         * lib/astrxfrm.h: New file.
25928         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
25929         * modules/astrxfrm: New file.
25930
25931 2010-08-14  Reuben Thomas <rrt@sc3d.org>
25932
25933         regex: Tweak doc.
25934         * doc/regex.texi (Overview): Don't mention regex.c.
25935         (GNU Regular Expression Compiling): Likewise.
25936         (Match-end-of-line Operator): Mention 'not_eol'.
25937
25938 2010-08-14  Brian Gough  <bjg@gnu.org>
25939             Bruno Haible  <bruno@clisp.org>
25940
25941         git-merge-changelog: add doc relating to use with bzr and hg.
25942         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
25943
25944 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
25945
25946         pthread: fix pthread.h creation for srcdir != builddir
25947         * modules/pthread (Makefile.am): Fix the rule to work also in a
25948         non-srcdir build.
25949
25950 2010-08-13  Karl Berry  <karl@gnu.org>
25951
25952         * doc/regex.texi (Predefined Syntaxes): @smallexample.
25953         * doc/posix-*/*: force line break before @url of POSIX
25954         specifications.
25955         Suggested by Werner Lemberg.
25956
25957 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
25958
25959         strtod: fix const diagnostic
25960         * lib/strtod.c (strtod): Don't assign const char * to char *,
25961         as this elicits a warning from GCC when warnings are enabled.
25962
25963 2010-08-10  Pádraig Brady <P@draigbrady.com>
25964         and Eric Blake  <eblake@redhat.com>
25965
25966         copy-acl: ignore ENOTSUP on HP-UX
25967         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
25968         so that it is available for HP-UX.
25969         * lib/copy-acl.c (qcopy_acl): Use it.
25970         Reported by Patrick M. Callahan.
25971
25972 2010-08-10  Eric Blake  <eblake@redhat.com>
25973
25974         open, chown: relax license
25975         * modules/open (License): Change to LGPLv2+, with consent by all
25976         authors, for use in augeas.
25977         * modules/chown (License): Likewise.
25978         * modules/lchown (Likewise): Likewise.
25979         Requested by Adam Stokes.
25980
25981 2010-08-09  Karl Berry  <karl@gnu.org>
25982
25983         * build-aux/ar-lib: new file, import from Automake.
25984         * config/srclist.txt: autocheck for updates.
25985
25986 2010-08-09  Eric Blake  <eblake@redhat.com>
25987
25988         readlinkat: adjust client modules
25989         * modules/areadlinkat (Depends-on): Use readlinkat, not
25990         symlinkat.
25991         * modules/areadlinkat-with-size (Depends-on): Likewise.
25992
25993         mknod: be more vocal about danger of running tests as root
25994         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
25995         root, since that is just asking for problems.
25996         Suggested by Bruno Haible, based on a report by Rainer Tammer.
25997
25998         readlinkat: split into its own module
25999         * modules/symlinkat: Split readlinkat...
26000         * modules/readlinkat: ...into separate module.
26001         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
26002         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
26003         * lib/symlinkat.c (readlinkat): Move...
26004         * lib/readlinkat.c: ...into new file.
26005         * modules/symlinkat-tests: Split readlinkat test...
26006         * modules/readlinkat-tests: ...into separate module.
26007         * tests/test-symlinkat.c: Split...
26008         * tests/test-readlinkat.c: ...into new file.
26009         * NEWS: Document the split.
26010         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26011         * lib/unistd.in.h (readlinkat): Likewise.
26012         Suggested by Bruno Haible.
26013
26014 2010-08-08  Bruno Haible  <bruno@clisp.org>
26015
26016         memxfrm: Speed up.
26017         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
26018         that usually only one call to strxfrm is necessary for each string
26019         part.
26020         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26021
26022 2010-08-07  Karl Berry  <karl@gnu.org>
26023
26024         * doc/posix-headers/limits.texi,
26025         * doc/posix-functions/malloc.texi,
26026         * doc/posix-functions/strsignal.texi: missing @item.
26027         * doc/ld-version-script.texi: spurious leading i.
26028         * doc/regex.texi (Interval Operators): no commas inside @var.
26029
26030 2010-08-01  Bruno Haible  <bruno@clisp.org>
26031
26032         Integrate the regex documentation.
26033         * doc/gnulib.texi: Define 'cn' index.
26034         (Regular expressions): New a chapter that includes regex.texi and
26035         regexprops-generic.texi.
26036         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
26037         syntax.
26038
26039         Whitespace cleanup.
26040         * doc/regex.texi: Remove trailing spaces.
26041
26042         Add regex documentation.
26043         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
26044         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
26045         Written by Kathy A. Hargreaves and Karl Berry.
26046
26047 2010-08-01  Bruno Haible  <bruno@clisp.org>
26048
26049         link: Update documentation.
26050         * doc/posix-functions/link.texi: Update regarding Solaris.
26051
26052 2010-07-31  Bruno Haible  <bruno@clisp.org>
26053
26054         Update modules list.
26055         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
26056         (String handling <string.h>): Add memcmp2, memxfrm.
26057         (Container data structures): Add xlist, xsublist, xoset.
26058         (Core language properties): Add alignof, unused-parameter.
26059         (Process control, Numeric conversion functions <stdlib.h>): Renamed
26060         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
26061         (Unibyte characters <ctype.h>): New section.
26062         (String handling <string.h>): New section.
26063         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
26064         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
26065         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
26066         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
26067         tan, tanh, tanl, y0, y1, yn.
26068         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
26069         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
26070         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
26071         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
26072         unlockpt, vdprintf, vdprintf-posix.
26073         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
26074         (File system functions): Add concat-filename, sys_file, sys_ioctl,
26075         xconcat-filename.
26076         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
26077         getdtablesize, pipe2, pipe2-safer.
26078         (Security): New section.
26079         (Networking functions): Add accept4.
26080         (Signal handling): Add sigpipe.
26081         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
26082         mbmemcasecoll.
26083         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
26084         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
26085         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
26086         pipe-filter-ii.
26087         (Misc): Add argp-version-etc, login_tty, parse-duration.
26088
26089 2010-07-31  Bruno Haible  <bruno@clisp.org>
26090
26091         Improve doc in MODULES.html.
26092         * modules/linkat (Description): Add the word "function".
26093         * modules/mkfifo (Description): Likewise.
26094         * modules/mknod (Description): Likewise.
26095         * modules/remove (Description): Likewise.
26096         * modules/renameat (Description): Likewise.
26097         * modules/stat (Description): Likewise.
26098         * modules/symlink (Description): Likewise.
26099         * modules/unlink (Description): Likewise.
26100
26101 2010-07-31  Bruno Haible  <bruno@clisp.org>
26102
26103         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
26104         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
26105         option --enable/disable-c++ instead of --enable/disable-cxx.
26106         * NEWS: Mention the change.
26107
26108 2010-07-31  Bruno Haible  <bruno@clisp.org>
26109
26110         readlink, areadlink: Relax test a bit.
26111         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
26112         alternative to ENOTDIR.
26113         * tests/test-areadlink.h (test_areadlink): Likewise.
26114         Reported by Rainer Tammer.
26115
26116 2010-07-31  Bruno Haible  <bruno@clisp.org>
26117
26118         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
26119         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
26120         character, perform the search using U_STRCHR.
26121         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
26122         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
26123         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
26124         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
26125         Suggested by Paolo Bonzini.
26126
26127 2010-07-31  Bruno Haible  <bruno@clisp.org>
26128
26129         unistr/u*-strstr: Fix dependencies.
26130         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
26131         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
26132         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
26133
26134 2010-07-31  Bruno Haible  <bruno@clisp.org>
26135
26136         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
26137         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
26138         the beginning of the loop.
26139         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
26140         cases in 'switch' statement.
26141
26142         unistr/u8-strchr: Fix several bugs.
26143         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
26144         the string. When not found, return NULL, not a pointer near the end.
26145
26146         More tests for unistr/u8-strchr.
26147         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
26148         that the function does not read past the first occurrence of the byte
26149         being searched.
26150         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
26151         * tests/unistr/test-u16-strchr.c (main): New function.
26152         * tests/unistr/test-u32-strchr.c (main): New function.
26153
26154 2010-07-31  Bruno Haible  <bruno@clisp.org>
26155
26156         posix-modules: Ignore backup files of documentation files.
26157         * posix-modules: grep only through files named *.texi.
26158
26159 2010-07-31  Bruno Haible  <bruno@clisp.org>
26160
26161         symlinkat: Fix documentation.
26162         * doc/posix-functions/readlinkat.texi: Fix module name.
26163
26164 2010-07-31  Bruno Haible  <bruno@clisp.org>
26165
26166         fchownat: Replace also when chown has the trailing slash bug.
26167         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
26168         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
26169         introduced on 2010-04-10.
26170         Reported by Rainer Tammer.
26171
26172 2010-07-31  Bruno Haible  <bruno@clisp.org>
26173
26174         linkat: Work around AIX 7.1 bug.
26175         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
26176         whether linkat handles trailing slash correctly. If not, replace linkat
26177         and define LINKAT_TRAILING_SLASH_BUG.
26178         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
26179         check whether (fd1,file1) points to a directory if file1 or file2 ends
26180         in a slash. Code taken from lib/link.c.
26181         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
26182         Reported by Rainer Tammer.
26183
26184 2010-07-31  Bruno Haible  <bruno@clisp.org>
26185
26186         Correctly determine whether pow is available in libc on AIX 7 with xlc.
26187         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
26188         This disables an xlc optimization that was causing wrong test results.
26189         Reported by Rainer Tammer.
26190
26191 2010-07-31  Bruno Haible  <bruno@clisp.org>
26192
26193         iconv: Work around AIX 6.1..7.1 bug.
26194         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
26195         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
26196         cross-compiling, guess no on all versions of AIX.
26197         Reported by Rainer Tammer.
26198
26199 2010-07-31  Bruno Haible  <bruno@clisp.org>
26200
26201         readlink: Relax test a bit.
26202         * tests/test-readlink.h (test_readlink): Allow different errno value
26203         when readlink is called with a file name that ends in / and refers to
26204         a file.
26205         Suggested by Eric Blake.
26206         Reported by Rainer Tammer.
26207
26208 2010-07-31  Bruno Haible  <bruno@clisp.org>
26209
26210         copysign: Does not require -lm on glibc systems.
26211         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
26212         gl_COMMON_DOUBLE_MATHFUNC.
26213         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
26214
26215 2010-07-31  Bruno Haible  <bruno@clisp.org>
26216
26217         duplocale: Work around AIX 7.1 bug.
26218         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
26219         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
26220         * lib/duplocale.c (rpl_duplocale): Update comment.
26221         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
26222         Reported by Rainer Tammer.
26223
26224 2010-07-30  Bruno Haible  <bruno@clisp.org>
26225
26226         dirfd: Avoid link error on AIX 7.1.
26227         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
26228         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
26229         exist, set REPLACE_DIRFD.
26230         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
26231         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
26232         * doc/posix-functions/dirfd.texi: Update.
26233         Reported by Rainer Tammer.
26234
26235 2010-07-30  Eric Blake  <eblake@redhat.com>
26236
26237         strtod: next round of AIX fixes
26238         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
26239         exponent.
26240         * tests/test-strtod.c (main): Enhance tests.
26241         * doc/posix-functions/strtod.texi (strtod): Document next bug.
26242         Reported by Rainer Tammer.
26243
26244         futimens: fix configure check
26245         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
26246         Reported by Bruno Haible.
26247
26248 2010-07-30  Bruno Haible  <bruno@clisp.org>
26249
26250         getline: Update regarding AIX.
26251         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
26252         Reported by Rainer Tammer.
26253
26254 2010-07-30  Bruno Haible  <bruno@clisp.org>
26255
26256         wcwidth: Drop replacement on AIX 7.
26257         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
26258         AIX 7.
26259         Reported by Rainer Tammer.
26260
26261 2010-07-30  Bruno Haible  <bruno@clisp.org>
26262
26263         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
26264         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
26265         a 'char *'.
26266         Reported by Rainer Tammer.
26267
26268 2010-07-30  Bruno Haible  <bruno@clisp.org>
26269
26270         unlink: Update regarding AIX.
26271         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
26272         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
26273         Reported by Rainer Tammer.
26274
26275 2010-07-30  Bruno Haible  <bruno@clisp.org>
26276
26277         symlink: Update regarding AIX.
26278         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
26279         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
26280         Reported by Rainer Tammer.
26281
26282 2010-07-30  Bruno Haible  <bruno@clisp.org>
26283
26284         strndup: Update regarding AIX.
26285         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
26286         AIX 7.
26287         Reported by Rainer Tammer.
26288
26289 2010-07-30  Bruno Haible  <bruno@clisp.org>
26290
26291         stat: Update regarding AIX.
26292         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
26293         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
26294         Reported by Rainer Tammer.
26295
26296 2010-07-30  Bruno Haible  <bruno@clisp.org>
26297
26298         truncl: Fix autoconf test.
26299         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
26300         whether truncl works.
26301         Reported by Rainer Tammer.
26302
26303 2010-07-30  Bruno Haible  <bruno@clisp.org>
26304
26305         round: Update regarding AIX.
26306         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
26307         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
26308         Reported by Rainer Tammer.
26309
26310 2010-07-30  Bruno Haible  <bruno@clisp.org>
26311
26312         rename: Update regarding AIX.
26313         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
26314         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
26315         Reported by Rainer Tammer.
26316
26317 2010-07-30  Bruno Haible  <bruno@clisp.org>
26318
26319         printf.m4: Update regarding AIX.
26320         * m4/printf.m4: Update comments regarding AIX.
26321         Reported by Rainer Tammer.
26322
26323 2010-07-30  Bruno Haible  <bruno@clisp.org>
26324
26325         iconv: Update regarding AIX.
26326         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
26327         AIX 7.
26328         Reported by Rainer Tammer.
26329
26330 2010-07-30  Bruno Haible  <bruno@clisp.org>
26331
26332         getopt: Update regarding AIX.
26333         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
26334         no on AIX.
26335         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
26336         Reported by Rainer Tammer.
26337
26338 2010-07-30  Bruno Haible  <bruno@clisp.org>
26339
26340         ldexpl; Update regarding AIX.
26341         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
26342         on AIX 7.
26343         Reported by Rainer Tammer.
26344
26345 2010-07-30  Bruno Haible  <bruno@clisp.org>
26346
26347         frexpl: Update regarding AIX.
26348         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
26349         on AIX 7.
26350         Reported by Rainer Tammer.
26351
26352 2010-07-30  Bruno Haible  <bruno@clisp.org>
26353
26354         open, fopen: Update regarding AIX.
26355         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
26356         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26357         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
26358         * doc/posix-functions/fopen.texi: Likewise.
26359         Reported by Rainer Tammer.
26360
26361 2010-07-30  Bruno Haible  <bruno@clisp.org>
26362
26363         chown: Update doc regarding AIX.
26364         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
26365         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
26366         Reported by Rainer Tammer.
26367
26368 2010-07-30  Eric Blake  <eblake@redhat.com>
26369
26370         strtod: fix bug in replacement function on AIX
26371         * lib/strtod.c (strtod): Special case broken "0x" parse in
26372         underlying strtod.
26373         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
26374         * doc/posix-functions/strtod.texi (strtod): Likewise.
26375         Reported by Rainer Tammer.
26376
26377 2010-07-30  Bruno Haible  <bruno@clisp.org>
26378
26379         mbrlen: Fix cross-compilation guess for AIX.
26380         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
26381         guess. Leftover from 2008-12-22.
26382
26383 2010-07-30  Bruno Haible  <bruno@clisp.org>
26384
26385         mbrtowc: Fix cross-compilation guess for AIX.
26386         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
26387         guess. Leftover from 2008-12-21.
26388
26389 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
26390
26391         init.sh: work around trap limitation of some shells
26392         * tests/init.sh (setup_): Move exit trap outside of shell function.
26393
26394 2010-07-29  Eric Blake  <eblake@redhat.com>
26395
26396         strtod: aid debugging
26397         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
26398         understanding why strtod is rejected.
26399
26400 2010-07-28  Bruno Haible  <bruno@clisp.org>
26401
26402         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
26403         * lib/unistr/u8-chr.c: Include <string.h>.
26404         * tests/unistr/test-u8-chr.c: Likewise.
26405         * tests/unistr/test-u16-chr.c: Likewise.
26406         * tests/unistr/test-u32-chr.c: Likewise.
26407         * tests/unistr/test-u8-strchr.c: Likewise.
26408         * tests/unistr/test-u16-strchr.c: Likewise.
26409         * tests/unistr/test-u32-strchr.c: Likewise.
26410         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
26411         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
26412         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
26413         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
26414
26415 2010-07-28  Bruno Haible  <bruno@clisp.org>
26416
26417         Use spaces for indentation, not tabs.
26418         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26419
26420 2010-07-27  Bruno Haible  <bruno@clisp.org>
26421
26422         mbspcasecmp: Fix function specification.
26423         * lib/string.in.h (mbspcasecmp): Fix specification comment.
26424         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
26425         Reported by Eric Blake <eblake@redhat.com>.
26426
26427 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
26428
26429         timespec: use cast and not conditional, as truncation isn't possible
26430         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
26431         instead of a conditional.  Comment about the situation in more detail.
26432         This undoes most of the 2009-10-29 patch.
26433
26434 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
26435
26436         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
26437         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
26438         * lib/unistr/u8-strchr.c: Likewise.
26439         * modules/unistr/u8-chr: Depend on memchr.
26440
26441         unistr/u*-strchr: add tests
26442         * modules/unistr/u8-strchr-tests: New file.
26443         * modules/unistr/u16-strchr-tests: New file.
26444         * modules/unistr/u32-strchr-tests: New file.
26445         * tests/unistr/test-strchr.h: New file.
26446         * tests/unistr/test-u8-strchr.c: New file.
26447         * tests/unistr/test-u16-strchr.c: New file.
26448         * tests/unistr/test-u32-strchr.c: New file.
26449
26450         unistr/u*-chr: test multibyte sequences more
26451         * tests/unistr/test-chr.h: Do complete testing of the characters in the
26452         test vector.
26453         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
26454         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
26455         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
26456
26457         unistr/u*-chr: test multibyte sequences
26458         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
26459
26460         unistr/u*-chr: prepare for multibyte tests
26461         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
26462         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
26463         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
26464         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
26465         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
26466         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
26467
26468 2010-07-18  Bruno Haible  <bruno@clisp.org>
26469
26470         unistr/u8-strchr: Optimize non-ASCII argument case.
26471         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
26472         because the first byte often matches anyway.
26473         Reported by Pádraig Brady <P@draigbrady.com>.
26474
26475 2010-07-15  Karl Berry  <karl@gnu.org>
26476
26477         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
26478
26479 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
26480
26481         getcwd: on Solaris, work better if ancestors are inaccessible
26482         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
26483         buffer and size, try again with a large buffer.  This works better
26484         on Solaris, since its getcwd succeeds even if the path to the root
26485         is inaccessible, and this is helpful in common cases such as .zfs
26486         hidden directories.  Problem reported by J Chapman Flack in
26487         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
26488         Use system getcwd if it's declared, not merely if it's partly
26489         working; use the partly-working test only to avoid needless effort
26490         if the system getcwd fails.
26491         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
26492         comment that was already obsolete and is now even more obsolete.
26493         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
26494         now might call strdup.
26495
26496 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
26497
26498         pthread: Add enough so that coreutils/src/sort.c compiles.
26499         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
26500         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
26501         gnulib. Include <sched.h> and <time.h>, as per POSIX.
26502         Include <sys/types.h>, in case it defines pthread_t.
26503         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
26504         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
26505         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
26506         (pthread_rwlockattr_t, pthread_spinlock_t):
26507         New typedefs, if HAVE_PTHREAD_T is not defined.
26508         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
26509         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
26510         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
26511         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
26512         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
26513         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
26514         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
26515         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
26516         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
26517         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
26518         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
26519         New macros.
26520         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
26521         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
26522         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
26523         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
26524         (pthread_spin_unlock): New dummy functions.
26525         (pthread_create): Return EAGAIN; don't set errno.
26526         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
26527         require AC_C_INLINE.
26528         * modules/pthread (Depends-on): Add sched, time.
26529         (pthread.h): Use AM_V_GEN.
26530
26531 2010-07-13  Bruno Haible  <bruno@clisp.org>
26532
26533         striconveh: Don't malloc memory if the result buffer is sufficient.
26534         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
26535         buffer if its size is sufficient.
26536         Reported by Ludovic Courtès <ludo@gnu.org>.
26537
26538 2010-07-13  Bruno Haible  <bruno@clisp.org>
26539
26540         strtod: Add safety check.
26541         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
26542
26543 2010-07-12  Bruno Haible  <bruno@clisp.org>
26544
26545         Unify tests that set gl_cv_func_ldexpl_no_libm.
26546         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
26547         gl_FUNC_LDEXPL.
26548         (gl_FUNC_LDEXPL): Invoke it.
26549         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26550
26551 2010-07-12  Bruno Haible  <bruno@clisp.org>
26552
26553         Unify tests that set gl_cv_func_ldexp_no_libm.
26554         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
26555         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
26556         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
26557         (configure.ac): Simply invoke gl_FUNC_LDEXP.
26558         * modules/strtod (Files): Add m4/ldexp.m4.
26559
26560 2010-07-12  Bruno Haible  <bruno@clisp.org>
26561
26562         Unify tests that set gl_cv_func_frexpl_no_libm.
26563         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
26564         gl_FUNC_FREXPL_NO_LIBM.
26565         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
26566         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26567
26568 2010-07-12  Bruno Haible  <bruno@clisp.org>
26569
26570         Unify tests that set gl_cv_func_frexp_no_libm.
26571         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
26572         gl_FUNC_FREXP_NO_LIBM.
26573         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
26574         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26575
26576 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26577
26578         memcoll: clarify sizes versus lengths, document better, and tweak perf
26579         * lib/memcoll.c (strcoll_loop, memcoll0):
26580         Improve quality of descriptive comments.  Name variables
26581         consistently as to whether they are lengths (which do not include
26582         terminating null) versus sizes (which do).
26583         * lib/xmemcoll.c (xmemcoll0): Likewise.
26584         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
26585         returned when s1size == 0; this is easier to compile and saves
26586         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
26587
26588 2010-07-12  Bruno Haible  <bruno@clisp.org>
26589
26590         Tests for module '_Exit'.
26591         * modules/_Exit-tests: New file.
26592         * tests/test-_Exit.sh: New file.
26593         * tests/test-_Exit.c: New file.
26594
26595         New module '_Exit'.
26596         * lib/stdlib.in.h (__attribute__): New macro.
26597         (_Exit): New declaration.
26598         * lib/_Exit.c: New file.
26599         * m4/_Exit.m4: New file.
26600         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
26601         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
26602         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
26603         * modules/_Exit: New file.
26604         * tests/test-stdlib-c++.cc (_Exit): Check signature.
26605         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
26606
26607 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26608
26609         strtod: make it more-accurate typically, and don't require libm
26610         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
26611         Include limits.h.  Don't include string.h.
26612         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
26613         (locale_isspace): New function, so that no casts are needed to
26614         check whether *s is a space.
26615         (ldexp): Provide an unused dummy if not available.
26616         (scale_radix_exp, parse_number, underlying_strtod): New functions.
26617         (strtod): Use them.  This implementation prefers to use the
26618         underlying strtod if available, falling back on our own code
26619         only to fix known bugs.  This is more likely to produce an
26620         accurate result.  Also, it avoids the use of libm functions.
26621         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
26622         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
26623         was absent, but it caused a test failure with coreutils.
26624         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
26625         with libm.
26626         * modules/strtod (Makefile.am, Link): libm is no longer needed.
26627         * modules/strtod-tests (Makefile.am): Likewise.
26628
26629 2010-07-11  Pádraig Brady  <P@draigBrady.com>
26630             Bruno Haible  <bruno@clisp.org>
26631
26632         unistr/u8-strchr: Optimize ASCII argument case.
26633         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
26634
26635 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
26636
26637         (x)memcoll: minor tweaks
26638         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
26639         is after the type that it qualifies.
26640         (memcoll0): Likewise.
26641         * lib/memcoll.h (memcoll0): Likewise.
26642         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
26643         * lib/xmemcoll.h (xmemcoll0): Likewise.
26644         * lib/memcoll.c (memcoll0): Correct the comment.  This function
26645         differs from memcoll in that the NUL byte is part of the argument.
26646         Omit the abort-checks, as performance is a real issue here.  Plus,
26647         the checks were wrong anyway (an off-by-one error).  Omit local
26648         variable 'diff', as it's a bit clearer that way.
26649         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
26650         no longer needed.
26651
26652 2010-07-08  Chen Guo <chenguo4@yahoo.com>
26653
26654         (x)memcoll: speedup when input is known to be NUL delimited
26655         * lib/memcoll.c: Include stdlib.
26656         (memcoll0): New function.
26657         (strcoll_loop): New function, refactored for use in both memcoll
26658         and memcoll0.
26659         * lib/memcoll.h (memcoll0): Add prototype.
26660         * lib/xmemcoll.c (xmemcoll0): New function.
26661         (collate_error): New function, refactored for use in both xmemcoll
26662         and xmemcoll0.
26663         * lib/xmemcoll.h (xmemcoll0): Add prototype.
26664         * m4/memcoll.m4: add inline invocation.
26665
26666 2010-07-06  Pádraig Brady  <P@draigBrady.com>
26667
26668         * build-aux/bootstrap: Remove any local translations
26669         from the translation project synchronization directory,
26670         so that local only translations are not distributed.
26671
26672 2010-07-04  Bruno Haible  <bruno@clisp.org>
26673
26674         fsusage: Clarify which code applies to which platforms.
26675         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
26676         platform.
26677         * lib/fsusage.c (get_fs_usage): Likewise.
26678
26679 2010-07-04  Bruno Haible  <bruno@clisp.org>
26680
26681         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
26682         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
26683         Reported by Martin Lambers <marlam@marlam.de>.
26684
26685 2010-07-04  Jim Meyering  <meyering@redhat.com>
26686
26687         hash: once again explicitly disallow insertion of NULL
26688         * lib/hash.c (hash_insert0): Reinstate just-removed test:
26689         inserting a NULL pointer cannot work with these functions.
26690         Add a comment with details.
26691         This reverts part of the 2010-07-01 commit, 5bef1a35
26692         "hash: extend module to deal with non-pointer keys".
26693
26694 2010-07-01  Bruno Haible  <bruno@clisp.org>
26695
26696         stdbool: Update doc.
26697         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
26698         Info from Christian Weisgerber <naddy@mips.inka.de>.
26699
26700 2010-07-01  Jim Meyering  <meyering@redhat.com>
26701
26702         hash: extend module to deal with non-pointer keys
26703         * lib/hash.c (hash_insert0): New interface, much like hash_insert
26704         but that allows insertion of non-pointer entries.
26705         Do not disallow an ENTRY value of NULL.
26706         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
26707         * lib/hash.h (hash_insert0): Declare.
26708
26709 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
26710
26711         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
26712         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
26713         not present (i.e. with autoconf 2.59 and when using gettextize, not
26714         gnulib), require AC_GNU_SOURCE instead.
26715
26716 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
26717
26718         idpriv-drop: Fix tests.
26719         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
26720         not to the test-idpriv-droptemp program.
26721
26722 2010-06-29  Bruno Haible  <bruno@clisp.org>
26723
26724         string: Fix syntax error with g++ 2.96.
26725         * lib/string.in.h (__pure__): Remove definition.
26726         (_GL_ATTRIBUTE_PURE): New macro.
26727         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
26728         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
26729         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26730
26731 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
26732
26733         unitypes: Fix bug introduced on 2010-05-18.
26734         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
26735
26736 2010-06-22  Eric Blake  <eblake@redhat.com>
26737
26738         memmem: slight optimization
26739         * lib/str-two-way.h (critical_factorization): Update comments.
26740         Reduce work during factorization phase.
26741         Reported by Carlos Bueno <carlos@bueno.org>.
26742
26743 2010-06-21  Bruno Haible  <bruno@clisp.org>
26744
26745         Fix HAVE_CALLOC_POSIX misnomer.
26746         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
26747         !HAVE_CALLOC_POSIX.
26748         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
26749         HAVE_CALLOC_POSIX.
26750         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
26751         instead of HAVE_CALLOC_POSIX.
26752         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
26753         HAVE_CALLOC_POSIX.
26754
26755         Use modern idiom for calloc() replacement.
26756         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
26757         AC_FUNC_CALLOC.
26758         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
26759         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
26760         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26761         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
26762         (gl_REPLACE_CALLOC): New macro.
26763
26764 2010-06-21  Bruno Haible  <bruno@clisp.org>
26765
26766         Fix HAVE_REALLOC_POSIX misnomer.
26767         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
26768         !HAVE_REALLOC_POSIX.
26769         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
26770         HAVE_REALLOC_POSIX.
26771         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
26772         instead of HAVE_REALLOC_POSIX.
26773         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
26774         HAVE_REALLOC_POSIX.
26775
26776         Use modern idiom for realloc() replacement.
26777         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
26778         AC_FUNC_REALLOC.
26779         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
26780         Autoconf's AC_FUNC_REALLOC.
26781         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26782         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
26783         (gl_REPLACE_REALLOC): New macro.
26784         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
26785
26786 2010-06-21  Bruno Haible  <bruno@clisp.org>
26787
26788         Fix HAVE_MALLOC_POSIX misnomer.
26789         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
26790         !HAVE_MALLOC_POSIX.
26791         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
26792         HAVE_MALLOC_POSIX.
26793         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
26794         instead of HAVE_MALLOC_POSIX.
26795         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
26796         HAVE_MALLOC_POSIX.
26797
26798         Use modern idiom for malloc() replacement.
26799         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
26800         AC_FUNC_MALLOC.
26801         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
26802         Autoconf's AC_FUNC_MALLOC.
26803         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26804         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
26805         (gl_REPLACE_MALLOC): New macro.
26806         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
26807
26808 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
26809
26810         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
26811         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
26812         This macro takes 3 arguments, not 4.
26813
26814 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
26815
26816         ipv6: fix detection under mingw
26817         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
26818         in6_addr.
26819
26820 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
26821
26822         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
26823         that strtod() works when cross-compiling to a glibc version known
26824         to work.
26825
26826 2010-06-15  Bruno Haible  <bruno@clisp.org>
26827
26828         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
26829
26830 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
26831
26832         select: Correct timeout.
26833         * lib/select.c (rpl_select): Compute wait_timeout correctly.
26834
26835 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
26836
26837         git-version-gen: init shell var to avoid env var influence
26838         * build-aux/git-version-gen (v): Init shell var to empty.
26839
26840 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
26841
26842         priv-set: Don't assume that priv.h exists merely because getppriv does.
26843         See Jan Andersen's bug report about AIX 5L in
26844         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
26845         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
26846         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
26847         * lib/priv-set.h: Likewise.
26848         * tests/test-priv-set.c: Likewise.
26849
26850 2010-06-13  Bruno Haible  <bruno@clisp.org>
26851
26852         relocatable: Make it easier to test whether to install wrappers.
26853         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
26854         RELOCATABLE_VIA_WRAPPER.
26855
26856 2010-06-13  Bruno Haible  <bruno@clisp.org>
26857
26858         gnulib-tool: Display specified modules and dependencies differently.
26859         * gnulib-tool (func_show_module_list): New function.
26860         (func_import, func_create_testdir): Invoke it.
26861         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26862
26863 2010-06-13  Bruno Haible  <bruno@clisp.org>
26864
26865         gnulib-tool: Align code of func_import and func_create_testdir.
26866         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
26867         specified_modules.
26868
26869 2010-06-12  Jim Meyering  <meyering@redhat.com>
26870
26871         test-inttostr: avoid spurious failure on Solaris 9
26872         * tests/test-inttostr.c (main): Skip the test when snprintf fails
26873         to accept "%ju".  Reported by Bruno Haible.
26874
26875 2010-06-11  Jim Meyering  <meyering@redhat.com>
26876
26877         test-sys_socket: mark variables as used more readably
26878         * tests/test-sys_socket.c (main): Mark otherwise unused variables
26879         as "used" explicitly via (void) statement casts.  This is more
26880         readable than using them in an artificial return expression.
26881         Suggestion from Bruno Haible.
26882
26883 2010-06-11  Bruno Haible  <bruno@clisp.org>
26884
26885         Avoid some more warnings from "gcc -Wwrite-strings".
26886         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
26887         to 'const char *'.
26888         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
26889         * tests/test-c-strcasestr.c (main): Likewise.
26890         * tests/test-mbscasestr1.c (main): Likewise.
26891         * tests/test-mbscasestr2.c (main): Likewise.
26892         * tests/test-memmem.c (main): Likewise.
26893         * tests/test-strstr.c (main): Likewise.
26894         * tests/test-strcasestr.c (main): Likewise.
26895
26896 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26897
26898         init.sh: change framework_failure_ to fail with status 99, not 1
26899         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
26900         automake's parallel-tests rule that this is an unexpected failure,
26901         even if the test is listed in XFAIL_TESTS.
26902
26903 2010-06-11  Jim Meyering  <meyering@redhat.com>
26904
26905         test-inttostr: avoid warnings about 4-6KB literal strings
26906         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
26907         Include "macros.h", for its definition of ASSERT.
26908         (CK): s/assert/ASSERT/
26909         * modules/inttostr-tests (Files): Add macros.h.
26910
26911         init.sh: don't use $ME_ or skip_ before they are defined
26912         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
26913         their first uses.  Also hoist their companions: warn_, fail_,
26914         framework_failure_, $stderr_fileno.  Prompted by a patch from
26915         Stefano Lattarini.
26916
26917         test-sys_socket: avoid set-but-not-used warnings from gcc
26918         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
26919         avoid warning about set-but-not-used variables.
26920
26921         test-xvasprintf: avoid 'const' discard warnings
26922         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
26923         "const" when assigning from literal strings.
26924         (test_xasprintf): Add "void" in function argument list to placate
26925         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
26926
26927         tests: avoid compilation warnings in argmatch and exclude tests...
26928         in packages that define ARGMATCH_DIE_DECL, like coreutils.
26929         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
26930         Since it always exits, declare with the "noreturn" attribute.
26931         * tests/test-argmatch.c: Likewise.
26932
26933         tests: avoid 'const' discard warnings in mbsstr tests
26934         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
26935         * tests/test-mbsstr2.c (main): Likewise.
26936
26937         test-verify: avoid warning from gcc's -Wmissing-declarations
26938         * tests/test-verify.c (function): Declare to be static.
26939
26940         test-inttostr.c: include <string.h> for use of strcmp
26941         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
26942
26943         test-linkat: avoid failed assertion on "other" architectures
26944         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
26945         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
26946         sparc: https://bugs.launchpad.net/bugs/591968
26947
26948 2010-06-11  Jim Meyering  <meyering@redhat.com>
26949
26950         printf.m4: avoid autoconf's "Expanded Before Required" warning
26951         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
26952         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
26953         autoconf warning.
26954
26955 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
26956
26957         Replacement header templates are now named with ".in", not "_".
26958         * doc/gnulib-intro.texi: Correct.
26959
26960 2010-06-10  Jim Meyering  <meyering@redhat.com>
26961
26962         inttostr-tests: depend on snprintf, not snprintf-posix
26963         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
26964         snprintf-posix, to avoid this aclocal failure:
26965           missing file gnulib-tests/vasnprintf.c
26966           configure.ac:45: error: expected source file, required through \
26967           AC_LIBSOURCES, not found
26968
26969 2010-06-10  Jim Meyering  <meyering@redhat.com>
26970
26971         inttostr: add a new function, inttostr, and tests
26972         The namesake function was not available.  The existence of the
26973         template file, inttostr.c makes its addition nontrivial.
26974         * lib/anytostr.c: Rename from inttostr.c.
26975         (anytostr): Rename from inttostr.
26976         * lib/inttostr.c: New file.
26977         * modules/inttostr (Files): Add anytostr.c.
26978         (Makefile.am): Set lib_SOURCES instead of ...
26979         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
26980         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
26981         * lib/offtostr.c: Likewise.
26982         * lib/uinttostr.c: Likewise.
26983         * lib/umaxtostr.c: Likewise.
26984         * modules/inttostr-tests: New file.
26985         * tests/test-inttostr.c: New file.  Test these functions.
26986
26987 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
26988             Bruno Haible  <bruno@clisp.org>
26989
26990         Add "Extending Gnulib" chapter to manual.
26991         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
26992         chapter.
26993         (Extending Gnulib): New chapter.
26994         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
26995         chapter.
26996
26997 2010-06-09  Bruno Haible  <bruno@clisp.org>
26998
26999         Avoid relocwrapper link errors due to gnulib replacement functions.
27000         * lib/areadlink.c: Use the system's malloc, realloc functions.
27001         (areadlink): Set errno to ENOMEM explicitly.
27002         * modules/areadlink (Depends-on): Remove malloc-posix.
27003         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27004
27005 2010-06-09  Bruno Haible  <bruno@clisp.org>
27006
27007         Avoid relocwrapper link errors due to gnulib replacement functions.
27008         * lib/canonicalize-lgpl.c: Use the system's malloc function.
27009         * lib/malloca.c: Likewise.
27010         * lib/relocatable.c: Likewise.
27011         * lib/progreloc.c: Use the system's malloc, sprintf functions.
27012         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
27013         * lib/setenv.c: Use the system's malloc, realloc functions.
27014         * lib/strerror.c: Use the system's sprintf function.
27015         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27016
27017 2010-06-04  Bruno Haible  <bruno@clisp.org>
27018
27019         Prefer documented low-level autoconf macro names.
27020         * m4/lib-link.m4: Use m4_translit instead of translit.
27021         * m4/environ.m4: Likewise.
27022         * m4/mathfunc.m4: Likewise.
27023         * m4/onceonly.m4: Likewise.
27024         * m4/stdint.m4: Likewise.
27025         Suggested by Eric Blake.
27026
27027 2010-06-04  Martin Lambers  <marlam@marlam.de>
27028             Bruno Haible  <bruno@clisp.org>
27029
27030         havelib: Allow library names with '+' characters.
27031         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27032         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
27033
27034 2010-06-09  Bruno Haible  <bruno@clisp.org>
27035
27036         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
27037         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
27038         realloc failed.
27039
27040 2010-06-08  Peter Simons  <simons@cryp.to>
27041
27042         maint.mk: make the news-check rule more configurable
27043         * top/maint.mk (news-check-lines-spec): New variable.
27044         (news-check): Use "sed -n 1,10p" in place of "head".
27045
27046 2010-06-07  Jim Meyering  <meyering@redhat.com>
27047
27048         do-release-commit-and-tag: fix typo in --help
27049         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
27050
27051         regex: avoid new dead-code warning with gcc-4.6.0
27052         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
27053         if-block containing a while-loop.  It's been unused for at least
27054         5 years.
27055
27056 2010-06-05  Bruno Haible  <bruno@clisp.org>
27057
27058         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
27059         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
27060
27061 2010-06-04  Bruno Haible  <bruno@clisp.org>
27062
27063         Update to GNU gettext 0.18.1.
27064         * modules/gettext (configure.ac): Require gettext infrastructure from
27065         version 0.18.1.
27066
27067 2010-06-03  Bruno Haible  <bruno@clisp.org>
27068
27069         Don't use AC_LIBOBJ with file names in subdirectories.
27070         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
27071         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
27072         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
27073         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
27074         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
27075         gl_LIBUNISTRING_LIBSOURCE.
27076         (Makefile.am): Augment lib_SOURCES here, conditionally.
27077         * NEWS: Drop requirement for Automake option 'subdir-objects'.
27078
27079 2010-06-03  Bruno Haible  <bruno@clisp.org>
27080
27081         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
27082         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
27083         expansion does not end with a newline.
27084         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
27085         unnecessary newline.
27086
27087 2010-06-03  Bruno Haible  <bruno@clisp.org>
27088
27089         Reduce dependencies.
27090         * tests/test-quotearg.h: New file, extracted from
27091         tests/test-quotearg.c.
27092         * tests/test-quotearg-simple.c: New file, extracted from
27093         tests/test-quotearg.c.
27094         * tests/test-quotearg.c: Don't include <ctype.h>.
27095         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
27096         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
27097         use_quote_double_quotes, use_quotearg_colon): Moved to
27098         tests/test-quotearg.h.
27099         (results_g, flag_results, custom_quotes, custom_results): Moved
27100         to tests/test-quotearg-simple.c.
27101         (main): Moved the part that does not depend on gettext to
27102         tests/test-quotearg-simple.c. Return 77 if the test cannot be
27103         performed.
27104         * modules/quotearg-simple: New file.
27105         * modules/quotearg-simple-tests: New file.
27106         * modules/quotearg (Depends-on): Add quotearg-simple.
27107         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
27108         (Files): Add tests/test-quotearg.h.
27109         Reported by Paolo Bonzini.
27110
27111 2010-06-03  Bruno Haible  <bruno@clisp.org>
27112
27113         Reduce dependencies.
27114         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
27115
27116 2010-06-03  Bruno Haible  <bruno@clisp.org>
27117
27118         time: Undefine more broken macros.
27119         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
27120         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
27121         Reported by Eric Blake.
27122
27123 2010-06-03  Bruno Haible  <bruno@clisp.org>
27124
27125         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
27126         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
27127         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
27128         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
27129         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
27130         Reported by Ludovic Courtès <ludo@gnu.org>.
27131
27132 2010-06-02  Eric Blake  <eblake@redhat.com>
27133
27134         time: work with mingw + pthreads-win32 library
27135         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
27136         if timespec is defined only in pthread.h.
27137         * modules/time (Makefile.am): Substitute it.
27138         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
27139         <pthread.h>, when needed.
27140         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
27141         from the library.
27142
27143 2010-05-31  Bruno Haible  <bruno@clisp.org>
27144
27145         Avoid expanding two macros in the wrong order.
27146         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
27147         gl_LIBUNISTRING if it is defined.
27148         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
27149         autoconf >= 2.64.
27150         Reported by Ludovic Courtès <ludo@gnu.org>.
27151
27152 2010-05-27  Jim Meyering  <meyering@redhat.com>
27153
27154         maint.mk: also prohibit "#undef" of always-defined symbols
27155         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
27156         Allow more than one space before the symbol name.
27157         (sc_prohibit_always-defined_macros): Use grep's -E, now that
27158         the regexp uses alternation.
27159
27160 2010-05-26  Eric Blake  <eblake@redhat.com>
27161
27162         maint.mk: avoid echo -e
27163         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
27164         Convert all uses of echo -* to printf.
27165         Reported by Matthias Bolte.
27166
27167 2010-05-25  Bruno Haible  <bruno@clisp.org>
27168
27169         Update to GNU gettext 0.18, part 2.
27170         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
27171         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
27172
27173 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27174
27175         Add missing include in test-pwrite.c.
27176         * tests/test-pwrite.c: Include string.h, for strcmp.
27177
27178 2010-05-24  Bruno Haible  <bruno@clisp.org>
27179
27180         * NEWS: Mention requirement for Automake option 'subdir-objects'.
27181
27182 2010-05-24  Bruno Haible  <bruno@clisp.org>
27183
27184         Don't use conversion with transliteration in u{8,16,32}_strcoll.
27185         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
27186         iconveh_error argument.
27187         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
27188         U_STRCONV_TO_LOCALE.
27189         * lib/unistr/u16-strcoll.c: Likewise.
27190         * lib/unistr/u32-strcoll.c: Likewise.
27191         * modules/unistr/u8-strcoll (Depends-on): Add
27192         uniconv/u8-strconv-to-enc, localcharset. Remove
27193         uniconv/u8-strconv-to-locale.
27194         (configure.ac): Bump version number.
27195         * modules/unistr/u16-strcoll (Depends-on): Add
27196         uniconv/u16-strconv-to-enc, localcharset. Remove
27197         uniconv/u16-strconv-to-locale.
27198         (configure.ac): Bump version number.
27199         * modules/unistr/u32-strcoll (Depends-on): Add
27200         uniconv/u32-strconv-to-enc, localcharset. Remove
27201         uniconv/u32-strconv-to-locale.
27202         (configure.ac): Bump version number.
27203
27204 2010-05-24  Bruno Haible  <bruno@clisp.org>
27205
27206         Avoid a test failure on NetBSD 5.0.
27207         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
27208         an iconv() bug.
27209
27210 2010-05-24  Bruno Haible  <bruno@clisp.org>
27211
27212         Adjust #include directive style.
27213         * modules/regex (Includes): Recommend to write <regex.h>.
27214
27215 2010-05-24  Bruno Haible  <bruno@clisp.org>
27216
27217         regex: Don't require alloca.
27218         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
27219         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
27220         only inside if (0).
27221
27222 2010-05-23  Jim Meyering  <meyering@redhat.com>
27223
27224         test-renameat.c: include <sys/stat.h>
27225         * tests/test-renameat.c: Include <sys/stat.h>; required for
27226         definition of S_IS* macros.
27227
27228 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
27229
27230         Update maintainer documentation for 'relocatable-prog' module.
27231         * doc/relocatable-maint.texi: Update.
27232         Comments by Bruno Haible.
27233
27234 2010-05-23  Bruno Haible  <bruno@clisp.org>
27235
27236         git-merge-changelog: Enable --split-merged-entry by default.
27237         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
27238         (usage): Don't mention this option any more.
27239         Reported by Ralf Wildenhues.
27240
27241 2010-05-23  Jim Meyering  <meyering@redhat.com>
27242
27243         test-pwrite: do not leave behind a test file named "out"
27244         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
27245         The trivial-looking use of init.sh is really necessary.
27246         It ensures that the temporary file, "out", is created in
27247         a temporary directory, and removed upon termination.
27248         * tests/test-pwrite.sh: Re-add file.
27249         * modules/pwrite-tests: Reference it.
27250
27251 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27252
27253         Fix output redirection buglet in init.sh.
27254         * tests/init.sh: Fix redirection of stderr.
27255
27256 2010-05-20  Simon Josefsson  <simon@josefsson.org>
27257
27258         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
27259
27260 2010-05-17  Simon Josefsson  <simon@josefsson.org>
27261
27262         * modules/valgrind-tests: New file.
27263         * m4/valgrind-tests.m4: New file.
27264         * doc/valgrind-tests.texi: New file.
27265         * doc/gnulib.texi (Running self-tests under valgrind): New
27266         section.
27267
27268 2010-05-19  Bruno Haible  <bruno@clisp.org>
27269
27270         Clean up dead code in recent commit.
27271         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
27272         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
27273         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
27274         Suggested by Paolo Bonzini.
27275
27276 2010-05-19  Bruno Haible  <bruno@clisp.org>
27277
27278         Avoid valgrind error reports from libunistring.
27279         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
27280         * modules/libunistring (Files): Add it.
27281         * modules/libunistring-optional (Files): Likewise.
27282
27283 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
27284             Bruno Haible  <bruno@clisp.org>
27285
27286         New module 'libunistring-optional'.
27287         * modules/libunistring-optional: New file.
27288         * m4/libunistring-base.m4: New file.
27289         * m4/libunistring-optional.m4: New file.
27290         * lib/unicase.in.h: Renamed from lib/unicase.h.
27291         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
27292         * lib/unictype.in.h: Renamed from lib/unictype.h.
27293         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
27294         * lib/uniname.in.h: Renamed from lib/uniname.h.
27295         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
27296         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
27297         * lib/unistr.in.h: Renamed from lib/unistr.h.
27298         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
27299         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
27300         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
27301         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
27302         gl_LIBUNISTRING. If the library was found, determine the installed
27303         version and set LIBUNISTRING_VERSION.
27304         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
27305         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
27306         handle a configuration option --with-included-libunistring.
27307         * modules/libunistring (Files): Add m4/absolute-header.m4.
27308         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
27309         Add m4/libunistring-base.m4.
27310         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27311         (Makefile.am): Build unicase.h from unicase.in.h.
27312         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
27313         Add m4/libunistring-base.m4.
27314         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27315         (Makefile.am): Build uniconv.h from uniconv.in.h.
27316         * modules/unictype/base (Files): Use unictype.in.h instead of
27317         unictype.h. Add m4/libunistring-base.m4.
27318         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27319         (Makefile.am): Build unictype.h from unictype.in.h.
27320         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
27321         Add m4/libunistring-base.m4.
27322         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27323         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
27324         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
27325         Add m4/libunistring-base.m4.
27326         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27327         (Makefile.am): Build uniname.h from uniname.in.h.
27328         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
27329         Add m4/libunistring-base.m4.
27330         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27331         (Makefile.am): Build uninorm.h from uninorm.in.h.
27332         * modules/unistdio/base (Files): Use unistdio.in.h instead of
27333         unistdio.h. Add m4/libunistring-base.m4.
27334         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27335         (Makefile.am): Build unistdio.h from unistdio.in.h.
27336         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
27337         Add m4/libunistring-base.m4.
27338         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27339         (Makefile.am): Build unistr.h from unistr.in.h.
27340         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
27341         Add m4/libunistring-base.m4.
27342         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27343         (Makefile.am): Build unitypes.h from unitypes.in.h.
27344         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
27345         Add m4/libunistring-base.m4.
27346         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27347         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
27348         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
27349         uniwidth.h. Add m4/libunistring-base.m4.
27350         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27351         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
27352         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
27353         instead of augmenting lib_SOURCES.
27354         * modules/unicase/empty-suffix-context: Likewise.
27355         * modules/unicase/locale-language: Likewise.
27356         * modules/unicase/tolower: Likewise.
27357         * modules/unicase/totitle: Likewise.
27358         * modules/unicase/toupper: Likewise.
27359         * modules/unicase/u8-casecmp: Likewise.
27360         * modules/unicase/u8-casecoll: Likewise.
27361         * modules/unicase/u8-casefold: Likewise.
27362         * modules/unicase/u8-casexfrm: Likewise.
27363         * modules/unicase/u8-ct-casefold: Likewise.
27364         * modules/unicase/u8-ct-tolower: Likewise.
27365         * modules/unicase/u8-ct-totitle: Likewise.
27366         * modules/unicase/u8-ct-toupper: Likewise.
27367         * modules/unicase/u8-is-cased: Likewise.
27368         * modules/unicase/u8-is-casefolded: Likewise.
27369         * modules/unicase/u8-is-lowercase: Likewise.
27370         * modules/unicase/u8-is-titlecase: Likewise.
27371         * modules/unicase/u8-is-uppercase: Likewise.
27372         * modules/unicase/u8-prefix-context: Likewise.
27373         * modules/unicase/u8-suffix-context: Likewise.
27374         * modules/unicase/u8-tolower: Likewise.
27375         * modules/unicase/u8-totitle: Likewise.
27376         * modules/unicase/u8-toupper: Likewise.
27377         * modules/unicase/u16-casecmp: Likewise.
27378         * modules/unicase/u16-casecoll: Likewise.
27379         * modules/unicase/u16-casefold: Likewise.
27380         * modules/unicase/u16-casexfrm: Likewise.
27381         * modules/unicase/u16-ct-casefold: Likewise.
27382         * modules/unicase/u16-ct-tolower: Likewise.
27383         * modules/unicase/u16-ct-totitle: Likewise.
27384         * modules/unicase/u16-ct-toupper: Likewise.
27385         * modules/unicase/u16-is-cased: Likewise.
27386         * modules/unicase/u16-is-casefolded: Likewise.
27387         * modules/unicase/u16-is-lowercase: Likewise.
27388         * modules/unicase/u16-is-titlecase: Likewise.
27389         * modules/unicase/u16-is-uppercase: Likewise.
27390         * modules/unicase/u16-prefix-context: Likewise.
27391         * modules/unicase/u16-suffix-context: Likewise.
27392         * modules/unicase/u16-tolower: Likewise.
27393         * modules/unicase/u16-totitle: Likewise.
27394         * modules/unicase/u16-toupper: Likewise.
27395         * modules/unicase/u32-casecmp: Likewise.
27396         * modules/unicase/u32-casecoll: Likewise.
27397         * modules/unicase/u32-casefold: Likewise.
27398         * modules/unicase/u32-casexfrm: Likewise.
27399         * modules/unicase/u32-ct-casefold: Likewise.
27400         * modules/unicase/u32-ct-tolower: Likewise.
27401         * modules/unicase/u32-ct-totitle: Likewise.
27402         * modules/unicase/u32-ct-toupper: Likewise.
27403         * modules/unicase/u32-is-cased: Likewise.
27404         * modules/unicase/u32-is-casefolded: Likewise.
27405         * modules/unicase/u32-is-lowercase: Likewise.
27406         * modules/unicase/u32-is-titlecase: Likewise.
27407         * modules/unicase/u32-is-uppercase: Likewise.
27408         * modules/unicase/u32-prefix-context: Likewise.
27409         * modules/unicase/u32-suffix-context: Likewise.
27410         * modules/unicase/u32-tolower: Likewise.
27411         * modules/unicase/u32-totitle: Likewise.
27412         * modules/unicase/u32-toupper: Likewise.
27413         * modules/unicase/ulc-casecmp: Likewise.
27414         * modules/unicase/ulc-casecoll: Likewise.
27415         * modules/unicase/ulc-casexfrm: Likewise.
27416         * modules/uniconv/u8-conv-from-enc: Likewise.
27417         * modules/uniconv/u8-conv-to-enc: Likewise.
27418         * modules/uniconv/u8-strconv-from-enc: Likewise.
27419         * modules/uniconv/u8-strconv-from-locale: Likewise.
27420         * modules/uniconv/u8-strconv-to-enc: Likewise.
27421         * modules/uniconv/u8-strconv-to-locale: Likewise.
27422         * modules/uniconv/u16-conv-from-enc: Likewise.
27423         * modules/uniconv/u16-conv-to-enc: Likewise.
27424         * modules/uniconv/u16-strconv-from-enc: Likewise.
27425         * modules/uniconv/u16-strconv-from-locale: Likewise.
27426         * modules/uniconv/u16-strconv-to-enc: Likewise.
27427         * modules/uniconv/u16-strconv-to-locale: Likewise.
27428         * modules/uniconv/u32-conv-from-enc: Likewise.
27429         * modules/uniconv/u32-conv-to-enc: Likewise.
27430         * modules/uniconv/u32-strconv-from-enc: Likewise.
27431         * modules/uniconv/u32-strconv-from-locale: Likewise.
27432         * modules/uniconv/u32-strconv-to-enc: Likewise.
27433         * modules/uniconv/u32-strconv-to-locale: Likewise.
27434         * modules/unictype/bidicategory-byname: Likewise.
27435         * modules/unictype/bidicategory-name: Likewise.
27436         * modules/unictype/bidicategory-of: Likewise.
27437         * modules/unictype/bidicategory-test: Likewise.
27438         * modules/unictype/block-list: Likewise.
27439         * modules/unictype/block-test: Likewise.
27440         * modules/unictype/category-C: Likewise.
27441         * modules/unictype/category-Cc: Likewise.
27442         * modules/unictype/category-Cf: Likewise.
27443         * modules/unictype/category-Cn: Likewise.
27444         * modules/unictype/category-Co: Likewise.
27445         * modules/unictype/category-Cs: Likewise.
27446         * modules/unictype/category-L: Likewise.
27447         * modules/unictype/category-Ll: Likewise.
27448         * modules/unictype/category-Lm: Likewise.
27449         * modules/unictype/category-Lo: Likewise.
27450         * modules/unictype/category-Lt: Likewise.
27451         * modules/unictype/category-Lu: Likewise.
27452         * modules/unictype/category-M: Likewise.
27453         * modules/unictype/category-Mc: Likewise.
27454         * modules/unictype/category-Me: Likewise.
27455         * modules/unictype/category-Mn: Likewise.
27456         * modules/unictype/category-N: Likewise.
27457         * modules/unictype/category-Nd: Likewise.
27458         * modules/unictype/category-Nl: Likewise.
27459         * modules/unictype/category-No: Likewise.
27460         * modules/unictype/category-P: Likewise.
27461         * modules/unictype/category-Pc: Likewise.
27462         * modules/unictype/category-Pd: Likewise.
27463         * modules/unictype/category-Pe: Likewise.
27464         * modules/unictype/category-Pf: Likewise.
27465         * modules/unictype/category-Pi: Likewise.
27466         * modules/unictype/category-Po: Likewise.
27467         * modules/unictype/category-Ps: Likewise.
27468         * modules/unictype/category-S: Likewise.
27469         * modules/unictype/category-Sc: Likewise.
27470         * modules/unictype/category-Sk: Likewise.
27471         * modules/unictype/category-Sm: Likewise.
27472         * modules/unictype/category-So: Likewise.
27473         * modules/unictype/category-Z: Likewise.
27474         * modules/unictype/category-Zl: Likewise.
27475         * modules/unictype/category-Zp: Likewise.
27476         * modules/unictype/category-Zs: Likewise.
27477         * modules/unictype/category-and: Likewise.
27478         * modules/unictype/category-and-not: Likewise.
27479         * modules/unictype/category-byname: Likewise.
27480         * modules/unictype/category-name: Likewise.
27481         * modules/unictype/category-none: Likewise.
27482         * modules/unictype/category-of: Likewise.
27483         * modules/unictype/category-or: Likewise.
27484         * modules/unictype/category-test: Likewise.
27485         * modules/unictype/combining-class: Likewise.
27486         * modules/unictype/ctype-alnum: Likewise.
27487         * modules/unictype/ctype-alpha: Likewise.
27488         * modules/unictype/ctype-blank: Likewise.
27489         * modules/unictype/ctype-cntrl: Likewise.
27490         * modules/unictype/ctype-digit: Likewise.
27491         * modules/unictype/ctype-graph: Likewise.
27492         * modules/unictype/ctype-lower: Likewise.
27493         * modules/unictype/ctype-print: Likewise.
27494         * modules/unictype/ctype-punct: Likewise.
27495         * modules/unictype/ctype-space: Likewise.
27496         * modules/unictype/ctype-upper: Likewise.
27497         * modules/unictype/ctype-xdigit: Likewise.
27498         * modules/unictype/decimal-digit: Likewise.
27499         * modules/unictype/digit: Likewise.
27500         * modules/unictype/mirror: Likewise.
27501         * modules/unictype/numeric: Likewise.
27502         * modules/unictype/property-alphabetic: Likewise.
27503         * modules/unictype/property-ascii-hex-digit: Likewise.
27504         * modules/unictype/property-bidi-arabic-digit: Likewise.
27505         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
27506         * modules/unictype/property-bidi-block-separator: Likewise.
27507         * modules/unictype/property-bidi-boundary-neutral: Likewise.
27508         * modules/unictype/property-bidi-common-separator: Likewise.
27509         * modules/unictype/property-bidi-control: Likewise.
27510         * modules/unictype/property-bidi-embedding-or-override: Likewise.
27511         * modules/unictype/property-bidi-eur-num-separator: Likewise.
27512         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
27513         * modules/unictype/property-bidi-european-digit: Likewise.
27514         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
27515         * modules/unictype/property-bidi-left-to-right: Likewise.
27516         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
27517         * modules/unictype/property-bidi-other-neutral: Likewise.
27518         * modules/unictype/property-bidi-pdf: Likewise.
27519         * modules/unictype/property-bidi-segment-separator: Likewise.
27520         * modules/unictype/property-bidi-whitespace: Likewise.
27521         * modules/unictype/property-byname: Likewise.
27522         * modules/unictype/property-combining: Likewise.
27523         * modules/unictype/property-composite: Likewise.
27524         * modules/unictype/property-currency-symbol: Likewise.
27525         * modules/unictype/property-dash: Likewise.
27526         * modules/unictype/property-decimal-digit: Likewise.
27527         * modules/unictype/property-default-ignorable-code-point: Likewise.
27528         * modules/unictype/property-deprecated: Likewise.
27529         * modules/unictype/property-diacritic: Likewise.
27530         * modules/unictype/property-extender: Likewise.
27531         * modules/unictype/property-format-control: Likewise.
27532         * modules/unictype/property-grapheme-base: Likewise.
27533         * modules/unictype/property-grapheme-extend: Likewise.
27534         * modules/unictype/property-grapheme-link: Likewise.
27535         * modules/unictype/property-hex-digit: Likewise.
27536         * modules/unictype/property-hyphen: Likewise.
27537         * modules/unictype/property-id-continue: Likewise.
27538         * modules/unictype/property-id-start: Likewise.
27539         * modules/unictype/property-ideographic: Likewise.
27540         * modules/unictype/property-ids-binary-operator: Likewise.
27541         * modules/unictype/property-ids-trinary-operator: Likewise.
27542         * modules/unictype/property-ignorable-control: Likewise.
27543         * modules/unictype/property-iso-control: Likewise.
27544         * modules/unictype/property-join-control: Likewise.
27545         * modules/unictype/property-left-of-pair: Likewise.
27546         * modules/unictype/property-line-separator: Likewise.
27547         * modules/unictype/property-logical-order-exception: Likewise.
27548         * modules/unictype/property-lowercase: Likewise.
27549         * modules/unictype/property-math: Likewise.
27550         * modules/unictype/property-non-break: Likewise.
27551         * modules/unictype/property-not-a-character: Likewise.
27552         * modules/unictype/property-numeric: Likewise.
27553         * modules/unictype/property-other-alphabetic: Likewise.
27554         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
27555         * modules/unictype/property-other-grapheme-extend: Likewise.
27556         * modules/unictype/property-other-id-continue: Likewise.
27557         * modules/unictype/property-other-id-start: Likewise.
27558         * modules/unictype/property-other-lowercase: Likewise.
27559         * modules/unictype/property-other-math: Likewise.
27560         * modules/unictype/property-other-uppercase: Likewise.
27561         * modules/unictype/property-paired-punctuation: Likewise.
27562         * modules/unictype/property-paragraph-separator: Likewise.
27563         * modules/unictype/property-pattern-syntax: Likewise.
27564         * modules/unictype/property-pattern-white-space: Likewise.
27565         * modules/unictype/property-private-use: Likewise.
27566         * modules/unictype/property-punctuation: Likewise.
27567         * modules/unictype/property-quotation-mark: Likewise.
27568         * modules/unictype/property-radical: Likewise.
27569         * modules/unictype/property-sentence-terminal: Likewise.
27570         * modules/unictype/property-soft-dotted: Likewise.
27571         * modules/unictype/property-space: Likewise.
27572         * modules/unictype/property-terminal-punctuation: Likewise.
27573         * modules/unictype/property-test: Likewise.
27574         * modules/unictype/property-titlecase: Likewise.
27575         * modules/unictype/property-unassigned-code-value: Likewise.
27576         * modules/unictype/property-unified-ideograph: Likewise.
27577         * modules/unictype/property-uppercase: Likewise.
27578         * modules/unictype/property-variation-selector: Likewise.
27579         * modules/unictype/property-white-space: Likewise.
27580         * modules/unictype/property-xid-continue: Likewise.
27581         * modules/unictype/property-xid-start: Likewise.
27582         * modules/unictype/property-zero-width: Likewise.
27583         * modules/unictype/scripts: Likewise.
27584         * modules/unictype/syntax-c-ident: Likewise.
27585         * modules/unictype/syntax-c-whitespace: Likewise.
27586         * modules/unictype/syntax-java-ident: Likewise.
27587         * modules/unictype/syntax-java-whitespace: Likewise.
27588         * modules/unilbrk/u8-possible-linebreaks: Likewise.
27589         * modules/unilbrk/u8-width-linebreaks: Likewise.
27590         * modules/unilbrk/u16-possible-linebreaks: Likewise.
27591         * modules/unilbrk/u16-width-linebreaks: Likewise.
27592         * modules/unilbrk/u32-possible-linebreaks: Likewise.
27593         * modules/unilbrk/u32-width-linebreaks: Likewise.
27594         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
27595         * modules/unilbrk/ulc-width-linebreaks: Likewise.
27596         * modules/uniname/uniname: Likewise.
27597         * modules/uninorm/canonical-decomposition: Likewise.
27598         * modules/uninorm/composition: Likewise.
27599         * modules/uninorm/decomposing-form: Likewise.
27600         * modules/uninorm/decomposition: Likewise.
27601         * modules/uninorm/filter: Likewise.
27602         * modules/uninorm/nfc: Likewise.
27603         * modules/uninorm/nfd: Likewise.
27604         * modules/uninorm/nfkc: Likewise.
27605         * modules/uninorm/nfkd: Likewise.
27606         * modules/uninorm/u8-normalize: Likewise.
27607         * modules/uninorm/u8-normcmp: Likewise.
27608         * modules/uninorm/u8-normcoll: Likewise.
27609         * modules/uninorm/u8-normxfrm: Likewise.
27610         * modules/uninorm/u16-normalize: Likewise.
27611         * modules/uninorm/u16-normcmp: Likewise.
27612         * modules/uninorm/u16-normcoll: Likewise.
27613         * modules/uninorm/u16-normxfrm: Likewise.
27614         * modules/uninorm/u32-normalize: Likewise.
27615         * modules/uninorm/u32-normcmp: Likewise.
27616         * modules/uninorm/u32-normcoll: Likewise.
27617         * modules/uninorm/u32-normxfrm: Likewise.
27618         * modules/unistdio/u8-asnprintf: Likewise.
27619         * modules/unistdio/u8-asprintf: Likewise.
27620         * modules/unistdio/u8-snprintf: Likewise.
27621         * modules/unistdio/u8-sprintf: Likewise.
27622         * modules/unistdio/u8-u8-asnprintf: Likewise.
27623         * modules/unistdio/u8-u8-asprintf: Likewise.
27624         * modules/unistdio/u8-u8-snprintf: Likewise.
27625         * modules/unistdio/u8-u8-sprintf: Likewise.
27626         * modules/unistdio/u8-u8-vasnprintf: Likewise.
27627         * modules/unistdio/u8-u8-vasprintf: Likewise.
27628         * modules/unistdio/u8-u8-vsnprintf: Likewise.
27629         * modules/unistdio/u8-u8-vsprintf: Likewise.
27630         * modules/unistdio/u8-vasnprintf: Likewise.
27631         * modules/unistdio/u8-vasprintf: Likewise.
27632         * modules/unistdio/u8-vsnprintf: Likewise.
27633         * modules/unistdio/u8-vsprintf: Likewise.
27634         * modules/unistdio/u16-asnprintf: Likewise.
27635         * modules/unistdio/u16-asprintf: Likewise.
27636         * modules/unistdio/u16-snprintf: Likewise.
27637         * modules/unistdio/u16-sprintf: Likewise.
27638         * modules/unistdio/u16-u16-asnprintf: Likewise.
27639         * modules/unistdio/u16-u16-asprintf: Likewise.
27640         * modules/unistdio/u16-u16-snprintf: Likewise.
27641         * modules/unistdio/u16-u16-sprintf: Likewise.
27642         * modules/unistdio/u16-u16-vasnprintf: Likewise.
27643         * modules/unistdio/u16-u16-vasprintf: Likewise.
27644         * modules/unistdio/u16-u16-vsnprintf: Likewise.
27645         * modules/unistdio/u16-u16-vsprintf: Likewise.
27646         * modules/unistdio/u16-vasnprintf: Likewise.
27647         * modules/unistdio/u16-vasprintf: Likewise.
27648         * modules/unistdio/u16-vsnprintf: Likewise.
27649         * modules/unistdio/u16-vsprintf: Likewise.
27650         * modules/unistdio/u32-asnprintf: Likewise.
27651         * modules/unistdio/u32-asprintf: Likewise.
27652         * modules/unistdio/u32-snprintf: Likewise.
27653         * modules/unistdio/u32-sprintf: Likewise.
27654         * modules/unistdio/u32-u32-asnprintf: Likewise.
27655         * modules/unistdio/u32-u32-asprintf: Likewise.
27656         * modules/unistdio/u32-u32-snprintf: Likewise.
27657         * modules/unistdio/u32-u32-sprintf: Likewise.
27658         * modules/unistdio/u32-u32-vasnprintf: Likewise.
27659         * modules/unistdio/u32-u32-vasprintf: Likewise.
27660         * modules/unistdio/u32-u32-vsnprintf: Likewise.
27661         * modules/unistdio/u32-u32-vsprintf: Likewise.
27662         * modules/unistdio/u32-vasnprintf: Likewise.
27663         * modules/unistdio/u32-vasprintf: Likewise.
27664         * modules/unistdio/u32-vsnprintf: Likewise.
27665         * modules/unistdio/u32-vsprintf: Likewise.
27666         * modules/unistdio/ulc-asnprintf: Likewise.
27667         * modules/unistdio/ulc-asprintf: Likewise.
27668         * modules/unistdio/ulc-fprintf: Likewise.
27669         * modules/unistdio/ulc-snprintf: Likewise.
27670         * modules/unistdio/ulc-sprintf: Likewise.
27671         * modules/unistdio/ulc-vasnprintf: Likewise.
27672         * modules/unistdio/ulc-vasprintf: Likewise.
27673         * modules/unistdio/ulc-vfprintf: Likewise.
27674         * modules/unistdio/ulc-vsnprintf: Likewise.
27675         * modules/unistdio/ulc-vsprintf: Likewise.
27676         * modules/unistr/u8-check: Likewise.
27677         * modules/unistr/u8-chr: Likewise.
27678         * modules/unistr/u8-cmp: Likewise.
27679         * modules/unistr/u8-cmp2: Likewise.
27680         * modules/unistr/u8-cpy: Likewise.
27681         * modules/unistr/u8-cpy-alloc: Likewise.
27682         * modules/unistr/u8-endswith: Likewise.
27683         * modules/unistr/u8-mblen: Likewise.
27684         * modules/unistr/u8-mbsnlen: Likewise.
27685         * modules/unistr/u8-mbtouc: Likewise.
27686         * modules/unistr/u8-mbtouc-unsafe: Likewise.
27687         * modules/unistr/u8-mbtoucr: Likewise.
27688         * modules/unistr/u8-move: Likewise.
27689         * modules/unistr/u8-next: Likewise.
27690         * modules/unistr/u8-prev: Likewise.
27691         * modules/unistr/u8-set: Likewise.
27692         * modules/unistr/u8-startswith: Likewise.
27693         * modules/unistr/u8-stpcpy: Likewise.
27694         * modules/unistr/u8-stpncpy: Likewise.
27695         * modules/unistr/u8-strcat: Likewise.
27696         * modules/unistr/u8-strchr: Likewise.
27697         * modules/unistr/u8-strcmp: Likewise.
27698         * modules/unistr/u8-strcoll: Likewise.
27699         * modules/unistr/u8-strcpy: Likewise.
27700         * modules/unistr/u8-strcspn: Likewise.
27701         * modules/unistr/u8-strdup: Likewise.
27702         * modules/unistr/u8-strlen: Likewise.
27703         * modules/unistr/u8-strmblen: Likewise.
27704         * modules/unistr/u8-strmbtouc: Likewise.
27705         * modules/unistr/u8-strncat: Likewise.
27706         * modules/unistr/u8-strncmp: Likewise.
27707         * modules/unistr/u8-strncpy: Likewise.
27708         * modules/unistr/u8-strnlen: Likewise.
27709         * modules/unistr/u8-strpbrk: Likewise.
27710         * modules/unistr/u8-strrchr: Likewise.
27711         * modules/unistr/u8-strspn: Likewise.
27712         * modules/unistr/u8-strstr: Likewise.
27713         * modules/unistr/u8-strtok: Likewise.
27714         * modules/unistr/u8-to-u16: Likewise.
27715         * modules/unistr/u8-to-u32: Likewise.
27716         * modules/unistr/u8-uctomb: Likewise.
27717         * modules/unistr/u16-check: Likewise.
27718         * modules/unistr/u16-chr: Likewise.
27719         * modules/unistr/u16-cmp: Likewise.
27720         * modules/unistr/u16-cmp2: Likewise.
27721         * modules/unistr/u16-cpy: Likewise.
27722         * modules/unistr/u16-cpy-alloc: Likewise.
27723         * modules/unistr/u16-endswith: Likewise.
27724         * modules/unistr/u16-mblen: Likewise.
27725         * modules/unistr/u16-mbsnlen: Likewise.
27726         * modules/unistr/u16-mbtouc: Likewise.
27727         * modules/unistr/u16-mbtouc-unsafe: Likewise.
27728         * modules/unistr/u16-mbtoucr: Likewise.
27729         * modules/unistr/u16-move: Likewise.
27730         * modules/unistr/u16-next: Likewise.
27731         * modules/unistr/u16-prev: Likewise.
27732         * modules/unistr/u16-set: Likewise.
27733         * modules/unistr/u16-startswith: Likewise.
27734         * modules/unistr/u16-stpcpy: Likewise.
27735         * modules/unistr/u16-stpncpy: Likewise.
27736         * modules/unistr/u16-strcat: Likewise.
27737         * modules/unistr/u16-strchr: Likewise.
27738         * modules/unistr/u16-strcmp: Likewise.
27739         * modules/unistr/u16-strcoll: Likewise.
27740         * modules/unistr/u16-strcpy: Likewise.
27741         * modules/unistr/u16-strcspn: Likewise.
27742         * modules/unistr/u16-strdup: Likewise.
27743         * modules/unistr/u16-strlen: Likewise.
27744         * modules/unistr/u16-strmblen: Likewise.
27745         * modules/unistr/u16-strmbtouc: Likewise.
27746         * modules/unistr/u16-strncat: Likewise.
27747         * modules/unistr/u16-strncmp: Likewise.
27748         * modules/unistr/u16-strncpy: Likewise.
27749         * modules/unistr/u16-strnlen: Likewise.
27750         * modules/unistr/u16-strpbrk: Likewise.
27751         * modules/unistr/u16-strrchr: Likewise.
27752         * modules/unistr/u16-strspn: Likewise.
27753         * modules/unistr/u16-strstr: Likewise.
27754         * modules/unistr/u16-strtok: Likewise.
27755         * modules/unistr/u16-to-u32: Likewise.
27756         * modules/unistr/u16-to-u8: Likewise.
27757         * modules/unistr/u16-uctomb: Likewise.
27758         * modules/unistr/u32-check: Likewise.
27759         * modules/unistr/u32-chr: Likewise.
27760         * modules/unistr/u32-cmp: Likewise.
27761         * modules/unistr/u32-cmp2: Likewise.
27762         * modules/unistr/u32-cpy: Likewise.
27763         * modules/unistr/u32-cpy-alloc: Likewise.
27764         * modules/unistr/u32-endswith: Likewise.
27765         * modules/unistr/u32-mblen: Likewise.
27766         * modules/unistr/u32-mbsnlen: Likewise.
27767         * modules/unistr/u32-mbtouc: Likewise.
27768         * modules/unistr/u32-mbtouc-unsafe: Likewise.
27769         * modules/unistr/u32-mbtoucr: Likewise.
27770         * modules/unistr/u32-move: Likewise.
27771         * modules/unistr/u32-next: Likewise.
27772         * modules/unistr/u32-prev: Likewise.
27773         * modules/unistr/u32-set: Likewise.
27774         * modules/unistr/u32-startswith: Likewise.
27775         * modules/unistr/u32-stpcpy: Likewise.
27776         * modules/unistr/u32-stpncpy: Likewise.
27777         * modules/unistr/u32-strcat: Likewise.
27778         * modules/unistr/u32-strchr: Likewise.
27779         * modules/unistr/u32-strcmp: Likewise.
27780         * modules/unistr/u32-strcoll: Likewise.
27781         * modules/unistr/u32-strcpy: Likewise.
27782         * modules/unistr/u32-strcspn: Likewise.
27783         * modules/unistr/u32-strdup: Likewise.
27784         * modules/unistr/u32-strlen: Likewise.
27785         * modules/unistr/u32-strmblen: Likewise.
27786         * modules/unistr/u32-strmbtouc: Likewise.
27787         * modules/unistr/u32-strncat: Likewise.
27788         * modules/unistr/u32-strncmp: Likewise.
27789         * modules/unistr/u32-strncpy: Likewise.
27790         * modules/unistr/u32-strnlen: Likewise.
27791         * modules/unistr/u32-strpbrk: Likewise.
27792         * modules/unistr/u32-strrchr: Likewise.
27793         * modules/unistr/u32-strspn: Likewise.
27794         * modules/unistr/u32-strstr: Likewise.
27795         * modules/unistr/u32-strtok: Likewise.
27796         * modules/unistr/u32-to-u16: Likewise.
27797         * modules/unistr/u32-to-u8: Likewise.
27798         * modules/unistr/u32-uctomb: Likewise.
27799         * modules/uniwbrk/u8-wordbreaks: Likewise.
27800         * modules/uniwbrk/u16-wordbreaks: Likewise.
27801         * modules/uniwbrk/u32-wordbreaks: Likewise.
27802         * modules/uniwbrk/ulc-wordbreaks: Likewise.
27803         * modules/uniwbrk/wordbreak-property: Likewise.
27804         * modules/uniwidth/u8-strwidth: Likewise.
27805         * modules/uniwidth/u8-width: Likewise.
27806         * modules/uniwidth/u16-strwidth: Likewise.
27807         * modules/uniwidth/u16-width: Likewise.
27808         * modules/uniwidth/u32-strwidth: Likewise.
27809         * modules/uniwidth/u32-width: Likewise.
27810         * modules/uniwidth/width: Likewise.
27811         * modules/unicase/cased-tests (Makefile.am): Link all test programs
27812         with $(LIBUNISTRING).
27813         * modules/unicase/ignorable-tests: Likewise.
27814         * modules/unicase/locale-language-tests: Likewise.
27815         * modules/unicase/tolower-tests: Likewise.
27816         * modules/unicase/totitle-tests: Likewise.
27817         * modules/unicase/toupper-tests: Likewise.
27818         * modules/unicase/u8-casecmp-tests: Likewise.
27819         * modules/unicase/u8-casecoll-tests: Likewise.
27820         * modules/unicase/u8-casefold-tests: Likewise.
27821         * modules/unicase/u8-is-cased-tests: Likewise.
27822         * modules/unicase/u8-is-casefolded-tests: Likewise.
27823         * modules/unicase/u8-is-lowercase-tests: Likewise.
27824         * modules/unicase/u8-is-titlecase-tests: Likewise.
27825         * modules/unicase/u8-is-uppercase-tests: Likewise.
27826         * modules/unicase/u8-tolower-tests: Likewise.
27827         * modules/unicase/u8-totitle-tests: Likewise.
27828         * modules/unicase/u8-toupper-tests: Likewise.
27829         * modules/unicase/u16-casecmp-tests: Likewise.
27830         * modules/unicase/u16-casecoll-tests: Likewise.
27831         * modules/unicase/u16-casefold-tests: Likewise.
27832         * modules/unicase/u16-is-cased-tests: Likewise.
27833         * modules/unicase/u16-is-casefolded-tests: Likewise.
27834         * modules/unicase/u16-is-lowercase-tests: Likewise.
27835         * modules/unicase/u16-is-titlecase-tests: Likewise.
27836         * modules/unicase/u16-is-uppercase-tests: Likewise.
27837         * modules/unicase/u16-tolower-tests: Likewise.
27838         * modules/unicase/u16-totitle-tests: Likewise.
27839         * modules/unicase/u16-toupper-tests: Likewise.
27840         * modules/unicase/u32-casecmp-tests: Likewise.
27841         * modules/unicase/u32-casecoll-tests: Likewise.
27842         * modules/unicase/u32-casefold-tests: Likewise.
27843         * modules/unicase/u32-is-cased-tests: Likewise.
27844         * modules/unicase/u32-is-casefolded-tests: Likewise.
27845         * modules/unicase/u32-is-lowercase-tests: Likewise.
27846         * modules/unicase/u32-is-titlecase-tests: Likewise.
27847         * modules/unicase/u32-is-uppercase-tests: Likewise.
27848         * modules/unicase/u32-tolower-tests: Likewise.
27849         * modules/unicase/u32-totitle-tests: Likewise.
27850         * modules/unicase/u32-toupper-tests: Likewise.
27851         * modules/unicase/ulc-casecmp-tests: Likewise.
27852         * modules/unicase/ulc-casecoll-tests: Likewise.
27853         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
27854         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
27855         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
27856         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
27857         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
27858         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
27859         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
27860         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
27861         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
27862         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
27863         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
27864         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
27865         * modules/unictype/bidicategory-byname-tests: Likewise.
27866         * modules/unictype/bidicategory-name-tests: Likewise.
27867         * modules/unictype/bidicategory-of-tests: Likewise.
27868         * modules/unictype/bidicategory-test-tests: Likewise.
27869         * modules/unictype/block-list-tests: Likewise.
27870         * modules/unictype/block-of-tests: Likewise.
27871         * modules/unictype/block-test-tests: Likewise.
27872         * modules/unictype/category-C-tests: Likewise.
27873         * modules/unictype/category-Cc-tests: Likewise.
27874         * modules/unictype/category-Cf-tests: Likewise.
27875         * modules/unictype/category-Cn-tests: Likewise.
27876         * modules/unictype/category-Co-tests: Likewise.
27877         * modules/unictype/category-Cs-tests: Likewise.
27878         * modules/unictype/category-L-tests: Likewise.
27879         * modules/unictype/category-Ll-tests: Likewise.
27880         * modules/unictype/category-Lm-tests: Likewise.
27881         * modules/unictype/category-Lo-tests: Likewise.
27882         * modules/unictype/category-Lt-tests: Likewise.
27883         * modules/unictype/category-Lu-tests: Likewise.
27884         * modules/unictype/category-M-tests: Likewise.
27885         * modules/unictype/category-Mc-tests: Likewise.
27886         * modules/unictype/category-Me-tests: Likewise.
27887         * modules/unictype/category-Mn-tests: Likewise.
27888         * modules/unictype/category-N-tests: Likewise.
27889         * modules/unictype/category-Nd-tests: Likewise.
27890         * modules/unictype/category-Nl-tests: Likewise.
27891         * modules/unictype/category-No-tests: Likewise.
27892         * modules/unictype/category-P-tests: Likewise.
27893         * modules/unictype/category-Pc-tests: Likewise.
27894         * modules/unictype/category-Pd-tests: Likewise.
27895         * modules/unictype/category-Pe-tests: Likewise.
27896         * modules/unictype/category-Pf-tests: Likewise.
27897         * modules/unictype/category-Pi-tests: Likewise.
27898         * modules/unictype/category-Po-tests: Likewise.
27899         * modules/unictype/category-Ps-tests: Likewise.
27900         * modules/unictype/category-S-tests: Likewise.
27901         * modules/unictype/category-Sc-tests: Likewise.
27902         * modules/unictype/category-Sk-tests: Likewise.
27903         * modules/unictype/category-Sm-tests: Likewise.
27904         * modules/unictype/category-So-tests: Likewise.
27905         * modules/unictype/category-Z-tests: Likewise.
27906         * modules/unictype/category-Zl-tests: Likewise.
27907         * modules/unictype/category-Zp-tests: Likewise.
27908         * modules/unictype/category-Zs-tests: Likewise.
27909         * modules/unictype/category-and-not-tests: Likewise.
27910         * modules/unictype/category-and-tests: Likewise.
27911         * modules/unictype/category-byname-tests: Likewise.
27912         * modules/unictype/category-name-tests: Likewise.
27913         * modules/unictype/category-none-tests: Likewise.
27914         * modules/unictype/category-of-tests: Likewise.
27915         * modules/unictype/category-or-tests: Likewise.
27916         * modules/unictype/category-test-withtable-tests: Likewise.
27917         * modules/unictype/combining-class-tests: Likewise.
27918         * modules/unictype/ctype-alnum-tests: Likewise.
27919         * modules/unictype/ctype-alpha-tests: Likewise.
27920         * modules/unictype/ctype-blank-tests: Likewise.
27921         * modules/unictype/ctype-cntrl-tests: Likewise.
27922         * modules/unictype/ctype-digit-tests: Likewise.
27923         * modules/unictype/ctype-graph-tests: Likewise.
27924         * modules/unictype/ctype-lower-tests: Likewise.
27925         * modules/unictype/ctype-print-tests: Likewise.
27926         * modules/unictype/ctype-punct-tests: Likewise.
27927         * modules/unictype/ctype-space-tests: Likewise.
27928         * modules/unictype/ctype-upper-tests: Likewise.
27929         * modules/unictype/ctype-xdigit-tests: Likewise.
27930         * modules/unictype/decimal-digit-tests: Likewise.
27931         * modules/unictype/digit-tests: Likewise.
27932         * modules/unictype/mirror-tests: Likewise.
27933         * modules/unictype/numeric-tests: Likewise.
27934         * modules/unictype/property-alphabetic-tests: Likewise.
27935         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
27936         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
27937         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
27938         * modules/unictype/property-bidi-block-separator-tests: Likewise.
27939         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
27940         * modules/unictype/property-bidi-common-separator-tests: Likewise.
27941         * modules/unictype/property-bidi-control-tests: Likewise.
27942         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
27943         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
27944         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
27945         * modules/unictype/property-bidi-european-digit-tests: Likewise.
27946         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
27947         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
27948         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
27949         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
27950         * modules/unictype/property-bidi-pdf-tests: Likewise.
27951         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
27952         * modules/unictype/property-bidi-whitespace-tests: Likewise.
27953         * modules/unictype/property-byname-tests: Likewise.
27954         * modules/unictype/property-combining-tests: Likewise.
27955         * modules/unictype/property-composite-tests: Likewise.
27956         * modules/unictype/property-currency-symbol-tests: Likewise.
27957         * modules/unictype/property-dash-tests: Likewise.
27958         * modules/unictype/property-decimal-digit-tests: Likewise.
27959         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
27960         * modules/unictype/property-deprecated-tests: Likewise.
27961         * modules/unictype/property-diacritic-tests: Likewise.
27962         * modules/unictype/property-extender-tests: Likewise.
27963         * modules/unictype/property-format-control-tests: Likewise.
27964         * modules/unictype/property-grapheme-base-tests: Likewise.
27965         * modules/unictype/property-grapheme-extend-tests: Likewise.
27966         * modules/unictype/property-grapheme-link-tests: Likewise.
27967         * modules/unictype/property-hex-digit-tests: Likewise.
27968         * modules/unictype/property-hyphen-tests: Likewise.
27969         * modules/unictype/property-id-continue-tests: Likewise.
27970         * modules/unictype/property-id-start-tests: Likewise.
27971         * modules/unictype/property-ideographic-tests: Likewise.
27972         * modules/unictype/property-ids-binary-operator-tests: Likewise.
27973         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
27974         * modules/unictype/property-ignorable-control-tests: Likewise.
27975         * modules/unictype/property-iso-control-tests: Likewise.
27976         * modules/unictype/property-join-control-tests: Likewise.
27977         * modules/unictype/property-left-of-pair-tests: Likewise.
27978         * modules/unictype/property-line-separator-tests: Likewise.
27979         * modules/unictype/property-logical-order-exception-tests: Likewise.
27980         * modules/unictype/property-lowercase-tests: Likewise.
27981         * modules/unictype/property-math-tests: Likewise.
27982         * modules/unictype/property-non-break-tests: Likewise.
27983         * modules/unictype/property-not-a-character-tests: Likewise.
27984         * modules/unictype/property-numeric-tests: Likewise.
27985         * modules/unictype/property-other-alphabetic-tests: Likewise.
27986         * modules/unictype/property-other-default-ignorable-code-point-tests:
27987         Likewise.
27988         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
27989         * modules/unictype/property-other-id-continue-tests: Likewise.
27990         * modules/unictype/property-other-id-start-tests: Likewise.
27991         * modules/unictype/property-other-lowercase-tests: Likewise.
27992         * modules/unictype/property-other-math-tests: Likewise.
27993         * modules/unictype/property-other-uppercase-tests: Likewise.
27994         * modules/unictype/property-paired-punctuation-tests: Likewise.
27995         * modules/unictype/property-paragraph-separator-tests: Likewise.
27996         * modules/unictype/property-pattern-syntax-tests: Likewise.
27997         * modules/unictype/property-pattern-white-space-tests: Likewise.
27998         * modules/unictype/property-private-use-tests: Likewise.
27999         * modules/unictype/property-punctuation-tests: Likewise.
28000         * modules/unictype/property-quotation-mark-tests: Likewise.
28001         * modules/unictype/property-radical-tests: Likewise.
28002         * modules/unictype/property-sentence-terminal-tests: Likewise.
28003         * modules/unictype/property-soft-dotted-tests: Likewise.
28004         * modules/unictype/property-space-tests: Likewise.
28005         * modules/unictype/property-terminal-punctuation-tests: Likewise.
28006         * modules/unictype/property-test-tests: Likewise.
28007         * modules/unictype/property-titlecase-tests: Likewise.
28008         * modules/unictype/property-unassigned-code-value-tests: Likewise.
28009         * modules/unictype/property-unified-ideograph-tests: Likewise.
28010         * modules/unictype/property-uppercase-tests: Likewise.
28011         * modules/unictype/property-variation-selector-tests: Likewise.
28012         * modules/unictype/property-white-space-tests: Likewise.
28013         * modules/unictype/property-xid-continue-tests: Likewise.
28014         * modules/unictype/property-xid-start-tests: Likewise.
28015         * modules/unictype/property-zero-width-tests: Likewise.
28016         * modules/unictype/scripts-tests: Likewise.
28017         * modules/unictype/syntax-c-ident-tests: Likewise.
28018         * modules/unictype/syntax-c-whitespace-tests: Likewise.
28019         * modules/unictype/syntax-java-ident-tests: Likewise.
28020         * modules/unictype/syntax-java-whitespace-tests: Likewise.
28021         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
28022         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
28023         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
28024         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
28025         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
28026         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
28027         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
28028         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
28029         * modules/uniname/uniname-tests: Likewise.
28030         * modules/uninorm/canonical-decomposition-tests: Likewise.
28031         * modules/uninorm/compat-decomposition-tests: Likewise.
28032         * modules/uninorm/composition-tests: Likewise.
28033         * modules/uninorm/decomposing-form-tests: Likewise.
28034         * modules/uninorm/decomposition-tests: Likewise.
28035         * modules/uninorm/filter-tests: Likewise.
28036         * modules/uninorm/nfc-tests: Likewise.
28037         * modules/uninorm/nfd-tests: Likewise.
28038         * modules/uninorm/nfkc-tests: Likewise.
28039         * modules/uninorm/nfkd-tests: Likewise.
28040         * modules/uninorm/u8-normcmp-tests: Likewise.
28041         * modules/uninorm/u8-normcoll-tests: Likewise.
28042         * modules/uninorm/u16-normcmp-tests: Likewise.
28043         * modules/uninorm/u16-normcoll-tests: Likewise.
28044         * modules/uninorm/u32-normcmp-tests: Likewise.
28045         * modules/uninorm/u32-normcoll-tests: Likewise.
28046         * modules/unistdio/u8-asnprintf-tests: Likewise.
28047         * modules/unistdio/u8-vasnprintf-tests: Likewise.
28048         * modules/unistdio/u8-vasprintf-tests: Likewise.
28049         * modules/unistdio/u8-vsnprintf-tests: Likewise.
28050         * modules/unistdio/u8-vsprintf-tests: Likewise.
28051         * modules/unistdio/u16-asnprintf-tests: Likewise.
28052         * modules/unistdio/u16-vasnprintf-tests: Likewise.
28053         * modules/unistdio/u16-vasprintf-tests: Likewise.
28054         * modules/unistdio/u16-vsnprintf-tests: Likewise.
28055         * modules/unistdio/u16-vsprintf-tests: Likewise.
28056         * modules/unistdio/u32-asnprintf-tests: Likewise.
28057         * modules/unistdio/u32-vasnprintf-tests: Likewise.
28058         * modules/unistdio/u32-vasprintf-tests: Likewise.
28059         * modules/unistdio/u32-vsnprintf-tests: Likewise.
28060         * modules/unistdio/u32-vsprintf-tests: Likewise.
28061         * modules/unistdio/ulc-asnprintf-tests: Likewise.
28062         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
28063         * modules/unistdio/ulc-vasprintf-tests: Likewise.
28064         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
28065         * modules/unistdio/ulc-vsprintf-tests: Likewise.
28066         * modules/unistr/u8-check-tests: Likewise.
28067         * modules/unistr/u8-chr-tests: Likewise.
28068         * modules/unistr/u8-cmp-tests: Likewise.
28069         * modules/unistr/u8-cmp2-tests: Likewise.
28070         * modules/unistr/u8-cpy-alloc-tests: Likewise.
28071         * modules/unistr/u8-cpy-tests: Likewise.
28072         * modules/unistr/u8-mblen-tests: Likewise.
28073         * modules/unistr/u8-mbsnlen-tests: Likewise.
28074         * modules/unistr/u8-mbtouc-tests: Likewise.
28075         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
28076         * modules/unistr/u8-mbtoucr-tests: Likewise.
28077         * modules/unistr/u8-move-tests: Likewise.
28078         * modules/unistr/u8-next-tests: Likewise.
28079         * modules/unistr/u8-prev-tests: Likewise.
28080         * modules/unistr/u8-set-tests: Likewise.
28081         * modules/unistr/u8-stpcpy-tests: Likewise.
28082         * modules/unistr/u8-stpncpy-tests: Likewise.
28083         * modules/unistr/u8-strcat-tests: Likewise.
28084         * modules/unistr/u8-strcmp-tests: Likewise.
28085         * modules/unistr/u8-strcoll-tests: Likewise.
28086         * modules/unistr/u8-strcpy-tests: Likewise.
28087         * modules/unistr/u8-strdup-tests: Likewise.
28088         * modules/unistr/u8-strlen-tests: Likewise.
28089         * modules/unistr/u8-strmblen-tests: Likewise.
28090         * modules/unistr/u8-strmbtouc-tests: Likewise.
28091         * modules/unistr/u8-strncat-tests: Likewise.
28092         * modules/unistr/u8-strncmp-tests: Likewise.
28093         * modules/unistr/u8-strncpy-tests: Likewise.
28094         * modules/unistr/u8-strnlen-tests: Likewise.
28095         * modules/unistr/u8-to-u16-tests: Likewise.
28096         * modules/unistr/u8-to-u32-tests: Likewise.
28097         * modules/unistr/u8-uctomb-tests: Likewise.
28098         * modules/unistr/u16-check-tests: Likewise.
28099         * modules/unistr/u16-chr-tests: Likewise.
28100         * modules/unistr/u16-cmp-tests: Likewise.
28101         * modules/unistr/u16-cmp2-tests: Likewise.
28102         * modules/unistr/u16-cpy-alloc-tests: Likewise.
28103         * modules/unistr/u16-cpy-tests: Likewise.
28104         * modules/unistr/u16-mblen-tests: Likewise.
28105         * modules/unistr/u16-mbsnlen-tests: Likewise.
28106         * modules/unistr/u16-mbtouc-tests: Likewise.
28107         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
28108         * modules/unistr/u16-mbtoucr-tests: Likewise.
28109         * modules/unistr/u16-move-tests: Likewise.
28110         * modules/unistr/u16-next-tests: Likewise.
28111         * modules/unistr/u16-prev-tests: Likewise.
28112         * modules/unistr/u16-set-tests: Likewise.
28113         * modules/unistr/u16-stpcpy-tests: Likewise.
28114         * modules/unistr/u16-stpncpy-tests: Likewise.
28115         * modules/unistr/u16-strcat-tests: Likewise.
28116         * modules/unistr/u16-strcmp-tests: Likewise.
28117         * modules/unistr/u16-strcoll-tests: Likewise.
28118         * modules/unistr/u16-strcpy-tests: Likewise.
28119         * modules/unistr/u16-strdup-tests: Likewise.
28120         * modules/unistr/u16-strlen-tests: Likewise.
28121         * modules/unistr/u16-strmblen-tests: Likewise.
28122         * modules/unistr/u16-strmbtouc-tests: Likewise.
28123         * modules/unistr/u16-strncat-tests: Likewise.
28124         * modules/unistr/u16-strncmp-tests: Likewise.
28125         * modules/unistr/u16-strncpy-tests: Likewise.
28126         * modules/unistr/u16-strnlen-tests: Likewise.
28127         * modules/unistr/u16-to-u32-tests: Likewise.
28128         * modules/unistr/u16-to-u8-tests: Likewise.
28129         * modules/unistr/u16-uctomb-tests: Likewise.
28130         * modules/unistr/u32-check-tests: Likewise.
28131         * modules/unistr/u32-chr-tests: Likewise.
28132         * modules/unistr/u32-cmp-tests: Likewise.
28133         * modules/unistr/u32-cmp2-tests: Likewise.
28134         * modules/unistr/u32-cpy-alloc-tests: Likewise.
28135         * modules/unistr/u32-cpy-tests: Likewise.
28136         * modules/unistr/u32-mblen-tests: Likewise.
28137         * modules/unistr/u32-mbsnlen-tests: Likewise.
28138         * modules/unistr/u32-mbtouc-tests: Likewise.
28139         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
28140         * modules/unistr/u32-mbtoucr-tests: Likewise.
28141         * modules/unistr/u32-move-tests: Likewise.
28142         * modules/unistr/u32-next-tests: Likewise.
28143         * modules/unistr/u32-prev-tests: Likewise.
28144         * modules/unistr/u32-set-tests: Likewise.
28145         * modules/unistr/u32-stpcpy-tests: Likewise.
28146         * modules/unistr/u32-stpncpy-tests: Likewise.
28147         * modules/unistr/u32-strcat-tests: Likewise.
28148         * modules/unistr/u32-strcmp-tests: Likewise.
28149         * modules/unistr/u32-strcoll-tests: Likewise.
28150         * modules/unistr/u32-strcpy-tests: Likewise.
28151         * modules/unistr/u32-strdup-tests: Likewise.
28152         * modules/unistr/u32-strlen-tests: Likewise.
28153         * modules/unistr/u32-strmblen-tests: Likewise.
28154         * modules/unistr/u32-strmbtouc-tests: Likewise.
28155         * modules/unistr/u32-strncat-tests: Likewise.
28156         * modules/unistr/u32-strncmp-tests: Likewise.
28157         * modules/unistr/u32-strncpy-tests: Likewise.
28158         * modules/unistr/u32-strnlen-tests: Likewise.
28159         * modules/unistr/u32-to-u16-tests: Likewise.
28160         * modules/unistr/u32-to-u8-tests: Likewise.
28161         * modules/unistr/u32-uctomb-tests: Likewise.
28162         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
28163         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
28164         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
28165         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
28166         * modules/uniwidth/u8-strwidth-tests: Likewise.
28167         * modules/uniwidth/u8-width-tests: Likewise.
28168         * modules/uniwidth/u16-strwidth-tests: Likewise.
28169         * modules/uniwidth/u16-width-tests: Likewise.
28170         * modules/uniwidth/u32-strwidth-tests: Likewise.
28171         * modules/uniwidth/u32-width-tests: Likewise.
28172         * modules/uniwidth/width-tests: Likewise.
28173
28174 2010-05-18  Richard Jones  <rjones@redhat.com>
28175
28176         doc: users.txt: list hivex
28177         * users.txt: Add hivex.
28178
28179 2010-05-18  Richard Jones  <rjones@redhat.com>
28180
28181         doc: users.txt: list febootstrap
28182         * users.txt: Add febootstrap.
28183
28184 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
28185
28186         bootstrap: fix an error when gnulib is not used as a git submodule
28187         * build-aux/bootstrap (gnulib_path): If its length is zero then
28188         assign "gnulib" to it.
28189         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
28190
28191 2010-05-16  Bruno Haible  <bruno@clisp.org>
28192
28193         Avoid autoconf warnings about AM_ICONV.
28194         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
28195         2.64.
28196
28197 2010-05-16  Bruno Haible  <bruno@clisp.org>
28198
28199         absolute-header: Make the macro usable in more situations.
28200         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
28201         from gl_ABSOLUTE_HEADER.
28202         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
28203
28204 2010-05-16  James Youngman  <jay@gnu.org>
28205
28206         doc: update users.txt
28207         * users.txt: Add CSSC.
28208
28209 2010-05-16  Jim Meyering  <meyering@redhat.com>
28210
28211         init.sh: fix an error in the previous change; add more comments
28212         * tests/init.sh: Compare exit code in loop against 9, not 2.
28213         Patch by Bruno Haible.
28214         Make the two tests more similar by adding an empty "then" clause.
28215         Add comments.
28216
28217         init.sh: avoid unnecessary shell re-exec
28218         * tests/init.sh: Improve the re-exec-required check to first test the
28219         current shell.  If it passes the test, do not search for a shell that
28220         does pass, and do not re-exec.  This test is particularly contorted to
28221         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
28222         of $(...) evokes a syntax error and causes immediate shell exit with
28223         status 2.  Bruno Haible reported that the re-exec made it impossible
28224         to single-step through any init.sh-using script.
28225
28226 2010-05-16  Bruno Haible  <bruno@clisp.org>
28227
28228         Fix collision between gnulib's and libintl's printf replacements.
28229         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
28230         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
28231         (printf): When using GNU C, map the __printf__ function to rpl_printf
28232         via __asm__. When not using GNU C, define rpl_printf instead of
28233         __printf__.
28234         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
28235         commit.
28236         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
28237         commit.
28238         * m4/asm-underscore.m4: New file.
28239         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
28240         * modules/stdio (Files): Add m4/asm-underscore.m4.
28241         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
28242         Reported by Ben Pfaff.
28243
28244 2010-05-16  Bruno Haible  <bruno@clisp.org>
28245
28246         verify: Avoid skipping the test on openSUSE 11.0.
28247         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
28248
28249 2010-05-13  Bruno Haible  <bruno@clisp.org>
28250
28251         Avoid useless warnings from G++.
28252         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
28253         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
28254         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28255
28256 2010-05-11  Jim Meyering  <meyering@redhat.com>
28257
28258         maint.mk: tweak preceding change
28259         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
28260         regexps tighter by anchoring at EOL, and make the new group "shy"
28261         for slightly decreased overhead.
28262
28263 2010-05-11  Eric Blake  <eblake@redhat.com>
28264
28265         maint.mk: gnulib doesn't guarantee NSIG
28266         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
28267
28268 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28269
28270         test-pwrite.c: Remove unused variable declaration.
28271         * tests/test-pwrite.c (main): Remove read_buf declaration.
28272
28273         Remove useless test-pwrite.sh file.
28274         * tests/test-pwrite.sh: Delete file.
28275         * modules/pwrite-tests: Remove references.
28276         Reported by Bruno Haible.
28277
28278 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28279
28280         init.sh: fix a typo
28281         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
28282
28283 2010-05-10  Jim Meyering  <meyering@redhat.com>
28284
28285         maint.mk: avoid using a temporary file in the always-defined-macros check
28286         * top/maint.mk (.re-defmac): Remove rule.
28287         (gl_trap_): Remove definition.
28288         (sc_prohibit_always-defined_macros): Rewrite not to create and
28289         depend on a temporary file.  Instead, depend on GNU grep's ability
28290         to read a list of regular expressions from stdin when given "-f -".
28291
28292 2010-05-09  Bruno Haible  <bruno@clisp.org>
28293
28294         Update to GNU gettext 0.18, part 1.
28295         * m4/gettext.m4: Update to GNU gettext 0.18.
28296         * m4/intl.m4: Likewise.
28297         * m4/po.m4: Likewise.
28298         * modules/gettext (Files): Add m4/fcntl-o.m4.
28299         (configure.ac): Require gettext infrastructure from version 0.18.
28300
28301 2010-05-09  Jim Meyering  <meyering@redhat.com>
28302
28303         init.sh: enable MALLOC_PERTURB_
28304         * tests/init.sh: Enable glibc's malloc-perturbing option.
28305
28306         maint.mk: improve sc_cross_check_PATH_usage_in_tests
28307         With my recent change in init.sh from the two-line form:
28308             -#   : ${srcdir=.}
28309             -#   . "$srcdir/init.sh"; path_prepend_ .
28310             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
28311         I noticed that using the one-line form would cause this test
28312         to fail with a false-positive, or to stop working altogether,
28313         depending on whether help-version changed or all the tests did.
28314         * top/maint.mk (_hv_regex): Remove this definition.
28315         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
28316         (_hv_regex_strong): Use a stronger regex to check for conformance.
28317         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
28318         Give a separate diagnostic for lack of conforming use.
28319
28320         maint.mk: prohibit definition of symbols defined by gnulib
28321         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
28322         definition of symbols defined by gnulib.
28323
28324 2010-05-09  Bruno Haible  <bruno@clisp.org>
28325
28326         acl: Avoid test failure on Cygwin-hosted mingw.
28327         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
28328
28329 2010-05-09  Bruno Haible  <bruno@clisp.org>
28330
28331         error: Use system's fcntl function.
28332         * lib/error.c (fcntl): Undefine.
28333
28334 2010-05-09  Jim Meyering  <meyering@redhat.com>
28335
28336         verify: adjust formatting to be more consistent
28337         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
28338         argument-list '('s, and after one comma.
28339
28340 2010-05-09  Bruno Haible  <bruno@clisp.org>
28341
28342         error: More reliable output on mingw.
28343         * lib/error.c: Include <windows.h>.
28344         (is_open): New function.
28345         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
28346         defined.
28347
28348 2010-05-09  Bruno Haible  <bruno@clisp.org>
28349
28350         vasnprintf: Fix syntax errors in libintl build on mingw.
28351         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
28352         pad_ourselves and prec_ourselves after use.
28353
28354 2010-05-08  Bruno Haible  <bruno@clisp.org>
28355
28356         * lib/config.charset: Update comments for Cygwin 1.7.
28357         * lib/localcharset.c: Likewise.
28358
28359 2010-05-07  Jim Meyering  <meyering@redhat.com>
28360
28361         init.sh: improve comments
28362         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
28363         . "${srcdir=.}/init.sh"; path_prepend_ .
28364         Add a note about path_prepend_ and the alternative of using
28365         TESTS_ENVIRONMENT.
28366
28367 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28368
28369         exclude: Unescape hashed patterns in wildcard mode.
28370         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
28371         to the hash list.
28372         * tests/test-exclude8.sh: New test case.
28373         * modules/exclude-tests: Add new test.
28374
28375 2010-05-05  Eric Blake  <eblake@redhat.com>
28376
28377         verify: automate tests
28378         * modules/verify-tests: New module.
28379         * tests/test-verify.sh: New file.
28380         * tests/test-verify.c: Guard each negative test with a unique id.
28381         Also avoid warning about unused left hand of comma expressions.
28382
28383 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
28384
28385         Further improvements to verify.h, suggested by Eric Blake.
28386         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
28387         the GL_* versions, to avoid collision with OpenGL.
28388         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
28389         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
28390         than testing merely whether it's defined.
28391
28392         Modify verify.h to pacify gcc -Wredundant_decls.
28393         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
28394         These use the prefix "GL_" since they're likely to be useful elsewhere.
28395         We may need to break them out into a different .h file.
28396         (__COUNTER__): Define to 0 if the compiler doesn't support it.
28397         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
28398         of verify_function__.
28399
28400 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28401
28402         Tests for module pwrite.
28403         * modules/pwrite-tests: New file.
28404         * tests/test-pwrite.sh: New file.
28405         * tests/test-pwrite.c: New file.
28406
28407         New module pwrite.
28408         * lib/unistd.in.h (pwrite): New declaration.
28409         * lib/pwrite.c: New file, from glibc with modifications.
28410         * m4/pwrite.m4: New file.
28411         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
28412         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
28413         REPLACE_PWRITE.
28414         * modules/pwrite: New file.
28415         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
28416         REPLACE_PWRITE.
28417         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
28418         * doc/posix-functions/pwrite.texi: Mention the new module.
28419
28420 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28421
28422         pread: Update documentation.
28423         * doc/posix-functions/pread.texi: Mention the 'pread' module.
28424
28425 2010-05-04  Eric Blake  <eblake@redhat.com>
28426
28427         docs: update cygwin progress
28428         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
28429         this bug.
28430         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
28431         Added in cygwin 1.7.2.
28432         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
28433         Likewise.
28434         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
28435         Likewise.
28436         * doc/glibc-functions/dup3.texi (dup3): Likewise.
28437         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
28438         * doc/glibc-functions/accept4.texi (accept4): Likewise.
28439         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
28440         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
28441         Mention nproc module.
28442         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
28443         bug in cygwin 1.7.5 addition.
28444         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
28445         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
28446         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
28447         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
28448         1.7.5.
28449         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
28450         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
28451         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
28452         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
28453         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
28454         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
28455         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
28456         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
28457         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
28458         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
28459         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
28460         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
28461         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
28462         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
28463         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
28464         Likewise.
28465         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
28466         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
28467         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
28468         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
28469         Likewise.
28470         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
28471         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
28472         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
28473         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
28474         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
28475         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
28476         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
28477         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
28478         Likewise.
28479         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
28480         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
28481         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
28482         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
28483         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
28484         Likewise.
28485         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
28486         Likewise.
28487         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
28488         Likewise.
28489         * doc/glibc-functions/xdrrec_endofrecord.texi
28490         (xdrrec_endofrecord): Likewise.
28491         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
28492         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
28493         Likewise.
28494         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
28495         Likewise.
28496
28497 2010-05-04  Jim Meyering  <meyering@redhat.com>
28498
28499         gendocs.sh: make its "-s FILE" option more useful
28500         * build-aux/gendocs.sh: When honoring the -s FILE option, update
28501         $PACKAGE to reflect the probably-different basename of "FILE".
28502
28503 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
28504
28505         bootstrap: don't ignore download_po_files failure
28506         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
28507         failure.
28508
28509 2010-05-03  Jim Meyering  <meyering@redhat.com>
28510
28511         maint.mk: allow to pass options to gendocs.sh
28512         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
28513         (gendocs_options_): New overridable variable.
28514
28515         gnu-web-doc-update: don't ignore configure or build failure
28516         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
28517
28518         announce-gen: backslash-escape '@'s in --help output
28519         * build-aux/announce-gen: Fix syntax errors.
28520
28521         maint.mk, announce-gen: allow project-specific announcement mail headers
28522         * top/maint.mk (translation_project_): Define default.
28523         (announcement_Cc_, announcement_mail_headers_): Likewise.
28524         (announcement): Invoke announce-gen with new --mail-headers option.
28525         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
28526
28527         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
28528         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
28529         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
28530         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
28531         line in the "err2" output file when running "make check" in verbose
28532         mode (i.e., with set -x enabled).
28533
28534 2010-05-03  Bruno Haible  <bruno@clisp.org>
28535
28536         wctob: Fix for weird platforms.
28537         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
28538         argument value.
28539
28540 2010-05-03  Jim Meyering  <meyering@redhat.com>
28541
28542         maint.mk: prohibit unwarranted use of <strings.h>
28543         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
28544         strings.h in a file that does not also use strcasecmp, strncasecmp,
28545         ffs or ffsll.
28546
28547         maint.mk: remove obsolete comments
28548         * top/maint.mk: Remove stale, commented-out rules.
28549
28550 2010-05-02  Bruno Haible  <bruno@clisp.org>
28551
28552         wcwidth: Declare also when it's aliased.
28553         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
28554         macro.
28555
28556 2010-05-02  Bruno Haible  <bruno@clisp.org>
28557
28558         Fix regression from 2010-04-25.
28559         * gnulib-tool (func_modules_transitive_closure): Check the status of
28560         all modules, not only of the tests that are of the form foo-tests where
28561         foo is a module.
28562
28563 2010-05-02  Bruno Haible  <bruno@clisp.org>
28564
28565         wctob: Work around nasty Cygwin 1.7.2 bug.
28566         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
28567         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
28568
28569 2010-05-01  Bruno Haible  <bruno@clisp.org>
28570
28571         fpurge: Sharper test.
28572         * tests/test-fpurge.c (main): Add one more ftell check.
28573         * modules/fpurge-tests (Depends-on): Add ftell.
28574         Suggested by Eric Blake.
28575
28576 2010-05-01  Bruno Haible  <bruno@clisp.org>
28577
28578         ftello: Another test.
28579         * tests/test-ftello3.c: New file.
28580         * modules/ftello-tests (Files): Add it.
28581         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28582         MOSTLYCLEANFILES.
28583
28584         ftell: Another test.
28585         * tests/test-ftell3.c: New file.
28586         * modules/ftell-tests (Files): Add it.
28587         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28588         MOSTLYCLEANFILES.
28589
28590 2010-05-01  Bruno Haible  <bruno@clisp.org>
28591
28592         ftell, ftello: Work around Solaris bug.
28593         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
28594         * lib/ftello.c: Include stdio-impl.h.
28595         (ftello): On Solaris, when _IOWRT is set, compute the result without
28596         looking at _IOREAD.
28597         * modules/ftello (Files): Add lib/stdio-impl.h.
28598         * doc/posix-functions/ftell.texi: Mention Solaris bug.
28599         * doc/posix-functions/ftello.texi: Likewise.
28600         Reported by Eric Blake.
28601
28602 2010-05-01  Bruno Haible  <bruno@clisp.org>
28603
28604         freading: Adapt to special meaning of _IOREAD flag on Solaris.
28605         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
28606         the _IOWRT flag is also set.
28607
28608 2010-05-01  Bruno Haible  <bruno@clisp.org>
28609
28610         Fix doc about a HP-UX stdio bug.
28611         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
28612         * doc/posix-functions/ftello.texi: Likewise.
28613
28614 2010-05-01  Bruno Haible  <bruno@clisp.org>
28615
28616         lseek test: Fix failure on Solaris.
28617         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
28618         output.
28619
28620 2010-04-30  Jim Meyering  <meyering@redhat.com>
28621
28622         bootstrap: don't ignore failure to generate po*/Makevars
28623         * build-aux/bootstrap (with_gettext): Don't ignore failure
28624         to create po/Makevars or runtime-po/Makevars.
28625
28626 2010-04-29  Eric Blake  <eblake@redhat.com>
28627
28628         headers: relax license to LGPLv2+
28629         * modules/fcntl-h (License): Relax license.
28630         * modules/getopt-posix (License): Likewise.
28631         * modules/locale (License): Likewise.
28632         * modules/math (License): Likewise.
28633         * modules/pty (License): Likewise.
28634         * modules/sched (License): Likewise.
28635         * modules/search (License): Likewise.
28636         * modules/spawn (License): Likewise.
28637         * modules/stdarg (License): Likewise.
28638         * modules/sysexits (License): Likewise.
28639
28640 2010-04-29  Jim Meyering  <meyering@redhat.com>
28641
28642         inttypes: relax license to LGPLv2+
28643         * modules/inttypes (License): Relax license.
28644
28645 2010-04-29  Simon Josefsson  <simon@josefsson.org>
28646
28647         * top/maint.mk (indent): Run twice to produce idempotent results.
28648
28649 2010-04-28  Bruno Haible  <bruno@clisp.org>
28650
28651         getdate: Generate getdate.c in the source directory.
28652         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
28653         MOSTLYCLEANFILES.
28654         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
28655
28656 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
28657
28658         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
28659         is not declared as a const *; avoid warnings in that case.
28660
28661 2010-04-28  Eric Blake  <eblake@redhat.com>
28662
28663         canonicalize-lgpl: avoid compiler warning
28664         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
28665         declaration' / 'extraneous semicolon' warning with some compilers.
28666         Reported by Andreas Gruenbacher.
28667
28668 2010-04-28  Jim Meyering  <meyering@redhat.com>
28669
28670         init.sh: ensure a more reliable exit status when exiting via trap
28671         * tests/init.sh (setup_): Don't rely on $? in signal handler.
28672         Inspired by patches from Dmitry V. Levin.
28673         Also trap on signal 3 (SIGQUIT).
28674
28675 2010-04-27  Bruno Haible  <bruno@clisp.org>
28676
28677         Update doc about utimes().
28678         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
28679         'utimens' module.
28680         Reported by Andreas Gruenbacher <agruen@suse.de>.
28681
28682 2010-04-27  Eric Blake  <eblake@redhat.com>
28683
28684         full-read, full-write: relax license
28685         * modules/full-read (License): Drop to LGPLv2+.
28686         * modules/full-write (License): Likewise.
28687         * modules/safe-read (License): Likewise.
28688         * modules/safe-write (License): Likewise.
28689
28690         pthread: mention library for linking
28691         * modules/pthread (Link): Mention $(LIB_PTHREAD).
28692
28693 2010-04-27  Jim Meyering  <meyering@redhat.com>
28694
28695         maint.mk: fix a bug introduced in last change
28696         * top/maint.mk (gl_assured_headers_): Now that all names are on
28697         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
28698         is not anchored to end of word, it should be adequate.
28699
28700         maint.mk: avoid side-effect in latest syntax-check
28701         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
28702         to run commands via $(shell...), and hence to incur cost only when
28703         the new rule is actually run.
28704
28705         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
28706         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
28707         and use that to create a regexp used to detect all #if HAVE_..._H uses.
28708         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
28709         (gl_assured_headers_, az_, AZ_): Define.
28710         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
28711
28712 2010-04-26  Jim Meyering  <jim@meyering.net>
28713             Bruno Haible  <bruno@clisp.org>
28714
28715         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
28716         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
28717         Prompted by an exchange with Gilles Espinasse.
28718
28719 2010-04-26  Jim Meyering  <meyering@redhat.com>
28720
28721         git-version-gen: aesthetic tweak
28722         * build-aux/git-version-gen: Use "$nl" rather than a literal,
28723         so that the command remains on a single line.
28724
28725 2010-04-26  Eric Blake  <eblake@redhat.com>
28726
28727         git-version-gen: allow use on EBCDIC hosts
28728         * build-aux/git-version-gen (dirty): Use literal rather than tying
28729         ourselves to ascii.
28730         Reported by Steve Goetze.
28731
28732 2010-04-25  Bruno Haible  <bruno@clisp.org>
28733
28734         netdb: Add support for GNULIB_POSIXCHECK.
28735         * lib/netdb.in.h: Include warn-on-use.h.
28736         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
28737         functions are used when GNULIB_POSIXCHECK is defined and the
28738         getaddrinfo module is not in use.
28739         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
28740         freeaddrinfo, gai_strerror, getnameinfo are declared.
28741         * modules/netdb (Depends-on): Add warn-on-use.
28742         (Makefile.am): Include warn-on-use.h in netdb.h.
28743
28744 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
28745
28746         build: avoid "make check" failure without .git/ directory
28747         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
28748         there is no .git/ directory.
28749
28750 2010-04-25  Bruno Haible  <bruno@clisp.org>
28751
28752         ptsname: Fix misuse of ttyname_r.
28753         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
28754         of errno.
28755
28756 2010-04-25  Bruno Haible  <bruno@clisp.org>
28757
28758         ttyname_r: Make it work on Solaris 10.
28759         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
28760         if the system function has the POSIX declaration. Test whether the
28761         function fails if the buffer is less than 128 bytes large.
28762         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
28763         system's ttyname_r function. Provide a reasonably large buffer.
28764         * modules/ttyname_r (Depends-on): Add extensions.
28765         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
28766
28767 2010-04-25  Bruno Haible  <bruno@clisp.org>
28768
28769         Use the 'extensions' module for some more functions on Solaris.
28770         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
28771         module.
28772         * doc/posix-functions/ctime_r.texi: Likewise.
28773         * doc/posix-functions/getgrgid_r.texi: Likewise.
28774         * doc/posix-functions/getgrnam_r.texi: Likewise.
28775         * doc/posix-functions/getpwnam_r.texi: Likewise.
28776         * doc/posix-functions/getpwuid_r.texi: Likewise.
28777         * doc/posix-functions/readdir_r.texi: Likewise.
28778         * doc/posix-functions/sigwait.texi: Likewise.
28779         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
28780         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
28781
28782 2010-04-25  Bruno Haible  <bruno@clisp.org>
28783
28784         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
28785         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
28786         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
28787         * lib/ttyname_r.c: Include <limits.h>.
28788         (ttyname_r): Define using the system's ttyname_r function, if it exists
28789         and not on Solaris.
28790         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
28791         set.
28792         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
28793         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
28794         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
28795         Reported by Simon Josefsson.
28796
28797 2010-04-25  Bruno Haible  <bruno@clisp.org>
28798
28799         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
28800         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
28801         * doc/posix-functions/ctime_r.texi: Likewise.
28802         * doc/posix-functions/getgrgid_r.texi: Likewise.
28803         * doc/posix-functions/getgrnam_r.texi: Likewise.
28804         * doc/posix-functions/getlogin_r.texi: Likewise.
28805         * doc/posix-functions/getpwnam_r.texi: Likewise.
28806         * doc/posix-functions/getpwuid_r.texi: Likewise.
28807         * doc/posix-functions/readdir_r.texi: Likewise.
28808         * doc/posix-functions/sigwait.texi: Likewise.
28809         * doc/posix-functions/ttyname_r.texi: Likewise.
28810         Reported by Simon Josefsson.
28811
28812 2010-04-25  Bruno Haible  <bruno@clisp.org>
28813
28814         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
28815         * gnulib-tool (func_usage): Document that --with-*-tests options apply
28816         also to --create-testdir.
28817         (func_acceptable): Don't consider the status of *-tests modules here.
28818         (func_modules_transitive_closure): Consider it here, before including a
28819         test module.
28820         (func_import, func_create_testdir): Set inc_all_direct_tests,
28821         inc_all_indirect_tests.
28822         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
28823         --create-testdir and --create-megatestdir.
28824
28825 2010-04-25  Bruno Haible  <bruno@clisp.org>
28826
28827         gnulib-tool: Add --without-*-tests options.
28828         * gnulib-tool (func_usage): Document the --without-*-tests options.
28829         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
28830         excl_unportable_tests): New variables.
28831         Fail if they are specified with --import or --update.
28832         (func_acceptable): Respect the excl_*_tests variables.
28833         (func_import): Set the excl_*_tests variables to empty.
28834
28835 2010-04-25  Simon Josefsson  <simon@josefsson.org>
28836             Bruno Haible  <bruno@clisp.org>
28837
28838         Work around a MacOS X 10.4 bug with openpty.
28839         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
28840         * tests/test-openpty.c (main): Close the master side explicitly.
28841
28842 2010-04-25  Bruno Haible  <bruno@clisp.org>
28843
28844         strnlen: Fix a C++ test error on MacOS X and Solaris.
28845         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
28846         the function is not declared.
28847         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
28848         Simon Josefsson.
28849
28850 2010-04-24  Bruno Haible  <bruno@clisp.org>
28851
28852         Avoid a gcc warning.
28853         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
28854         of correct type for %08lx directive.
28855         Reported by Eric Blake.
28856
28857 2010-04-24  Bruno Haible  <bruno@clisp.org>
28858
28859         vasnprintf: Correct errno value in case of out-of-memory.
28860         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
28861         or sprintf. Use the errno value from SNPRINTF or sprintf.
28862         Reported by Ian Beckwith <ianb@erislabs.net>.
28863
28864 2010-04-24  Bruno Haible  <bruno@clisp.org>
28865
28866         ansi-c++-opt: Find correct compiler when cross-compiling.
28867         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
28868         AC_CHECK_PROGS.
28869         Reported by Simon Josefsson.
28870
28871 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
28872
28873         vc-list-files: Add support for subversion
28874         * build-aux/vc-list-files: Use "svn list" to generate the list of
28875         files controlled by subversion.
28876
28877 2010-04-23  Jim Meyering  <meyering@redhat.com>
28878
28879         vc-list-files tests: convert to use init.sh
28880         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
28881         path_prepend_.
28882         Use Exit, not exit.
28883         Use skip_ rather than open coding it.
28884         Remove trap set-up and compare definitions.
28885         * tests/test-vc-list-files-git.sh: Likewise.
28886         * modules/vc-list-files-tests (Files): Add tests/init.sh.
28887
28888 2010-04-22  Simon Josefsson  <simon@josefsson.org>
28889
28890         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
28891         backup files.
28892
28893 2010-04-21  Simon Josefsson  <simon@josefsson.org>
28894
28895         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
28896
28897 2010-04-20  Eric Blake  <eblake@redhat.com>
28898
28899         tests: be robust to ignored SIGPIPE
28900         * tests/test-select-in.sh: Consume all output.
28901         * tests/test-lseek.sh: Check correct exit status, while avoiding
28902         EPIPE.
28903
28904 2010-04-20  Simon Josefsson  <simon@josefsson.org>
28905             Bruno Haible  <bruno@clisp.org>
28906
28907         visibility: Don't use -fvisibility if it leads to a warning.
28908         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
28909         yes, don't pretend that visibility works if it leads to a warning.
28910         Reported by Mike Gran <spk121@yahoo.com>.
28911
28912 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
28913
28914         * build-aux/bootstrap: Use "git -h" for testing for supported options
28915         instead of "git --help".  The short-form option only shows a summary,
28916         and doesn't layout the full man page.  Grep for the full option name
28917         in the summary, too.
28918
28919 2010-04-19  Bruno Haible  <bruno@clisp.org>
28920
28921         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
28922         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
28923         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
28924         mention of RELOCATABLE_STRIP.
28925         Reported by Sylvain Beucler <beuc@beuc.net>.
28926
28927 2010-04-19  Bruno Haible  <bruno@clisp.org>
28928
28929         * lib/diffseq.h: Fix typo in comment.
28930         Reported by Eric Blake.
28931
28932 2010-04-19  Bruno Haible  <bruno@clisp.org>
28933
28934         ioctl: Move autoconf macro to a .m4 file.
28935         * m4/ioctl.m4: New file, extracted from modules/ioctl.
28936         * modules/ioctl (Files): Add it.
28937         (configure.ac): Simply invoke gl_FUNC_IOCTL.
28938         Reported by Ian Beckwith <ianb@erislabs.net>.
28939
28940 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
28941             Bruno Haible  <bruno@clisp.org>
28942
28943         diffseq: Accommodate use-case with abstract arrays.
28944         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
28945         is not defined.
28946         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
28947         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
28948
28949 2010-04-18  Bruno Haible  <bruno@clisp.org>
28950
28951         * doc/posix-headers/stdbool.texi: More precise wording.
28952
28953 2010-04-17  Jim Meyering  <meyering@redhat.com>
28954
28955         maint.mk: use gnu-style indentation in an embedded perl script
28956         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
28957         Rename variable: s/two/last_two_bytes/
28958
28959 2010-04-16  Eric Blake  <eblake@redhat.com>
28960
28961         test-stdbool: skip test that fails with Solaris CC
28962         * tests/test-stdbool.c (f): Skip test that causes compilation
28963         error under buggy C++ compiler.
28964         * lib/stdbool.in.h: Document the limitation.
28965         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
28966
28967         setenv: allow compilation with C++
28968         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
28969         register keyword.
28970
28971         stdint: allow test to pass with C++
28972         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
28973
28974         getopt: allow compilation with C++
28975         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
28976         struct.
28977         * lib/getopt.c (_getopt_internal_r): Use correct type.
28978         Reported by Dagobert Michelson, via Joel E. Denny.
28979
28980 2010-04-16  Bruno Haible  <bruno@clisp.org>
28981
28982         Override netdb.h always.
28983         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
28984         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
28985         Reported by Ludovic Courtès <ludo@gnu.org>.
28986
28987 2010-04-15  Bruno Haible  <bruno@clisp.org>
28988
28989         openpty: Fix mistake from 2010-03-21.
28990         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
28991         Reported by Simon Josefsson.
28992
28993 2010-04-15  Eric Blake  <eblake@redhat.com>
28994
28995         test-forkpty: fix expected signature
28996         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
28997         Reported by Simon Josefsson.
28998
28999 2010-04-15  Jim Meyering  <meyering@redhat.com>
29000
29001         maint.mk: texinfo_suffix_re_: correct the default regexp
29002         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
29003
29004         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
29005         make it configurable via texinfo_suffix_re_.
29006
29007 2010-04-14  Eric Blake  <eblake@redhat.com>
29008
29009         strtok_r: relax license to LGPLv2+
29010         * modules/strtok_r (License): Relax license.
29011         Reported by Matthias Bolte.
29012
29013 2010-04-14  Simon Josefsson  <simon@josefsson.org>
29014
29015         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
29016         version 1.4.4 by default instead of requiring the libgcrypt
29017         version used during build.  This makes it possible to use the
29018         application with older but still binary compatible libgcrypt
29019         versions.
29020
29021 2010-04-13  Eric Blake  <eblake@redhat.com>
29022
29023         getopt-gnu: match recent glibc fixes and posix ruling
29024         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
29025         '+' handling, when requesting extensions.
29026         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
29027         'W;' handling.
29028         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
29029         * doc/posix-functions/getopt.texi (getopt): Document this.
29030         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29031         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29032         Likewise.
29033
29034         getopt: merge bug fixes from glibc
29035         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
29036         diagnostics.  Honor '+:' correctly.  Reject ';'.
29037
29038         getopt-posix: detect MacOS bug
29039         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
29040         optind when missing a required argument.
29041         * doc/posix-functions/getopt.texi (getopt): Document the bug.
29042         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29043         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29044         Likewise.
29045
29046         getopt-posix: avoid spurious failure on Solaris
29047         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
29048         an indicator that setting optind=1 is sufficient for reset.
29049
29050         getopt-posix: avoid spurious failure on FreeBSD
29051         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
29052         in POSIX mode, since the m4 test uses it.
29053
29054         gnulib-tool: silence warning on BSD sh
29055         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
29056
29057 2010-04-13  Jim Meyering  <meyering@redhat.com>
29058
29059         doc: users.txt: GNU patch now uses gnulib
29060         * users.txt: Add patch.
29061
29062 2010-04-12  Jim Meyering  <meyering@redhat.com>
29063
29064         maint.mk: generate more concise timing data for syntax-check rules
29065         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
29066         " done" from each line that reports a syntax-check test duration.
29067
29068 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
29069
29070         git-version-gen: use "git update-index..." rather than "git status"
29071         * build-aux/git-version-gen: Use git update-index --refresh, not
29072         "git status".  With some versions of git, "git status" would fail
29073         to update the index and result in an unwarranted "-dirty" suffix.
29074
29075 2010-04-11  Jim Meyering  <meyering@redhat.com>
29076
29077         openat: correct formatting (no semantic change)
29078         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
29079         Suggested by Bruno Haible.
29080
29081 2010-04-11  Bruno Haible  <bruno@clisp.org>
29082
29083         Stricter declaration checking in testdirs.
29084         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29085         If for_tests is true, augment AM_CPPFLAGS to define
29086         GNULIB_STRICT_CHECKING.
29087         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
29088         GNULIB_STRICT_CHECKING is defined, verify that the function is
29089         declared.
29090
29091 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
29092             Bruno Haible  <bruno@clisp.org>
29093
29094         libunistring: Improve configure output.
29095         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
29096         Don't say "consider installing GNU libunistring" when checking again
29097         with libiconv.
29098
29099 2010-04-11  Bruno Haible  <bruno@clisp.org>
29100
29101         libunistring: Correct value of $LTLIBUNISTRING.
29102         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
29103         correct the value of $LTLIBUNISTRING.
29104
29105 2010-04-11  Bruno Haible  <bruno@clisp.org>
29106
29107         havelib: Add static libraries to LIBS in the right order.
29108         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
29109         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
29110
29111 2010-04-11  Bruno Haible  <bruno@clisp.org>
29112
29113         libunistring: Detect libunistring also when it depends on libiconv.
29114         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
29115         the second AC_LIB_HAVE_LINKFLAGS invocation.
29116
29117 2010-04-11  James Youngman  <jay@gnu.org>
29118
29119         close-stream: declare local scalars to be "const"
29120         * lib/close-stream.c (close_stream): Make boolean variables const
29121         to document the fact that we set but do not change them.
29122
29123 2010-04-11  Bruno Haible  <bruno@clisp.org>
29124
29125         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
29126
29127 2010-04-11  Jim Meyering  <meyering@redhat.com>
29128
29129         maint.mk: don't include dist-check.mk
29130         * top/maint.mk: Remove bogus include directive.
29131
29132         maint.mk: improve empty-line-at-EOF check
29133         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
29134         solution, rather than tail+Perl-based one.  The latter would read
29135         a few kilobytes from the end of each file, and did not handle empty
29136         files properly.
29137
29138         maint.mk: print the elapsed time for each syntax-check rule
29139         * top/maint.mk (sc_m_rules_): Save start time in a file.
29140         (sc_z_rules_): New rules: remove temp file and print elapsed time.
29141         (local-check): Interpose the .z rules
29142
29143 2010-04-11  Jim Meyering  <meyering@redhat.com>
29144
29145         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
29146         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
29147         empty file with one that ends in an empty line.
29148
29149 2010-04-10  Bruno Haible  <bruno@clisp.org>
29150
29151         mkdir: Make it work on mingw64.
29152         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
29153         * lib/mkdir.c: Update comment.
29154         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
29155
29156 2010-04-10  Bruno Haible  <bruno@clisp.org>
29157
29158         Don't override improved macro from newer autoconf.
29159         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
29160         autoconf >= 2.62.
29161         Reported by Joel E. Denny <jdenny@clemson.edu>.
29162
29163 2010-04-10  Jim Meyering  <meyering@redhat.com>
29164
29165         maint.mk: new syntax-check rule: prohibit empty lines at end of file
29166         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
29167
29168         maint.mk: correct a diagnostic
29169         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
29170         in diagnostic; now use $prohibit.
29171
29172 2010-04-10  Bruno Haible  <address@hidden>
29173
29174         fchownat: Fix a C++ test error on Solaris 8.
29175         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
29176         the function does not exist.
29177
29178 2010-04-10  Bruno Haible  <bruno@clisp.org>
29179
29180         vasnprintf: Add more tests.
29181         * tests/test-vasnprintf-posix.c: Include <errno.h>.
29182         (test_function): Test converting an invalid wide string.
29183
29184         vasnprintf: Correct handling of unconvertible wide string arguments.
29185         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
29186         VASNPRINTF.
29187         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
29188         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
29189         smaller than the expected maximum need for the directive. Set errno to
29190         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
29191         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
29192         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
29193         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
29194         * modules/vasnprintf (Files): Add m4/printf.m4.
29195         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29196
29197 2010-04-10  Bruno Haible  <bruno@clisp.org>
29198
29199         vasnprintf: Fix crash in %ls directive.
29200         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
29201         string is passed as argument to %ls, with no precision and no width.
29202         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29203
29204 2010-04-10  Bruno Haible  <bruno@clisp.org>
29205
29206         vasnprintf: Fix multiple test failures on mingw.
29207         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
29208         _snprintf, or snwprintf, not _snwprintf.
29209
29210 2010-04-10  Bruno Haible  <bruno@clisp.org>
29211
29212         write: Fix a C++ test error on mingw.
29213         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
29214
29215 2010-04-10  Bruno Haible  <bruno@clisp.org>
29216
29217         vasnprintf test: Reduce code duplication.
29218         * tests/test-vasnprintf.c (test_function): New function, extracted from
29219         test_vasnprintf.
29220         (test_vasnprintf, test_asnprintf): Invoke it.
29221
29222 2010-04-10  Bruno Haible  <bruno@clisp.org>
29223
29224         strnlen: Fix warning in C++ mode on MacOS X.
29225         * lib/string.in.h (strnlen): Use the modern idiom.
29226         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
29227         defining strnlen as a macro already in <config.h>.
29228         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29229         REPLACE_STRNLEN.
29230         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
29231         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29232
29233 2010-04-08  James Youngman  <jay@gnu.org>
29234
29235         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
29236         the example.
29237
29238 2010-04-09  Jim Meyering  <meyering@redhat.com>
29239
29240         maint.mk: print better diagnostic when there is no $(_hv_file)
29241         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
29242         announce that when $(_hv_file) (aka help-version) does not exist.
29243
29244         init.sh: run tr in the "C" locale to avoid multibyte interpretation
29245         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
29246         not try to interpret its random input bytes.  Jarno Rajahalme reported
29247         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
29248         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
29249         (mktempd_): Likewise, just in case.
29250
29251         ftruncate: add two years to projected module removal date: 2012
29252         * m4/ftruncate.m4: Adjust comments.
29253
29254         ftruncate: mark module as obsolete; even MinGW provides it, now
29255         * modules/ftruncate (Status): Obsolete.
29256         (Notice): Say that.
29257         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
29258         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
29259
29260 2010-04-08  Bruno Haible  <bruno@clisp.org>
29261
29262         Fix side effects from tests-related modules.
29263         * modules/dprintf-posix (Comment): New section.
29264         * modules/fprintf-posix (Comment): Likewise.
29265         * modules/obstack-printf-posix (Comment): Likewise.
29266         * modules/printf-posix (Comment): Likewise.
29267         * modules/snprintf-posix (Comment): Likewise.
29268         * modules/sprintf-posix (Comment): Likewise.
29269         * modules/vasnprintf-posix (Comment): Likewise.
29270         * modules/vasprintf-posix (Comment): Likewise.
29271         * modules/vdprintf-posix (Comment): Likewise.
29272         * modules/vfprintf-posix (Comment): Likewise.
29273         * modules/vprintf-posix (Comment): Likewise.
29274         * modules/vsnprintf-posix (Comment): Likewise.
29275         * modules/vsprintf-posix (Comment): Likewise.
29276         * modules/xprintf-posix (Comment): Likewise.
29277         * modules/xvasprintf-posix (Comment): Likewise.
29278         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
29279         * modules/floorf-tests (Depends-on): Likewise.
29280         * modules/round-tests (Depends-on): Likewise.
29281         * modules/roundf-tests (Depends-on): Likewise.
29282         * modules/trunc-tests (Depends-on): Likewise.
29283         * modules/truncf-tests (Depends-on): Likewise.
29284         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
29285         'fprintf-posix' module is not present.
29286         * tests/test-floorf2.c (check): Likewise.
29287         * tests/test-trunc2.c (check): Likewise.
29288         * tests/test-truncf2.c (check): Likewise.
29289         * tests/test-round2.c (equal): Likewise.
29290         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29291
29292 2010-04-07  Karl Berry  <karl@gnu.org>
29293
29294         * config/srclist.txt,
29295         * config/srclistvars.sh,
29296         * config/srclist-update: doc fixes.
29297
29298 2010-04-07  Jim Meyering  <meyering@redhat.com>
29299
29300         maint.mk: add a PATH crosschecking syntax-check rule
29301         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
29302         Useful if you use a test like the one in help-version (coreutils,
29303         diffutils, grep, gzip) that ensures $(VERSION) matches what is
29304         printed by prog --version.
29305
29306 2010-04-06  Bruno Haible  <bruno@clisp.org>
29307
29308         Fix link error on mingw.
29309         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
29310         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
29311
29312 2010-04-06  Bruno Haible  <bruno@clisp.org>
29313
29314         Assume rmdir exists.
29315         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
29316
29317 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
29318
29319         doc: update users.txt
29320         * users.txt: Add gcal.
29321
29322 2010-04-06  Jim Meyering  <meyering@redhat.com>
29323
29324         init.sh: simply unset TMPDIR rather than risking env -i
29325         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
29326         although it probably works fine on all Unix-based systems, some
29327         systems (Cygwin?) cannot tolerate a totally cleared environment.
29328         Suggestion from Eric Blake.
29329
29330 2010-04-06  Jim Meyering  <meyering@redhat.com>
29331
29332         init.sh: portability fix: use env's POSIX-specified -i option not -u
29333         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
29334         than unportable env -u.  Solaris 5.11's env lacks support for -u.
29335
29336 2010-04-05  Bruno Haible  <bruno@clisp.org>
29337
29338         btowc: Work around Cygwin 1.7.2 bug.
29339         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
29340         does not map NUL to 0.
29341         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
29342
29343 2010-04-05  Bruno Haible  <bruno@clisp.org>
29344
29345         Make the multithread modules work on Cygwin 1.7.2.
29346         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
29347         imported symbols can be declared weak, so that it returns "no" on
29348         Cygwin 1.7.2.
29349
29350 2010-04-05  Bruno Haible  <bruno@clisp.org>
29351
29352         Use the module 'strncat'.
29353         * modules/unistr/u8-strncat (Depends-on): Add strncat.
29354
29355         Tests for module 'strncat'.
29356         * modules/strncat-tests: New file.
29357         * tests/test-strncat.c: New file.
29358
29359         New module 'strncat'.
29360         * lib/string.in.h (strncat): New declaration.
29361         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
29362         * m4/strncat.m4: New file, based on m4/memchr.m4.
29363         * modules/strncat: New file.
29364         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
29365         is declared.
29366         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
29367         REPLACE_STRNCAT.
29368         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
29369         REPLACE_STRNCAT.
29370         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
29371         module.
29372         * tests/test-string-c++.cc: Check signature of strncat.
29373
29374 2010-04-05  Jim Meyering  <meyering@redhat.com>
29375
29376         xstrtoumax-tests: convert to use init.sh
29377         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
29378         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29379         Use Exit, not exit.
29380         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29381
29382         xstrtoimax-tests: convert to use init.sh
29383         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
29384         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29385         Use Exit, not exit.
29386         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29387
29388 2010-04-05  Bruno Haible  <bruno@clisp.org>
29389
29390         sys_socket: Avoid #define replacements in C++ mode.
29391         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
29392         warning to the function if possible, rather than #defining the symbol
29393         to a dysfunctional alias.
29394
29395 2010-04-05  Bruno Haible  <bruno@clisp.org>
29396
29397         fseeko: Fix C++ test error on mingw.
29398         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
29399         gl_FUNC_FSEEKO.
29400         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
29401         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
29402         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
29403         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
29404
29405 2010-04-05  Bruno Haible  <bruno@clisp.org>
29406
29407         duplocale: Improve test output.
29408         * tests/test-duplocale.c (main): Print reason for skipped test.
29409
29410 2010-04-05  Bruno Haible  <bruno@clisp.org>
29411
29412         Assume rmdir exists.
29413         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
29414         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
29415
29416 2010-04-05  Bruno Haible  <bruno@clisp.org>
29417
29418         Fix link error on Solaris 8 with cc.
29419         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
29420
29421 2010-04-05  Bruno Haible  <bruno@clisp.org>
29422
29423         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29424         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
29425
29426 2010-04-05  Bruno Haible  <bruno@clisp.org>
29427
29428         vasprintf: Update documentation.
29429         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
29430
29431 2010-04-05  Bruno Haible  <bruno@clisp.org>
29432
29433         ptsname: Improve test.
29434         * tests/test-ptsname.c (main): Also try the various master names of BSD
29435         systems.
29436
29437 2010-04-05  Bruno Haible  <bruno@clisp.org>
29438
29439         memchr: Avoid a possible C++ test error.
29440         * lib/string.in.h (memchr): Provide declaration if function is missing.
29441         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
29442         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
29443         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
29444         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
29445
29446 2010-04-05  Bruno Haible  <bruno@clisp.org>
29447
29448         strtok_r: Improve idiom.
29449         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
29450         AC_LIBOBJ is used.
29451
29452 2010-04-05  Bruno Haible  <bruno@clisp.org>
29453
29454         strdup: Improve idiom.
29455         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
29456         AC_LIBOBJ is used.
29457         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
29458         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
29459         when AC_LIBOBJ is used.
29460
29461 2010-04-05  Bruno Haible  <bruno@clisp.org>
29462
29463         mbsinit, mbrtowc, wcrtomb: Improve idioms.
29464         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
29465         don't set REPLACE_MBSINIT to 1.
29466         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
29467         don't set REPLACE_MBRTOWC to 1.
29468         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
29469         exist, don't set REPLACE_MBSRTOWCS to 1.
29470         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
29471         exist, don't set REPLACE_MBSNRTOWCS to 1.
29472         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
29473         don't set REPLACE_WCRTOMB to 1.
29474         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
29475         exist, don't set REPLACE_WCSRTOMBS to 1.
29476         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
29477         exist, don't set REPLACE_WCSNRTOMBS to 1.
29478
29479 2010-04-05  Bruno Haible  <bruno@clisp.org>
29480
29481         ldexpl: Improve idiom.
29482         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
29483         make sure to set HAVE_DECL_LDEXPL to 0.
29484
29485 2010-04-05  Jim Meyering  <meyering@redhat.com>
29486
29487         xstrtol-tests: convert to use init.sh
29488         * modules/xstrtol-tests (Files): Add tests/init.sh.
29489         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29490         Use Exit, not exit.
29491         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29492
29493         atexit-tests: convert to use init.sh
29494         * modules/atexit-tests (Files): Add tests/init.sh.
29495         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29496         Use Exit, not exit.
29497         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29498
29499         init.sh: fix typo
29500         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
29501
29502         init.sh: make it easier for a test script to write to the tty, ...
29503         when using automake's parallel-tests mode.
29504         * tests/init.sh (stderr_fileno_): Define overridable variable.
29505         (warn_): New function, to use it.
29506         (fail_, skip_, framework_failure_): Use warn_.
29507
29508 2010-04-04  Bruno Haible  <bruno@clisp.org>
29509
29510         btowc: Avoid warning.
29511         * lib/btowc.c: Include <stdlib.h>.
29512         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
29513
29514 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29515             Bruno Haible  <bruno@clisp.org>
29516
29517         wchar: Port to NetBSD 1.5.
29518         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
29519         * lib/wctype.in.h (WEOF): Likewise.
29520
29521 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29522             Bruno Haible  <bruno@clisp.org>
29523
29524         Port extended stdio to NetBSD 1.5.
29525         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
29526         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
29527         older.
29528
29529 2010-04-04  Bruno Haible  <bruno@clisp.org>
29530
29531         string: Remove unused substitution.
29532         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
29533         HAVE_DECL_STRERROR.
29534         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
29535
29536 2010-04-04  Bruno Haible  <bruno@clisp.org>
29537
29538         strtod: Avoid a possible C++ test error.
29539         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
29540         set REPLACE_STRTOD.
29541
29542 2010-04-04  Bruno Haible  <bruno@clisp.org>
29543
29544         strerror: Update documentation.
29545         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
29546
29547 2010-04-04  Bruno Haible  <bruno@clisp.org>
29548
29549         stdio: Fix some C++ test errors on Solaris 8 with GCC.
29550         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
29551         _GL_CXXALIAS_SYS_CAST.
29552
29553 2010-04-04  Bruno Haible  <bruno@clisp.org>
29554
29555         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29556         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
29557         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
29558         REPLACE_FREXPL to 1.
29559         * doc/posix-functions/frexpl.texi: Update documentation.
29560
29561 2010-04-04  Bruno Haible  <bruno@clisp.org>
29562
29563         math: Fix some C++ test errors on Solaris 8 and Cygwin.
29564         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
29565
29566 2010-04-04  Bruno Haible  <bruno@clisp.org>
29567
29568         Implement nanosleep for native Windows.
29569         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
29570
29571 2010-04-04  Bruno Haible  <bruno@clisp.org>
29572
29573         math: Fix some C++ test errors on Solaris 8.
29574         * lib/math.in.h (truncf, trunc): Use simpler idiom.
29575
29576 2010-04-04  Bruno Haible  <bruno@clisp.org>
29577
29578         math: Fix some C++ test errors on Cygwin.
29579         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
29580         truncl): Provide declaration if the system does not have it.
29581         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
29582         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
29583         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
29584         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
29585         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
29586         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
29587         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
29588         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
29589         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
29590         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
29591         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
29592         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
29593         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
29594         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
29595         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
29596         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
29597         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
29598         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29599         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29600         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
29601         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29602         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29603
29604 2010-04-04  Bruno Haible  <bruno@clisp.org>
29605
29606         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
29607         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
29608         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
29609         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29610         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
29611         * m4/isinf.m4 (gl_ISINF): Likewise.
29612         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29613
29614 2010-04-04  Bruno Haible  <bruno@clisp.org>
29615
29616         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
29617         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29618
29619 2010-04-04  Bruno Haible  <bruno@clisp.org>
29620
29621         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
29622         * modules/tmpfile (configure.ac): Update.
29623
29624         tmpfile: Fix C++ test error on mingw.
29625         * lib/stdio.in.h (tmpfile): New declaration.
29626         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
29627         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
29628         * modules/tmpfile (Depends-on): Add stdio.
29629         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
29630         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
29631         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
29632         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
29633         REPLACE_TMPFILE.
29634         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
29635
29636 2010-04-04  Bruno Haible  <bruno@clisp.org>
29637
29638         ioctl: Fix C++ test error on mingw.
29639         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
29640         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
29641         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
29642
29643 2010-04-03  Bruno Haible  <bruno@clisp.org>
29644
29645         wcwidth: Fix C++ test error on mingw.
29646         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
29647         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
29648         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
29649
29650 2010-04-03  Bruno Haible  <bruno@clisp.org>
29651
29652         nanosleep: Fix C++ test error on mingw.
29653         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
29654         * lib/time.in.h (nanosleep): Use modern idiom.
29655         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
29656         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
29657         REPLACE_NANOSLEEP to 1.
29658         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
29659         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
29660
29661 2010-04-03  Bruno Haible  <bruno@clisp.org>
29662
29663         strptime: Fix C++ test error on mingw.
29664         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
29665         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
29666         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
29667         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
29668         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
29669         not REPLACE_STRPTIME.
29670         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
29671         REPLACE_STRPTIME.
29672
29673 2010-04-03  Bruno Haible  <bruno@clisp.org>
29674
29675         timegm: Fix C++ test error on mingw.
29676         * lib/time.in.h (timegm): Use modern idiom.
29677         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
29678         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
29679         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
29680         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
29681
29682 2010-04-03  Bruno Haible  <bruno@clisp.org>
29683
29684         timegm: Assume declaration if function exists.
29685         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
29686         if it exists. Don't clobber ac_cv_func_timegm.
29687
29688 2010-04-03  Bruno Haible  <bruno@clisp.org>
29689
29690         time_r: Fix C++ test error on mingw.
29691         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
29692         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
29693         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
29694         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
29695         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
29696
29697 2010-04-03  Bruno Haible  <bruno@clisp.org>
29698
29699         time_r: Minor updates.
29700         * modules/time_r (Description): Mention the provided functions.
29701         * lib/time_r.c: Don't include <string.h>.
29702         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
29703         * doc/posix-functions/localtime_r.texi: Likewise.
29704
29705 2010-04-03  Bruno Haible  <bruno@clisp.org>
29706
29707         time: Fix regression introduced on 2010-03-08.
29708         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
29709         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
29710
29711 2010-04-03  Jim Meyering  <meyering@redhat.com>
29712
29713         maint.mk: don't silently disable project-specific syntax-check rules
29714         * top/maint.mk (_prohibit_regexp): Define, to help people realize
29715         that they need to convert their project-specific syntax-check rules
29716         to use the new _sc_search_regexp.
29717
29718 2010-04-03  Bruno Haible  <bruno@clisp.org>
29719
29720         fchdir: Fix regression introduced on 2010-03-08.
29721         * lib/unistd.in.h (fchdir): Fix declaration.
29722         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
29723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
29724         REPLACE_FCHDIR.
29725         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
29726         REPLACE_FCHDIR.
29727
29728 2010-04-03  Bruno Haible  <bruno@clisp.org>
29729
29730         getpagesize: Fix C++ test error on mingw.
29731         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
29732         system does not declare the function.
29733         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
29734         declared.
29735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29736         HAVE_DECL_GETPAGESIZE.
29737         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
29738
29739 2010-04-03  Bruno Haible  <bruno@clisp.org>
29740
29741         stdio: Make C++ tests work on mingw.
29742         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
29743         does not declare the function.
29744
29745 2010-04-03  Bruno Haible  <bruno@clisp.org>
29746
29747         ftello: Fix C++ test error on mingw.
29748         * lib/stdio.in.h (ftello): Use modern idiom.
29749         * lib/ftello.c (ftello): Renamed from rpl_ftello.
29750         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
29751         is missing and that it needs to be replaced.
29752         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
29753         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
29754         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
29755
29756 2010-04-03  Bruno Haible  <bruno@clisp.org>
29757
29758         fseeko: Fix C++ test error on mingw.
29759         * lib/stdio.in.h (fseeko): Use modern idiom.
29760         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
29761         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
29762         is missing and that it needs to be replaced.
29763         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
29764         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
29765         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
29766
29767 2010-04-03  Bruno Haible  <bruno@clisp.org>
29768
29769         mkstemp: Fix C++ test error on mingw.
29770         * lib/stdlib.in.h (mkstemp): Use modern idiom.
29771         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
29772         function is missing and that it needs to be replaced.
29773         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
29774         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
29775
29776 2010-04-03  Bruno Haible  <bruno@clisp.org>
29777
29778         stpncpy: Fix C++ test error on mingw.
29779         * lib/string.in.h (stpncpy): Use modern idiom.
29780         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
29781         function is missing and that it needs to be replaced.
29782         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29783         REPLACE_STPNCPY.
29784         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
29785
29786 2010-04-03  Bruno Haible  <bruno@clisp.org>
29787
29788         sys_stat: Fix C++ test error on mingw.
29789         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
29790         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
29791
29792 2010-04-03  Bruno Haible  <bruno@clisp.org>
29793
29794         pty: Update doc.
29795         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
29796
29797 2010-04-03  Bruno Haible  <bruno@clisp.org>
29798
29799         unistd: Fix C++ test error on mingw.
29800         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
29801
29802 2010-04-03  Bruno Haible  <bruno@clisp.org>
29803
29804         Update doc regarding mingw.
29805         * doc/glibc-functions/openpty.texi: Update regarding mingw.
29806         * doc/glibc-functions/login_tty.texi: Likewise.
29807         * doc/glibc-functions/forkpty.texi: Likewise.
29808
29809 2010-04-03  Bruno Haible  <bruno@clisp.org>
29810
29811         stdlib: Avoid compilation failure of c-strtold on mingw.
29812         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
29813
29814 2010-04-03  Bruno Haible  <bruno@clisp.org>
29815
29816         locale: Make C++ tests work on Cygwin and mingw.
29817         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
29818         cannot provide the function.
29819         Reported by Simon Josefsson.
29820
29821 2010-04-03  Bruno Haible  <bruno@clisp.org>
29822
29823         localename: Port to MacOS X 10.6.
29824         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
29825         memory layout of the locales in MacOS X 10.6 as well.
29826         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
29827
29828 2010-04-02  Bruno Haible  <bruno@clisp.org>
29829
29830         gnulib-tool: Ensure that long-running tests are executed last.
29831         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
29832         running tests after the one for the other tests.
29833
29834 2010-04-02  Bruno Haible  <bruno@clisp.org>
29835
29836         gnulib-tool: Ensure the tests in the main directory are executed first.
29837         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
29838         start with the current directory.
29839
29840 2010-04-02  Bruno Haible  <bruno@clisp.org>
29841
29842         Tests for module 'havelib', moved here from GNU gettext.
29843         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
29844         modifications.
29845         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
29846         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
29847         with modifications.
29848         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
29849         modifications.
29850         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
29851         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
29852         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
29853         with modifications.
29854         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
29855         with modifications.
29856         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
29857         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
29858         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
29859         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
29860         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
29861         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
29862         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
29863         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
29864         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
29865         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
29866         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
29867         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
29868         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
29869         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
29870         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
29871         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
29872         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
29873         with modifications.
29874         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
29875         with modifications.
29876         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
29877         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
29878         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
29879         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
29880         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
29881         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
29882         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
29883         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
29884         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
29885         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
29886         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
29887         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
29888         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
29889         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
29890         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
29891         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
29892         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
29893         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
29894         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
29895         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
29896         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
29897         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
29898         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
29899         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
29900         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
29901         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
29902         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
29903         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
29904         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
29905         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
29906         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
29907         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
29908         * tests/havelib/rpathx/rpathx.c: New file, from
29909         gettext/autoconf-lib-link.
29910         * tests/havelib/rpathx/Makefile.am: New file, from
29911         gettext/autoconf-lib-link.
29912         * tests/havelib/rpathx/configure.ac: New file, from
29913         gettext/autoconf-lib-link with modifications.
29914         * tests/havelib/rpathy/rpathy.c: New file, from
29915         gettext/autoconf-lib-link.
29916         * tests/havelib/rpathy/Makefile.am: New file, from
29917         gettext/autoconf-lib-link.
29918         * tests/havelib/rpathy/configure.ac: New file, from
29919         gettext/autoconf-lib-link with modifications.
29920         * tests/havelib/rpathz/rpathz.c: New file, from
29921         gettext/autoconf-lib-link.
29922         * tests/havelib/rpathz/Makefile.am: New file, from
29923         gettext/autoconf-lib-link.
29924         * tests/havelib/rpathz/configure.ac: New file, from
29925         gettext/autoconf-lib-link with modifications.
29926         * tests/havelib/rpathlx/usex.c: New file, from
29927         gettext/autoconf-lib-link.
29928         * tests/havelib/rpathlx/Makefile.am: New file, from
29929         gettext/autoconf-lib-link.
29930         * tests/havelib/rpathlx/configure.ac: New file, from
29931         gettext/autoconf-lib-link with modifications.
29932         * tests/havelib/rpathly/usey.c: New file, from
29933         gettext/autoconf-lib-link.
29934         * tests/havelib/rpathly/Makefile.am: New file, from
29935         gettext/autoconf-lib-link.
29936         * tests/havelib/rpathly/configure.ac: New file, from
29937         gettext/autoconf-lib-link with modifications.
29938         * tests/havelib/rpathlz/usez.c: New file, from
29939         gettext/autoconf-lib-link.
29940         * tests/havelib/rpathlz/Makefile.am: New file, from
29941         gettext/autoconf-lib-link.
29942         * tests/havelib/rpathlz/configure.ac: New file, from
29943         gettext/autoconf-lib-link with modifications.
29944         * tests/havelib/rpathlyx/usey.c: New file, from
29945         gettext/autoconf-lib-link.
29946         * tests/havelib/rpathlyx/Makefile.am: New file, from
29947         gettext/autoconf-lib-link.
29948         * tests/havelib/rpathlyx/configure.ac: New file, from
29949         gettext/autoconf-lib-link with modifications.
29950         * tests/havelib/rpathlzyx/usez.c: New file, from
29951         gettext/autoconf-lib-link.
29952         * tests/havelib/rpathlzyx/Makefile.am: New file, from
29953         gettext/autoconf-lib-link.
29954         * tests/havelib/rpathlzyx/configure.ac: New file, from
29955         gettext/autoconf-lib-link with modifications.
29956         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
29957         with modifications.
29958
29959 2010-04-02  Bruno Haible  <bruno@clisp.org>
29960
29961         gnulib-tool: Create distributed built sources also for the tests.
29962         * gnulib-tool (func_create_testdir): Also generate distributed built
29963         sources in the tests directory.
29964
29965 2010-04-02  Bruno Haible  <bruno@clisp.org>
29966
29967         gnulib-tool: Obey user's environment variables.
29968         * gnulib-tool (func_create_testdir): When creating built sources,
29969         respect the environment variables for autoconf, automake, etc. given by
29970         the user.
29971
29972 2010-04-02  Bruno Haible  <bruno@clisp.org>
29973
29974         gnulib-tool: Provide the value of --m4-base to modules.
29975         * gnulib-tool (func_import, func_create_testdir): Emit a definition
29976         of gl_m4_base.
29977
29978 2010-04-02  Eric Blake  <eblake@redhat.com>
29979
29980         maint.mk: fix some fallout
29981         * NEWS: Document the incompatible change, and its effect on cfg.mk.
29982         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
29983
29984 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
29985
29986         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
29987         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
29988         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
29989         (sc_cast_of_x_alloc_return_value): Likewise.
29990         (sc_cast_of_alloca_return_value): Likewise.
29991         (sc_space_tab): Likewise.
29992         (sc_prohibit_atoi_atof): Likewise.
29993         (sc_prohibit_magic_number_exit): Likewise.
29994         (sc_error_exit_success): Likewise.
29995         (sc_file_system): Likewise.
29996         (sc_prohibit_have_config_h): Likewise.
29997         (sc_require_config_h): Likewise.
29998         (sc_prohibit_HAVE_MBRTOWC): Likewise.
29999         (sc_obsolete_symbols): Likewise.
30000         (sc_changelog): Likewise.
30001         (sc_program_name): Likewise.
30002         (sc_the_the): Likewise.
30003         (sc_trailing_blank): Likewise.
30004         (sc_two_space_separator_in_usage): Likewise.
30005         (sc_useless_cpp_parens): Likewise.
30006         (sc_GPL_version): Likewise.
30007         (sc_GFDL_version): Likewise.
30008         (sc_texinfo_acronym): Likewise.
30009         (sc_prohibit_cvs_keyword): Likewise.
30010         (sc_prohibit_stat_st_blocks): Likewise.
30011         (sc_prohibit_S_IS_definition): Likewise.
30012         (sc_redundant_const): Likewise.
30013         (sc_makefile_TAB_only_indentation): Likewise.
30014         (sc_m4_quote_check): Likewise.
30015         (sc_makefile_path_separator_check): Likewise.
30016         (sc_copyright_check): Likewise.
30017         (sc_Wundef_boolean): Likewise.
30018         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30019
30020         maint.mk: match 0 or more whitespace-before-function-call '('
30021         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
30022         that have zero or two-and-more spaces between the function name
30023         and the open parenthesis.
30024         (sc_error_message_warn_fatal): Likewise.
30025         (sc_error_message_uppercase): Likewise.
30026         (sc_error_message_period): Likewise.
30027
30028 2010-03-31  Eric Blake  <eblake@redhat.com>
30029
30030         maint.mk: check for [ as well as test
30031         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
30032         Based on a libvirt report by Matthias Bolte.
30033
30034         gnumakefile: don't squelch _version output
30035         * top/GNUmakefile (_version): Create one-shot dependency rather
30036         than using $(shell) when version must be regenerated.
30037         (_autoreconf): Run verbosely, by default.
30038
30039         sys_time: avoid compiler warnings
30040         * lib/sys_time.in.h (includes): Ensure gcc pragma is
30041         unconditional, fixing regression from 2010-03-29.
30042         Reported by Simon Josefsson.
30043
30044 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30045
30046         maint.mk: s/_header_without_use/_sc_header_without_use/
30047         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
30048         (sc_prohibit_assert_without_use): Use the new name.
30049         (sc_prohibit_close_stream_without_use): Likewise.
30050         (sc_prohibit_getopt_without_use): Likewise.
30051         (sc_prohibit_quotearg_without_use): Likewise.
30052         (sc_prohibit_quote_without_use): Likewise.
30053         (sc_prohibit_long_options_without_use): Likewise.
30054         (sc_prohibit_inttostr_without_use): Likewise.
30055         (sc_prohibit_ignore_value_without_use): Likewise.
30056         (sc_prohibit_error_without_use): Likewise.
30057         (sc_prohibit_xalloc_without_use): Likewise.
30058         (sc_prohibit_hash_without_use): Likewise.
30059         (sc_prohibit_hash_pjw_without_use): Likewise.
30060         (sc_prohibit_safe_read_without_use): Likewise.
30061         (sc_prohibit_argmatch_without_use): Likewise.
30062         (sc_prohibit_canonicalize_without_use): Likewise.
30063         (sc_prohibit_root_dev_ino_without_use): Likewise.
30064         (sc_prohibit_openat_without_use): Likewise.
30065         (sc_prohibit_c_ctype_without_use): Likewise.
30066         (sc_prohibit_signal_without_use): Likewise.
30067         (sc_prohibit_intprops_without_use): Likewise.
30068
30069 2010-03-30  Eric Blake  <eblake@redhat.com>
30070
30071         maint: improve module indicators
30072         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
30073         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
30074         columns, and avoid extra macro expansion.
30075
30076         fdopendir: work around FreeBSD bug
30077         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30078         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
30079         * modules/dirent (Makefile.am): Substitute it.
30080         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
30081         declaration.
30082         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
30083         fix.
30084         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30085
30086 2010-03-29  Bruno Haible  <bruno@clisp.org>
30087
30088         Emit #pragma system_header after the inclusion guard, not before.
30089         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
30090         guard that spans the entire file, not before. This enables an
30091         optimization in GCC's preprocessor.
30092         * lib/ctype.in.h: Likewise.
30093         * lib/dirent.in.h: Likewise.
30094         * lib/errno.in.h: Likewise.
30095         * lib/float.in.h: Likewise.
30096         * lib/getopt.in.h: Likewise.
30097         * lib/iconv.in.h: Likewise.
30098         * lib/langinfo.in.h: Likewise.
30099         * lib/locale.in.h: Likewise.
30100         * lib/math.in.h: Likewise.
30101         * lib/netdb.in.h: Likewise.
30102         * lib/netinet_in.in.h: Likewise.
30103         * lib/pty.in.h: Likewise.
30104         * lib/sched.in.h: Likewise.
30105         * lib/se-selinux.in.h: Likewise.
30106         * lib/search.in.h: Likewise.
30107         * lib/spawn.in.h: Likewise.
30108         * lib/stdarg.in.h: Likewise.
30109         * lib/stdint.in.h: Likewise.
30110         * lib/string.in.h: Likewise.
30111         * lib/strings.in.h: Likewise.
30112         * lib/sys_file.in.h: Likewise.
30113         * lib/sys_ioctl.in.h: Likewise.
30114         * lib/sys_time.in.h: Likewise.
30115         * lib/sys_times.in.h: Likewise.
30116         * lib/sys_utsname.in.h: Likewise.
30117         * lib/sys_wait.in.h: Likewise.
30118         * lib/sysexits.in.h: Likewise.
30119         * lib/wctype.in.h: Likewise.
30120
30121 2010-03-28  James Youngman  <jay@gnu.org>
30122
30123         save-cwd: don't leak a file descriptor when the caller execs.
30124         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
30125         saved file descriptor.
30126         * modules/save-cwd (Depends-on): Depend on cloexec.
30127
30128 2010-03-29  Bruno Haible  <bruno@clisp.org>
30129
30130         Remove vestiges of fts-lgpl module.
30131         * lib/fts_.h: Assume GNULIB_FTS is 1.
30132         * lib/fts.c: Likewise.
30133         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30134
30135 2010-03-28  Bruno Haible  <bruno@clisp.org>
30136
30137         Fix definition of tests witness macro.
30138         * gnulib-tool (func_import): Fix definition of witness macro.
30139
30140 2010-03-28  Bruno Haible  <bruno@clisp.org>
30141
30142         Fix ioctl's protoype on glibc systems.
30143         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
30144         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
30145         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
30146         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
30147         signature. If not, arrange to replace the ioctl function.
30148         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
30149         REPLACE_IOCTL.
30150         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
30151         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
30152         Reported by Ludovic Courtès <ludo@gnu.org>.
30153
30154 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
30155
30156         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
30157         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
30158         made it so grep -r --include=GLOB* ... did not work.
30159
30160 2010-03-26  Jim Meyering  <meyering@redhat.com>
30161             Eric Blake  <eblake@redhat.com>
30162
30163         maint.mk: prohibit use of test's -o and -a operators
30164         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
30165
30166 2010-03-28  Bruno Haible  <bruno@clisp.org>
30167
30168         Remove unused GNULIB_XYZ macro definitions.
30169         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
30170         invocation.
30171
30172 2010-03-28  Bruno Haible  <bruno@clisp.org>
30173
30174         Mark privileged tests modules.
30175         * modules/idpriv-drop-tests (Status): New section.
30176         * modules/idpriv-droptemp-tests (Status): New section.
30177
30178 2010-03-28  Bruno Haible  <bruno@clisp.org>
30179
30180         Split C++ tests into separate tests modules.
30181         * modules/dirent-c++-tests: New file, extracted from
30182         modules/dirent-tests.
30183         * modules/dirent-tests: Depend on it.
30184         * modules/fcntl-h-c++-tests: New file, extracted from
30185         modules/fcntl-h-tests.
30186         * modules/fcntl-h-tests: Depend on it.
30187         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
30188         * modules/glob-tests: Depend on it.
30189         * modules/iconv-h-c++-tests: New file, extracted from
30190         modules/iconv-h-tests.
30191         * modules/iconv-h-tests: Depend on it.
30192         * modules/langinfo-c++-tests: New file, extracted from
30193         modules/langinfo-tests.
30194         * modules/langinfo-tests: Depend on it.
30195         * modules/locale-c++-tests: New file, extracted from
30196         modules/locale-tests.
30197         * modules/locale-tests: Depend on it.
30198         * modules/math-c++-tests: New file, extracted from modules/math-tests.
30199         * modules/math-tests: Depend on it.
30200         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
30201         * modules/pty-tests: Depend on it.
30202         * modules/search-c++-tests: New file, extracted from
30203         modules/search-tests.
30204         * modules/search-tests: Depend on it.
30205         * modules/signal-c++-tests: New file, extracted from
30206         modules/signal-tests.
30207         * modules/signal-tests: Depend on it.
30208         * modules/spawn-c++-tests: New file, extracted from
30209         modules/spawn-tests.
30210         * modules/spawn-tests: Depend on it.
30211         * modules/stdio-c++-tests: New file, extracted from
30212         modules/stdio-tests.
30213         * modules/stdio-tests: Depend on it.
30214         * modules/stdlib-c++-tests: New file, extracted from
30215         modules/stdlib-tests.
30216         * modules/stdlib-tests: Depend on it.
30217         * modules/string-c++-tests: New file, extracted from
30218         modules/string-tests.
30219         * modules/string-tests: Depend on it.
30220         * modules/sys_ioctl-c++-tests: New file, extracted from
30221         modules/sys_ioctl-tests.
30222         * modules/sys_ioctl-tests: Depend on it.
30223         * modules/sys_select-c++-tests: New file, extracted from
30224         modules/sys_select-tests.
30225         * modules/sys_select-tests: Depend on it.
30226         * modules/sys_socket-c++-tests: New file, extracted from
30227         modules/sys_socket-tests.
30228         * modules/sys_socket-tests: Depend on it.
30229         * modules/sys_stat-c++-tests: New file, extracted from
30230         modules/sys_stat-tests.
30231         * modules/sys_stat-tests: Depend on it.
30232         * modules/sys_time-c++-tests: New file, extracted from
30233         modules/sys_time-tests.
30234         * modules/sys_time-tests: Depend on it.
30235         * modules/time-c++-tests: New file, extracted from modules/time-tests.
30236         * modules/time-tests: Depend on it.
30237         * modules/unistd-c++-tests: New file, extracted from
30238         modules/unistd-tests.
30239         * modules/unistd-tests: Depend on it.
30240         * modules/wchar-c++-tests: New file, extracted from
30241         modules/wchar-tests.
30242         * modules/wchar-tests: Depend on it.
30243         * modules/wctype-c++-tests: New file, extracted from
30244         modules/wctype-tests.
30245         * modules/wctype-tests: Depend on it.
30246         Reported by Simon Josefsson.
30247
30248 2010-03-28  Bruno Haible  <bruno@clisp.org>
30249
30250         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
30251         * gnulib-tool (func_exists_module): New function, extracted from
30252         func_verify_module.
30253         (func_verify_module): Use it.
30254         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
30255         'foo' only if 'foo' exists.
30256         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
30257         module.
30258
30259 2010-03-28  Bruno Haible  <bruno@clisp.org>
30260
30261         gnulib-tool: Add support for special categories of tests.
30262         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
30263         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
30264         (func_usage): Document them.
30265         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
30266         inc_unportable_tests, inc_all_tests): New variables.
30267         (func_acceptable): Consider these variables.
30268         (func_modules_transitive_closure): Make it work when the 'Status' field
30269         consists of multiple words.
30270         (func_import): Store and restore the values of inc_cxx_tests,
30271         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
30272         inc_all_tests in gnulib-comp.m4.
30273         (func_create_testdir): Set inc_all_tests to true.
30274         * doc/gnulib.texi (Extra tests modules): New section.
30275         Suggested by Jim Meyering.
30276
30277 2010-03-28  Bruno Haible  <bruno@clisp.org>
30278
30279         ansi-c++-opt: Allow turning off the C++ build by default.
30280         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
30281         gl_CXX_CHOICE_DEFAULT_NO is defined.
30282         Requested by Eric Blake.
30283
30284 2010-03-28  Bruno Haible  <bruno@clisp.org>
30285
30286         unistd: Avoid #define replacements in C++ mode.
30287         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
30288         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
30289         setsockopt, shutdown, select): In C++, attach a warning to the function
30290         if possible, rather than #defining the symbol to a dysfunctional alias.
30291         Reported by John W. Eaton <jwe@gnu.org>.
30292
30293 2010-03-28  Bruno Haible  <bruno@clisp.org>
30294
30295         Fix link errors on mingw.
30296         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
30297         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
30298         $(LIBSOCKET).
30299         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
30300         $(LIBSOCKET).
30301
30302 2010-03-28  Bruno Haible  <bruno@clisp.org>
30303             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30304
30305         lib-ignore: Determine different options for different compilers.
30306         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
30307         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
30308         Add comments.
30309         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
30310         * NEWS: Mention the change.
30311
30312 2010-03-27  Bruno Haible  <bruno@clisp.org>
30313
30314         Remove unused GNULIB_XYZ macro definitions.
30315         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30316         * modules/fseek (configure.ac): Likewise.
30317         * modules/ioctl (configure.ac): Likewise.
30318         * modules/open (configure.ac): Likewise.
30319         * modules/stdlib-safer (configure.ac): Likewise.
30320
30321 2010-03-27  Bruno Haible  <bruno@clisp.org>
30322
30323         Add a remark about certain modules.
30324         * modules/malloc (Comment): New section.
30325         * modules/realloc (Comment): Likewise.
30326         * modules/sigpipe (Comment): Likewise.
30327
30328 2010-03-27  Bruno Haible  <bruno@clisp.org>
30329
30330         Resolve conflict between the two kinds of module indicators.
30331         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
30332         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
30333         * modules/canonicalize (configure.ac): Invoke
30334         gl_MODULE_INDICATOR_FOR_TESTS.
30335         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
30336         GNULIB_XYZ.
30337         * tests/test-dirent-c++.cc: Likewise.
30338         * tests/test-dirent-safer.c: Likewise.
30339         * tests/test-dup2.c: Likewise.
30340         * tests/test-fchdir.c: Likewise.
30341         * tests/test-fcntl-h-c++.cc: Likewise.
30342         * tests/test-getopt.c: Likewise.
30343         * tests/test-getopt.h: Likewise.
30344         * tests/test-langinfo-c++.cc: Likewise.
30345         * tests/test-locale-c++.cc: Likewise.
30346         * tests/test-math-c++.cc: Likewise.
30347         * tests/test-pty-c++.cc: Likewise.
30348         * tests/test-search-c++.cc: Likewise.
30349         * tests/test-signal-c++.cc: Likewise.
30350         * tests/test-spawn-c++.cc: Likewise.
30351         * tests/test-stdio-c++.cc: Likewise.
30352         * tests/test-stdlib-c++.cc: Likewise.
30353         * tests/test-string-c++.cc: Likewise.
30354         * tests/test-sys_ioctl-c++.cc: Likewise.
30355         * tests/test-sys_select-c++.cc: Likewise.
30356         * tests/test-sys_socket-c++.cc: Likewise.
30357         * tests/test-sys_stat-c++.cc: Likewise.
30358         * tests/test-sys_time-c++.cc: Likewise.
30359         * tests/test-time-c++.cc: Likewise.
30360         * tests/test-unistd-c++.cc: Likewise.
30361         * tests/test-wchar-c++.cc: Likewise.
30362         * tests/uninorm/test-u8-nfc.c: Likewise.
30363         * tests/uninorm/test-u8-nfd.c: Likewise.
30364         * tests/uninorm/test-u8-nfkc.c: Likewise.
30365         * tests/uninorm/test-u8-nfkd.c: Likewise.
30366         * tests/uninorm/test-u16-nfc.c: Likewise.
30367         * tests/uninorm/test-u16-nfd.c: Likewise.
30368         * tests/uninorm/test-u16-nfkc.c: Likewise.
30369         * tests/uninorm/test-u16-nfkd.c: Likewise.
30370         * tests/uninorm/test-u32-nfc.c: Likewise.
30371         * tests/uninorm/test-u32-nfc-big.c: Likewise.
30372         * tests/uninorm/test-u32-nfd.c: Likewise.
30373         * tests/uninorm/test-u32-nfd-big.c: Likewise.
30374         * tests/uninorm/test-u32-nfkc.c: Likewise.
30375         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
30376         * tests/uninorm/test-u32-nfkd.c: Likewise.
30377         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
30378         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30379
30380 2010-03-27  Bruno Haible  <bruno@clisp.org>
30381
30382         Distinguish two kinds of module indicators.
30383         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
30384         gl_MODULE_INDICATOR.
30385         (gl_MODULE_INDICATOR): New macro.
30386         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
30387         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
30388         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30389         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30390         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30391         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30392         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30393         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30394         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30395         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30396         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30397         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30398         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30399         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30400         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30401         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30402         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30403         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30404         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30405         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30406         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30407         * modules/cloexec (configure.ac): Likewise.
30408         * modules/getopt-gnu (configure.ac): Likewise.
30409         * modules/uninorm/u8-normalize (configure.ac): Likewise.
30410         * modules/uninorm/u16-normalize (configure.ac): Likewise.
30411         * modules/uninorm/u32-normalize (configure.ac): Likewise.
30412         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
30413
30414 2010-03-27  Bruno Haible  <bruno@clisp.org>
30415
30416         New module description field 'Comment'.
30417         * gnulib-tool: New option --extract-comment.
30418         (func_usage): Document it.
30419         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
30420         (func_get_comment): New function.
30421         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
30422
30423 2010-03-27  Bruno Haible  <bruno@clisp.org>
30424
30425         Addendum to 2010-02-07 commit.
30426         * gnulib-tool (func_usage): Document --extract-applicability option.
30427
30428 2010-03-27  Bruno Haible  <bruno@clisp.org>
30429
30430         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
30431         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
30432         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
30433         rather than link errors.
30434
30435 2010-03-27  Bruno Haible  <bruno@clisp.org>
30436
30437         Avoid side effects from tests-related modules on the compilation of lib.
30438         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
30439         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
30440         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
30441         parameter. Emit into AM_CPPFLAGS a definition of the designated C
30442         macro.
30443         (func_import): Define a witness macro. Assign it a value that depends
30444         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
30445         tests-related modules.
30446         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
30447         Reported by Jim Meyering.
30448
30449 2010-03-27  Bruno Haible  <bruno@clisp.org>
30450
30451         Factorize common .m4 code.
30452         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
30453         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
30454         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
30455         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
30456         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30457         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
30458         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
30459         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30460         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30461         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30462         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
30463         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30464         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30465         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30466         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30467         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
30468         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30469         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30470         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30471         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
30472         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
30473         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30474         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30475         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30476         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30477         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30478         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
30479         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
30480         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
30481         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30482         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30483         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30484
30485 2010-03-27  Bruno Haible  <bruno@clisp.org>
30486
30487         Fix a compilation error on Cygwin with g++ >= 4.3.
30488         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
30489         if it is undefined or if we alias it to chmod.
30490         (lstat): Don't warn about the use of this function if it is undefined
30491         or if we alias it to stat.
30492         Reported by Simon Josefsson.
30493
30494 2010-03-27  Bruno Haible  <bruno@clisp.org>
30495
30496         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
30497         * modules/getlogin (configure.ac): Update.
30498
30499         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
30500         * modules/getlogin_r (configure.ac): Update.
30501
30502         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
30503         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
30504         * modules/inet_ntop (configure.ac): Update.
30505
30506         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
30507         * modules/inet_pton (configure.ac): Update.
30508
30509         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
30510         * modules/mbslen (configure.ac): Update.
30511
30512         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
30513         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
30514         * modules/forkpty (configure.ac): Update.
30515         * modules/openpty (configure.ac): Update.
30516
30517 2010-03-26  Simon Josefsson  <simon@josefsson.org>
30518
30519         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
30520         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
30521
30522 2010-03-25  Eric Blake  <eblake@redhat.com>
30523
30524         maint: use pragma consistently across replacement headers
30525         * lib/ctype.in.h (system_header): Hoist for consistent placement.
30526         * lib/dirent.in.h (system_header): Likewise.
30527         * lib/errno.in.h (system_header): Likewise.
30528         * lib/float.in.h (system_header): Likewise.
30529         * lib/getopt.in.h (system_header): Likewise.
30530         * lib/iconv.in.h (system_header): Likewise.
30531         * lib/inttypes.in.h (system_header): Likewise.
30532         * lib/langinfo.in.h (system_header): Likewise.
30533         * lib/locale.in.h (system_header): Likewise.
30534         * lib/math.in.h (system_header): Likewise.
30535         * lib/netdb.in.h (system_header): Likewise.
30536         * lib/netinet_in.in.h (system_header): Likewise.
30537         * lib/pty.in.h (system_header): Likewise.
30538         * lib/sched.in.h (system_header): Likewise.
30539         * lib/se-selinux.in.h (system_header): Likewise.
30540         * lib/search.in.h (system_header): Likewise.
30541         * lib/spawn.in.h (system_header): Likewise.
30542         * lib/stdarg.in.h (system_header): Likewise.
30543         * lib/stdint.in.h (system_header): Likewise.
30544         * lib/string.in.h (system_header): Likewise.
30545         * lib/strings.in.h (system_header): Likewise.
30546         * lib/sys_file.in.h (system_header): Likewise.
30547         * lib/sys_ioctl.in.h (system_header): Likewise.
30548         * lib/sys_socket.in.h (system_header): Likewise.
30549         * lib/sys_times.in.h (system_header): Likewise.
30550         * lib/sys_utsname.in.h (system_header): Likewise.
30551         * lib/sys_wait.in.h (system_header): Likewise.
30552         * lib/sysexits.in.h (system_header): Likewise.
30553         * lib/unistd.in.h (system_header): Likewise.
30554         * lib/wctype.in.h (system_header): Likewise.
30555
30556         arpa/inet: fix mingw compilation warning
30557         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
30558         Reported by Matthew Bolte.
30559
30560 2010-03-25  Bruno Haible  <bruno@clisp.org>
30561
30562         Avoid collision between gnulib wrapper and libintl wrapper.
30563         * lib/printf.c (printf): Don't define if a printf wrapper is already
30564         defined in intl/printf.c.
30565         Reported by Michel Boaventura <michel@michelboaventura.com>.
30566
30567 2010-03-25  Bruno Haible  <bruno@clisp.org>
30568
30569         Use ANSI C.
30570         * lib/readutmp.h (getutent): Provide ANSI C prototype.
30571
30572 2010-03-25  Bruno Haible  <bruno@clisp.org>
30573
30574         Minor formatting changes.
30575         * lib/acosl.c: Insert space before function argument list.
30576         * lib/argz.c: Likewise.
30577         * lib/asinl.c: Likewise.
30578         * lib/expl.c: Likewise.
30579         * lib/gen-uni-tables.c: Likewise.
30580         * lib/gettext.h: Likewise.
30581         * lib/glthread/lock.h: Likewise.
30582         * lib/tanl.c: Likewise.
30583         * lib/uniname/uniname.c: Likewise.
30584         * tests/test-idpriv-drop.c: Likewise.
30585         * tests/test-idpriv-droptemp.c: Likewise.
30586         * tests/test-lock.c: Likewise.
30587         * tests/test-tls.c: Likewise.
30588         * lib/argp-help.c: Insert space before function-like macro argument
30589         list.
30590         * lib/memcmp.c: Likewise.
30591         * tests/test-base64.c: Likewise.
30592         * lib/localename.c: Insert space before sizeof's argument list.
30593         * lib/safe-alloc.h: Likewise.
30594         * lib/file-set.h: Insert space before macro argument list.
30595         * tests/test-argp.c: Likewise.
30596         * lib/argp-namefrob.h: Insert space before function parameter list.
30597         * lib/getaddrinfo.c: Likewise.
30598         * lib/netdb.in.h: Likewise.
30599         * lib/parse-duration.h: Likewise.
30600         * lib/parse-duration.c: Likewise.
30601         * lib/poll.c: Likewise.
30602         * lib/select.c: Likewise.
30603         * lib/trim.h: Likewise.
30604         * tests/test-usleep.c: Likewise.
30605         * lib/ldexpl.c: Insert space before function parameter list and before
30606         function argument list.
30607         * lib/logl.c: Likewise.
30608         * lib/sqrtl.c: Likewise.
30609         * lib/trim.c: Likewise.
30610         * lib/cosl.c: Use GNU style indentation. Insert space before function
30611         argument list.
30612         * lib/sinl.c: Likewise.
30613         * lib/tsearch.c: Insert space after 'for'.
30614         Reported by Jim Meyering.
30615
30616 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
30617
30618         * maint.mk (sc_Wundef_boolean): Check for the presence of the
30619         config header before grepping, as it's not present before
30620         autoreconf/configure are run.  Reported by Simon Josefsson.
30621
30622 2010-03-23  Bruno Haible  <bruno@clisp.org>
30623
30624         pt_chown: Make it work with automake < 1.11.
30625         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
30626         Reported by Simon Josefsson.
30627
30628 2010-03-23  Bruno Haible  <bruno@clisp.org>
30629
30630         pt_chown: Don't depend on GPLed modules.
30631         * lib/pt_chown.c: Don't include idpriv.h.
30632         (main): Don't drop privileges.
30633         * modules/pt_chown (Depends-on): Remove idpriv-drop.
30634         Reported by Simon Josefsson.
30635
30636 2010-03-24  Simon Josefsson  <simon@josefsson.org>
30637
30638         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
30639         suggestions from karl@freefriends.org (Karl Berry).
30640
30641 2010-03-22  Eric Blake  <eblake@redhat.com>
30642
30643         gethostname: further tweaks
30644         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
30645         are overriding gethostname.
30646         Suggested by Bruno Haible.
30647
30648 2010-03-21  Bruno Haible  <bruno@clisp.org>
30649
30650         Fix comments.
30651         * lib/forkpty.c (rpl_forkpty): Fix comment.
30652         * lib/openpty.c (rpl_openpty): Likewise.
30653         Reported by Eric Blake.
30654
30655 2010-03-22  Eric Blake  <eblake@redhat.com>
30656
30657         gethostname: fix build on mingw
30658         * lib/unistd.in.h (includes): Work around fact that mingw
30659         <winsock2.h> re-includes <unistd.h>, by avoiding any
30660         redeclarations if we are being included by <winsock2.h>.
30661         Reported by Matthias Bolte.
30662
30663 2010-03-21  Bruno Haible  <bruno@clisp.org>
30664
30665         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30666         * lib/forkpty.c (forkpty): New replacement function, from glibc with
30667         modifications.
30668         * lib/pty.in.h (forkpty): Update declaration. Add comments.
30669         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
30670         provide the replacement.
30671         * modules/forkpty (Depends-on): Add openpty, login_tty.
30672         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
30673         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
30674         * doc/glibc-functions/forkpty.texi: More supported platforms.
30675         * config/srclist.txt: Add forkpty.c (commented).
30676
30677 2010-03-21  Bruno Haible  <bruno@clisp.org>
30678
30679         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
30680         (Makefile.am): Verify that PTY_LIB is defined.
30681
30682         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
30683
30684 2010-03-21  Bruno Haible  <bruno@clisp.org>
30685
30686         Tests for module 'login_tty'.
30687         * modules/login_tty-tests: New file.
30688         * tests/test-login_tty.c: New file.
30689
30690         New module 'login_tty'.
30691         * lib/login_tty.c: New file.
30692         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
30693         * modules/login_tty: New file.
30694         * doc/glibc-functions/login_tty.texi: Mention the new module.
30695
30696 2010-03-21  Bruno Haible  <bruno@clisp.org>
30697
30698         login_tty: Documentation.
30699         * doc/glibc-functions/login_tty.texi: New file.
30700         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
30701
30702 2010-03-21  Bruno Haible  <bruno@clisp.org>
30703
30704         pty: Consistent macro naming.
30705         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
30706         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
30707         * modules/pty (configure.ac): Update.
30708
30709 2010-03-21  Bruno Haible  <bruno@clisp.org>
30710
30711         Tests for openpty: Make stricter.
30712         * tests/test-openpty.c (main): Add test of canonical processing and
30713         erase.
30714         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
30715
30716         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30717         * lib/openpty.c (openpty): New replacement function.
30718         * lib/pty.in.h: Include <termios.h>.
30719         (openpty): Update declaration. Add comments.
30720         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
30721         is not declared, arrange to provide the replacement. Check for _getpty
30722         and posix_openpt.
30723         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
30724         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
30725         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
30726         * modules/pty-tests (test_pty_c___LDADD): New variable.
30727         * doc/glibc-functions/openpty.texi: More supported platforms.
30728
30729 2010-03-21  Bruno Haible  <bruno@clisp.org>
30730
30731         setenv: Tweaks.
30732         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
30733         the test program.
30734         * doc/posix-functions/setenv.texi: Update platforms list.
30735
30736 2010-03-21  Bruno Haible  <bruno@clisp.org>
30737
30738         New module 'unlockpt'.
30739         * lib/unlockpt.c: New file, from glibc with modifications.
30740         * m4/unlockpt.m4: New file.
30741         * modules/unlockpt: New file.
30742         * lib/stdlib.in.h (unlockpt): New declaration.
30743         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
30744         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
30745         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
30746         HAVE_UNLOCKPT.
30747         * doc/posix-functions/unlockpt.texi: Mention the new module.
30748         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
30749         * config/srclist.txt: Add unlockpt.c (commented).
30750
30751 2010-03-21  Jim Meyering  <meyering@redhat.com>
30752
30753         maint.mk: prohibit inclusion of "intprops.h" without use
30754         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
30755
30756 2010-03-21  Bruno Haible  <bruno@clisp.org>
30757
30758         New module 'grantpt'.
30759         * lib/grantpt.c: New file, from glibc with modifications.
30760         * m4/grantpt.m4: New file.
30761         * modules/grantpt: New file.
30762         * lib/stdlib.in.h (grantpt): New declaration.
30763         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
30764         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
30765         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
30766         HAVE_GRANTPT.
30767         * doc/posix-functions/grantpt.texi: Mention the new module.
30768         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
30769         * config/srclist.txt: Add grantpt.c (commented).
30770
30771 2010-03-21  Bruno Haible  <bruno@clisp.org>
30772
30773         New module 'pt_chown'.
30774         * lib/pt_chown.c: New file, from glibc with modifications.
30775         * lib/pty-private.h: New file, from glibc with modifications.
30776         * modules/pt_chown: New file.
30777         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
30778
30779 2010-03-21  Bruno Haible  <bruno@clisp.org>
30780
30781         Tests for module 'ptsname'.
30782         * modules/ptsname-tests: New file.
30783         * tests/test-ptsname.c: New file.
30784
30785         New module 'ptsname'.
30786         * lib/ptsname.c: New file, from glibc with modifications.
30787         * m4/ptsname.m4: New file.
30788         * modules/ptsname: New file.
30789         * lib/stdlib.in.h (ptsname): New declaration.
30790         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
30791         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
30792         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
30793         HAVE_PTSNAME.
30794         * doc/posix-functions/ptsname.texi: Mention the new module.
30795         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
30796         * config/srclist.txt: Add ptsname.c (commented).
30797
30798 2010-03-21  Bruno Haible  <bruno@clisp.org>
30799
30800         Tests for module 'ttyname_r'.
30801         * modules/ttyname_r-tests: New file.
30802         * tests/test-ttyname_r.c: New file.
30803
30804         New module 'ttyname_r'.
30805         * lib/ttyname_r.c: New file.
30806         * m4/ttyname_r.m4: New file.
30807         * modules/ttyname_r: New file.
30808         * lib/unistd.in.h (ttyname_r): New declaration.
30809         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
30810         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
30811         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
30812         HAVE_TTYNAME_R.
30813         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
30814         * doc/posix-functions/ttyname_r.texi: Mention the new module.
30815
30816 2010-03-20  Bruno Haible  <bruno@clisp.org>
30817
30818         signal: Undefine macro definitions in C++ mode.
30819         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
30820         sigfillset): Undefine macro definitions from the system header in C++
30821         mode.
30822         Reported by John W. Eaton <jwe@gnu.org>.
30823
30824 2010-03-20  Bruno Haible  <bruno@clisp.org>
30825
30826         Ensure no #include statements inside extern "C" { ... }.
30827         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
30828         contain #include statements.
30829         * lib/time.in.h: Likewise.
30830
30831 2010-03-20  Bruno Haible  <bruno@clisp.org>
30832
30833         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
30834         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
30835         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
30836         Reported by John W. Eaton <jwe@gnu.org>.
30837
30838 2010-03-20  Bruno Haible  <bruno@clisp.org>
30839
30840         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
30841         Reported by Jim Meyering.
30842
30843 2010-03-20  Bruno Haible  <bruno@clisp.org>
30844
30845         pipe: Set errno upon failure.
30846         * lib/pipe.h: Specify that when -1 is returned, errno is set.
30847         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
30848         errno value in error message.
30849
30850 2010-03-20  Bruno Haible  <bruno@clisp.org>
30851             Jim Meyering  <meyering@redhat.com>
30852
30853         lchown: Avoid "unused variable" warning.
30854         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
30855
30856 2010-03-20  Bruno Haible  <bruno@clisp.org>
30857
30858         Work around unlink() bug on MacOS X 10.5.6.
30859         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
30860         attempting to unlink a parent directory.
30861         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
30862         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
30863         activate for the replacement function.
30864         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
30865
30866 2010-03-20  Bruno Haible  <bruno@clisp.org>
30867
30868         Fix link errors on Solaris 8.
30869         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
30870         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
30871
30872 2010-03-19  Jim Meyering  <meyering@redhat.com>
30873
30874         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
30875         The _LIBC implementation of build_range_exp correctly honors the
30876         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
30877         However, the non-_LIBC implementation would ignore that syntax-bit
30878         flag and return REG_ERANGE unconditionally.
30879         This change makes it honor that flag.
30880         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
30881         Make two pointer parameters "const".
30882         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
30883         (parse_bracket_exp): Update caller.
30884
30885         regex.m4: correct the reversed range endpoint ([b-a]) test
30886         * m4/regex.m4: When requiring that [b-a] evoke failure,
30887         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
30888         test pass once again for x86-based systems.
30889
30890 2010-03-19  Bruno Haible  <bruno@clisp.org>
30891
30892         scandir: Fix link error on Solaris 8.
30893         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
30894         macros.
30895
30896 2010-03-19  Bruno Haible  <bruno@clisp.org>
30897
30898         getusershell: Fix documentation.
30899         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
30900         module.
30901         * doc/glibc-functions/setusershell.texi: Likewise.
30902
30903         getusershell: Provide declaration, missing on Solaris 9.
30904         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
30905         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
30906         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
30907         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
30908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30909         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
30910         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
30911         HAVE_GETUSERSHELL.
30912         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
30913
30914 2010-03-19  Bruno Haible  <bruno@clisp.org>
30915
30916         wctype: Provide iswblank function.
30917         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
30918         exists and is fine.
30919         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
30920         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
30921         * tests/test-wctype.c (main): Re-enable the iswblank tests.
30922         * doc/posix-functions/iswblank.texi: Update.
30923
30924 2010-03-19  Bruno Haible  <bruno@clisp.org>
30925
30926         Tests of module 'pty' in C++ mode.
30927         * modules/pty-tests: New file.
30928         * tests/test-pty-c++.cc: New file.
30929         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
30930
30931 2010-03-19  Eric Blake  <eblake@redhat.com>
30932
30933         logb: fix documentation
30934         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
30935         1.5 declaration bug.
30936
30937         forkpty, openpty: prefer glibc's const-safe prototype
30938         * lib/forkpty.c (rpl_forkpty): New file.
30939         * lib/openpty.c (rpl_openpty): Likewise.
30940         * modules/forkpty (Files): Distribute it.
30941         * modules/openpty (Files): Likewise.
30942         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
30943         check...
30944         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
30945         replacement for for non-const BSD signature.
30946         * modules/pty (Makefile.am): Substitute witnesses.
30947         * lib/pty.in.h (forkpty, openpty): Declare replacements.
30948         * tests/test-forkpty.c: Update signature check.
30949         * tests/test-openpty.c: Likewise.
30950         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
30951         * doc/glibc-functions/openpty.texi (openpty): Likewise.
30952
30953         forkpty, openpty: split functions into new modules
30954         * modules/pty (Makefile.am): Substitute new witnesses.
30955         (Libraries): Move library detection...
30956         * modules/forkpty: ...into new module.
30957         * modules/openpty: Another new module.
30958         * modules/pty-tests: Rename and split...
30959         * modules/forkpty-tests: ...to this...
30960         * modules/openpty-tests: ...and this.
30961         * tests/test-pty.c: Rename and split...
30962         * tests/test-forkpty.c: ...to this...
30963         * tests/test-openpty.c: ...and this.
30964         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
30965         (gl_PTY): Split library searching...
30966         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
30967         (gl_FORKPTY, gl_OPENPTY): New macros.
30968         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
30969         * NEWS: Mention the split.
30970         * MODULES.html.sh (Misc): Document the modules.
30971         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
30972         * doc/glibc-functions/openpty.texi (openpty): Likewise.
30973
30974         pty: improve replacement header
30975         * lib/pty.in.h: New file.
30976         * modules/pty (Files): Ship it.
30977         (Makefile.am): Always build replacement.
30978         * m4/pty.m4: Rename...
30979         * m4/pty_h.m4: ...to this.
30980         (gl_PTY): Modernize setting of witness macros; update check of
30981         forkpty to take proper advantage of cache.
30982         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
30983
30984         getopt: avoid compiler warning
30985         * lib/getopt.c (attribute_hidden): Remove unused macro.
30986
30987 2010-03-18  Bruno Haible  <bruno@clisp.org>
30988
30989         Fix link errors on Solaris 8.
30990         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
30991         * modules/search-tests (test_search_c___LDADD): Likewise.
30992         * modules/signal-tests (test_signal_c___LDADD): Likewise.
30993         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
30994         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
30995         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
30996         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
30997         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
30998         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
30999
31000 2010-03-18  Bruno Haible  <bruno@clisp.org>
31001
31002         Fix bug introduced on 2010-03-14.
31003         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
31004         (gl_SPAWN_H): Require it.
31005         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
31006         Reported by Simon Josefsson.
31007
31008 2010-03-18  Bruno Haible  <bruno@clisp.org>
31009
31010         Fix typo introduced on 2009-12-31.
31011         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
31012         posix_spawn_file_actions_adddup2.
31013
31014 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
31015         and Eric Blake  <eblake@redhat.com>
31016
31017         test-vc-list-files-git: make more robust
31018         * tests/test-vc-list-files-git.sh: Unset problematic environment
31019         variables.  Chain commands together.
31020
31021 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
31022
31023         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
31024         `AC_CHECK_DECL' invocation.
31025
31026 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
31027
31028         * lib/inttostr.c (inttostr): Make sure the invocation of verify
31029         appears before executable statements. Suggested by Petr Sumbera
31030         <Petr.Sumbera@Sun.COM>.
31031
31032 2010-03-14  Bruno Haible  <bruno@clisp.org>
31033
31034         * tests/test-flock.c (test_exclusive): Comment out a test that causes
31035         portability problems. Instead use a simpler test.
31036         (main): Check that invalid arguments are rejected only on Linux.
31037
31038 2010-03-14  Bruno Haible  <bruno@clisp.org>
31039
31040         Fix bug introduced on 2009-12-31.
31041         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31042         gl_PREREQ_SYS_H_WINSOCK2 always.
31043         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
31044         SYS_SOCKET_H variable.
31045         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
31046         Update comments.
31047         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
31048         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31049         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31050         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31051         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
31052
31053 2010-03-14  Bruno Haible  <bruno@clisp.org>
31054
31055         Fix values returned by sinl, cosl.
31056         * lib/trigl.h: Add specification comments.
31057         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
31058         that combines the values from the precomputed table with the values of
31059         the Chebyshev polynomials.
31060
31061 2010-03-14  Bruno Haible  <bruno@clisp.org>
31062
31063         Fix compilation error when modules 'posix_spawn[p]' are not used.
31064         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
31065         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
31066
31067 2010-03-14  Bruno Haible  <bruno@clisp.org>
31068
31069         Fix compilation error on mingw when module 'time_r' is not used.
31070         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
31071         is 1.
31072         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
31073         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31074         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
31075         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
31076
31077 2010-03-14  Bruno Haible  <bruno@clisp.org>
31078
31079         Fix compilation error with Sun C.
31080         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
31081         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
31082         instead of GCC specific ULONG_LONG_MAX.
31083         * lib/xstrtoll.c: Likewise.
31084         * lib/xstrtoull.c: Likewise.
31085
31086 2010-03-13  Bruno Haible  <bruno@clisp.org>
31087
31088         Allow the user to disable C++ code and tests.
31089         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
31090         (gl_PROG_ANSI_CXX): Require it.
31091
31092 2010-03-13  Bruno Haible  <bruno@clisp.org>
31093
31094         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
31095         cases.
31096
31097 2010-03-13  Bruno Haible  <bruno@clisp.org>
31098
31099         Test that gnulib does not break the standard C++ headers.
31100         * tests/test-locale-c++2.cc: New file.
31101         * modules/locale-tests (Files): Add it.
31102         (Makefile.am): Compile it for test-locale-c++.
31103         * tests/test-math-c++2.cc: New file.
31104         * modules/math-tests (Files): Add it.
31105         (Makefile.am): Compile it for test-math-c++.
31106         * tests/test-signal-c++2.cc: New file.
31107         * modules/signal-tests (Files): Add it.
31108         (Makefile.am): Compile it for test-signal-c++.
31109         * tests/test-stdio-c++2.cc: New file.
31110         * modules/stdio-tests (Files): Add it.
31111         (Makefile.am): Compile it for test-stdio-c++.
31112         * tests/test-stdlib-c++2.cc: New file.
31113         * modules/stdlib-tests (Files): Add it.
31114         (Makefile.am): Compile it for test-stdlib-c++.
31115         * tests/test-string-c++2.cc: New file.
31116         * modules/string-tests (Files): Add it.
31117         (Makefile.am): Compile it for test-string-c++.
31118         * tests/test-time-c++2.cc: New file.
31119         * modules/time-tests (Files): Add it.
31120         (Makefile.am): Compile it for test-time-c++.
31121         Reported by John W. Eaton <jwe@gnu.org>.
31122
31123 2010-03-13  Bruno Haible  <bruno@clisp.org>
31124
31125         * gnulib-tool (func_usage): Clarify which options are available for
31126         --create-testdir and --create-megatestdir.
31127
31128 2010-03-13  Bruno Haible  <bruno@clisp.org>
31129
31130         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
31131         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
31132         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
31133         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
31134         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
31135         when appropriate.
31136         Reported by Jim Meyering.
31137
31138 2010-03-12  Simon Josefsson  <simon@josefsson.org>
31139
31140         * gnulib-tool (func_import): Explain origin of code.
31141
31142 2010-03-12  Bruno Haible  <bruno@clisp.org>
31143
31144         Fix problem with automake's definition of CXXLINK.
31145         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
31146         Reported by Simon Josefsson and Ludovic Courtès.
31147
31148 2010-03-12  Bruno Haible  <bruno@clisp.org>
31149
31150         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
31151         stable releases.
31152
31153 2010-03-11  Bruno Haible  <bruno@clisp.org>
31154
31155         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
31156         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
31157         whether the system provides one variant or multiple variants of the
31158         function.
31159         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
31160         C++ compilers.
31161         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
31162         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
31163         Reported by Jim Meyering.
31164
31165 2010-03-09  Simon Josefsson  <simon@josefsson.org>
31166
31167         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
31168
31169 2010-03-08  Bruno Haible  <bruno@clisp.org>
31170
31171         gnulib-tool: Add support for --libtool in --create-testdir.
31172         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
31173         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
31174
31175 2010-03-08  Eric Blake  <eblake@redhat.com>
31176
31177         gnulib-tool.texi: mention possibility of git submodule
31178         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
31179         submodules.
31180         * doc/.gitignore: Ignore another generated file.
31181
31182 2010-03-08  Karl Berry  <karl@gnu.org>
31183
31184         * doc/gnulib-tool.texi (VCS Issues): Mention third option
31185         of committing gnulib files while skipping others.
31186
31187 2010-03-07  Bruno Haible  <bruno@clisp.org>
31188
31189         Tests of module 'wctype' in C++ mode.
31190         * tests/test-wctype-c++.cc: New file.
31191         * modules/wctype-tests (Files): Add it and tests/signature.h.
31192         (Depends-on): Add ansi-c++-opt.
31193         (Makefile.am): Arrange to compile and run test-wctype-c++.
31194
31195         Tests of module 'wchar' in C++ mode.
31196         * tests/test-wchar-c++.cc: New file.
31197         * modules/wchar-tests (Files): Add it and tests/signature.h.
31198         (Depends-on): Add ansi-c++-opt.
31199         (Makefile.am): Arrange to compile and run test-wchar-c++.
31200         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
31201         gl_MODULE_INDICATOR.
31202
31203         Tests of module 'unistd' in C++ mode.
31204         * tests/test-unistd-c++.cc: New file.
31205         * modules/unistd-tests (Files): Add it and tests/signature.h.
31206         (Depends-on): Add ansi-c++-opt.
31207         (Makefile.am): Arrange to compile and run test-unistd-c++.
31208         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
31209         gl_MODULE_INDICATOR.
31210
31211         Tests of module 'time' in C++ mode.
31212         * tests/test-time-c++.cc: New file.
31213         * modules/time-tests (Files): Add it and tests/signature.h.
31214         (Depends-on): Add ansi-c++-opt.
31215         (Makefile.am): Arrange to compile and run test-time-c++.
31216         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31217
31218         Tests of module 'sys_time' in C++ mode.
31219         * tests/test-sys_time-c++.cc: New file.
31220         * modules/sys_time-tests (Files): Add it and tests/signature.h.
31221         (Depends-on): Add ansi-c++-opt.
31222         (Makefile.am): Arrange to compile and run test-sys_time-c++.
31223         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
31224         gl_MODULE_INDICATOR.
31225
31226         Tests of module 'sys_stat' in C++ mode.
31227         * tests/test-sys_stat-c++.cc: New file.
31228         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
31229         (Depends-on): Add ansi-c++-opt.
31230         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
31231         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
31232         gl_MODULE_INDICATOR.
31233
31234         Tests of module 'sys_socket' in C++ mode.
31235         * tests/test-sys_socket-c++.cc: New file.
31236         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
31237         (Depends-on): Add ansi-c++-opt.
31238         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
31239         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
31240         gl_MODULE_INDICATOR.
31241
31242         Tests of module 'sys_select' in C++ mode.
31243         * tests/test-sys_select-c++.cc: New file.
31244         * modules/sys_select-tests (Files): Add it and tests/signature.h.
31245         (Depends-on): Add ansi-c++-opt.
31246         (Makefile.am): Arrange to compile and run test-sys_select-c++.
31247         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
31248         gl_MODULE_INDICATOR.
31249
31250         Tests of module 'sys_ioctl' in C++ mode.
31251         * tests/test-sys_ioctl-c++.cc: New file.
31252         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
31253         (Depends-on): Add ansi-c++-opt.
31254         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
31255         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
31256         gl_MODULE_INDICATOR.
31257
31258         Tests of module 'string' in C++ mode.
31259         * tests/test-string-c++.cc: New file.
31260         * modules/string-tests (Files): Add it and tests/signature.h.
31261         (Depends-on): Add ansi-c++-opt.
31262         (Makefile.am): Arrange to compile and run test-string-c++.
31263         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
31264         gl_MODULE_INDICATOR.
31265
31266         Tests of module 'stdlib' in C++ mode.
31267         * tests/test-stdlib-c++.cc: New file.
31268         * modules/stdlib-tests (Files): Add it and tests/signature.h.
31269         (Depends-on): Add ansi-c++-opt.
31270         (Makefile.am): Arrange to compile and run test-stdlib-c++.
31271         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
31272         gl_MODULE_INDICATOR.
31273
31274         Tests of module 'stdio' in C++ mode.
31275         * tests/test-stdio-c++.cc: New file.
31276         * modules/stdio-tests (Files): Add it and tests/signature.h.
31277         (Depends-on): Add ansi-c++-opt.
31278         (Makefile.am): Arrange to compile and run test-stdio-c++.
31279         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
31280         gl_MODULE_INDICATOR.
31281
31282         Tests of module 'spawn' in C++ mode.
31283         * tests/test-spawn-c++.cc: New file.
31284         * modules/spawn-tests (Files): Add it and tests/signature.h.
31285         (Depends-on): Add ansi-c++-opt.
31286         (Makefile.am): Arrange to compile and run test-spawn-c++.
31287         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
31288         gl_MODULE_INDICATOR.
31289
31290         Tests of module 'signal' in C++ mode.
31291         * tests/test-signal-c++.cc: New file.
31292         * modules/signal-tests (Files): Add it and tests/signature.h.
31293         (Depends-on): Add ansi-c++-opt.
31294         (Makefile.am): Arrange to compile and run test-signal-c++.
31295         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
31296         gl_MODULE_INDICATOR.
31297
31298         Tests of module 'search' in C++ mode.
31299         * tests/test-search-c++.cc: New file.
31300         * modules/search-tests (Files): Add it and tests/signature.h.
31301         (Depends-on): Add ansi-c++-opt.
31302         (Makefile.am): Arrange to compile and run test-search-c++.
31303         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
31304         gl_MODULE_INDICATOR.
31305
31306         Tests of module 'math' in C++ mode.
31307         * tests/test-math-c++.cc: New file.
31308         * modules/math-tests (Files): Add it and tests/signature.h.
31309         (Depends-on): Add ansi-c++-opt.
31310         (Makefile.am): Arrange to compile and run test-math-c++.
31311         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31312
31313         Tests of module 'locale' in C++ mode.
31314         * tests/test-locale-c++.cc: New file.
31315         * modules/locale-tests (Files): Add it and tests/signature.h.
31316         (Depends-on): Add ansi-c++-opt.
31317         (Makefile.am): Arrange to compile and run test-locale-c++.
31318         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
31319         gl_MODULE_INDICATOR.
31320
31321         Tests of module 'langinfo' in C++ mode.
31322         * tests/test-langinfo-c++.cc: New file.
31323         * modules/langinfo-tests (Files): Add it and tests/signature.h.
31324         (Depends-on): Add ansi-c++-opt.
31325         (Makefile.am): Arrange to compile and run test-langinfo-c++.
31326         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
31327         gl_MODULE_INDICATOR.
31328
31329         Tests of module 'iconv-h' in C++ mode.
31330         * tests/test-iconv-h-c++.cc: New file.
31331         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
31332         (Depends-on): Add ansi-c++-opt.
31333         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
31334
31335         Tests of module 'glob' in C++ mode.
31336         * tests/test-glob-c++.cc: New file.
31337         * modules/glob-tests (Files): Add it.
31338         (Depends-on): Add ansi-c++-opt.
31339         (Makefile.am): Arrange to compile and run test-glob-c++.
31340
31341         Tests of module 'fcntl-h' in C++ mode.
31342         * tests/test-fcntl-h-c++.cc: New file.
31343         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
31344         (Depends-on): Add ansi-c++-opt.
31345         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
31346         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
31347         gl_MODULE_INDICATOR.
31348
31349         Tests of module 'dirent' in C++ mode.
31350         * tests/test-dirent-c++.cc: New file.
31351         * modules/dirent-tests (Files): Add it and tests/signature.h.
31352         (Depends-on): Add ansi-c++-opt.
31353         (Makefile.am): Arrange to compile and run test-dirent-c++.
31354         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31355         gl_MODULE_INDICATOR.
31356
31357         New module 'ansi-c++-opt'.
31358         * modules/ansi-c++-opt: New file.
31359         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
31360
31361         Document C++ namespace mode.
31362         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
31363
31364         wctype: Avoid #define replacements in C++ mode.
31365         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
31366         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
31367         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
31368         In C++, define a namespaced alias symbol.
31369         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
31370         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
31371         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
31372         rule.
31373
31374         wchar: Avoid #define replacements in C++ mode.
31375         * lib/wchar.in.h: Include c++defs.h.
31376         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
31377         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
31378         symbol.
31379         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
31380         * modules/wchar (Depends-on): Add c++defs.
31381         (Makefile.am): Update wchar.h rule.
31382
31383         unistd: Avoid #define replacements in C++ mode.
31384         * lib/unistd.in.h: Include c++defs.h.
31385         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
31386         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
31387         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
31388         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
31389         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
31390         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
31391         symbol.
31392         (environ): Update.
31393         * modules/unistd (Depends-on): Add c++defs.
31394         (Makefile.am): Update unistd.h rule.
31395
31396         time: Avoid #define replacements in C++ mode.
31397         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
31398         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
31399         define a namespaced alias symbol.
31400         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
31401         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
31402         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
31403         * modules/time (Depends-on): Add c++defs, warn-on-use.
31404         (Makefile.am): Update time.h rule.
31405         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31406         * modules/nanosleep (configure.ac): Likewise.
31407         * modules/strptime (configure.ac): Likewise.
31408         * modules/timegm (configure.ac): Likewise.
31409
31410         sys_time: Avoid #define replacements in C++ mode.
31411         * lib/sys_time.in.h: Include c++defs.h.
31412         (gettimeofday): In C++, define a namespaced alias symbol.
31413         * modules/sys_time (Depends-on): Add c++defs.
31414         (Makefile.am): Update sys/time.h rule.
31415
31416         sys_stat: Avoid #define replacements in C++ mode.
31417         * lib/sys_stat.in.h: Include c++defs.h.
31418         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
31419         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
31420         namespaced alias symbol.
31421         In C++, define a namespaced alias symbol.
31422         * modules/sys_stat (Depends-on): Add c++defs.
31423         (Makefile.am): Update sys/stat.h rule.
31424
31425         sys_socket: Avoid #define replacements in C++ mode.
31426         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
31427         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
31428         definitions also when the system has a <sys/socket.h>.
31429         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
31430         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
31431         In C++, define a namespaced alias symbol.
31432         * modules/sys_socket (Depends-on): Add c++defs.
31433         (Makefile.am): Update sys/socket.h rule.
31434
31435         sys_select: Avoid #define replacements in C++ mode.
31436         * lib/sys_select.in.h: Include c++defs.h. Enable the function
31437         definitions also when the system has a <sys/select.h>.
31438         (select): In C++, define a namespaced alias symbol.
31439         * modules/sys_select (Depends-on): Add c++defs.
31440         (Makefile.am): Update sys/select.h rule.
31441
31442         sys_ioctl: Avoid #define replacements in C++ mode.
31443         * lib/sys_ioctl.in.h: Include c++defs.h.
31444         (ioctl): In C++, define a namespaced alias symbol.
31445         * modules/sys_ioctl (Depends-on): Add c++defs.
31446         (Makefile.am): Update sys/ioctl.h rule.
31447
31448         string: Avoid #define replacements in C++ mode.
31449         * lib/string.in.h: Include c++defs.h.
31450         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
31451         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31452         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31453         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
31454         strsignal, strverscmp): In C++, define a namespaced alias symbol.
31455         * modules/string (Depends-on): Add c++defs.
31456         (Makefile.am): Update string.h rule.
31457
31458         stdlib: Avoid #define replacements in C++ mode.
31459         * lib/stdlib.in.h: Include c++defs.h.
31460         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
31461         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
31462         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
31463         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
31464         symbol.
31465         * modules/stdlib (Depends-on): Add c++defs.
31466         (Makefile.am): Update stdlib.h rule.
31467
31468         stdio: Avoid #define replacements in C++ mode.
31469         * lib/stdio.in.h: Include c++defs.h.
31470         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
31471         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
31472         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
31473         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
31474         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
31475         namespaced alias symbol.
31476         * modules/stdio (Depends-on): Add c++defs.
31477         (Makefile.am): Update stdio.h rule.
31478
31479         spawn: Avoid #define replacements in C++ mode.
31480         * lib/spawn.in.h: Include c++defs.h.
31481         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31482         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31483         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31484         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31485         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31486         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31487         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31488         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31489         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31490         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31491         In C++, define a namespaced alias symbol.
31492         * modules/spawn (Depends-on): Add c++defs.
31493         (Makefile.am): Update spawn.h rule.
31494
31495         signal: Avoid #define replacements in C++ mode.
31496         * lib/signal.in.h: Include c++defs.h.
31497         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31498         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
31499         namespaced alias symbol.
31500         * modules/signal (Depends-on): Add c++defs.
31501         (Makefile.am): Update signal.h rule.
31502
31503         search: Avoid #define replacements in C++ mode.
31504         * lib/search.in.h: Include c++defs.h.
31505         (_gl_search_compar_fn, _gl_search_action_fn): New types.
31506         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
31507         symbol.
31508         * modules/search (Depends-on): Add c++defs.
31509         (Makefile.am): Update search.h rule.
31510
31511         math: Avoid #define replacements in C++ mode.
31512         * lib/math.in.h: Include c++defs.h.
31513         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
31514         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
31515         trunc, truncl): In C++, define a namespaced alias symbol.
31516         * modules/math (Depends-on): Add c++defs.
31517         (Makefile.am): Update math.h rule.
31518
31519         locale: Avoid #define replacements in C++ mode.
31520         * lib/locale.in.h: Include c++defs.h.
31521         (duplocale): In C++, define a namespaced alias symbol.
31522         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
31523         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
31524         * modules/locale (Depends-on): Add c++defs.
31525         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
31526
31527         langinfo: Avoid #define replacements in C++ mode.
31528         * lib/langinfo.in.h: Include c++defs.h.
31529         (nl_langinfo): In C++, define a namespaced alias symbol.
31530         * modules/langinfo (Depends-on): Add c++defs.
31531         (Makefile.am): Update langinfo.h rule.
31532
31533         iconv-h: Avoid #define replacements in C++ mode.
31534         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
31535         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
31536         symbol.
31537         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
31538         whenever iconv is present.
31539         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
31540         (Makefile.am): Update iconv.h rule.
31541
31542         glob: Avoid #define replacements in C++ mode.
31543         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
31544         (_gl_glob_errfunc_fn): New type.
31545         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
31546         symbol.
31547         * modules/glob (Depends-on): Add c++defs, warn-on-use.
31548         (Makefile.am): Update glob.h rule.
31549
31550         fcntl-h: Avoid #define replacements in C++ mode.
31551         * lib/fcntl.in.h: Include c++defs.h.
31552         (fcntl, open, openat): In C++, define a namespaced alias symbol.
31553         * modules/fcntl-h (Depends-on): Add c++defs.
31554         (Makefile.am): Update fcntl.h rule.
31555
31556         dirent: Avoid #define replacements in C++ mode.
31557         * lib/dirent.in.h: Include c++defs.h.
31558         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
31559         namespaced alias symbol.
31560         (dirfd): Update declaration.
31561         * modules/dirent (Depends-on): Add c++defs.
31562         (Makefile.am): Update dirent.h rule.
31563
31564         ctype: Make it usable in C++ code.
31565         * lib/ctype.in.h: Include c++defs.h.
31566         (isblank): Declare as extern "C".
31567         * modules/ctype (Depends-on): Add c++defs.
31568         (Makefile.am): Update ctype.h rule.
31569
31570         New module 'c++defs'.
31571         * modules/c++defs: New file.
31572         * build-aux/c++defs.h: New file.
31573         Reported by John W. Eaton <jwe@gnu.org>.
31574
31575 2010-03-07  Bruno Haible  <bruno@clisp.org>
31576
31577         logb: Provide missing declaration for Cygwin.
31578         * lib/math.in.h (logb): New declaration.
31579         * m4/logb.m4: New file.
31580         * modules/logb (Files): Add m4/logb.m4.
31581         (Depends-on): Add math.
31582         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
31583         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
31584         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
31585         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
31586         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
31587
31588 2010-03-07  Bruno Haible  <bruno@clisp.org>
31589
31590         Fix test-cond link error.
31591         * tests/test-cond.c: Include <stdio.h>.
31592
31593 2010-03-07  Bruno Haible  <bruno@clisp.org>
31594
31595         Fix test-dirent-safer link error.
31596         * modules/dirent-safer-tests (Makefile.am): Define
31597         test_dirent_safer_LDADD.
31598
31599 2010-03-07  Bruno Haible  <bruno@clisp.org>
31600
31601         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
31602         among default module list.
31603
31604 2010-03-07  Bruno Haible  <bruno@clisp.org>
31605
31606         Fix link error on platforms with GNU libiconv.
31607         * modules/unistr/u8-strcoll-tests (Makefile): Define
31608         test_u8_strcoll_LDADD.
31609         * modules/unistr/u16-strcoll-tests (Makefile): Define
31610         test_u16_strcoll_LDADD.
31611         * modules/unistr/u32-strcoll-tests (Makefile): Define
31612         test_u32_strcoll_LDADD.
31613
31614 2010-03-07  Bruno Haible  <bruno@clisp.org>
31615
31616         Use POSIX declarations for socket functions.
31617         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
31618         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
31619         rpl_sendto): Change declaration to match POSIX.
31620         * lib/connect.c (rpl_connect): Likewise.
31621         * lib/accept.c (rpl_accept): Likewise.
31622         * lib/bind.c (rpl_bind): Likewise.
31623         * lib/getpeername.c (rpl_getpeername): Likewise.
31624         * lib/getsockname.c (rpl_getsockname): Likewise.
31625         * lib/recv.c (rpl_recv): Likewise.
31626         * lib/send.c (rpl_send): Likewise.
31627         * lib/recvfrom.c (rpl_recvfrom): Likewise.
31628         * lib/sendto.c (rpl_sendto): Likewise.
31629
31630 2010-03-06  Bruno Haible  <bruno@clisp.org>
31631
31632         Clarify access, euidaccess, faccessat.
31633         * doc/posix-functions/faccessat.texi: Mention security problem under
31634         "Other problems", not "Portability problems".
31635         * doc/posix-functions/access.texi: Likewise. Mention a related security
31636         problem.
31637         * doc/glibc-functions/euidaccess.texi: Mention security problems.
31638         * lib/euidaccess.c: Add comments about platforms.
31639         * lib/unistd.in.h (access, euidaccess): Add warnings.
31640
31641 2010-03-07  Bruno Haible  <bruno@clisp.org>
31642
31643         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
31644         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
31645         (POSIX_SPAWN_SETSCHEDULER): Likewise.
31646         (POSIX_SPAWN_USEVFORK): Define in a way that works when
31647         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31648         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
31649         declare when POSIX_SPAWN_SETSCHEDULER is zero.
31650         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
31651         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
31652         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
31653         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
31654         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
31655         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
31656         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
31657         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
31658         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
31659         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
31660         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
31661         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
31662         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
31663         Likewise.
31664         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
31665         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
31666         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
31667         Likewise.
31668         * tests/test-spawn.c (main): Make it work when
31669         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31670
31671 2010-03-07  Bruno Haible  <bruno@clisp.org>
31672
31673         Fix incorrect Makefile.am generation in German locale.
31674         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31675         Execute sed command with character range in C locale.
31676
31677 2010-03-06  Bruno Haible  <bruno@clisp.org>
31678
31679         Tests for module 'iconv-h'.
31680         * modules/iconv-h-tests: New file.
31681         * tests/test-iconv-h.c: New file.
31682
31683         New module 'iconv-h'.
31684         * modules/iconv-h: New file.
31685         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
31686         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
31687         (configure.ac): Remove gl_ICONV_H.
31688         (Makefile.am): Remove rule for iconv.h.
31689
31690 2010-03-06  Bruno Haible  <bruno@clisp.org>
31691
31692         More consistent naming of *.m4 files.
31693         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
31694         * modules/wctype (Files): Update.
31695
31696         More consistent naming of *.m4 files.
31697         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
31698         * modules/wchar (Files): Update.
31699
31700 2010-03-06  Jim Meyering  <meyering@redhat.com>
31701
31702         euidaccess: relax license to LGPLv2+
31703         * modules/euidaccess (License): Relax to LGPLv2+.
31704
31705 2010-03-06  Bruno Haible  <bruno@clisp.org>
31706
31707         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
31708         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
31709         (Makefile.am): Augment lib_SOURCES instead.
31710
31711 2010-03-04  Jim Meyering  <meyering@redhat.com>
31712
31713         utime: remove obsolete module
31714         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
31715         unnecessary for years, and has been marked as obsolete for 10 months.
31716         * modules/utime: Remove file.
31717         * lib/utime.c: Remove file.
31718         * m4/utime.m4: Remove file.
31719         * m4/utimes-null.m4: Remove file.
31720         * doc/posix-functions/utime.texi (utime): Remove reference to
31721         the module.  Move the sole "fixed by gnulib" item into the
31722         "problems not fixed by Gnulib" list.
31723         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
31724
31725 2010-03-05  Simon Josefsson  <simon@josefsson.org>
31726
31727         * modules/exit (License): Relax license to LGPLv2+.
31728         (Status): Mark as obsolete.
31729         * NEWS: Mention deprecated 'exit' module.
31730         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
31731         of now obsolete 'exit'.
31732
31733 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31734
31735         fts-lgpl: remove unused module
31736         * modules/fts-lgpl: Remove.
31737         * MODULES.html.sh (func_all_modules): Adjust.
31738         * check-module (find_included_lib_files): Adjust.
31739         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
31740
31741 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
31742
31743         copy-acl: enhance Solaris ACL error handling
31744         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
31745         * lib/set-mode-acl.c (qset_acl): Likewise.
31746
31747 2010-03-02  Bruno Haible  <bruno@clisp.org>
31748
31749         spawn: Don't override the system defined values on FreeBSD 8.
31750         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
31751         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
31752         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
31753         if HAVE_POSIX_SPAWN is 1.
31754         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
31755
31756 2010-03-01  Bruno Haible  <bruno@clisp.org>
31757
31758         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
31759         regarding Automake.
31760
31761 2010-02-25  Bruno Haible  <bruno@clisp.org>
31762
31763         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
31764         * gnulib-tool: Define 'echo' as a function only before the ksh alias
31765         setting, not afterwards.
31766         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
31767
31768 2010-02-24  Eric Blake  <eblake@redhat.com>
31769
31770         bootstrap, git-version-gen: use timestamp
31771         * build-aux/git-version-gen (scriptversion): Force UTC.
31772         * build-aux/bootstrap (scriptversion): New variable.
31773
31774         bootstrap: allow older git
31775         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
31776         older than 1.6.4.  Requested by the libvirt project.
31777
31778 2010-02-23  Eric Blake  <eblake@redhat.com>
31779
31780         warn-on-use: work with old autoconf
31781         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
31782         AS_VAR semantics of autoconf 2.60.
31783         Reported by Bruno Haible.
31784
31785         bootstrap: improve some comments
31786         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
31787         clarification comments.
31788
31789         gettimeofday: provide correct function
31790         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
31791         when replacement is declared, otherwise provide gettimeofday.
31792         Reported by Michael Goffioul.
31793
31794 2010-02-23  Jim Meyering  <meyering@redhat.com>
31795
31796         lib-ignore: relax license to "unlimited", not LGPLv2+
31797         * modules/lib-ignore (License): Relax to "unlimited".
31798
31799 2010-02-23  Jim Meyering  <meyering@redhat.com>
31800
31801         lib-ignore: relax license to LGPLv2+
31802         * modules/lib-ignore (License): Relax to LGPLv2+.
31803
31804 2010-02-22  Eric Blake  <eblake@redhat.com>
31805
31806         lseek: avoid bash 3.2 broken pipe bug
31807         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
31808         warning from bash 3.2.
31809         Reported by Ben Pfaff, with analysis from Bruno Haible.
31810
31811         bootstrap: support non-FSF copyright holder
31812         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
31813         bootstrap.conf override of COPYRIGHT_HOLDER.
31814         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
31815
31816         bootstrap: interoperate with gettext 0.14.1
31817         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
31818
31819         bootstrap: allow for alternate submodule location
31820         * build-aux/bootstrap (gnulib_path): New variable; use instead of
31821         hardcoding submodule location.
31822         (gnulib_mk): Allow direct use of Makefile.am.
31823
31824         bootstrap: use GNULIB_SRCDIR to reduce disk usage
31825         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
31826         rather than reconfiguring where the submodule points.
31827
31828         gettimeofday: restore support for platforms that lack function
31829         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
31830         replacement if function is missing.
31831         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
31832         * modules/sys_time (Makefile.am): Substitute it.
31833         * lib/sys_time.in.h (gettimeofday): Check it.
31834         Reported by Michael Goffioul.
31835
31836 2010-02-21  Bruno Haible  <bruno@clisp.org>
31837
31838         * lib/stdio.in.h (obstack_printf): Fix typo.
31839
31840 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
31841
31842         vc-list-files: use bzr ls's -R option
31843         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
31844         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
31845
31846 2010-02-21  Jim Meyering  <meyering@redhat.com>
31847
31848         init.sh: fix EXEEXT shims to work also for names like test-prog
31849         * tests/init.sh: Re-exec a better shell, when needed.
31850         If the current shell lacks support for posix $(...), an init.sh-using
31851         test will now try to find a shell that supports that.  If EXEEXT is
31852         nonempty, we also require support for hyphen-in-alias-name and shell
31853         substitutions like ${var#glob}.  Failure to find such a shell results
31854         in a skipped test.
31855
31856 2010-02-21  Bruno Haible  <bruno@clisp.org>
31857
31858         Really work around around "broken pipe" error message from bash 3.2.
31859         * gnulib-tool (func_reset_sigpipe): Remove function.
31860         (echo): In bash 3.2, define to a function that uses printf.
31861         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
31862
31863 2010-02-20  Bruno Haible  <bruno@clisp.org>
31864
31865         Restore support for automake 1.9.6 with autoconf 2.61.
31866         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
31867         Reported by James Youngman <jay@gnu.org>.
31868
31869 2010-02-20  Bruno Haible  <bruno@clisp.org>
31870
31871         Improve *printf warning condition.
31872         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
31873         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
31874         and the function is overridden due to SIGPIPE emulation.
31875
31876 2010-02-20  Bruno Haible  <bruno@clisp.org>
31877
31878         * lib/stdio.in.h: Tweak comments.
31879
31880 2010-02-19  Bruno Haible  <bruno@clisp.org>
31881
31882         Make it easier to find modules. New gnulib-tool option '--find'.
31883         * gnulib-tool: New option --find.
31884         (func_usage): Document it.
31885         (func_sanitize_modulelist): New function, extracted from
31886         func_all_modules.
31887         (func_all_modules): Invoke it.
31888         * doc/gnulib-tool.texi (Which modules?): New node.
31889
31890 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
31891
31892         * lib/sys_select.in.h: Provide select replacement even if
31893         sys/select.h exists on a system, for Interix.
31894
31895 2010-02-18  Jim Meyering  <meyering@redhat.com>
31896
31897         init.sh: don't use $(...) just yet
31898         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
31899         to accommodate e.g., Solaris' /bin/sh.
31900
31901 2010-02-17  Bruno Haible  <bruno@clisp.org>
31902
31903         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
31904         Reported by Ludovic Courtès <ludo@gnu.org>.
31905
31906 2010-02-16  Simon Josefsson  <simon@josefsson.org>
31907
31908         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
31909         linking with -lintl.
31910
31911 2010-02-17  Simon Josefsson  <simon@josefsson.org>
31912
31913         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
31914         if not provided by the system's netdb.h.  Reported by
31915         ludo@gnu.org (Ludovic Courtès).
31916
31917 2010-02-15  Jim Meyering  <meyering@redhat.com>
31918
31919         init.sh: improve portability and efficiency
31920         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
31921         "dummy" in a for loop.
31922         Use '!', not '^' to select the complement of a character set used
31923         in a "case" statement.
31924         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
31925         Suggestions from Eric Blake.
31926
31927         init.sh: automatically accommodate programs with the .exe suffix
31928         Automatically arrange for an invocation of "prog" to execute the
31929         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
31930         may use the simpler "prog", yet still work when built on a system
31931         that requires specifying the added suffix.
31932         Do this by constructing a function named "prog" that invokes
31933         "prog.exe" for each .exe file in selected directories.
31934         * tests/init.sh (find_exe_basenames_): New function.
31935         (create_exe_shim_functions_): New function.
31936         (path_prepend_): Use it.
31937
31938         maint.mk: mark syntax-check sc_*.m rules as .PHONY
31939         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
31940         "make -t syntax-check" doesn't create a ton of sc_*.m files.
31941
31942 2010-02-14  Jim Meyering  <meyering@redhat.com>
31943
31944         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
31945         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
31946         (sc_prohibit_hash_pjw_without_use): New rule.
31947
31948         maint.mk: allow the default upload destination dir to be overridden
31949         * top/maint.mk (upload_dest_dir_): Define with a default that
31950         preserves the status quo.
31951         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
31952         Reported by Peter Simons.
31953
31954         maint.mk: prohibit inclusion of "hash.h" without_use
31955         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
31956
31957 2010-02-10  Jim Meyering  <meyering@redhat.com>
31958
31959         maint.mk: prohibit inclusion of "ignore-value.h" without_use
31960         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
31961
31962 2010-02-09  Eric Blake  <ebb9@byu.net>
31963         and Bruno Haible  <bruno@clisp.org>
31964
31965         obstack-printf-posix: ensure declaration
31966         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
31967         extracted from gl_FUNC_OBSTACK_PRINTF.
31968         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
31969         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
31970         Likewise.
31971         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
31972         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
31973         0.
31974
31975 2010-02-08  Bruno Haible  <bruno@clisp.org>
31976
31977         gnulib-tool: Fix typo in 2010-02-07 commit.
31978         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
31979         Reported by Eric Blake.
31980
31981 2010-02-07  Bruno Haible  <bruno@clisp.org>
31982
31983         gnulib-tool: Fix up caching patches.
31984         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
31985         option --no-cache. Use associative arrays when supported by the shell.
31986         (sed_comments): New variable.
31987         (modcache): Renamed from do_cache.
31988         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
31989         abbreviate unnecessarily.
31990         (have_associative): New variable.
31991         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
31992         way also for ksh and zsh.
31993         (func_init_sed_convert_to_cache_statements): New function, extracted
31994         from func_cache_lookup_module. Add support for associative arrays.
31995         Don't set the c_MODULE_cached variable here. Ignore all lines before
31996         the first field header. Remove only the final newline, not all trailing
31997         newlines. Support empty fields correctly. Limit the use of 'eval' to
31998         assignments.
31999         (func_get_description, func_get_status, func_get_notice,
32000         func_get_applicability, func_get_filelist, func_get_dependencies,
32001         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
32002         func_get_automake_snippet, func_get_include_directive,
32003         func_get_link_directive, func_get_license, func_get_maintainer):
32004         Update documentation. List the unoptimized code first. Add support for
32005         associative arrays. Limit the use of 'eval' to assignments.
32006         (func_get_applicability): Undo stylistic pessimisations.
32007         (func_get_automake_snippet, func_get_include_directive): Reduce code
32008         duplication.
32009         (func_modules_transitive_closure, func_modules_add_dummy,
32010         func_modules_notice, func_modules_to_filelist, func_add_file,
32011         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
32012         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
32013         func_create_testdir, func_create_megatestdir): Update documentation.
32014
32015 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32016
32017         * gnulib-tool (func_cache_lookup_module): Store the module name
32018         belonging to the cache variable; error out if two different
32019         module names map to the same cache variable name.
32020
32021 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32022
32023         gnulib-tool: Make caching optional.
32024         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
32025         Update matching short versions of --no-changelog.
32026         (func_usage): Update.
32027         (sed_extract_cache_prog): Renamed from ...
32028         (sed_extract_prog): ... this; revert to old extraction script.
32029         (func_get_description, func_get_status)
32030         (func_get_notice, func_get_applicability, func_get_filelist)
32031         (func_get_dependencies, func_get_autoconf_early_snippet)
32032         (func_get_autoconf_snippet, func_get_automake_snippet)
32033         (func_get_include_directive, func_get_link_directive)
32034         (func_get_license, func_get_maintainer): If $do_cache is false,
32035         use old, non-caching extraction scripts.
32036         Suggestion by Bruno Haible.
32037
32038 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32039
32040         gnulib-tool: cache module metainformation.
32041         * gnulib-tool (sed_extract_prog): Match newline before each
32042         header, and rewrite header to a shell variable suffix.
32043         (func_cache_var, func_cache_lookup_module): New functions,
32044         to turn a module name into a cache variable prefix, and to
32045         look up and cache module metainformation.
32046         (func_get_description, func_get_status)
32047         (func_get_notice, func_get_applicability, func_get_filelist)
32048         (func_get_dependencies, func_get_autoconf_early_snippet)
32049         (func_get_autoconf_snippet, func_get_automake_snippet)
32050         (func_get_include_directive, func_get_link_directive)
32051         (func_get_license, func_get_maintainer): Use
32052         func_cache_lookup_module.
32053
32054 2010-02-07  Bruno Haible  <bruno@clisp.org>
32055
32056         fnctl: Fix missing dependency.
32057         * modules/fcntl (Depends-on): Add getdtablesize.
32058         Reported by John W. Eaton <jwe@gnu.org>.
32059
32060 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32061
32062         Argp: fix recognition of short alias options.
32063
32064         * lib/argp-parse.c (convert_options): Fix improper use of
32065         `|' between character values.
32066         * tests/test-argp.c (group1_option): New alias option
32067         --read (-r).
32068         (group1_parser): Special handling for 'r'.
32069         (test15): New test case.
32070         (test_fun): Add test15.
32071         * tests/test-argp-2.sh: Update expected --help and --usage
32072         outputs.
32073
32074 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32075
32076         * tests/test-argp.c: Fix indentation.
32077
32078 2010-02-04  Eric Blake  <ebb9@byu.net>
32079
32080         gettimeofday: expose type of second argument
32081         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
32082         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
32083         * tests/test-gettimeofday.c: Use it to silence warning.
32084         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
32085         the issue.
32086
32087 2010-02-03  Jim Meyering  <meyering@redhat.com>
32088
32089         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
32090         * lib/regcomp.c (TYPE_SIGNED): Define.
32091         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
32092
32093         regcomp.c: avoid a new -Wshadow warning
32094         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
32095
32096 2010-02-01  Jim Meyering  <meyering@redhat.com>
32097
32098         removing useless parentheses in cpp #define directives
32099         For motivation, see commit c0221df4, "define STREQ(a,b)
32100         consistently, removing useless parentheses"
32101         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
32102         * lib/mountlist.c (MNT_IGNORE): Likewise.
32103         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
32104
32105 2010-02-01  Eric Blake  <ebb9@byu.net>
32106
32107         sys_time: use link-warning
32108         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
32109         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
32110         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
32111         * modules/sys_time (Depends-on): Add warn-on-use.
32112         (Makefile.am): Always build replacement.
32113         (configure.ac): Update substitutions.
32114         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
32115         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
32116         bother with SYS_TIME_H.
32117         * modules/gettimeofday (configure.ac): Declare indicator.
32118         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
32119         in use.
32120
32121         closein-tests: silence compiler warning
32122         * tests/test-closein.c (main): Ignore fread result.
32123         * modules/closein-tests (Depends-on): Add ignore-value.
32124
32125         tests: silence warning about system return
32126         * tests/test-areadlink-with-size.c (main): Ignore system result.
32127         * tests/test-areadlink.c (main): Likewise.
32128         * tests/test-areadlinkat-with-size.c (main): Likewise.
32129         * tests/test-areadlinkat.c (main): Likewise.
32130         * tests/test-canonicalize-lgpl.c (main): Likewise.
32131         * tests/test-canonicalize.c (main): Likewise.
32132         * tests/test-chown.c (main): Likewise.
32133         * tests/test-fchownat.c (main): Likewise.
32134         * tests/test-fdutimensat.c (main): Likewise.
32135         * tests/test-fstatat.c (main): Likewise.
32136         * tests/test-futimens.c (main): Likewise.
32137         * tests/test-lchown.c (main): Likewise.
32138         * tests/test-link.c (main): Likewise.
32139         * tests/test-linkat.c (main): Likewise.
32140         * tests/test-lstat.c (main): Likewise.
32141         * tests/test-mkdir.c (main): Likewise.
32142         * tests/test-mkdirat.c (main): Likewise.
32143         * tests/test-mkfifo.c (main): Likewise.
32144         * tests/test-mkfifoat.c (main): Likewise.
32145         * tests/test-mknod.c (main): Likewise.
32146         * tests/test-readlink.c (main): Likewise.
32147         * tests/test-remove.c (main): Likewise.
32148         * tests/test-rename.c (main): Likewise.
32149         * tests/test-renameat.c (main): Likewise.
32150         * tests/test-rmdir.c (main): Likewise.
32151         * tests/test-symlink.c (main): Likewise.
32152         * tests/test-symlinkat.c (main): Likewise.
32153         * tests/test-unlink.c (main): Likewise.
32154         * tests/test-unlinkat.c (main): Likewise.
32155         * tests/test-utimens.c (main): Likewise.
32156         * tests/test-utimensat.c (main): Likewise.
32157         * modules/areadlink-tests (Depends-on): Add ignore-value.
32158         * modules/areadlink-with-size-tests (Depends-on): Likewise.
32159         * modules/areadlinkat-tests (Depends-on): Likewise.
32160         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
32161         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32162         * modules/canonicalize-tests (Depends-on): Likewise.
32163         * modules/chown-tests (Depends-on): Likewise.
32164         * modules/fdutimensat-tests (Depends-on): Likewise.
32165         * modules/futimens-tests (Depends-on): Likewise.
32166         * modules/lchown-tests (Depends-on): Likewise.
32167         * modules/link-tests (Depends-on): Likewise.
32168         * modules/linkat-tests (Depends-on): Likewise.
32169         * modules/lstat-tests (Depends-on): Likewise.
32170         * modules/mkdir-tests (Depends-on): Likewise.
32171         * modules/mkfifo-tests (Depends-on): Likewise.
32172         * modules/mkfifoat-tests (Depends-on): Likewise.
32173         * modules/mknod-tests (Depends-on): Likewise.
32174         * modules/openat-tests (Depends-on): Likewise.
32175         * modules/readlink-tests (Depends-on): Likewise.
32176         * modules/remove-tests (Depends-on): Likewise.
32177         * modules/rename-tests (Depends-on): Likewise.
32178         * modules/renameat-tests (Depends-on): Likewise.
32179         * modules/rmdir-tests (Depends-on): Likewise.
32180         * modules/symlink-tests (Depends-on): Likewise.
32181         * modules/symlinkat-tests (Depends-on): Likewise.
32182         * modules/unlink-tests (Depends-on): Likewise.
32183         * modules/utimens-tests (Depends-on): Likewise.
32184         * modules/utimensat-tests (Depends-on): Likewise.
32185
32186 2010-01-31  Bruno Haible  <bruno@clisp.org>
32187
32188         Perform the same test for many <math.h> functions.
32189         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
32190         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
32191         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
32192         of gl_MATHFUNC.
32193         * modules/acos (configure.ac): Likewise.
32194         * modules/asin (configure.ac): Likewise.
32195         * modules/atan (configure.ac): Likewise.
32196         * modules/atan2 (configure.ac): Likewise.
32197         * modules/cbrt (configure.ac): Likewise.
32198         * modules/copysign (configure.ac): Likewise.
32199         * modules/cos (configure.ac): Likewise.
32200         * modules/cosh (configure.ac): Likewise.
32201         * modules/erf (configure.ac): Likewise.
32202         * modules/erfc (configure.ac): Likewise.
32203         * modules/exp (configure.ac): Likewise.
32204         * modules/fmod (configure.ac): Likewise.
32205         * modules/hypot (configure.ac): Likewise.
32206         * modules/j0 (configure.ac): Likewise.
32207         * modules/j1 (configure.ac): Likewise.
32208         * modules/jn (configure.ac): Likewise.
32209         * modules/lgamma (configure.ac): Likewise.
32210         * modules/log (configure.ac): Likewise.
32211         * modules/log10 (configure.ac): Likewise.
32212         * modules/log1p (configure.ac): Likewise.
32213         * modules/pow (configure.ac): Likewise.
32214         * modules/remainder (configure.ac): Likewise.
32215         * modules/sin (configure.ac): Likewise.
32216         * modules/sinh (configure.ac): Likewise.
32217         * modules/tan (configure.ac): Likewise.
32218         * modules/tanh (configure.ac): Likewise.
32219         * modules/y0 (configure.ac): Likewise.
32220         * modules/y1 (configure.ac): Likewise.
32221         * modules/yn (configure.ac): Likewise.
32222         Suggested by Paolo Bonzini.
32223
32224 2010-01-31  Bruno Haible  <bruno@clisp.org>
32225
32226         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
32227
32228 2010-01-31  Bruno Haible  <bruno@clisp.org>
32229
32230         Work around getdelim() bug on FreeBSD 8.0.
32231         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
32232         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
32233         not work.
32234         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
32235         is 1.
32236         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
32237         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
32238         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
32239         a non-zero size.
32240         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
32241
32242 2010-01-31  Bruno Haible  <bruno@clisp.org>
32243
32244         Work around getline() bug on FreeBSD 8.0.
32245         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
32246         and a non-zero size.
32247         * tests/test-getline.c (main): Likewise.
32248         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
32249         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
32250
32251 2010-01-28  Eric Blake  <ebb9@byu.net>
32252
32253         regex: fix build failure
32254         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
32255         platforms.
32256
32257 2010-01-28  Jim Meyering  <meyering@redhat.com>
32258
32259         regex: do not ignore memory allocation failure
32260         * lib/regex_internal.c (create_cd_newstate): Detect
32261         re_node_set_init_copy failure.   Extracted from glibc commit
32262         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32263
32264         regex: sync more white-space changes from libc
32265         * lib/regex_internal.c: White-space only changes.
32266         * lib/regexec.c: Likewise.
32267
32268         regex: add many uses of __attribute_warn_unused_result__
32269         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
32270         * lib/regexec.c: Likewise.
32271         Extracted from a messy glibc commit.
32272
32273         regcomp.c: spelling and merge-artifact from glibc
32274         * lib/regcomp.c: Merge remainder of glibc's
32275         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32276
32277         regcomp.c: sync white-space changes from glibc
32278         * lib/regcomp.c: Merge to accommodate white space
32279         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32280
32281         regcomp.c: do not ignore internal return values
32282         * lib/regcomp.c: Do not ignore internal return values.
32283         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
32284         but without its white-space changes and spelling fixes.
32285
32286         regex_internal.h: define __attribute_warn_unused_result__
32287         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
32288
32289         maint: add a syntax-check rule to check for vulnerable Makefile.in
32290         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
32291
32292 2010-01-27  Jim Meyering  <meyering@redhat.com>
32293
32294         ncftpput-ftp: clean up spaces
32295         * build-aux/ncftpput-ftp: Make Copyright line consistent.
32296         Remove trailing blanks.
32297
32298 2010-01-27  Simon Josefsson  <simon@josefsson.org>
32299
32300         * build-aux/git-version-gen: Fix copyright statement.
32301         * build-aux/gnupload: Likewise.
32302         * tests/test-arcfour.c: Likewise.
32303         * tests/test-arctwo.c: Likewise.
32304         * tests/test-count-one-bits.c: Likewise.
32305         * tests/test-crc.c: Likewise.
32306         * tests/test-des.c: Likewise.
32307         * tests/test-gc-arcfour.c: Likewise.
32308         * tests/test-gc-arctwo.c: Likewise.
32309         * tests/test-gc-des.c: Likewise.
32310         * tests/test-gc-hmac-md5.c: Likewise.
32311         * tests/test-gc-hmac-sha1.c: Likewise.
32312         * tests/test-gc-md2.c: Likewise.
32313         * tests/test-gc-md4.c: Likewise.
32314         * tests/test-gc-md5.c: Likewise.
32315         * tests/test-gc-pbkdf2-sha1.c: Likewise.
32316         * tests/test-gc-rijndael.c: Likewise.
32317         * tests/test-gc-sha1.c: Likewise.
32318         * tests/test-gc.c: Likewise.
32319         * tests/test-gethostname.c: Likewise.
32320         * tests/test-gettimeofday.c: Likewise.
32321         * tests/test-hash.c: Likewise.
32322         * tests/test-hmac-md5.c: Likewise.
32323         * tests/test-hmac-sha1.c: Likewise.
32324         * tests/test-md2.c: Likewise.
32325         * tests/test-md4.c: Likewise.
32326         * tests/test-md5.c: Likewise.
32327         * tests/test-memchr.c: Likewise.
32328         * tests/test-memchr2.c: Likewise.
32329         * tests/test-memcmp.c: Likewise.
32330         * tests/test-memmem.c: Likewise.
32331         * tests/test-memrchr.c: Likewise.
32332         * tests/test-rawmemchr.c: Likewise.
32333         * tests/test-read-file.c: Likewise.
32334         * tests/test-rijndael.c: Likewise.
32335         * tests/test-sockets.c: Likewise.
32336         * tests/test-strchrnul.c: Likewise.
32337         * tests/test-strstr.c: Likewise.
32338         * tests/test-strtod.c: Likewise.
32339         * build-aux/ncftpput-ftp: Likewise.
32340
32341 2010-01-26  Eric Blake  <ebb9@byu.net>
32342
32343         ignore-value: update recommended header name
32344         * modules/ignore-value (Include): Only use <> for headers that
32345         exist in glibc.
32346
32347 2010-01-26  Jim Meyering  <meyering@redhat.com>
32348
32349         test-userspec.c: avoid compiler warnings
32350         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
32351         and "initialization discards qualifiers..." warnings.
32352         Put the first "uid" in its own scope, and make char* members "const".
32353
32354 2010-01-25  Bruno Haible  <bruno@clisp.org>
32355
32356         gnulib-tool: Make warning diagnostics consistent.
32357         * gnulib-tool (func_warning): New function.
32358         Use it everywhere where gnulib-tool produces output to stderr and it is
32359         not a fatal error.
32360
32361 2010-01-25  Bruno Haible  <bruno@clisp.org>
32362
32363         Fix test dependencies.
32364         * modules/xstrtol-tests (Depends-on): Add inttypes.
32365         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
32366
32367 2010-01-25 Pádraig Brady <P@draigBrady.com>
32368
32369         syntax-check: detect incorrect boolean macro values in config.h
32370         * modules/maintainer-makefile (configure.ac): Parameterize the location
32371         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
32372         The logic is from Eric Blake and the location indicated by Jim Meyering.
32373         Note the more natural CONFIG_HEADER name is prohibited by automake
32374         for backwards compatibility reasons.
32375         * top/maint.mk (sc_Wundef_boolean): New rule.
32376
32377 2010-01-25  Jim Meyering  <meyering@redhat.com>
32378
32379         bootstrap: detect MacOS 10.6's shasum, too
32380         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
32381         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
32382
32383 2010-01-23  Jim Meyering  <meyering@redhat.com>
32384
32385         xstrtoll: new module
32386         * modules/xstrtoll: New file.
32387         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
32388         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
32389         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
32390         ./configure fails if you use this module and lack "long long".
32391         * modules/xstrtoll-tests: New module.
32392         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
32393         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
32394         new init.sh-based test framework.
32395
32396 2010-01-24  Bruno Haible  <bruno@clisp.org>
32397
32398         Tests for module 'yn'.
32399         * modules/yn-tests: New file.
32400         * tests/test-yn.c: New file.
32401
32402         Tests for module 'y1'.
32403         * modules/y1-tests: New file.
32404         * tests/test-y1.c: New file.
32405
32406         Tests for module 'y0'.
32407         * modules/y0-tests: New file.
32408         * tests/test-y0.c: New file.
32409
32410         Tests for module 'tanh'.
32411         * modules/tanh-tests: New file.
32412         * tests/test-tanh.c: New file.
32413
32414         Tests for module 'tan'.
32415         * modules/tan-tests: New file.
32416         * tests/test-tan.c: New file.
32417
32418         Tests for module 'sqrt'.
32419         * modules/sqrt-tests: New file.
32420         * tests/test-sqrt.c: New file.
32421
32422         Tests for module 'sinh'.
32423         * modules/sinh-tests: New file.
32424         * tests/test-sinh.c: New file.
32425
32426         Tests for module 'sin'.
32427         * modules/sin-tests: New file.
32428         * tests/test-sin.c: New file.
32429
32430         Tests for module 'rint'.
32431         * modules/rint-tests: New file.
32432         * tests/test-rint.c: New file.
32433
32434         Tests for module 'remainder'.
32435         * modules/remainder-tests: New file.
32436         * tests/test-remainder.c: New file.
32437
32438         Tests for module 'pow'.
32439         * modules/pow-tests: New file.
32440         * tests/test-pow.c: New file.
32441
32442         Tests for module 'nextafter'.
32443         * modules/nextafter-tests: New file.
32444         * tests/test-nextafter.c: New file.
32445
32446         Tests for module 'modf'.
32447         * modules/modf-tests: New file.
32448         * tests/test-modf.c: New file.
32449
32450         Tests for module 'logb'.
32451         * modules/logb-tests: New file.
32452         * tests/test-logb.c: New file.
32453
32454         Tests for module 'log1p'.
32455         * modules/log1p-tests: New file.
32456         * tests/test-log1p.c: New file.
32457
32458         Tests for module 'log10'.
32459         * modules/log10-tests: New file.
32460         * tests/test-log10.c: New file.
32461
32462         Tests for module 'log'.
32463         * modules/log-tests: New file.
32464         * tests/test-log.c: New file.
32465
32466         Tests for module 'lgamma'.
32467         * modules/lgamma-tests: New file.
32468         * tests/test-lgamma.c: New file.
32469
32470         Tests for module 'ldexp'.
32471         * modules/ldexp-tests: New file.
32472         * tests/test-ldexp.c: New file.
32473
32474         Tests for module 'jn'.
32475         * modules/jn-tests: New file.
32476         * tests/test-jn.c: New file.
32477
32478         Tests for module 'j1'.
32479         * modules/j1-tests: New file.
32480         * tests/test-j1.c: New file.
32481
32482         Tests for module 'j0'.
32483         * modules/j0-tests: New file.
32484         * tests/test-j0.c: New file.
32485
32486         Tests for module 'hypot'.
32487         * modules/hypot-tests: New file.
32488         * tests/test-hypot.c: New file.
32489
32490         Tests for module 'fmod'.
32491         * modules/fmod-tests: New file.
32492         * tests/test-fmod.c: New file.
32493
32494         Tests for module 'fabs'.
32495         * modules/fabs-tests: New file.
32496         * tests/test-fabs.c: New file.
32497
32498         Tests for module 'exp'.
32499         * modules/exp-tests: New file.
32500         * tests/test-exp.c: New file.
32501
32502         Tests for module 'erfc'.
32503         * modules/erfc-tests: New file.
32504         * tests/test-erfc.c: New file.
32505
32506         Tests for module 'erf'.
32507         * modules/erf-tests: New file.
32508         * tests/test-erf.c: New file.
32509
32510         Tests for module 'cosh'.
32511         * modules/cosh-tests: New file.
32512         * tests/test-cosh.c: New file.
32513
32514         Tests for module 'cos'.
32515         * modules/cos-tests: New file.
32516         * tests/test-cos.c: New file.
32517
32518         Tests for module 'copysign'.
32519         * modules/copysign-tests: New file.
32520         * tests/test-copysign.c: New file.
32521
32522         Tests for module 'cbrt'.
32523         * modules/cbrt-tests: New file.
32524         * tests/test-cbrt.c: New file.
32525
32526         Tests for module 'atan2'.
32527         * modules/atan2-tests: New file.
32528         * tests/test-atan2.c: New file.
32529
32530         Tests for module 'atan'.
32531         * modules/atan-tests: New file.
32532         * tests/test-atan.c: New file.
32533
32534         Tests for module 'asin'.
32535         * modules/asin-tests: New file.
32536         * tests/test-asin.c: New file.
32537
32538         Tests for module 'acos'.
32539         * modules/acos-tests: New file.
32540         * tests/test-acos.c: New file.
32541
32542 2010-01-24  Bruno Haible  <bruno@clisp.org>
32543
32544         Fix tests for common <math.h> functions.
32545         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
32546         code snippet that references the function pointer, rather than merely
32547         calling the function. Substitute the FUNC_LIBM variable.
32548         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
32549         * modules/acos (configure.ac): Likewise.
32550         * modules/asin (configure.ac): Likewise.
32551         * modules/atan (configure.ac): Likewise.
32552         * modules/atan2 (configure.ac): Likewise.
32553         * modules/cbrt (configure.ac): Likewise.
32554         * modules/copysign (configure.ac): Likewise.
32555         * modules/cos (configure.ac): Likewise.
32556         * modules/cosh (configure.ac): Likewise.
32557         * modules/erf (configure.ac): Likewise.
32558         * modules/erfc (configure.ac): Likewise.
32559         * modules/exp (configure.ac): Likewise.
32560         * modules/fabs (configure.ac): Likewise.
32561         * modules/fmod (configure.ac): Likewise.
32562         * modules/hypot (configure.ac): Likewise.
32563         * modules/j0 (configure.ac): Likewise.
32564         * modules/j1 (configure.ac): Likewise.
32565         * modules/jn (configure.ac): Likewise.
32566         * modules/ldexp (configure.ac): Likewise.
32567         * modules/lgamma (configure.ac): Likewise.
32568         * modules/log (configure.ac): Likewise.
32569         * modules/log10 (configure.ac): Likewise.
32570         * modules/log1p (configure.ac): Likewise.
32571         * modules/logb (configure.ac): Likewise.
32572         * modules/modf (configure.ac): Likewise.
32573         * modules/nextafter (configure.ac): Likewise.
32574         * modules/pow (configure.ac): Likewise.
32575         * modules/remainder (configure.ac): Likewise.
32576         * modules/rint (configure.ac): Likewise.
32577         * modules/sin (configure.ac): Likewise.
32578         * modules/sinh (configure.ac): Likewise.
32579         * modules/tan (configure.ac): Likewise.
32580         * modules/tanh (configure.ac): Likewise.
32581         * modules/y0 (configure.ac): Likewise.
32582         * modules/y1 (configure.ac): Likewise.
32583         * modules/yn (configure.ac): Likewise.
32584
32585 2010-01-24  Bruno Haible  <bruno@clisp.org>
32586
32587         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
32588         * tests/test-acosl.c (x): New variable.
32589         (main): Store argument in x and fetch it from x.
32590         * tests/test-asinl.c (x): New variable.
32591         (main): Store argument in x and fetch it from x.
32592         * tests/test-atanl.c (x): New variable.
32593         (main): Store argument in x and fetch it from x.
32594         * tests/test-cosl.c (x): New variable.
32595         (main): Store argument in x and fetch it from x.
32596         * tests/test-expl.c (x): New variable.
32597         (main): Store argument in x and fetch it from x.
32598         * tests/test-logl.c (x): New variable.
32599         (main): Store argument in x and fetch it from x.
32600         * tests/test-sinl.c (x): New variable.
32601         (main): Store argument in x and fetch it from x.
32602         * tests/test-sqrtl.c (x): New variable.
32603         (main): Store argument in x and fetch it from x.
32604         * tests/test-tanl.c (x): New variable.
32605         (main): Store argument in x and fetch it from x.
32606
32607 2010-01-24  Bruno Haible  <bruno@clisp.org>
32608
32609         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
32610         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
32611         assignments to the initial TESTS_ENVIRONMENT.
32612         * doc/gnulib.texi (Unit test modules): Document it.
32613         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
32614         TESTS_ENVIRONMENT.
32615         * modules/btowc-tests (Makefile.am): Likewise.
32616         * modules/c-stack-tests (Makefile.am): Likewise.
32617         * modules/c-strcase-tests (Makefile.am): Likewise.
32618         * modules/copy-file-tests (Makefile.am): Likewise.
32619         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
32620         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
32621         * modules/mbrtowc-tests (Makefile.am): Likewise.
32622         * modules/mbscasecmp-tests (Makefile.am): Likewise.
32623         * modules/mbscasestr-tests (Makefile.am): Likewise.
32624         * modules/mbschr-tests (Makefile.am): Likewise.
32625         * modules/mbscspn-tests (Makefile.am): Likewise.
32626         * modules/mbsinit-tests (Makefile.am): Likewise.
32627         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
32628         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
32629         * modules/mbspbrk-tests (Makefile.am): Likewise.
32630         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
32631         * modules/mbsrchr-tests (Makefile.am): Likewise.
32632         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
32633         * modules/mbsspn-tests (Makefile.am): Likewise.
32634         * modules/mbsstr-tests (Makefile.am): Likewise.
32635         * modules/nl_langinfo-tests (Makefile.am): Likewise.
32636         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
32637         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
32638         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
32639         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
32640         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
32641         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
32642         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
32643         * modules/wcrtomb-tests (Makefile.am): Likewise.
32644         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
32645         * modules/wcsrtombs-tests (Makefile.am): Likewise.
32646         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
32647         assignments from TESTS_ENVIRONMENT.
32648         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
32649         augmentation.
32650         * modules/argp-version-etc-tests (Makefile.am): Likewise.
32651         * modules/atexit-tests (Makefile.am): Likewise.
32652         * modules/binary-io-tests (Makefile.am): Likewise.
32653         * modules/closein-tests (Makefile.am): Likewise.
32654         * modules/dprintf-posix-tests (Makefile.am): Likewise.
32655         * modules/exclude-tests (Makefile.am): Likewise.
32656         * modules/fflush-tests (Makefile.am): Likewise.
32657         * modules/fpending-tests (Makefile.am): Likewise.
32658         * modules/fprintf-posix-tests (Makefile.am): Likewise.
32659         * modules/freadahead-tests (Makefile.am): Likewise.
32660         * modules/freadptr-tests (Makefile.am): Likewise.
32661         * modules/freadseek-tests (Makefile.am): Likewise.
32662         * modules/fseek-tests (Makefile.am): Likewise.
32663         * modules/fseeko-tests (Makefile.am): Likewise.
32664         * modules/ftell-tests (Makefile.am): Likewise.
32665         * modules/ftello-tests (Makefile.am): Likewise.
32666         * modules/idpriv-drop-tests (Makefile.am): Likewise.
32667         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
32668         * modules/lseek-tests (Makefile.am): Likewise.
32669         * modules/parse-duration-tests (Makefile.am): Likewise.
32670         * modules/perror-tests (Makefile.am): Likewise.
32671         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
32672         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
32673         * modules/pipe-tests (Makefile.am): Likewise.
32674         * modules/pread-tests (Makefile.am): Likewise.
32675         * modules/printf-posix-tests (Makefile.am): Likewise.
32676         * modules/select-tests (Makefile.am): Likewise.
32677         * modules/sigpipe-tests (Makefile.am): Likewise.
32678         * modules/tsearch-tests (Makefile.am): Likewise.
32679         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
32680         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
32681         * modules/uniname/uniname-tests (Makefile.am): Likewise.
32682         * modules/uniwidth/width-tests (Makefile.am): Likewise.
32683         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
32684         * modules/version-etc-tests (Makefile.am): Likewise.
32685         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
32686         * modules/vprintf-posix-tests (Makefile.am): Likewise.
32687         * modules/xalloc-die-tests (Makefile.am): Likewise.
32688         * modules/xprintf-posix-tests (Makefile.am): Likewise.
32689         * modules/xstrtoimax-tests (Makefile.am): Likewise.
32690         * modules/xstrtol-tests (Makefile.am): Likewise.
32691         * modules/xstrtoumax-tests (Makefile.am): Likewise.
32692         * modules/yesno-tests (Makefile.am): Likewise.
32693         Suggested by Jim Meyering.
32694
32695 2010-01-24  Bruno Haible  <bruno@clisp.org>
32696
32697         More documentation.
32698         * doc/gnulib.texi (Writing modules): New chapter.
32699         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
32700         the new chapter.
32701
32702 2010-01-24  Jim Meyering  <meyering@redhat.com>
32703
32704         maint.mk: do not prepend "./" after filtering
32705         * top/maint.mk (_prepend_srcdir_prefix): New variable
32706         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
32707         "./" when $(srcdir) is ".".
32708
32709         define STREQ(a,b) consistently, removing useless parentheses
32710         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
32711         since the only risk is that "a" or "b" contains an unparenthesized
32712         comma, but if either did that, STREQ would have 3 or more arguments.
32713         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
32714         * lib/fts.c (STREQ): Remove unnecessary parentheses.
32715         * lib/hash-triple.c (STREQ): Likewise.
32716         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
32717         * lib/getugroups.c (STREQ): Likewise.
32718
32719 2010-01-23  Jim Meyering  <meyering@redhat.com>
32720
32721         maint.mk: fix syntax-check in a non-srcdir build directory
32722         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
32723         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
32724
32725 2010-01-22  Jim Meyering  <meyering@redhat.com>
32726
32727         userspec: add unit tests
32728         * tests/test-userspec.c: New file.
32729         * modules/userspec-tests: Likewise.
32730
32731 2010-01-21  Jim Meyering  <meyering@redhat.com>
32732
32733         maint.mk: handle source file names containing "." robustly
32734         * top/maint.mk (_dot_escaped_srcdir): Define.
32735         (VC_LIST): Use it in LHS of sed substitution.
32736
32737 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
32738
32739         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
32740         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
32741         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
32742         from a non-srcdir build.
32743
32744 2010-01-20  Eric Blake  <ebb9@byu.net>
32745
32746         warn-on-use: use instead of link-warning
32747         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
32748         * modules/unistd (Depends-on, Makefile.am): Likewise.
32749         * modules/arpa_inet (Depends-on): Replace link-warning with
32750         warn-on-use.
32751         (Makefile.am): Update rules accordingly.
32752         * modules/ctype (Depends-on, Makefile.am): Likewise.
32753         * modules/dirent (Depends-on, Makefile.am): Likewise.
32754         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
32755         * modules/inttypes (Depends-on, Makefile.am): Likewise.
32756         * modules/langinfo (Depends-on, Makefile.am): Likewise.
32757         * modules/locale (Depends-on, Makefile.am): Likewise.
32758         * modules/math (Depends-on, Makefile.am): Likewise.
32759         * modules/search (Depends-on, Makefile.am): Likewise.
32760         * modules/signal (Depends-on, Makefile.am): Likewise.
32761         * modules/spawn (Depends-on, Makefile.am): Likewise.
32762         * modules/stdlib (Depends-on, Makefile.am): Likewise.
32763         * modules/string (Depends-on, Makefile.am): Likewise.
32764         * modules/strings (Depends-on, Makefile.am): Likewise.
32765         * modules/sys_file (Depends-on, Makefile.am): Likewise.
32766         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
32767         * modules/sys_select (Depends-on, Makefile.am): Likewise.
32768         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
32769         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
32770         * modules/sys_times (Depends-on, Makefile.am): Likewise.
32771         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
32772         * modules/wchar (Depends-on, Makefile.am): Likewise.
32773         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
32774         should be poisoned.
32775         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
32776         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
32777         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
32778         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32779         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32780         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32781         * m4/math_h.m4 (gl_MATH_H): Likewise.
32782         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
32783         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
32784         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32785         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
32786         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
32787         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
32788         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
32789         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
32790         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
32791         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32792         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32793         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32794         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32795         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
32796         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
32797         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32798         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
32799         GL_LINK_WARNING.
32800         * lib/ctype.in.h: Likewise.
32801         * lib/dirent.in.h: Likewise.
32802         * lib/fcntl.in.h: Likewise.
32803         * lib/inttypes.in.h: Likewise.
32804         * lib/langinfo.in.h: Likewise.
32805         * lib/locale.in.h: Likewise.
32806         * lib/math.in.h: Likewise.
32807         * lib/search.in.h: Likewise.
32808         * lib/signal.in.h: Likewise.
32809         * lib/spawn.in.h: Likewise.
32810         * lib/stdio.in.h: Likewise.
32811         * lib/stdlib.in.h: Likewise.
32812         * lib/string.in.h: Likewise.
32813         * lib/strings.in.h: Likewise.
32814         * lib/sys_file.in.h: Likewise.
32815         * lib/sys_ioctl.in.h: Likewise.
32816         * lib/sys_select.in.h: Likewise.
32817         * lib/sys_socket.in.h: Likewise.
32818         * lib/sys_stat.in.h: Likewise.
32819         * lib/sys_times.in.h: Likewise.
32820         * lib/sys_utsname.in.h: Likewise.
32821         * lib/unistd.in.h: Likewise.
32822         * lib/wchar.in.h: Likewise.
32823
32824 2010-01-20  Bruno Haible  <bruno@clisp.org>
32825
32826         Avoid duplicate -lm.
32827         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
32828         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
32829         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
32830         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
32831         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
32832         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
32833         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
32834         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
32835         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
32836         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
32837         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
32838         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
32839         Reported by Paolo Bonzini.
32840
32841 2010-01-19  Bruno Haible  <bruno@clisp.org>
32842
32843         langinfo, nl_langinfo: Relicense under LGPLv2+.
32844         * modules/langinfo (License): Change to LGPLv2+.
32845         * modules/nl_langinfo (License): Likewise.
32846         Patch by David Lutterkort <lutter@redhat.com>.
32847
32848 2010-01-19  Bruno Haible  <bruno@clisp.org>
32849
32850         Avoid compilation error with cc on OSF/1 5.1.
32851         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
32852         statement, not before.
32853         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32854
32855 2010-01-18  Bruno Haible  <bruno@clisp.org>
32856
32857         Avoid a link error due to the __printf__ symbol.
32858         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
32859         and 2.6.x.
32860         (__format__, __printf__): Remove definitions.
32861         * lib/argp-fmtstream.h: Likewise.
32862         * lib/argp.h: Likewise.
32863         * lib/error.h: Likewise.
32864         * lib/vasnprintf.h: Likewise.
32865         * lib/xprintf.h: Likewise.
32866         * lib/xvasprintf.h: Likewise.
32867         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32868
32869 2010-01-18  Bruno Haible  <bruno@clisp.org>
32870
32871         Tests for module 'tanl'.
32872         * modules/tanl-tests: New file.
32873         * tests/test-tanl.c: New file.
32874
32875         Tests for module 'sqrtl'.
32876         * modules/sqrtl-tests: New file.
32877         * tests/test-sqrtl.c: New file.
32878
32879         Tests for module 'sinl'.
32880         * modules/sinl-tests: New file.
32881         * tests/test-sinl.c: New file.
32882
32883         Tests for module 'logl'.
32884         * modules/logl-tests: New file.
32885         * tests/test-logl.c: New file.
32886
32887         Tests for module 'expl'.
32888         * modules/expl-tests: New file.
32889         * tests/test-expl.c: New file.
32890
32891         Tests for module 'cosl'.
32892         * modules/cosl-tests: New file.
32893         * tests/test-cosl.c: New file.
32894
32895         Tests for module 'atanl'.
32896         * modules/atanl-tests: New file.
32897         * tests/test-atanl.c: New file.
32898
32899         Tests for module 'asinl'.
32900         * modules/asinl-tests: New file.
32901         * tests/test-asinl.c: New file.
32902
32903         Tests for module 'acosl'.
32904         * modules/acosl-tests: New file.
32905         * tests/test-acosl.c: New file.
32906
32907         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
32908         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
32909         tanl): Use the standard gnulib idiom.
32910         * lib/cosl.c: Don't include trigl.c and sincosl.c.
32911         * lib/sinl.c: Likewise.
32912         * lib/tanl.c: Don't include trigl.c.
32913         (kernel_tanl): Make static.
32914         * lib/sincosl.c: Include trigl.h first.
32915         * lib/trigl.c: Likewise.
32916         * m4/acosl.m4: New file.
32917         * m4/asinl.m4: New file.
32918         * m4/atanl.m4: New file.
32919         * m4/cosl.m4: New file.
32920         * m4/expl.m4: New file.
32921         * m4/logl.m4: New file.
32922         * m4/sinl.m4: New file.
32923         * m4/sqrtl.m4: New file.
32924         * m4/tanl.m4: New file.
32925         * m4/mathl.m4: Remove file.
32926         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
32927         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
32928         Don't initialize GNULIB_MATHL.
32929         * modules/acosl: New file.
32930         * modules/asinl: New file.
32931         * modules/atanl: New file.
32932         * modules/cosl: New file.
32933         * modules/expl: New file.
32934         * modules/logl: New file.
32935         * modules/sinl: New file.
32936         * modules/sqrtl: New file.
32937         * modules/tanl: New file.
32938         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
32939         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
32940         substitute GNULIB_MATHL.
32941         * modules/mathl: Rewritten.
32942         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
32943         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
32944         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
32945         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
32946         * doc/posix-functions/expl.texi: Mention the 'expl' module.
32947         * doc/posix-functions/logl.texi: Mention the 'logl' module.
32948         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
32949         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
32950         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
32951
32952 2010-01-18  Bruno Haible  <bruno@clisp.org>
32953
32954         sqrt: Make gl_FUNC_SQRT requirable.
32955         * m4/sqrt.m4: New file.
32956         * modules/sqrt (Files): Add it.
32957         (configure.ac): Invoke gl_FUNC_SQRT.
32958
32959 2010-01-18  Bruno Haible  <bruno@clisp.org>
32960
32961         New modules for common <math.h> functions.
32962         * m4/mathfunc.m4: New file.
32963         * modules/acos: New file.
32964         * modules/asin: New file.
32965         * modules/atan: New file.
32966         * modules/atan2: New file.
32967         * modules/cbrt: New file.
32968         * modules/copysign: New file.
32969         * modules/cos: New file.
32970         * modules/cosh: New file.
32971         * modules/erf: New file.
32972         * modules/erfc: New file.
32973         * modules/exp: New file.
32974         * modules/fabs: New file.
32975         * modules/fmod: New file.
32976         * modules/hypot: New file.
32977         * modules/j0: New file.
32978         * modules/j1: New file.
32979         * modules/jn: New file.
32980         * modules/ldexp: New file.
32981         * modules/lgamma: New file.
32982         * modules/log: New file.
32983         * modules/log10: New file.
32984         * modules/log1p: New file.
32985         * modules/logb: New file.
32986         * modules/modf: New file.
32987         * modules/nextafter: New file.
32988         * modules/pow: New file.
32989         * modules/remainder: New file.
32990         * modules/rint: New file.
32991         * modules/sin: New file.
32992         * modules/sinh: New file.
32993         * modules/sqrt: New file.
32994         * modules/tan: New file.
32995         * modules/tanh: New file.
32996         * modules/y0: New file.
32997         * modules/y1: New file.
32998         * modules/yn: New file.
32999         * doc/posix-functions/acos.texi: Mention the 'acos' module.
33000         * doc/posix-functions/asin.texi: Mention the 'asin' module.
33001         * doc/posix-functions/atan.texi: Mention the 'atan' module.
33002         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
33003         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
33004         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
33005         * doc/posix-functions/cos.texi: Mention the 'cos' module.
33006         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
33007         * doc/posix-functions/erf.texi: Mention the 'erf' module.
33008         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
33009         * doc/posix-functions/exp.texi: Mention the 'exp' module.
33010         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
33011         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
33012         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
33013         * doc/posix-functions/j0.texi: Mention the 'j0' module.
33014         * doc/posix-functions/j1.texi: Mention the 'j1' module.
33015         * doc/posix-functions/jn.texi: Mention the 'jn' module.
33016         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
33017         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
33018         * doc/posix-functions/log.texi: Mention the 'log' module.
33019         * doc/posix-functions/log10.texi: Mention the 'log10' module.
33020         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
33021         * doc/posix-functions/logb.texi: Mention the 'logb' module.
33022         * doc/posix-functions/modf.texi: Mention the 'modf' module.
33023         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
33024         * doc/posix-functions/pow.texi: Mention the 'pow' module.
33025         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
33026         * doc/posix-functions/rint.texi: Mention the 'rint' module.
33027         * doc/posix-functions/sin.texi: Mention the 'sin' module.
33028         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
33029         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
33030         * doc/posix-functions/tan.texi: Mention the 'tan' module.
33031         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
33032         * doc/posix-functions/y0.texi: Mention the 'y0' module.
33033         * doc/posix-functions/y1.texi: Mention the 'y1' module.
33034         * doc/posix-functions/yn.texi: Mention the 'yn' module.
33035
33036 2010-01-18  Jim Meyering  <meyering@redhat.com>
33037
33038         ignore-value: relax license to LGPLv2+
33039         * modules/ignore-value (License): Relax to LGPLv2+.
33040
33041         getdate: don't leak when TZ contains two or more '"'s
33042         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
33043         double quote in TZ after the first one.
33044
33045         readtokens: do not leak internal token_lengths buffer
33046         * lib/readtokens.c (readtokens): Free the local, lengths,
33047         when the supplied "token_lengths" parameter is NULL.
33048
33049 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33050
33051         Fix a couple of missing LIBTHREAD link failures on AIX.
33052         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
33053         $(LIBTHREAD).
33054         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
33055
33056         Link test-poll against INET_PTON_LIB.
33057         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
33058         for inet_pton on Solaris 10.
33059
33060 2010-01-17  Bruno Haible  <bruno@clisp.org>
33061
33062         unistdio/*-sprintf: Fix typo in module description.
33063         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
33064         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
33065         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
33066         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
33067         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
33068         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
33069         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
33070         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33071
33072 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33073
33074         gnulib-tool: fix filelist for AIX, HP-UX ksh.
33075         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
33076         variables in shell case patterns, for AIX and HP-UX ksh.
33077
33078         Split large sed scripts, for HP-UX sed.
33079         * modules/stdio: Split sed scripts around 50 sed commands,
33080         to avoid HP-UX limit of 99 commands, in the near future.
33081         * modules/string: Likewise.
33082         * modules/unistd: Likewise.
33083
33084         gnulib-tool: avoid writing in the current directory.
33085         * gnulib-tool (func_emit_lib_Makefile_am)
33086         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
33087         not in the current directory, so concurrent gnulib-tool
33088         instances do not interfere.
33089
33090 2010-01-16  Jim Meyering  <meyering@redhat.com>
33091
33092         doc: update users.txt
33093         * users.txt: Add grep.
33094         (diffutils, gzip): Update URLs.
33095
33096 2010-01-12  Bruno Haible  <bruno@clisp.org>
33097
33098         posix_spawn: Avoid test failure on Cygwin.
33099         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
33100         characters.
33101         Reported by Simon Josefsson.
33102
33103 2010-01-12  Bruno Haible  <bruno@clisp.org>
33104
33105         * tests/test-cond.c (main): When skipping the test, show the reason.
33106
33107 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33108
33109         * lib/striconv.c (str_cd_iconv): Avoid if before free.
33110
33111 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33112
33113         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
33114         VC_LIST_ALWAYS_EXCLUDE_REGEX.
33115
33116 2010-01-12  Eric Blake  <ebb9@byu.net>
33117
33118         build: guarantee AS_VAR_IF
33119         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
33120         (gl_AS_VAR_IF): Move...
33121         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
33122         Reported by Simon Josefsson.
33123
33124 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33125
33126         * lib/stdio.in.h: Fix typo.
33127
33128 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33129
33130         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
33131         libgpg-error.
33132
33133 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33134
33135         * tests/test-xalloc-die.sh: Use $EXEEXT.
33136
33137 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33138             Bruno Haible  <bruno@clisp.org>
33139
33140         getlogin, getlogin_r: Avoid test failure.
33141         * tests/test-getlogin.c: Include <stdio.h>.
33142         (main): Skip the test when the function fails because stdin is not a
33143         tty.
33144         * tests/test-getlogin_r.c: Include <stdio.h>.
33145         (main): Skip the test when the function fails because stdin is not a
33146         tty.
33147
33148 2010-01-11  Eric Blake  <ebb9@byu.net>
33149
33150         tests: avoid more large file warnings
33151         * tests/test-fflush.c: Avoid warning about ftell use.
33152         * tests/test-fseek.c: Avoid warning about fseek use.
33153
33154 2010-01-10  Bruno Haible  <bruno@clisp.org>
33155
33156         nproc: Work better on Linux when /proc and /sys are not mounted.
33157         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
33158         as lower bound when, on glibc/Linux systems,
33159         sysconf (_SC_NPROCESSORS_CONF) returns 1.
33160         Suggested by Pádraig Brady <P@draigbrady.com>.
33161         Reported by Dmitry V. Levin <ldv@altlinux.org>.
33162
33163         nproc: Refactor.
33164         * lib/nproc.c (num_processors_via_affinity_mask): New function,
33165         extracted from num_processors.
33166         (num_processors): Call it.
33167
33168 2010-01-11  Jim Meyering  <meyering@redhat.com>
33169
33170         utimecmp: avoid new warning from upcoming gcc-4.5.0
33171         * lib/utimecmp.c (BILLION): Define using #define rather than an
33172         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
33173
33174 2010-01-11  Eric Blake  <ebb9@byu.net>
33175
33176         math: add portability warnings for classification macros
33177         * modules/math (Depends-on): Add warn-on-use.
33178         (Makefile.am): Provide new substitutions.
33179         * m4/math_h.m4 (gl_MATH_H): Require inline.
33180         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
33181         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
33182         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
33183         implement warnings.
33184
33185         unistd: warn on use of environ without module
33186         * modules/unistd (Depends-on): Add warn-on-use.
33187         (Makefile.am): Provide new substitutions.
33188         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
33189         * lib/unistd.in.h (environ): Wrap with a warning helper function.
33190
33191         stdio: warn on suspicious uses
33192         * modules/stdio (Depends-on): Add warn-on-use.
33193         (Makefile.am): Provide new substitutions.
33194         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
33195         fseeko.
33196         * lib/stdio.in.h (gets): Always warn on use.
33197         (fseek, ftell): Adjust when warnings are issued, and honor
33198         _GL_NO_LARGE_FILES as a way to silence the warning.
33199         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
33200         any warning about large file offsets.
33201         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
33202         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
33203         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
33204         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
33205         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
33206         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
33207         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
33208         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
33209
33210         warn-on-use: new module
33211         * modules/warn-on-use: New file.
33212         * build-aux/warn-on-use.h: Likewise.
33213         * m4/warn-on-use.m4: Likewise.
33214         * MODULES.html.sh (Support for building): Mention it.
33215
33216 2010-01-10  Bruno Haible  <bruno@clisp.org>
33217
33218         Tests for module 'unistr/u32-strdup'.
33219         * modules/unistr/u32-strdup-tests: New file.
33220         * tests/unistr/test-u32-strdup.c: New file.
33221
33222         Tests for module 'unistr/u16-strdup'.
33223         * modules/unistr/u16-strdup-tests: New file.
33224         * tests/unistr/test-u16-strdup.c: New file.
33225
33226         Tests for module 'unistr/u8-strdup'.
33227         * modules/unistr/u8-strdup-tests: New file.
33228         * tests/unistr/test-u8-strdup.c: New file.
33229         * tests/unistr/test-strdup.h: New file.
33230
33231         Tests for module 'unistr/u32-strncmp'.
33232         * modules/unistr/u32-strncmp-tests: New file.
33233         * tests/unistr/test-u32-strncmp.c: New file.
33234
33235         Tests for module 'unistr/u16-strncmp'.
33236         * modules/unistr/u16-strncmp-tests: New file.
33237         * tests/unistr/test-u16-strncmp.c: New file.
33238
33239         Tests for module 'unistr/u8-strncmp'.
33240         * modules/unistr/u8-strncmp-tests: New file.
33241         * tests/unistr/test-u8-strncmp.c: New file.
33242         * tests/unistr/test-strncmp.h: New file.
33243
33244         Tests for module 'unistr/u32-strcoll'.
33245         * modules/unistr/u32-strcoll-tests: New file.
33246         * tests/unistr/test-u32-strcoll.c: New file.
33247
33248         Tests for module 'unistr/u16-strcoll'.
33249         * modules/unistr/u16-strcoll-tests: New file.
33250         * tests/unistr/test-u16-strcoll.c: New file.
33251
33252         Tests for module 'unistr/u8-strcoll'.
33253         * modules/unistr/u8-strcoll-tests: New file.
33254         * tests/unistr/test-u8-strcoll.c: New file.
33255
33256         Tests for module 'unistr/u32-strcmp'.
33257         * modules/unistr/u32-strcmp-tests: New file.
33258         * tests/unistr/test-u32-strcmp.c: New file.
33259         * tests/unistr/test-u32-strcmp.h: New file.
33260
33261         Tests for module 'unistr/u16-strcmp'.
33262         * modules/unistr/u16-strcmp-tests: New file.
33263         * tests/unistr/test-u16-strcmp.c: New file.
33264         * tests/unistr/test-u16-strcmp.h: New file.
33265
33266         Tests for module 'unistr/u8-strcmp'.
33267         * modules/unistr/u8-strcmp-tests: New file.
33268         * tests/unistr/test-u8-strcmp.c: New file.
33269         * tests/unistr/test-u8-strcmp.h: New file.
33270         * tests/unistr/test-strcmp.h: New file.
33271
33272         Tests for module 'unistr/u32-strncat'.
33273         * modules/unistr/u32-strncat-tests: New file.
33274         * tests/unistr/test-u32-strncat.c: New file.
33275
33276         Tests for module 'unistr/u16-strncat'.
33277         * modules/unistr/u16-strncat-tests: New file.
33278         * tests/unistr/test-u16-strncat.c: New file.
33279
33280         Tests for module 'unistr/u8-strncat'.
33281         * modules/unistr/u8-strncat-tests: New file.
33282         * tests/unistr/test-u8-strncat.c: New file.
33283         * tests/unistr/test-strncat.h: New file.
33284
33285         Tests for module 'unistr/u32-strcat'.
33286         * modules/unistr/u32-strcat-tests: New file.
33287         * tests/unistr/test-u32-strcat.c: New file.
33288
33289         Tests for module 'unistr/u16-strcat'.
33290         * modules/unistr/u16-strcat-tests: New file.
33291         * tests/unistr/test-u16-strcat.c: New file.
33292
33293         Tests for module 'unistr/u8-strcat'.
33294         * modules/unistr/u8-strcat-tests: New file.
33295         * tests/unistr/test-u8-strcat.c: New file.
33296         * tests/unistr/test-strcat.h: New file.
33297
33298         Tests for module 'unistr/u32-stpncpy'.
33299         * modules/unistr/u32-stpncpy-tests: New file.
33300         * tests/unistr/test-u32-stpncpy.c: New file.
33301
33302         Tests for module 'unistr/u16-stpncpy'.
33303         * modules/unistr/u16-stpncpy-tests: New file.
33304         * tests/unistr/test-u16-stpncpy.c: New file.
33305
33306         Tests for module 'unistr/u8-stpncpy'.
33307         * modules/unistr/u8-stpncpy-tests: New file.
33308         * tests/unistr/test-u8-stpncpy.c: New file.
33309         * tests/unistr/test-stpncpy.h: New file.
33310
33311         Tests for module 'unistr/u32-strncpy'.
33312         * modules/unistr/u32-strncpy-tests: New file.
33313         * tests/unistr/test-u32-strncpy.c: New file.
33314
33315         Tests for module 'unistr/u16-strncpy'.
33316         * modules/unistr/u16-strncpy-tests: New file.
33317         * tests/unistr/test-u16-strncpy.c: New file.
33318
33319         Tests for module 'unistr/u8-strncpy'.
33320         * modules/unistr/u8-strncpy-tests: New file.
33321         * tests/unistr/test-u8-strncpy.c: New file.
33322         * tests/unistr/test-strncpy.h: New file.
33323
33324         Tests for module 'unistr/u32-stpcpy'.
33325         * modules/unistr/u32-stpcpy-tests: New file.
33326         * tests/unistr/test-u32-stpcpy.c: New file.
33327
33328         Tests for module 'unistr/u16-stpcpy'.
33329         * modules/unistr/u16-stpcpy-tests: New file.
33330         * tests/unistr/test-u16-stpcpy.c: New file.
33331
33332         Tests for module 'unistr/u8-stpcpy'.
33333         * modules/unistr/u8-stpcpy-tests: New file.
33334         * tests/unistr/test-u8-stpcpy.c: New file.
33335         * tests/unistr/test-stpcpy.h: New file.
33336
33337         Tests for module 'unistr/u32-strcpy'.
33338         * modules/unistr/u32-strcpy-tests: New file.
33339         * tests/unistr/test-u32-strcpy.c: New file.
33340
33341         Tests for module 'unistr/u16-strcpy'.
33342         * modules/unistr/u16-strcpy-tests: New file.
33343         * tests/unistr/test-u16-strcpy.c: New file.
33344
33345         Tests for module 'unistr/u8-strcpy'.
33346         * modules/unistr/u8-strcpy-tests: New file.
33347         * tests/unistr/test-u8-strcpy.c: New file.
33348         * tests/unistr/test-strcpy.h: New file.
33349
33350         Tests for module 'unistr/u32-strnlen'.
33351         * modules/unistr/u32-strnlen-tests: New file.
33352         * tests/unistr/test-u32-strnlen.c: New file.
33353
33354         Tests for module 'unistr/u16-strnlen'.
33355         * modules/unistr/u16-strnlen-tests: New file.
33356         * tests/unistr/test-u16-strnlen.c: New file.
33357
33358         Tests for module 'unistr/u8-strnlen'.
33359         * modules/unistr/u8-strnlen-tests: New file.
33360         * tests/unistr/test-u8-strnlen.c: New file.
33361         * tests/unistr/test-strnlen.h: New file.
33362
33363         Tests for module 'unistr/u32-strlen'.
33364         * modules/unistr/u32-strlen-tests: New file.
33365         * tests/unistr/test-u32-strlen.c: New file.
33366
33367         Tests for module 'unistr/u16-strlen'.
33368         * modules/unistr/u16-strlen-tests: New file.
33369         * tests/unistr/test-u16-strlen.c: New file.
33370
33371         Tests for module 'unistr/u8-strlen'.
33372         * modules/unistr/u8-strlen-tests: New file.
33373         * tests/unistr/test-u8-strlen.c: New file.
33374
33375         Tests for module 'unistr/u32-prev'.
33376         * modules/unistr/u32-prev-tests: New file.
33377         * tests/unistr/test-u32-prev.c: New file.
33378
33379         Tests for module 'unistr/u16-prev'.
33380         * modules/unistr/u16-prev-tests: New file.
33381         * tests/unistr/test-u16-prev.c: New file.
33382
33383         Tests for module 'unistr/u8-prev'.
33384         * modules/unistr/u8-prev-tests: New file.
33385         * tests/unistr/test-u8-prev.c: New file.
33386
33387         Tests for module 'unistr/u32-next'.
33388         * modules/unistr/u32-next-tests: New file.
33389         * tests/unistr/test-u32-next.c: New file.
33390
33391         Tests for module 'unistr/u16-next'.
33392         * modules/unistr/u16-next-tests: New file.
33393         * tests/unistr/test-u16-next.c: New file.
33394
33395         Tests for module 'unistr/u8-next'.
33396         * modules/unistr/u8-next-tests: New file.
33397         * tests/unistr/test-u8-next.c: New file.
33398
33399         Tests for module 'unistr/u32-strmbtouc'.
33400         * modules/unistr/u32-strmbtouc-tests: New file.
33401         * tests/unistr/test-u32-strmbtouc.c: New file.
33402
33403         Tests for module 'unistr/u16-strmbtouc'.
33404         * modules/unistr/u16-strmbtouc-tests: New file.
33405         * tests/unistr/test-u16-strmbtouc.c: New file.
33406
33407         Tests for module 'unistr/u8-strmbtouc'.
33408         * modules/unistr/u8-strmbtouc-tests: New file.
33409         * tests/unistr/test-u8-strmbtouc.c: New file.
33410
33411         Tests for module 'unistr/u32-strmblen'.
33412         * modules/unistr/u32-strmblen-tests: New file.
33413         * tests/unistr/test-u32-strmblen.c: New file.
33414
33415         Tests for module 'unistr/u16-strmblen'.
33416         * modules/unistr/u16-strmblen-tests: New file.
33417         * tests/unistr/test-u16-strmblen.c: New file.
33418
33419         Tests for module 'unistr/u8-strmblen'.
33420         * modules/unistr/u8-strmblen-tests: New file.
33421         * tests/unistr/test-u8-strmblen.c: New file.
33422
33423         Tests for module 'unistr/u32-cpy-alloc'.
33424         * modules/unistr/u32-cpy-alloc-tests: New file.
33425         * tests/unistr/test-u32-cpy-alloc.c: New file.
33426
33427         Tests for module 'unistr/u16-cpy-alloc'.
33428         * modules/unistr/u16-cpy-alloc-tests: New file.
33429         * tests/unistr/test-u16-cpy-alloc.c: New file.
33430
33431         Tests for module 'unistr/u8-cpy-alloc'.
33432         * modules/unistr/u8-cpy-alloc-tests: New file.
33433         * tests/unistr/test-u8-cpy-alloc.c: New file.
33434         * tests/unistr/test-cpy-alloc.h: New file.
33435
33436         Tests for module 'unistr/u32-mbsnlen'.
33437         * modules/unistr/u32-mbsnlen-tests: New file.
33438         * tests/unistr/test-u32-mbsnlen.c: New file.
33439
33440         Tests for module 'unistr/u16-mbsnlen'.
33441         * modules/unistr/u16-mbsnlen-tests: New file.
33442         * tests/unistr/test-u16-mbsnlen.c: New file.
33443
33444         Tests for module 'unistr/u8-mbsnlen'.
33445         * modules/unistr/u8-mbsnlen-tests: New file.
33446         * tests/unistr/test-u8-mbsnlen.c: New file.
33447
33448         Tests for module 'unistr/u32-chr'.
33449         * modules/unistr/u32-chr-tests: New file.
33450         * tests/unistr/test-u32-chr.c: New file.
33451
33452         Tests for module 'unistr/u16-chr'.
33453         * modules/unistr/u16-chr-tests: New file.
33454         * tests/unistr/test-u16-chr.c: New file.
33455
33456         Tests for module 'unistr/u8-chr'.
33457         * modules/unistr/u8-chr-tests: New file.
33458         * tests/unistr/test-u8-chr.c: New file.
33459         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
33460
33461         Tests for module 'unistr/u32-cmp2'.
33462         * modules/unistr/u32-cmp2-tests: New file.
33463         * tests/unistr/test-u32-cmp2.c: New file.
33464
33465         Tests for module 'unistr/u16-cmp2'.
33466         * modules/unistr/u16-cmp2-tests: New file.
33467         * tests/unistr/test-u16-cmp2.c: New file.
33468
33469         Tests for module 'unistr/u8-cmp2'.
33470         * modules/unistr/u8-cmp2-tests: New file.
33471         * tests/unistr/test-u8-cmp2.c: New file.
33472         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
33473
33474         Tests for module 'unistr/u32-cmp'.
33475         * modules/unistr/u32-cmp-tests: New file.
33476         * tests/unistr/test-u32-cmp.c: New file.
33477
33478         Tests for module 'unistr/u16-cmp'.
33479         * modules/unistr/u16-cmp-tests: New file.
33480         * tests/unistr/test-u16-cmp.c: New file.
33481
33482         Tests for module 'unistr/u8-cmp'.
33483         * modules/unistr/u8-cmp-tests: New file.
33484         * tests/unistr/test-u8-cmp.c: New file.
33485         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
33486
33487         Tests for module 'unistr/u32-set'.
33488         * modules/unistr/u32-set-tests: New file.
33489         * tests/unistr/test-u32-set.c: New file.
33490
33491         Tests for module 'unistr/u16-set'.
33492         * modules/unistr/u16-set-tests: New file.
33493         * tests/unistr/test-u16-set.c: New file.
33494
33495         Tests for module 'unistr/u8-set'.
33496         * modules/unistr/u8-set-tests: New file.
33497         * tests/unistr/test-u8-set.c: New file.
33498         * tests/unistr/test-set.h: New file.
33499
33500         Tests for module 'unistr/u32-move'.
33501         * modules/unistr/u32-move-tests: New file.
33502         * tests/unistr/test-u32-move.c: New file.
33503
33504         Tests for module 'unistr/u16-move'.
33505         * modules/unistr/u16-move-tests: New file.
33506         * tests/unistr/test-u16-move.c: New file.
33507
33508         Tests for module 'unistr/u8-move'.
33509         * modules/unistr/u8-move-tests: New file.
33510         * tests/unistr/test-u8-move.c: New file.
33511         * tests/unistr/test-move.h: New file.
33512
33513         Tests for module 'unistr/u32-cpy'.
33514         * modules/unistr/u32-cpy-tests: New file.
33515         * tests/unistr/test-u32-cpy.c: New file.
33516
33517         Tests for module 'unistr/u16-cpy'.
33518         * modules/unistr/u16-cpy-tests: New file.
33519         * tests/unistr/test-u16-cpy.c: New file.
33520
33521         Tests for module 'unistr/u8-cpy'.
33522         * modules/unistr/u8-cpy-tests: New file.
33523         * tests/unistr/test-u8-cpy.c: New file.
33524         * tests/unistr/test-cpy.h: New file.
33525
33526 2010-01-09  Bruno Haible  <bruno@clisp.org>
33527
33528         Tests for module 'unistr/u32-uctomb'.
33529         * modules/unistr/u32-uctomb-tests: New file.
33530         * tests/unistr/test-u32-uctomb.c: New file.
33531
33532         Tests for module 'unistr/u16-uctomb'.
33533         * modules/unistr/u16-uctomb-tests: New file.
33534         * tests/unistr/test-u16-uctomb.c: New file.
33535
33536         Tests for module 'unistr/u8-uctomb'.
33537         * modules/unistr/u8-uctomb-tests: New file.
33538         * tests/unistr/test-u8-uctomb.c: New file.
33539
33540         Tests for module 'unistr/u32-mbtoucr'.
33541         * modules/unistr/u32-mbtoucr-tests: New file.
33542         * tests/unistr/test-u32-mbtoucr.c: New file.
33543
33544         Tests for module 'unistr/u16-mbtoucr'.
33545         * modules/unistr/u16-mbtoucr-tests: New file.
33546         * tests/unistr/test-u16-mbtoucr.c: New file.
33547
33548         Tests for module 'unistr/u8-mbtoucr'.
33549         * modules/unistr/u8-mbtoucr-tests: New file.
33550         * tests/unistr/test-u8-mbtoucr.c: New file.
33551
33552         Tests for module 'unistr/u32-mbtouc'.
33553         * modules/unistr/u32-mbtouc-tests: New file.
33554         * tests/unistr/test-u32-mbtouc.c: New file.
33555
33556         Tests for module 'unistr/u16-mbtouc'.
33557         * modules/unistr/u16-mbtouc-tests: New file.
33558         * tests/unistr/test-u16-mbtouc.c: New file.
33559
33560         Tests for module 'unistr/u8-mbtouc'.
33561         * modules/unistr/u8-mbtouc-tests: New file.
33562         * tests/unistr/test-u8-mbtouc.c: New file.
33563
33564         Tests for module 'unistr/u32-mbtouc-unsafe'.
33565         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
33566         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
33567         * tests/unistr/test-u32-mbtouc.h: New file.
33568
33569         Tests for module 'unistr/u16-mbtouc-unsafe'.
33570         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
33571         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
33572         * tests/unistr/test-u16-mbtouc.h: New file.
33573
33574         Tests for module 'unistr/u8-mbtouc-unsafe'.
33575         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
33576         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
33577         * tests/unistr/test-u8-mbtouc.h: New file.
33578
33579         Tests for module 'unistr/u32-mblen'.
33580         * modules/unistr/u32-mblen-tests: New file.
33581         * tests/unistr/test-u32-mblen.c: New file.
33582
33583         Tests for module 'unistr/u16-mblen'.
33584         * modules/unistr/u16-mblen-tests: New file.
33585         * tests/unistr/test-u16-mblen.c: New file.
33586
33587         Tests for module 'unistr/u8-mblen'.
33588         * modules/unistr/u8-mblen-tests: New file.
33589         * tests/unistr/test-u8-mblen.c: New file.
33590
33591         Tests for module 'unistr/u32-to-u16'.
33592         * modules/unistr/u32-to-u16-tests: New file.
33593         * tests/unistr/test-u32-to-u16.c: New file.
33594
33595         Tests for module 'unistr/u32-to-u8'.
33596         * modules/unistr/u32-to-u8-tests: New file.
33597         * tests/unistr/test-u32-to-u8.c: New file.
33598
33599         Tests for module 'unistr/u16-to-u32'.
33600         * modules/unistr/u16-to-u32-tests: New file.
33601         * tests/unistr/test-u16-to-u32.c: New file.
33602
33603         Tests for module 'unistr/u16-to-u8'.
33604         * modules/unistr/u16-to-u8-tests: New file.
33605         * tests/unistr/test-u16-to-u8.c: New file.
33606
33607         Tests for module 'unistr/u8-to-u32'.
33608         * modules/unistr/u8-to-u32-tests: New file.
33609         * tests/unistr/test-u8-to-u32.c: New file.
33610
33611         Tests for module 'unistr/u8-to-u16'.
33612         * modules/unistr/u8-to-u16-tests: New file.
33613         * tests/unistr/test-u8-to-u16.c: New file.
33614
33615         Tests for module 'unistr/u32-check'.
33616         * modules/unistr/u32-check-tests: New file.
33617         * tests/unistr/test-u32-check.c: New file.
33618
33619         Tests for module 'unistr/u16-check'.
33620         * modules/unistr/u16-check-tests: New file.
33621         * tests/unistr/test-u16-check.c: New file.
33622
33623         Tests for module 'unistr/u8-check'.
33624         * modules/unistr/u8-check-tests: New file.
33625         * tests/unistr/test-u8-check.c: New file.
33626
33627         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
33628         (category_equals): New function.
33629         (main): Add more tests.
33630         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
33631
33632         * tests/unictype/test-bidi_byname.c (main): Add more tests.
33633
33634 2010-01-10  Bruno Haible  <bruno@clisp.org>
33635
33636         unistr/u*-strcoll: Try harder to distinguish different strings.
33637         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
33638         compare s1 and s2 to see if they are different.
33639
33640 2010-01-10  Bruno Haible  <bruno@clisp.org>
33641
33642         unistr/u*-stpncpy: Fix the return value.
33643         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
33644         description of the return value consistent with stpncpy in glibc.
33645         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
33646         written non-NUL unit.
33647
33648 2010-01-10  Bruno Haible  <bruno@clisp.org>
33649
33650         unistr/u*-next: Add missing dependencies.
33651         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
33652         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
33653         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
33654
33655 2010-01-10  Bruno Haible  <bruno@clisp.org>
33656
33657         unistr/u8-mbsnlen: Fix return value for incomplete character.
33658         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
33659         u8_mblen.
33660         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
33661         Remove unistr/u8-mblen.
33662         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
33663         u16_mblen.
33664         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
33665         Remove unistr/u16-mblen.
33666
33667 2010-01-10  Bruno Haible  <bruno@clisp.org>
33668
33669         wchar: Fix compilation error when <wchar.h> is used from coreutils.
33670         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
33671         Reported by Brian Gough <bjg@gnu.org> and
33672         Chris Clayton <chris2553@googlemail.com> via
33673         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
33674
33675 2010-01-09  Bruno Haible  <bruno@clisp.org>
33676
33677         unistr/u16-to-u32: Reject invalid input.
33678         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
33679         u16_mbtouc.
33680         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
33681         Remove unistr/u16-mbtouc.
33682
33683         unistr/u16-to-u8: Reject invalid input.
33684         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
33685         u16_mbtouc.
33686         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
33687         Remove unistr/u16-mbtouc.
33688
33689         unistr/u8-to-u32: Reject invalid input.
33690         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
33691         u8_mbtouc.
33692         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
33693         Remove unistr/u8-mbtouc.
33694
33695         unistr/u8-to-u16: Reject invalid input.
33696         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
33697         u8_mbtouc.
33698         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
33699         Remove unistr/u8-mbtouc.
33700
33701 2010-01-09  Bruno Haible  <bruno@clisp.org>
33702
33703         Tests for module 'getlogin'.
33704         * modules/getlogin-tests: New file.
33705         * tests/test-getlogin.c: New file.
33706
33707         New module 'getlogin'.
33708         * lib/unistd.in.h (getlogin): New declaration.
33709         * lib/getlogin.c: New file.
33710         * m4/getlogin.m4: New file.
33711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
33712         HAVE_GETLOGIN.
33713         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
33714         HAVE_GETLOGIN.
33715         * modules/getlogin: New file.
33716         * doc/posix-functions/getlogin.texi: Mention the new module.
33717         Reported by John W. Eaton <jwe@gnu.org>.
33718
33719 2010-01-09  Bruno Haible  <bruno@clisp.org>
33720
33721         getlogin_r: Support for native Windows.
33722         * lib/getlogin_r.c: Include <windows.h>
33723         (getlogin_r): Implement for native Windows.
33724         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
33725         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
33726         via John W. Eaton <jwe@gnu.org>.
33727
33728 2010-01-09  Bruno Haible  <bruno@clisp.org>
33729
33730         getlogin_r: Small fixes.
33731         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
33732         succeeds.
33733         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
33734         before testing whether getlogin_r is declared. No need to set
33735         HAVE_DECL_GETLOGIN_R to 1.
33736         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
33737
33738 2010-01-09  Bruno Haible  <bruno@clisp.org>
33739
33740         * lib/unistd.in.h (getlogin_r): Add comment.
33741
33742 2010-01-09  Bruno Haible  <bruno@clisp.org>
33743
33744         Tests for module 'getlogin_r'.
33745         * modules/getlogin_r-tests: New file.
33746         * tests/test-getlogin_r.c: New file.
33747
33748 2010-01-09  Jim Meyering  <meyering@redhat.com>
33749
33750         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
33751         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
33752         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
33753
33754 2010-01-08  Simon Josefsson  <simon@josefsson.org>
33755
33756         * lib/dup2.c (rpl_dup2): Improve comment.
33757
33758 2010-01-08  Eric Blake  <ebb9@byu.net>
33759
33760         maint.mk: allow packages to add makefile @@ exceptions
33761         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
33762         (sc_makefile_check): Rename...
33763         (sc_makefile_at_at_check): ...to this, and use hook.
33764
33765         dup2: work around mingw bug
33766         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
33767         Reported by Simon Josefsson.
33768
33769 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
33770
33771         glob: Fix C++ compilation.
33772         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
33773         C++.
33774
33775 2010-01-07  Bruno Haible  <bruno@clisp.org>
33776
33777         Fix indentation of wctype.in.h, broken since 2007-01-06.
33778         * lib/wctype.in.h: Fix indentation of preprocessor directives.
33779
33780 2010-01-07  Bruno Haible  <bruno@clisp.org>
33781
33782         mbslen: Avoid collision with system function.
33783         * lib/string.in.h [MirBSD]: Include <wchar.h>.
33784         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
33785         * m4/mbslen.m4: New file.
33786         * modules/mbslen (Files): Add it.
33787         (configure.ac): Invoke gl_MBSLEN.
33788         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
33789         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
33790         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
33791         via Ian Beckwith <ianb@erislabs.net>.
33792
33793 2010-01-07  Bruno Haible  <bruno@clisp.org>
33794
33795         dirent: Document the last fix.
33796         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
33797
33798 2010-01-07  Bruno Haible  <bruno@clisp.org>
33799
33800         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
33801         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
33802         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
33803         va_list are defined.
33804         * doc/posix-headers/stdio.texi: Document the bug of missing types.
33805         Reported by Eric Blake.
33806
33807 2010-01-07  Bruno Haible  <bruno@clisp.org>
33808
33809         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
33810         * modules/xlist (Depends-on): Add 'list',
33811         * modules/xoset (Depends-on): Add 'oset'.
33812         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33813
33814 2010-01-07  Bruno Haible  <bruno@clisp.org>
33815
33816         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
33817         * doc/posix-functions/strncasecmp.texi: Likewise.
33818
33819 2010-01-07  Bruno Haible  <bruno@clisp.org>
33820
33821         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
33822
33823 2010-01-07  John W. Eaton  <jwe@octave.org>
33824
33825         wctype: allow C++ use
33826         * lib/wctype.in.h: Add extern "C" block for C++.
33827
33828 2010-01-06  Eric Blake  <ebb9@byu.net>
33829
33830         maint.mk: detect incorrect GFDL usage
33831         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
33832
33833 2010-01-06  Jim Meyering  <meyering@redhat.com>
33834         and Eric Blake  <ebb9@byu.net>
33835
33836         maint.mk: ignore multi-line copyright in NEWS
33837         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
33838
33839 2010-01-06  Eric Blake  <ebb9@byu.net>
33840
33841         select: add missing dependency
33842         * modules/select-tests (Depends-on): Move sockets dependency...
33843         * modules/select (Depends-on): ...here.
33844         Reported by Ian Beckwith.
33845
33846         doc: regenerate INSTALL
33847         * doc/INSTALL: Reflect recent autoconf update.
33848         * doc/INSTALL.ISO: Likewise.
33849         * doc/INSTALL.UTF-8: Likewise.
33850
33851         pread: fix compilation on glibc
33852         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
33853         Reported by Ralf Wildenhues.
33854
33855         dirent: fix test failure
33856         * lib/dirent.in.h (includes): Guarantee ino_t.
33857         Reported by Ralf Wildenhues.
33858
33859 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
33860
33861         linkat, renameat: avoid bad free
33862         * lib/at-func2.c (at_func2): Fix typo.
33863         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
33864
33865 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33866
33867         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
33868         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
33869         to avoid failure of symlink test later.
33870
33871 2010-01-06  Eric Blake  <ebb9@byu.net>
33872
33873         stdio, unistd: guarantee ssize_t
33874         * lib/unistd.in.h (includes): Ensure that types required by POSIX
33875         2008 are exposed when needed.
33876         * lib/stdio.in.h (includes): Likewise.
33877         Reported by Ralf Wildenhues.
33878
33879 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
33880
33881         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
33882         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
33883         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
33884
33885 2010-01-06  Jim Meyering  <meyering@redhat.com>
33886
33887         readtokens: this module *does* require xalloc.h
33888         It uses only functions that were omitted by the old syntax-check rule.
33889         * lib/readtokens.c: Include "xalloc.h" once again.
33890         * modules/readtokens (Depends-on): Add xalloc.
33891         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
33892
33893 2010-01-05  Eric Blake  <ebb9@byu.net>
33894
33895         maint: support 'make announcement' from a VPATH build
33896         * top/maint.mk (announcement): Look for correct NEWS file.
33897
33898 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
33899
33900         utimens (fdutimens): ignore a negative FD, per contract
33901         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
33902         when we have a valid file descriptor.  Otherwise, using a brand
33903         new glibc (with just-patched futimens that now fails with EBADF)
33904         would cause this function to fail with ENOSYS.
33905         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
33906         See also http://bugzilla.redhat.com/552320.
33907
33908 2010-01-05  Eric Blake  <ebb9@byu.net>
33909
33910         strcase: document what it provides
33911         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
33912         gnulib module.
33913         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
33914         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
33915
33916 2010-01-05  Jim Meyering  <meyering@redhat.com>
33917
33918         maint: remove useless inclusions of "xalloc.h"
33919         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
33920         * lib/readtokens.c: Likewise.
33921         * lib/same.c: Likewise.
33922         * modules/getloadavg (Depends-on): Remove xalloc.
33923         * modules/readtokens: Likewise.
33924         * modules/same: Likewise.
33925
33926         maint.mk: include 4 more function names in alloca.h-checking regexp
33927         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
33928         regexp.  Before, we would give a false-positive (saying alloca.h
33929         is included unnecessarily) when the only uses involved omitted symbols.
33930
33931         xalloc.h: use consistent formatting
33932         * lib/xalloc.h: Move declarations to start in the first column.
33933
33934 2010-01-05  Eric Blake  <ebb9@byu.net>
33935
33936         mkdir: avoid xalloc
33937         * lib/mkdir.c (includes): Drop unused header.
33938         Reported by John W. Eaton.
33939
33940 2010-01-04  Jim Meyering  <meyering@redhat.com>
33941
33942         nl_langinfo: avoid configure-time syntax error
33943         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
33944         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
33945         the empty string.  Don't let that provoke a shell syntax error.
33946
33947         regcomp, regexec, fnmatch: avoid array bounds read error
33948         * lib/regcomp.c (build_equiv_class): From glibc:
33949         Use only the low 24 bits of a findidx return value as an index
33950         into the weights array.  Patch by Ulrich Drepper:
33951         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
33952         * lib/regexec.c (check_node_accept_bytes): Likewise.
33953         * lib/fnmatch_loop.c (FCT): Likewise.
33954
33955         regcomp: skip collseq lookup when there are no rules
33956         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
33957         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
33958
33959         regcomp: recognize ill-formed { } expressions
33960         * lib/regcomp.c (parse_dup_op): From glibc:
33961         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
33962
33963         regcomp: fix typo in comment
33964         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
33965         s/satisfy/satisfies/.
33966
33967         regcomp: sync from glibc: remove dead store
33968         * lib/regcomp.c (duplicate_node_closure): Remove useless
33969         search_duplicated_node call and dead store.
33970
33971         regcomp: sync from glibc; always use nl_langinfo
33972         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
33973         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
33974         * modules/regex (Depends-on): Add nl_langinfo.
33975
33976 2010-01-04  Eric Blake  <ebb9@byu.net>
33977
33978         fdopendir: fix configure test
33979         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
33980
33981 2010-01-01  Bruno Haible  <bruno@clisp.org>
33982
33983         wchar: Remove unused configure check.
33984         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
33985
33986 2010-01-01  Eric Blake  <ebb9@byu.net>
33987
33988         headers: make check of system header explicit
33989         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
33990         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
33991         ourselves.
33992         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33993         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33994         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
33995         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
33996         internals.
33997         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
33998         missing.
33999         Suggested by Bruno Haible.
34000
34001 2010-01-01  Jim Meyering  <meyering@redhat.com>
34002
34003         ChangeLog: tweak to eliminate unnecessary copyright line
34004         * ChangeLog: Remove a copyright line that was mistakenly updated
34005         by today's update-copyright run.  Reported by Eric Blake.
34006
34007         test-update-copyright: don't let envvar setting cause test failure
34008         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34009
34010 2010-01-01  Bruno Haible  <bruno@clisp.org>
34011
34012         localename: Avoid gcc warning.
34013         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
34014         function if it is not used.
34015
34016 2010-01-01  Jim Meyering  <meyering@redhat.com>
34017
34018         update nearly all FSF copyright year lists to include 2010
34019         Use the same procedure as for 2009, outlined in
34020         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
34021
34022         version-etc: set COPYRIGHT_YEAR to 2010
34023         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
34024
34025 2009-12-31  Eric Blake  <ebb9@byu.net>
34026
34027         doc: correct availability of cygwin 1.5.x getopt
34028         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
34029         variables.
34030         * doc/posix-functions/opterr.texi (opterr): Likewise.
34031         * doc/posix-functions/optind.texi (optind): Likewise.
34032         * doc/posix-functions/optopt.texi (optopt): Likewise.
34033         * doc/posix-functions/tzname.texi (tzname): Likewise.
34034
34035         openat: update maintainer
34036         * modules/openat (Maintainer): Add myself.
34037
34038         utimens: avoid shadowing warning
34039         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
34040         buffers into one, to avoid shadowing, as well as avoiding a
34041         redundant stat.
34042         Reported by Jim Meyering.
34043
34044         test-dup2: avoid compiler warning
34045         * tests/test-dup2.c (is_inheritable): Only define if used.
34046
34047 2010-01-01  Bruno Haible  <bruno@clisp.org>
34048
34049         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
34050         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
34051         defined, use wctomb instead of wcrtomb.
34052
34053 2010-01-01  Bruno Haible  <bruno@clisp.org>
34054
34055         iconv: Reject native Solaris iconv.
34056         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
34057         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
34058
34059 2009-12-31  Bruno Haible  <bruno@clisp.org>
34060
34061         * tests/test-signal.c (main): Remove test of 'SIG'.
34062
34063 2009-12-31  Bruno Haible  <bruno@clisp.org>
34064
34065         spawn: Fix incomplete fix.
34066         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34067         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34068         warnings for GNULIB_POSIXCHECK again.
34069         Reported by Eric Blake.
34070
34071 2009-12-31  Bruno Haible  <bruno@clisp.org>
34072
34073         Avoid namespace pollution on glibc systems.
34074         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
34075         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
34076         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
34077         glibc systems.
34078
34079 2009-12-31  Bruno Haible  <bruno@clisp.org>
34080
34081         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
34082         (gl_REPLACE_WCHAR_H): Turn into a no-op.
34083         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
34084         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
34085         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
34086         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
34087         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
34088
34089 2009-12-31  Bruno Haible  <bruno@clisp.org>
34090
34091         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34092         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
34093         afterwards.
34094
34095 2009-12-31  Bruno Haible  <bruno@clisp.org>
34096
34097         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
34098         SYS_UTSNAME_H.
34099
34100 2009-12-31  Bruno Haible  <bruno@clisp.org>
34101
34102         spawn: Fix misapplied patch.
34103         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34104         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34105         warnings for GNULIB_POSIXCHECK.
34106
34107 2009-12-31  Bruno Haible  <bruno@clisp.org>
34108
34109         times: Update after sys_times changed.
34110         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
34111         * modules/times (Files): Add it.
34112         (configure.ac): Invoke gl_FUNC_TIMES.
34113
34114 2009-12-31  Bruno Haible  <bruno@clisp.org>
34115
34116         Use AC_C_INLINE where necessary.
34117         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
34118         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34119         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
34120         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
34121         * m4/mbfile.m4 (gl_MBFILE): Likewise.
34122         * m4/mbiter.m4 (gl_MBITER): Likewise.
34123         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34124         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34125         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
34126         * modules/u64 (configure.ac): Likewise.
34127
34128 2009-12-31  Bruno Haible  <bruno@clisp.org>
34129
34130         Use AC_C_INLINE instead of module 'inline' where possible.
34131         * modules/inline (Description): Clarify purpose.
34132         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
34133         * modules/count-one-bits (Depends-on): Remove inline.
34134         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
34135         * modules/openat (Depends-on): Remove inline.
34136         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
34137         instead of depending on module 'inline'.
34138         * modules/filevercmp (Depends-on, configure.ac): Likewise.
34139         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
34140         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
34141         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
34142         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
34143         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
34144         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
34145         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
34146         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
34147         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
34148         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
34149         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
34150         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
34151         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
34152         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
34153         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
34154         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
34155         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
34156         Likewise.
34157         * modules/unictype/property-ascii-hex-digit (Depends-on,
34158         configure.ac): Likewise.
34159         * modules/unictype/property-bidi-arabic-digit (Depends-on,
34160         configure.ac): Likewise.
34161         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
34162         configure.ac): Likewise.
34163         * modules/unictype/property-bidi-block-separator (Depends-on,
34164         configure.ac): Likewise.
34165         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
34166         configure.ac): Likewise.
34167         * modules/unictype/property-bidi-common-separator (Depends-on,
34168         configure.ac): Likewise.
34169         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
34170         Likewise.
34171         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
34172         configure.ac): Likewise.
34173         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
34174         configure.ac): Likewise.
34175         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
34176         configure.ac): Likewise.
34177         * modules/unictype/property-bidi-european-digit (Depends-on,
34178         configure.ac): Likewise.
34179         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
34180         configure.ac): Likewise.
34181         * modules/unictype/property-bidi-left-to-right (Depends-on,
34182         configure.ac): Likewise.
34183         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
34184         configure.ac): Likewise.
34185         * modules/unictype/property-bidi-other-neutral (Depends-on,
34186         configure.ac): Likewise.
34187         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
34188         Likewise.
34189         * modules/unictype/property-bidi-segment-separator (Depends-on,
34190         configure.ac): Likewise.
34191         * modules/unictype/property-bidi-whitespace (Depends-on,
34192         configure.ac): Likewise.
34193         * modules/unictype/property-combining (Depends-on, configure.ac):
34194         Likewise.
34195         * modules/unictype/property-composite (Depends-on, configure.ac):
34196         Likewise.
34197         * modules/unictype/property-currency-symbol (Depends-on,
34198         configure.ac): Likewise.
34199         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
34200         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
34201         Likewise.
34202         * modules/unictype/property-default-ignorable-code-point (Depends-on,
34203         configure.ac): Likewise.
34204         * modules/unictype/property-deprecated (Depends-on, configure.ac):
34205         Likewise.
34206         * modules/unictype/property-diacritic (Depends-on, configure.ac):
34207         Likewise.
34208         * modules/unictype/property-extender (Depends-on, configure.ac):
34209         Likewise.
34210         * modules/unictype/property-format-control (Depends-on, configure.ac):
34211         Likewise.
34212         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
34213         Likewise.
34214         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
34215         Likewise.
34216         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
34217         Likewise.
34218         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
34219         Likewise.
34220         * modules/unictype/property-hyphen (Depends-on, configure.ac):
34221         Likewise.
34222         * modules/unictype/property-id-continue (Depends-on, configure.ac):
34223         Likewise.
34224         * modules/unictype/property-id-start (Depends-on, configure.ac):
34225         Likewise.
34226         * modules/unictype/property-ideographic (Depends-on, configure.ac):
34227         Likewise.
34228         * modules/unictype/property-ids-binary-operator (Depends-on,
34229         configure.ac): Likewise.
34230         * modules/unictype/property-ids-trinary-operator (Depends-on,
34231         configure.ac): Likewise.
34232         * modules/unictype/property-ignorable-control (Depends-on,
34233         configure.ac): Likewise.
34234         * modules/unictype/property-iso-control (Depends-on, configure.ac):
34235         Likewise.
34236         * modules/unictype/property-join-control (Depends-on, configure.ac):
34237         Likewise.
34238         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
34239         Likewise.
34240         * modules/unictype/property-line-separator (Depends-on, configure.ac):
34241         Likewise.
34242         * modules/unictype/property-logical-order-exception (Depends-on,
34243         configure.ac): Likewise.
34244         * modules/unictype/property-lowercase (Depends-on, configure.ac):
34245         Likewise.
34246         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
34247         * modules/unictype/property-non-break (Depends-on, configure.ac):
34248         Likewise.
34249         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
34250         Likewise.
34251         * modules/unictype/property-numeric (Depends-on, configure.ac):
34252         Likewise.
34253         * modules/unictype/property-other-alphabetic (Depends-on,
34254         configure.ac): Likewise.
34255         * modules/unictype/property-other-default-ignorable-code-point
34256         (Depends-on, configure.ac): Likewise.
34257         * modules/unictype/property-other-grapheme-extend (Depends-on,
34258         configure.ac): Likewise.
34259         * modules/unictype/property-other-id-continue (Depends-on,
34260         configure.ac): Likewise.
34261         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
34262         Likewise.
34263         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
34264         Likewise.
34265         * modules/unictype/property-other-math (Depends-on, configure.ac):
34266         Likewise.
34267         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
34268         Likewise.
34269         * modules/unictype/property-paired-punctuation (Depends-on,
34270         configure.ac): Likewise.
34271         * modules/unictype/property-paragraph-separator (Depends-on,
34272         configure.ac): Likewise.
34273         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
34274         Likewise.
34275         * modules/unictype/property-pattern-white-space (Depends-on,
34276         configure.ac): Likewise.
34277         * modules/unictype/property-private-use (Depends-on, configure.ac):
34278         Likewise.
34279         * modules/unictype/property-punctuation (Depends-on, configure.ac):
34280         Likewise.
34281         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
34282         Likewise.
34283         * modules/unictype/property-radical (Depends-on, configure.ac):
34284         Likewise.
34285         * modules/unictype/property-sentence-terminal (Depends-on,
34286         configure.ac): Likewise.
34287         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
34288         Likewise.
34289         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
34290         * modules/unictype/property-terminal-punctuation (Depends-on,
34291         configure.ac): Likewise.
34292         * modules/unictype/property-titlecase (Depends-on, configure.ac):
34293         Likewise.
34294         * modules/unictype/property-unassigned-code-value (Depends-on,
34295         configure.ac): Likewise.
34296         * modules/unictype/property-unified-ideograph (Depends-on,
34297         configure.ac): Likewise.
34298         * modules/unictype/property-uppercase (Depends-on, configure.ac):
34299         Likewise.
34300         * modules/unictype/property-variation-selector (Depends-on,
34301         configure.ac): Likewise.
34302         * modules/unictype/property-white-space (Depends-on, configure.ac):
34303         Likewise.
34304         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
34305         Likewise.
34306         * modules/unictype/property-xid-start (Depends-on, configure.ac):
34307         Likewise.
34308         * modules/unictype/property-zero-width (Depends-on, configure.ac):
34309         Likewise.
34310         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
34311         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
34312         Likewise.
34313
34314 2009-12-31  Bruno Haible  <bruno@clisp.org>
34315
34316         Remove unnecessary AC_C_INLINE invocation.
34317         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
34318         since 2009-08-21.
34319
34320 2009-12-31  Jim Meyering  <meyering@redhat.com>
34321
34322         maint.mk: don't require explicit gpg_key_ID in cfg.mk
34323         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
34324         With this change, we can all remove the gpg_key_ID = ... definition
34325         from our respective cfg.mk files.
34326
34327         maint.mk: create announcement template in ~/, not in /tmp
34328         * top/maint.mk (emit_upload_commands): Adjust.
34329         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
34330         Remove temporary file, .ci-msg.
34331
34332 2009-12-31  Eric Blake  <ebb9@byu.net>
34333
34334         link-warning: always build headers with link warnings
34335         * modules/arpa_inet (Makefile.am): Always build replacement
34336         header.
34337         * modules/ctype (Makefile.am): Likewise.
34338         * modules/dirent (Makefile.am): Likewise.
34339         * modules/inttypes (Makefile.am): Likewise.
34340         * modules/langinfo (Makefile.am): Likewise.
34341         * modules/locale (Makefile.am): Likewise.
34342         * modules/spawn (Makefile.am): Likewise.
34343         * modules/sys_file (Makefile.am): Likewise.
34344         * modules/sys_ioctl (Makefile.am): Likewise.
34345         * modules/sys_select (Makefile.am): Likewise.
34346         * modules/sys_socket (Makefile.am): Likewise.
34347         * modules/sys_times (Makefile.am): Likewise.
34348         * modules/sys_utsname (Makefile.am): Likewise.
34349         * modules/sys_wait (Makefile.am): Likewise.
34350         * modules/wchar (Makefile.am): Likewise.
34351         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
34352         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
34353         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
34354         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
34355         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
34356         Likewise.
34357         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34358         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34359         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
34360         Likewise.
34361         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
34362         Likewise.
34363         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
34364         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
34365         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
34366         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34367         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34368         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34369         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34370         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
34371         (gl_WCHAR_H_DEFAULTS): Likewise.
34372
34373 2009-12-31  Eric Blake  <ebb9@byu.net>
34374
34375         signal, spawn: use link warnings
34376         * lib/signal.in.h (sigset_t): Make unconditional.
34377         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
34378         (sigpending, sigprocmask, sigaction): Add link warnings.
34379         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
34380         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
34381         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
34382         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
34383         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
34384         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
34385         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
34386         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
34387         (posix_spawn_file_actions_destroy)
34388         (posix_spawn_file_actions_addopen)
34389         (posix_spawn_file_actions_addclose)
34390         (posix_spawn_file_actions_adddup2): Likewise.
34391         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
34392         * tests/test-signal.c (main): Enhance test.
34393
34394         spawn: improve wrapper support
34395         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
34396         (gl_SPAWN_H_DEFAULTS): New defaults.
34397         * modules/spawn (Makefile.am): Substitute them.
34398         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
34399         Only declare if missing or broken.
34400
34401         sys_times, sys_utsname: use include_next
34402         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
34403         header.
34404         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
34405         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34406         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34407         * modules/sys_times (Depends-on): Add include_next.
34408         (Makefile.am): Substitute additional values.
34409         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34410         * lib/sys_times.in.h (includes): Include native header, if
34411         available.
34412         * lib/sys_utsname.in.h (includes): Likewise.
34413         * tests/test-sys_times.c (main): Enhance test.
34414
34415         fdutimensat: revert prior patch
34416         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
34417         utimens.h.
34418         Reported by Bruno Haible.
34419
34420 2009-12-30  Eric Blake  <ebb9@byu.net>
34421
34422         sys_wait: drop link-warning dependency
34423         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
34424         link-warning efforts.
34425         * lib/sys_wait.in.h: Likewise.
34426
34427         fdutimensat: remove bogus dependency
34428         * modules/fdutimensat (Depends-on): Drop inline.
34429
34430         unistd: fix typo
34431         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
34432
34433 2009-12-30  Bruno Haible  <bruno@clisp.org>
34434
34435         Fix compilation error with Solaris cc.
34436         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
34437         * lib/unicase/u16-is-invariant.c: Likewise.
34438         * lib/unicase/u32-is-invariant.c: Likewise.
34439         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
34440
34441 2009-12-30  Bruno Haible  <bruno@clisp.org>
34442
34443         Fix test crash.
34444         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
34445         locales.
34446         Reported by Simon Josefsson <simon@josefsson.org>.
34447
34448 2009-12-30  Bruno Haible  <bruno@clisp.org>
34449
34450         Fix compilation error on most platforms.
34451         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
34452         Reported by Simon Josefsson <simon@josefsson.org>
34453         and Nelson H. F. Beebe <beebe@math.utah.edu>.
34454
34455 2009-12-30  Eric Blake  <ebb9@byu.net>
34456
34457         futimens, utimensat: work around ntfs-3g bug
34458         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
34459         a ctime bug is present, and expand workaround to cover ntfs-3g.
34460         * lib/utimens.c (fdutimens, lutimens): Likewise.
34461         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
34462         (validate_timespec): Adjust return value.
34463         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
34464         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34465         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
34466
34467 2009-12-29  Eric Blake  <ebb9@byu.net>
34468
34469         link-warning: make usage consistent
34470         * modules/ctype (Depends-on): Add link-warning.
34471         (Makefile.am): Update rules accordingly.
34472         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34473         * modules/locale (Depends-on, Makefile.am): Likewise.
34474         * modules/sys_file (Makefile.am): Likewise.
34475         * modules/getopt-posix (Makefile.am): Delete unused link warning
34476         efforts.
34477         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
34478         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
34479         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
34480         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
34481
34482         stdio: remove unused variables
34483         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
34484         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
34485         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
34486
34487         tests: test more substitute headers
34488         * modules/ctype-tests: New file.
34489         * modules/dirent-tests: Likewise.
34490         * modules/spawn-tests: Likewise.
34491         * modules/sys_file-tests: Likewise.
34492         * modules/sys_ioctl-tests: Likewise.
34493         * modules/sys_wait-tests: Likewise.
34494         * tests/test-ctype.c: Likewise.
34495         * tests/test-dirent.c: Likewise.
34496         * tests/test-spawn.c: Likewise.
34497         * tests/test-sys_file.c: Likewise.
34498         * tests/test-sys_ioctl.c: Likewise.
34499         * tests/test-sys_wait.c: Likewise.
34500         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
34501         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
34502         whether or not flock is in use.
34503
34504         tests: remove License section from module
34505         * modules/arpa_inet-tests: Remove unneeded section.
34506         * modules/byteswap-tests: Likewise.
34507         * modules/ceilf-tests: Likewise.
34508         * modules/ceill-tests: Likewise.
34509         * modules/crypto/des-tests: Likewise.
34510         * modules/crypto/gc-arcfour-tests: Likewise.
34511         * modules/crypto/gc-arctwo-tests: Likewise.
34512         * modules/crypto/gc-des-tests: Likewise.
34513         * modules/crypto/gc-hmac-md5-tests: Likewise.
34514         * modules/crypto/gc-hmac-sha1-tests: Likewise.
34515         * modules/crypto/gc-md2-tests: Likewise.
34516         * modules/crypto/gc-md4-tests: Likewise.
34517         * modules/crypto/gc-md5-tests: Likewise.
34518         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
34519         * modules/crypto/gc-rijndael-tests: Likewise.
34520         * modules/crypto/gc-sha1-tests: Likewise.
34521         * modules/crypto/gc-tests: Likewise.
34522         * modules/crypto/md2-tests: Likewise.
34523         * modules/crypto/md4-tests: Likewise.
34524         * modules/fcntl-h-tests: Likewise.
34525         * modules/floorf-tests: Likewise.
34526         * modules/floorl-tests: Likewise.
34527         * modules/frexp-nolibm-tests: Likewise.
34528         * modules/frexp-tests: Likewise.
34529         * modules/frexpl-nolibm-tests: Likewise.
34530         * modules/frexpl-tests: Likewise.
34531         * modules/getaddrinfo-tests: Likewise.
34532         * modules/inttypes-tests: Likewise.
34533         * modules/isfinite-tests: Likewise.
34534         * modules/isinf-tests: Likewise.
34535         * modules/ldexpl-tests: Likewise.
34536         * modules/locale-tests: Likewise.
34537         * modules/math-tests: Likewise.
34538         * modules/netdb-tests: Likewise.
34539         * modules/netinet_in-tests: Likewise.
34540         * modules/printf-frexp-tests: Likewise.
34541         * modules/printf-frexpl-tests: Likewise.
34542         * modules/priv-set-tests: Likewise.
34543         * modules/random_r-tests: Likewise.
34544         * modules/round-tests: Likewise.
34545         * modules/roundf-tests: Likewise.
34546         * modules/roundl-tests: Likewise.
34547         * modules/search-tests: Likewise.
34548         * modules/select-tests: Likewise.
34549         * modules/signal-tests: Likewise.
34550         * modules/stdbool-tests: Likewise.
34551         * modules/stddef-tests: Likewise.
34552         * modules/stdint-tests: Likewise.
34553         * modules/stdio-tests: Likewise.
34554         * modules/stdlib-tests: Likewise.
34555         * modules/string-tests: Likewise.
34556         * modules/strings-tests: Likewise.
34557         * modules/sys_select-tests: Likewise.
34558         * modules/sys_socket-tests: Likewise.
34559         * modules/sys_stat-tests: Likewise.
34560         * modules/sys_time-tests: Likewise.
34561         * modules/sys_utsname-tests: Likewise.
34562         * modules/sysexits-tests: Likewise.
34563         * modules/time-tests: Likewise.
34564         * modules/trunc-tests: Likewise.
34565         * modules/truncf-tests: Likewise.
34566         * modules/truncl-tests: Likewise.
34567         * modules/tsearch-tests: Likewise.
34568         * modules/unistd-tests: Likewise.
34569         * modules/wchar-tests: Likewise.
34570         * modules/wctype-tests: Likewise.
34571
34572         tests: fix license on several tests
34573         * tests/test-des.c: Update to GPLv3+.
34574         * tests/test-flock.c: Likewise.
34575         * tests/test-fsync.c: Likewise.
34576         * tests/test-futimens.h: Likewise.
34577         * tests/test-gc-arcfour.c: Likewise.
34578         * tests/test-gc-arctwo.c: Likewise.
34579         * tests/test-gc-des.c: Likewise.
34580         * tests/test-gc-hmac-md5.c: Likewise.
34581         * tests/test-gc-hmac-sha1.c: Likewise.
34582         * tests/test-gc-md2.c: Likewise.
34583         * tests/test-gc-md4.c: Likewise.
34584         * tests/test-gc-md5.c: Likewise.
34585         * tests/test-gc-pbkdf2-sha1.c: Likewise.
34586         * tests/test-gc-rijndael.c: Likewise.
34587         * tests/test-gc-sha1.c: Likewise.
34588         * tests/test-gc.c: Likewise.
34589         * tests/test-getcwd.c: Likewise.
34590         * tests/test-link.c: Likewise.
34591         * tests/test-link.h: Likewise.
34592         * tests/test-lutimens.h: Likewise.
34593         * tests/test-md2.c: Likewise.
34594         * tests/test-md4.c: Likewise.
34595         * tests/test-mkdir.h: Likewise.
34596         * tests/test-rename.c: Likewise.
34597         * tests/test-rename.h: Likewise.
34598         * tests/test-safe-alloc.c: Likewise.
34599         * tests/test-utimens-common.h: Likewise.
34600         * tests/test-utimens.h: Likewise.
34601
34602         maint: sync license texts
34603         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
34604         * doc/gpl-3.0.texi: Revert copyright year update.
34605         * doc/lgpl-3.0.texi: Likewise.
34606
34607 2009-12-29  Jim Meyering  <meyering@redhat.com>
34608
34609         update nearly all FSF copyright year lists to include 2009
34610         The files named by the following are exempted:
34611             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
34612               test -f "$dst" && { echo "$dst"; continue; }
34613               test -d "$dst" || continue
34614               echo "$dst"/$(basename "$src")
34615             done > exempt
34616             git ls-files tests/unictype >> exempt
34617         In the remaining files, convert to all-interval notation if
34618         - there is already at least one year interval like 2000-2003
34619         - the file is maintained by me
34620         - the file is in lib/uni*/, where that style already prevails
34621         Otherwise, use update-copyright's default.
34622
34623 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34624         and Eric Blake  <ebb9@byu.net>
34625
34626         tests: don't require debug system() to pass
34627         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
34628         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34629         * tests/test-unlink.h (test_unlink_func): Likewise.
34630         * tests/test-fstatat.c (main): ...into callers.
34631         * tests/test-lstat.c (main): Likewise.
34632         * tests/test-rmdir.c (main): Likewise.
34633         * tests/test-unlink.c (main): Likewise.
34634         * tests/test-unlinkat.c (main): Likewise.
34635         * tests/test-areadlink-with-size.c (main): Don't require a
34636         debug-only system call to pass, aiding cross-testing to mingw.
34637         * tests/test-areadlink.c (main): Likewise.
34638         * tests/test-areadlinkat-with-size.c (main): Likewise.
34639         * tests/test-areadlinkat.c (main): Likewise.
34640         * tests/test-canonicalize-lgpl.c (main): Likewise.
34641         * tests/test-canonicalize.c (main): Likewise.
34642         * tests/test-chown.c (main): Likewise.
34643         * tests/test-fchownat.c (main): Likewise.
34644         * tests/test-lchown.c (main): Likewise.
34645         * tests/test-fdutimensat.c (main): Likewise.
34646         * tests/test-futimens.c (main): Likewise.
34647         * tests/test-link.c (main): Likewise.
34648         * tests/test-linkat.c (main): Likewise.
34649         * tests/test-mkdir.c (main): Likewise.
34650         * tests/test-mkdirat.c (main): Likewise.
34651         * tests/test-mkfifo.c (main): Likewise.
34652         * tests/test-mkfifoat.c (main): Likewise.
34653         * tests/test-mknod.c (main): Likewise.
34654         * tests/test-readlink.c (main): Likewise.
34655         * tests/test-remove.c (main): Likewise.
34656         * tests/test-rename.c (main): Likewise.
34657         * tests/test-renameat.c (main): Likewise.
34658         * tests/test-symlink.c (main): Likewise.
34659         * tests/test-symlinkat.c (main): Likewise.
34660         * tests/test-utimens.c (main): Likewise.
34661         * tests/test-utimensat.c (main): Likewise.
34662
34663 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34664
34665         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
34666         on $(UNUSED_PARAMETER_H) to avoid build failure.
34667
34668 2009-12-28  Jim Meyering  <meyering@redhat.com>
34669
34670         update-copyright: you may specify a max. line length other than 72
34671         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34672
34673         maint: use consistent FSF copyright line syntax
34674         * lib/posixtm.c: Add missing comma in FSF copyright line.
34675         * lib/posixtm.h: Likewise.
34676         * lib/getugroups.c: Add missing ", Inc.".
34677
34678         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
34679         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
34680         FSF copyright line.  Remove trailing blanks.
34681
34682 2009-12-28  Eric Blake  <ebb9@byu.net>
34683
34684         test-dup2: reduce dependencies
34685         * modules/cloexec (Configure.ac): Set witness.
34686         * modules/dup2-tests (Depends-on): Drop cloexec.
34687         * tests/test-dup2.c (main): Skip portion of test if cloexec module
34688         not present.
34689         Suggested by Bruno Haible.
34690
34691 2009-12-26  Bruno Haible  <bruno@clisp.org>
34692
34693         Remove an unneeded dependency.
34694         * modules/fseterr (Depends-on): Remove dup2.
34695
34696 2009-12-26  Eric Blake  <ebb9@byu.net>
34697
34698         tests: use macros.h in more places
34699         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
34700         (ASSERT_STREAM): Provide default of stderr.
34701         * tests/test-dirent-safer.c: Include macros.h, using alternate
34702         stream for assertions.
34703         * tests/test-dup-safer.c: Likewise.
34704         * tests/test-freopen-safer.c: Likewise.
34705         * tests/test-getopt.c: Likewise.
34706         * tests/test-openat-safer.c: Likewise.
34707         * tests/test-pipe.c: Likewise.
34708         * tests/test-popen-safer.c: Likewise.
34709         * modules/dirent-safer-tests (Files): Include macros.h.
34710         * modules/unistd-safer-tests (Files): Likewise.
34711         * modules/freopen-safer-tests (Files): Likewise.
34712         * modules/getopt-posix-tests (Files): Likewise.
34713         * modules/openat-safer-tests (Files): Likewise.
34714         * modules/pipe-tests (Files): Likewise.
34715
34716 2009-12-26  Bruno Haible  <bruno@clisp.org>
34717
34718         javacomp: Portability fix.
34719         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
34720         that it also works on Solaris.
34721
34722 2009-12-26  Bruno Haible  <bruno@clisp.org>
34723
34724         localename: Fix storage allocation of gl_locale_name_thread's result.
34725         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
34726         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
34727         all platforms that have 'uselocale'.
34728         (gl_locale_name_thread_unsafe): New function, extracted from
34729         gl_locale_name_thread.
34730         (gl_locale_name_thread): Call struniq on all platforms that have
34731         'uselocale'.
34732         * tests/test-localename.c (test_locale_name_thread): Check that the
34733         resulting strings are permanently allocated.
34734         * modules/localename-tests (Depends-on): Add strdup.
34735
34736 2009-12-26  Bruno Haible  <bruno@clisp.org>
34737
34738         * tests/test-localename.c (categories): Fill in the strings.
34739
34740 2009-12-26  Jim Meyering  <meyering@redhat.com>
34741
34742         isdir: complete the removal of m4/isdir.m4
34743         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
34744
34745         isdir: clean up, since at least grep still uses it
34746         * lib/isdir.c: Include "isdir.h".
34747         (S_ISDIR): Remove now-unneeded definition.
34748         * modules/isdir (Files): Add lib/isdir.h.
34749         * lib/isdir.h: New file, with declaration.
34750         * m4/isdir.m4: Remove file -- unneeded.
34751
34752 2009-12-25  Bruno Haible  <bruno@clisp.org>
34753
34754         selinux-h: Make generated .h files standalone.
34755         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
34756         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
34757         * lib/se-selinux.in.h: Likewise.
34758         * modules/selinux-h (Depends-on): Add unused-parameter.
34759         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
34760         selinux/selinux.h and selinux/context.h.
34761         Suggested by Eric Blake.
34762
34763 2009-12-25  Bruno Haible  <bruno@clisp.org>
34764
34765         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
34766         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
34767         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
34768         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
34769         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
34770
34771 2009-12-24  Bruno Haible  <bruno@clisp.org>
34772
34773         openat: Fix warning.
34774         * lib/openat-proc.c: Include <unistd.h>.
34775
34776 2009-12-24  Bruno Haible  <bruno@clisp.org>
34777
34778         New module 'unused-parameter'.
34779         * build-aux/unused-parameter.h: New file, extracted from earlier
34780         gnulib-common.m4.
34781         * modules/unused-parameter: New file.
34782         * lib/unistr.h: Include unused-parameter.h.
34783         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
34784         _GL_UNUSED.
34785         * modules/unistr/base (Depends-on): Add unused-parameter.
34786
34787 2009-12-24  Bruno Haible  <bruno@clisp.org>
34788
34789         Add missing dependencies to 'extensions' module.
34790         * m4/extensions.m4: Add comment.
34791         * modules/accept4 (Depends-on): Add extensions.
34792         * modules/dup3 (Depends-on): Likewise.
34793         * modules/fcntl (Depends-on): Likewise.
34794         * modules/futimens (Depends-on): Likewise.
34795         * modules/mknod (Depends-on): Likewise.
34796         * modules/pipe2 (Depends-on): Likewise.
34797         * modules/stat-time (Depends-on): Likewise.
34798         * modules/strcasestr-simple (Depends-on): Likewise.
34799         * modules/strsignal (Depends-on): Likewise.
34800         * modules/utimensat (Depends-on): Likewise.
34801         * modules/localcharset (Depends-on): Likewise. Needed because of
34802         gl_FCNTL_O_FLAGS.
34803         * modules/wcrtomb (Depends-on): Likewise. Needed because of
34804         AC_TYPE_MBSTATE_T.
34805         * modules/wcsnrtombs (Depends-on): Likewise.
34806         * modules/wcsrtombs (Depends-on): Likewise.
34807
34808 2009-12-24  Bruno Haible  <bruno@clisp.org>
34809
34810         binary-io: Avoid gcc warning due to SET_BINARY.
34811         * lib/binary-io.h (SET_BINARY): Cast the result to void.
34812         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
34813
34814 2009-12-24  Bruno Haible  <bruno@clisp.org>
34815
34816         Avoid future namespace pollution on glibc systems.
34817         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
34818         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
34819         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
34820         glibc systems.
34821
34822 2009-12-24  Bruno Haible  <bruno@clisp.org>
34823
34824         Refactor common macros used in tests.
34825         * tests/macros.h: New file.
34826         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
34827         and/or <stdlib.h>, if appropriate.
34828         (ASSERT, SIZEOF): Remove macros.
34829         * tests/test-areadlink-with-size.c: Likewise.
34830         * tests/test-areadlinkat.c: Likewise.
34831         * tests/test-areadlinkat-with-size.c: Likewise.
34832         * tests/test-argmatch.c: Likewise.
34833         * tests/test-argv-iter.c: Likewise.
34834         * tests/test-array-mergesort.c: Likewise.
34835         * tests/test-array_list.c: Likewise.
34836         * tests/test-array_oset.c: Likewise.
34837         * tests/test-avltree_list.c: Likewise.
34838         * tests/test-avltree_oset.c: Likewise.
34839         * tests/test-avltreehash_list.c: Likewise.
34840         * tests/test-base64.c: Likewise.
34841         * tests/test-binary-io.c: Likewise.
34842         * tests/test-bitrotate.c: Likewise.
34843         * tests/test-btowc.c: Likewise.
34844         * tests/test-byteswap.c: Likewise.
34845         * tests/test-c-ctype.c: Likewise.
34846         * tests/test-c-stack.c: Likewise.
34847         * tests/test-c-strcasecmp.c: Likewise.
34848         * tests/test-c-strcasestr.c: Likewise.
34849         * tests/test-c-strncasecmp.c: Likewise.
34850         * tests/test-c-strstr.c: Likewise.
34851         * tests/test-canonicalize-lgpl.c: Likewise.
34852         * tests/test-canonicalize.c: Likewise.
34853         * tests/test-carray_list.c: Likewise.
34854         * tests/test-ceilf1.c: Likewise.
34855         * tests/test-ceilf2.c: Likewise.
34856         * tests/test-ceill.c: Likewise.
34857         * tests/test-chown.c: Likewise.
34858         * tests/test-cloexec.c: Likewise.
34859         * tests/test-copy-acl.c: Likewise.
34860         * tests/test-copy-file.c: Likewise.
34861         * tests/test-count-one-bits.c: Likewise.
34862         * tests/test-dprintf-posix.c: Likewise.
34863         * tests/test-dup2.c: Likewise.
34864         * tests/test-dup3.c: Likewise.
34865         * tests/test-duplocale.c: Likewise.
34866         * tests/test-fbufmode.c: Likewise.
34867         * tests/test-fchdir.c: Likewise.
34868         * tests/test-fchownat.c: Likewise.
34869         * tests/test-fcntl-safer.c: Likewise.
34870         * tests/test-fcntl.c: Likewise.
34871         * tests/test-fdopendir.c: Likewise.
34872         * tests/test-fdutimensat.c: Likewise.
34873         * tests/test-fflush2.c: Likewise.
34874         * tests/test-file-has-acl.c: Likewise.
34875         * tests/test-filevercmp.c: Likewise.
34876         * tests/test-flock.c: Likewise.
34877         * tests/test-floorf1.c: Likewise.
34878         * tests/test-floorf2.c: Likewise.
34879         * tests/test-floorl.c: Likewise.
34880         * tests/test-fnmatch.c: Likewise.
34881         * tests/test-fopen.h: Likewise.
34882         * tests/test-fpending.c: Likewise.
34883         * tests/test-fprintf-posix.c: Likewise.
34884         * tests/test-fpurge.c: Likewise.
34885         * tests/test-freadable.c: Likewise.
34886         * tests/test-freadahead.c: Likewise.
34887         * tests/test-freading.c: Likewise.
34888         * tests/test-freadptr.c: Likewise.
34889         * tests/test-freadptr2.c: Likewise.
34890         * tests/test-freadseek.c: Likewise.
34891         * tests/test-freopen.c: Likewise.
34892         * tests/test-frexp.c: Likewise.
34893         * tests/test-frexpl.c: Likewise.
34894         * tests/test-fseek.c: Likewise.
34895         * tests/test-fseeko.c: Likewise.
34896         * tests/test-fstatat.c: Likewise.
34897         * tests/test-fstrcmp.c: Likewise.
34898         * tests/test-fsync.c: Likewise.
34899         * tests/test-ftell.c: Likewise.
34900         * tests/test-ftello.c: Likewise.
34901         * tests/test-func.c: Likewise.
34902         * tests/test-futimens.c: Likewise.
34903         * tests/test-fwritable.c: Likewise.
34904         * tests/test-fwriting.c: Likewise.
34905         * tests/test-getcwd.c: Likewise.
34906         * tests/test-getdate.c: Likewise.
34907         * tests/test-getdelim.c: Likewise.
34908         * tests/test-getdtablesize.c: Likewise.
34909         * tests/test-getgroups.c: Likewise.
34910         * tests/test-getline.c: Likewise.
34911         * tests/test-getndelim2.c: Likewise.
34912         * tests/test-glob.c: Likewise.
34913         * tests/test-hash.c: Likewise.
34914         * tests/test-i-ring.c: Likewise.
34915         * tests/test-iconv-utf.c: Likewise.
34916         * tests/test-iconv.c: Likewise.
34917         * tests/test-idpriv-drop.c: Likewise.
34918         * tests/test-idpriv-droptemp.c: Likewise.
34919         * tests/test-inet_ntop.c: Likewise.
34920         * tests/test-inet_pton.c: Likewise.
34921         * tests/test-isblank.c: Likewise.
34922         * tests/test-isfinite.c: Likewise.
34923         * tests/test-isinf.c: Likewise.
34924         * tests/test-isnan.c: Likewise.
34925         * tests/test-isnand.h: Likewise.
34926         * tests/test-isnanf.h: Likewise.
34927         * tests/test-isnanl.h: Likewise.
34928         * tests/test-lchown.c: Likewise.
34929         * tests/test-ldexpl.c: Likewise.
34930         * tests/test-link.c: Likewise.
34931         * tests/test-linkat.c: Likewise.
34932         * tests/test-linked_list.c: Likewise.
34933         * tests/test-linkedhash_list.c: Likewise.
34934         * tests/test-localename.c: Likewise.
34935         * tests/test-lseek.c: Likewise.
34936         * tests/test-lstat.c: Likewise.
34937         * tests/test-mbmemcasecmp.c: Likewise.
34938         * tests/test-mbmemcasecoll.c: Likewise.
34939         * tests/test-mbrtowc.c: Likewise.
34940         * tests/test-mbscasecmp.c: Likewise.
34941         * tests/test-mbscasestr1.c: Likewise.
34942         * tests/test-mbscasestr2.c: Likewise.
34943         * tests/test-mbscasestr3.c: Likewise.
34944         * tests/test-mbscasestr4.c: Likewise.
34945         * tests/test-mbschr.c: Likewise.
34946         * tests/test-mbscspn.c: Likewise.
34947         * tests/test-mbsinit.c: Likewise.
34948         * tests/test-mbsncasecmp.c: Likewise.
34949         * tests/test-mbsnrtowcs.c: Likewise.
34950         * tests/test-mbspbrk.c: Likewise.
34951         * tests/test-mbspcasecmp.c: Likewise.
34952         * tests/test-mbsrchr.c: Likewise.
34953         * tests/test-mbsrtowcs.c: Likewise.
34954         * tests/test-mbsspn.c: Likewise.
34955         * tests/test-mbsstr1.c: Likewise.
34956         * tests/test-mbsstr2.c: Likewise.
34957         * tests/test-mbsstr3.c: Likewise.
34958         * tests/test-memchr.c: Likewise.
34959         * tests/test-memchr2.c: Likewise.
34960         * tests/test-memcmp.c: Likewise.
34961         * tests/test-memmem.c: Likewise.
34962         * tests/test-memrchr.c: Likewise.
34963         * tests/test-mkdir.c: Likewise.
34964         * tests/test-mkdirat.c: Likewise.
34965         * tests/test-mkfifo.c: Likewise.
34966         * tests/test-mkfifoat.c: Likewise.
34967         * tests/test-mknod.c: Likewise.
34968         * tests/test-nanosleep.c: Likewise.
34969         * tests/test-nl_langinfo.c: Likewise.
34970         * tests/test-obstack-printf.c: Likewise.
34971         * tests/test-open.c: Likewise.
34972         * tests/test-openat.c: Likewise.
34973         * tests/test-pipe-filter-gi1.c: Likewise.
34974         * tests/test-pipe-filter-gi2-main.c: Likewise.
34975         * tests/test-pipe-filter-ii1.c: Likewise.
34976         * tests/test-pipe-filter-ii2-main.c: Likewise.
34977         * tests/test-pipe2.c: Likewise.
34978         * tests/test-popen.h: Likewise.
34979         * tests/test-posixtm.c: Likewise.
34980         * tests/test-pread.c: Likewise.
34981         * tests/test-printf-frexp.c: Likewise.
34982         * tests/test-printf-frexpl.c: Likewise.
34983         * tests/test-printf-posix.c: Likewise.
34984         * tests/test-priv-set.c: Likewise.
34985         * tests/test-quotearg.c: Likewise.
34986         * tests/test-random_r.c: Likewise.
34987         * tests/test-rawmemchr.c: Likewise.
34988         * tests/test-rbtree_list.c: Likewise.
34989         * tests/test-rbtree_oset.c: Likewise.
34990         * tests/test-rbtreehash_list.c: Likewise.
34991         * tests/test-readlink.c: Likewise.
34992         * tests/test-remove.c: Likewise.
34993         * tests/test-rename.c: Likewise.
34994         * tests/test-renameat.c: Likewise.
34995         * tests/test-rmdir.c: Likewise.
34996         * tests/test-round1.c: Likewise.
34997         * tests/test-roundf1.c: Likewise.
34998         * tests/test-roundl.c: Likewise.
34999         * tests/test-safe-alloc.c: Likewise.
35000         * tests/test-sameacls.c: Likewise.
35001         * tests/test-set-mode-acl.c: Likewise.
35002         * tests/test-setenv.c: Likewise.
35003         * tests/test-sigaction.c: Likewise.
35004         * tests/test-signbit.c: Likewise.
35005         * tests/test-sleep.c: Likewise.
35006         * tests/test-snprintf-posix.c: Likewise.
35007         * tests/test-snprintf.c: Likewise.
35008         * tests/test-sprintf-posix.c: Likewise.
35009         * tests/test-stat-time.c: Likewise.
35010         * tests/test-stat.c: Likewise.
35011         * tests/test-strcasestr.c: Likewise.
35012         * tests/test-strchrnul.c: Likewise.
35013         * tests/test-strerror.c: Likewise.
35014         * tests/test-striconv.c: Likewise.
35015         * tests/test-striconveh.c: Likewise.
35016         * tests/test-striconveha.c: Likewise.
35017         * tests/test-strsignal.c: Likewise.
35018         * tests/test-strstr.c: Likewise.
35019         * tests/test-strtod.c: Likewise.
35020         * tests/test-strverscmp.c: Likewise.
35021         * tests/test-symlink.c: Likewise.
35022         * tests/test-symlinkat.c: Likewise.
35023         * tests/test-trunc1.c: Likewise.
35024         * tests/test-trunc2.c: Likewise.
35025         * tests/test-truncf1.c: Likewise.
35026         * tests/test-truncf2.c: Likewise.
35027         * tests/test-truncl.c: Likewise.
35028         * tests/test-uname.c: Likewise.
35029         * tests/test-unlink.c: Likewise.
35030         * tests/test-unlinkat.c: Likewise.
35031         * tests/test-unsetenv.c: Likewise.
35032         * tests/test-usleep.c: Likewise.
35033         * tests/test-utimens.c: Likewise.
35034         * tests/test-utimensat.c: Likewise.
35035         * tests/test-vasnprintf-posix.c: Likewise.
35036         * tests/test-vasnprintf-posix2.c: Likewise.
35037         * tests/test-vasnprintf.c: Likewise.
35038         * tests/test-vasprintf-posix.c: Likewise.
35039         * tests/test-vasprintf.c: Likewise.
35040         * tests/test-vdprintf-posix.c: Likewise.
35041         * tests/test-vfprintf-posix.c: Likewise.
35042         * tests/test-vprintf-posix.c: Likewise.
35043         * tests/test-vsnprintf-posix.c: Likewise.
35044         * tests/test-vsnprintf.c: Likewise.
35045         * tests/test-vsprintf-posix.c: Likewise.
35046         * tests/test-wcrtomb.c: Likewise.
35047         * tests/test-wcsnrtombs.c: Likewise.
35048         * tests/test-wcsrtombs.c: Likewise.
35049         * tests/test-wctype.c: Likewise.
35050         * tests/test-wcwidth.c: Likewise.
35051         * tests/test-xfprintf-posix.c: Likewise.
35052         * tests/test-xmemdup0.c: Likewise.
35053         * tests/test-xprintf-posix.c: Likewise.
35054         * tests/test-xvasprintf.c: Likewise.
35055         * tests/unicase/test-locale-language.c: Likewise.
35056         * tests/unicase/test-mapping-part1.h: Likewise.
35057         * tests/unicase/test-predicate-part1.h: Likewise.
35058         * tests/unicase/test-u8-casecmp.c: Likewise.
35059         * tests/unicase/test-u8-casecoll.c: Likewise.
35060         * tests/unicase/test-u8-casefold.c: Likewise.
35061         * tests/unicase/test-u8-is-cased.c: Likewise.
35062         * tests/unicase/test-u8-is-casefolded.c: Likewise.
35063         * tests/unicase/test-u8-is-lowercase.c: Likewise.
35064         * tests/unicase/test-u8-is-titlecase.c: Likewise.
35065         * tests/unicase/test-u8-is-uppercase.c: Likewise.
35066         * tests/unicase/test-u8-tolower.c: Likewise.
35067         * tests/unicase/test-u8-totitle.c: Likewise.
35068         * tests/unicase/test-u8-toupper.c: Likewise.
35069         * tests/unicase/test-u16-casecmp.c: Likewise.
35070         * tests/unicase/test-u16-casecoll.c: Likewise.
35071         * tests/unicase/test-u16-casefold.c: Likewise.
35072         * tests/unicase/test-u16-is-cased.c: Likewise.
35073         * tests/unicase/test-u16-is-casefolded.c: Likewise.
35074         * tests/unicase/test-u16-is-lowercase.c: Likewise.
35075         * tests/unicase/test-u16-is-titlecase.c: Likewise.
35076         * tests/unicase/test-u16-is-uppercase.c: Likewise.
35077         * tests/unicase/test-u16-tolower.c: Likewise.
35078         * tests/unicase/test-u16-totitle.c: Likewise.
35079         * tests/unicase/test-u16-toupper.c: Likewise.
35080         * tests/unicase/test-u32-casecmp.c: Likewise.
35081         * tests/unicase/test-u32-casecoll.c: Likewise.
35082         * tests/unicase/test-u32-casefold.c: Likewise.
35083         * tests/unicase/test-u32-is-cased.c: Likewise.
35084         * tests/unicase/test-u32-is-casefolded.c: Likewise.
35085         * tests/unicase/test-u32-is-lowercase.c: Likewise.
35086         * tests/unicase/test-u32-is-titlecase.c: Likewise.
35087         * tests/unicase/test-u32-is-uppercase.c: Likewise.
35088         * tests/unicase/test-u32-tolower.c: Likewise.
35089         * tests/unicase/test-u32-totitle.c: Likewise.
35090         * tests/unicase/test-u32-toupper.c: Likewise.
35091         * tests/unicase/test-ulc-casecmp.c: Likewise.
35092         * tests/unicase/test-ulc-casecoll.c: Likewise.
35093         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
35094         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
35095         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
35096         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
35097         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
35098         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
35099         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
35100         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
35101         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
35102         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
35103         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
35104         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
35105         * tests/unictype/test-bidi_byname.c: Likewise.
35106         * tests/unictype/test-bidi_name.c: Likewise.
35107         * tests/unictype/test-bidi_of.c: Likewise.
35108         * tests/unictype/test-bidi_test.c: Likewise.
35109         * tests/unictype/test-block_list.c: Likewise.
35110         * tests/unictype/test-block_of.c: Likewise.
35111         * tests/unictype/test-block_test.c: Likewise.
35112         * tests/unictype/test-categ_and.c: Likewise.
35113         * tests/unictype/test-categ_and_not.c: Likewise.
35114         * tests/unictype/test-categ_byname.c: Likewise.
35115         * tests/unictype/test-categ_name.c: Likewise.
35116         * tests/unictype/test-categ_none.c: Likewise.
35117         * tests/unictype/test-categ_of.c: Likewise.
35118         * tests/unictype/test-categ_or.c: Likewise.
35119         * tests/unictype/test-categ_test_withtable.c: Likewise.
35120         * tests/unictype/test-combining.c: Likewise.
35121         * tests/unictype/test-decdigit.c: Likewise.
35122         * tests/unictype/test-digit.c: Likewise.
35123         * tests/unictype/test-mirror.c: Likewise.
35124         * tests/unictype/test-numeric.c: Likewise.
35125         * tests/unictype/test-pr_byname.c: Likewise.
35126         * tests/unictype/test-pr_test.c: Likewise.
35127         * tests/unictype/test-predicate-part1.h: Likewise.
35128         * tests/unictype/test-scripts.c: Likewise.
35129         * tests/unictype/test-sy_c_ident.c: Likewise.
35130         * tests/unictype/test-sy_java_ident.c: Likewise.
35131         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
35132         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
35133         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
35134         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
35135         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
35136         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
35137         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
35138         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
35139         * tests/uninorm/test-canonical-decomposition.c: Likewise.
35140         * tests/uninorm/test-compat-decomposition.c: Likewise.
35141         * tests/uninorm/test-composition.c: Likewise.
35142         * tests/uninorm/test-decomposing-form.c: Likewise.
35143         * tests/uninorm/test-decomposition.c: Likewise.
35144         * tests/uninorm/test-u8-nfc.c: Likewise.
35145         * tests/uninorm/test-u8-nfd.c: Likewise.
35146         * tests/uninorm/test-u8-nfkc.c: Likewise.
35147         * tests/uninorm/test-u8-nfkd.c: Likewise.
35148         * tests/uninorm/test-u8-normcmp.c: Likewise.
35149         * tests/uninorm/test-u8-normcoll.c: Likewise.
35150         * tests/uninorm/test-u16-nfc.c: Likewise.
35151         * tests/uninorm/test-u16-nfd.c: Likewise.
35152         * tests/uninorm/test-u16-nfkc.c: Likewise.
35153         * tests/uninorm/test-u16-nfkd.c: Likewise.
35154         * tests/uninorm/test-u16-normcmp.c: Likewise.
35155         * tests/uninorm/test-u16-normcoll.c: Likewise.
35156         * tests/uninorm/test-u32-nfc.c: Likewise.
35157         * tests/uninorm/test-u32-nfd.c: Likewise.
35158         * tests/uninorm/test-u32-nfkc.c: Likewise.
35159         * tests/uninorm/test-u32-nfkd.c: Likewise.
35160         * tests/uninorm/test-u32-normalize-big.c: Likewise.
35161         * tests/uninorm/test-u32-normcmp.c: Likewise.
35162         * tests/uninorm/test-u32-normcoll.c: Likewise.
35163         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
35164         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
35165         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
35166         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
35167         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
35168         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
35169         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
35170         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
35171         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
35172         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
35173         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
35174         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
35175         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
35176         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
35177         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
35178         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
35179         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
35180         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
35181         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
35182         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
35183         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
35184         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
35185         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
35186         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
35187         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
35188         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
35189         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
35190         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
35191         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
35192         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
35193         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
35194         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
35195         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
35196         * tests/uniwidth/test-u8-strwidth.c: Likewise.
35197         * tests/uniwidth/test-u8-width.c: Likewise.
35198         * tests/uniwidth/test-u16-strwidth.c: Likewise.
35199         * tests/uniwidth/test-u16-width.c: Likewise.
35200         * tests/uniwidth/test-u32-strwidth.c: Likewise.
35201         * tests/uniwidth/test-u32-width.c: Likewise.
35202         * tests/uniwidth/test-uc_width.c: Likewise.
35203         * tests/uniwidth/test-uc_width2.c: Likewise.
35204         * modules/acl-tests (Files): Add tests/macros.h.
35205         * modules/areadlink-tests (Files): Likewise.
35206         * modules/areadlink-with-size-tests (Files): Likewise.
35207         * modules/areadlinkat-tests (Files): Likewise.
35208         * modules/areadlinkat-with-size-tests (Files): Likewise.
35209         * modules/argmatch-tests (Files): Likewise.
35210         * modules/argv-iter-tests (Files): Likewise.
35211         * modules/array-list-tests (Files): Likewise.
35212         * modules/array-mergesort-tests (Files): Likewise.
35213         * modules/array-oset-tests (Files): Likewise.
35214         * modules/avltree-list-tests (Files): Likewise.
35215         * modules/avltree-oset-tests (Files): Likewise.
35216         * modules/avltreehash-list-tests (Files): Likewise.
35217         * modules/base64-tests (Files): Likewise.
35218         * modules/binary-io-tests (Files): Likewise.
35219         * modules/bitrotate-tests (Files): Likewise.
35220         * modules/btowc-tests (Files): Likewise.
35221         * modules/byteswap-tests (Files): Likewise.
35222         * modules/c-ctype-tests (Files): Likewise.
35223         * modules/c-stack-tests (Files): Likewise.
35224         * modules/c-strcase-tests (Files): Likewise.
35225         * modules/c-strcasestr-tests (Files): Likewise.
35226         * modules/c-strstr-tests (Files): Likewise.
35227         * modules/canonicalize-lgpl-tests (Files): Likewise.
35228         * modules/canonicalize-tests (Files): Likewise.
35229         * modules/carray-list-tests (Files): Likewise.
35230         * modules/ceilf-tests (Files): Likewise.
35231         * modules/ceill-tests (Files): Likewise.
35232         * modules/chown-tests (Files): Likewise.
35233         * modules/cloexec-tests (Files): Likewise.
35234         * modules/copy-file-tests (Files): Likewise.
35235         * modules/count-one-bits-tests (Files): Likewise.
35236         * modules/dprintf-posix-tests (Files): Likewise.
35237         * modules/dup2-tests (Files): Likewise.
35238         * modules/dup3-tests (Files): Likewise.
35239         * modules/duplocale-tests (Files): Likewise.
35240         * modules/fbufmode-tests (Files): Likewise.
35241         * modules/fchdir-tests (Files): Likewise.
35242         * modules/fcntl-safer-tests (Files): Likewise.
35243         * modules/fcntl-tests (Files): Likewise.
35244         * modules/fdopendir-tests (Files): Likewise.
35245         * modules/fdutimensat-tests (Files): Likewise.
35246         * modules/fflush-tests (Files): Likewise.
35247         * modules/filevercmp-tests (Files): Likewise.
35248         * modules/flock-tests (Files): Likewise.
35249         * modules/floorf-tests (Files): Likewise.
35250         * modules/floorl-tests (Files): Likewise.
35251         * modules/fnmatch-tests (Files): Likewise.
35252         * modules/fopen-safer-tests (Files): Likewise.
35253         * modules/fopen-tests (Files): Likewise.
35254         * modules/fpending-tests (Files): Likewise.
35255         * modules/fprintf-posix-tests (Files): Likewise.
35256         * modules/fpurge-tests (Files): Likewise.
35257         * modules/freadable-tests (Files): Likewise.
35258         * modules/freadahead-tests (Files): Likewise.
35259         * modules/freading-tests (Files): Likewise.
35260         * modules/freadptr-tests (Files): Likewise.
35261         * modules/freadseek-tests (Files): Likewise.
35262         * modules/freopen-tests (Files): Likewise.
35263         * modules/frexp-nolibm-tests (Files): Likewise.
35264         * modules/frexp-tests (Files): Likewise.
35265         * modules/frexpl-nolibm-tests (Files): Likewise.
35266         * modules/frexpl-tests (Files): Likewise.
35267         * modules/fseek-tests (Files): Likewise.
35268         * modules/fseeko-tests (Files): Likewise.
35269         * modules/fstrcmp-tests (Files): Likewise.
35270         * modules/fsync-tests (Files): Likewise.
35271         * modules/ftell-tests (Files): Likewise.
35272         * modules/ftello-tests (Files): Likewise.
35273         * modules/func-tests (Files): Likewise.
35274         * modules/futimens-tests (Files): Likewise.
35275         * modules/fwritable-tests (Files): Likewise.
35276         * modules/fwriting-tests (Files): Likewise.
35277         * modules/getcwd-tests (Files): Likewise.
35278         * modules/getdate-tests (Files): Likewise.
35279         * modules/getdelim-tests (Files): Likewise.
35280         * modules/getdtablesize-tests (Files): Likewise.
35281         * modules/getgroups-tests (Files): Likewise.
35282         * modules/getline-tests (Files): Likewise.
35283         * modules/getndelim2-tests (Files): Likewise.
35284         * modules/glob-tests (Files): Likewise.
35285         * modules/hash-tests (Files): Likewise.
35286         * modules/i-ring-tests (Files): Likewise.
35287         * modules/iconv-tests (Files): Likewise.
35288         * modules/iconv_open-utf-tests (Files): Likewise.
35289         * modules/idpriv-drop-tests (Files): Likewise.
35290         * modules/idpriv-droptemp-tests (Files): Likewise.
35291         * modules/inet_ntop-tests (Files): Likewise.
35292         * modules/inet_pton-tests (Files): Likewise.
35293         * modules/isblank-tests (Files): Likewise.
35294         * modules/isfinite-tests (Files): Likewise.
35295         * modules/isinf-tests (Files): Likewise.
35296         * modules/isnan-tests (Files): Likewise.
35297         * modules/isnand-nolibm-tests (Files): Likewise.
35298         * modules/isnand-tests (Files): Likewise.
35299         * modules/isnanf-nolibm-tests (Files): Likewise.
35300         * modules/isnanf-tests (Files): Likewise.
35301         * modules/isnanl-nolibm-tests (Files): Likewise.
35302         * modules/isnanl-tests (Files): Likewise.
35303         * modules/lchown-tests (Files): Likewise.
35304         * modules/ldexpl-tests (Files): Likewise.
35305         * modules/link-tests (Files): Likewise.
35306         * modules/linkat-tests (Files): Likewise.
35307         * modules/linked-list-tests (Files): Likewise.
35308         * modules/linkedhash-list-tests (Files): Likewise.
35309         * modules/localename-tests (Files): Likewise.
35310         * modules/lseek-tests (Files): Likewise.
35311         * modules/lstat-tests (Files): Likewise.
35312         * modules/mbmemcasecmp-tests (Files): Likewise.
35313         * modules/mbmemcasecoll-tests (Files): Likewise.
35314         * modules/mbrtowc-tests (Files): Likewise.
35315         * modules/mbscasecmp-tests (Files): Likewise.
35316         * modules/mbscasestr-tests (Files): Likewise.
35317         * modules/mbschr-tests (Files): Likewise.
35318         * modules/mbscspn-tests (Files): Likewise.
35319         * modules/mbsinit-tests (Files): Likewise.
35320         * modules/mbsncasecmp-tests (Files): Likewise.
35321         * modules/mbsnrtowcs-tests (Files): Likewise.
35322         * modules/mbspbrk-tests (Files): Likewise.
35323         * modules/mbspcasecmp-tests (Files): Likewise.
35324         * modules/mbsrchr-tests (Files): Likewise.
35325         * modules/mbsrtowcs-tests (Files): Likewise.
35326         * modules/mbsspn-tests (Files): Likewise.
35327         * modules/mbsstr-tests (Files): Likewise.
35328         * modules/memchr-tests (Files): Likewise.
35329         * modules/memchr2-tests (Files): Likewise.
35330         * modules/memcmp-tests (Files): Likewise.
35331         * modules/memmem-tests (Files): Likewise.
35332         * modules/memrchr-tests (Files): Likewise.
35333         * modules/mkdir-tests (Files): Likewise.
35334         * modules/mkfifo-tests (Files): Likewise.
35335         * modules/mkfifoat-tests (Files): Likewise.
35336         * modules/mknod-tests (Files): Likewise.
35337         * modules/nanosleep-tests (Files): Likewise.
35338         * modules/nl_langinfo-tests (Files): Likewise.
35339         * modules/obstack-printf-tests (Files): Likewise.
35340         * modules/open-tests (Files): Likewise.
35341         * modules/openat-tests (Files): Likewise.
35342         * modules/pipe-filter-gi-tests (Files): Likewise.
35343         * modules/pipe-filter-ii-tests (Files): Likewise.
35344         * modules/pipe2-tests (Files): Likewise.
35345         * modules/popen-safer-tests (Files): Likewise.
35346         * modules/popen-tests (Files): Likewise.
35347         * modules/posixtm-tests (Files): Likewise.
35348         * modules/pread-tests (Files): Likewise.
35349         * modules/printf-frexp-tests (Files): Likewise.
35350         * modules/printf-frexpl-tests (Files): Likewise.
35351         * modules/printf-posix-tests (Files): Likewise.
35352         * modules/priv-set-tests (Files): Likewise.
35353         * modules/quotearg-tests (Files): Likewise.
35354         * modules/random_r-tests (Files): Likewise.
35355         * modules/rawmemchr-tests (Files): Likewise.
35356         * modules/rbtree-list-tests (Files): Likewise.
35357         * modules/rbtree-oset-tests (Files): Likewise.
35358         * modules/rbtreehash-list-tests (Files): Likewise.
35359         * modules/readlink-tests (Files): Likewise.
35360         * modules/remove-tests (Files): Likewise.
35361         * modules/rename-tests (Files): Likewise.
35362         * modules/renameat-tests (Files): Likewise.
35363         * modules/rmdir-tests (Files): Likewise.
35364         * modules/round-tests (Files): Likewise.
35365         * modules/roundf-tests (Files): Likewise.
35366         * modules/roundl-tests (Files): Likewise.
35367         * modules/safe-alloc-tests (Files): Likewise.
35368         * modules/setenv-tests (Files): Likewise.
35369         * modules/sigaction-tests (Files): Likewise.
35370         * modules/signbit-tests (Files): Likewise.
35371         * modules/sleep-tests (Files): Likewise.
35372         * modules/snprintf-posix-tests (Files): Likewise.
35373         * modules/snprintf-tests (Files): Likewise.
35374         * modules/sprintf-posix-tests (Files): Likewise.
35375         * modules/stat-tests (Files): Likewise.
35376         * modules/stat-time-tests (Files): Likewise.
35377         * modules/strcasestr-tests (Files): Likewise.
35378         * modules/strchrnul-tests (Files): Likewise.
35379         * modules/strerror-tests (Files): Likewise.
35380         * modules/striconv-tests (Files): Likewise.
35381         * modules/striconveh-tests (Files): Likewise.
35382         * modules/striconveha-tests (Files): Likewise.
35383         * modules/strsignal-tests (Files): Likewise.
35384         * modules/strstr-tests (Files): Likewise.
35385         * modules/strtod-tests (Files): Likewise.
35386         * modules/strverscmp-tests (Files): Likewise.
35387         * modules/symlink-tests (Files): Likewise.
35388         * modules/symlinkat-tests (Files): Likewise.
35389         * modules/trunc-tests (Files): Likewise.
35390         * modules/truncf-tests (Files): Likewise.
35391         * modules/truncl-tests (Files): Likewise.
35392         * modules/uname-tests (Files): Likewise.
35393         * modules/unicase/cased-tests (Files): Likewise.
35394         * modules/unicase/ignorable-tests (Files): Likewise.
35395         * modules/unicase/locale-language-tests (Files): Likewise.
35396         * modules/unicase/tolower-tests (Files): Likewise.
35397         * modules/unicase/totitle-tests (Files): Likewise.
35398         * modules/unicase/toupper-tests (Files): Likewise.
35399         * modules/unicase/u8-casecmp-tests (Files): Likewise.
35400         * modules/unicase/u8-casecoll-tests (Files): Likewise.
35401         * modules/unicase/u8-casefold-tests (Files): Likewise.
35402         * modules/unicase/u8-is-cased-tests (Files): Likewise.
35403         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
35404         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
35405         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
35406         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
35407         * modules/unicase/u8-tolower-tests (Files): Likewise.
35408         * modules/unicase/u8-totitle-tests (Files): Likewise.
35409         * modules/unicase/u8-toupper-tests (Files): Likewise.
35410         * modules/unicase/u16-casecmp-tests (Files): Likewise.
35411         * modules/unicase/u16-casecoll-tests (Files): Likewise.
35412         * modules/unicase/u16-casefold-tests (Files): Likewise.
35413         * modules/unicase/u16-is-cased-tests (Files): Likewise.
35414         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
35415         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
35416         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
35417         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
35418         * modules/unicase/u16-tolower-tests (Files): Likewise.
35419         * modules/unicase/u16-totitle-tests (Files): Likewise.
35420         * modules/unicase/u16-toupper-tests (Files): Likewise.
35421         * modules/unicase/u32-casecmp-tests (Files): Likewise.
35422         * modules/unicase/u32-casecoll-tests (Files): Likewise.
35423         * modules/unicase/u32-casefold-tests (Files): Likewise.
35424         * modules/unicase/u32-is-cased-tests (Files): Likewise.
35425         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
35426         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
35427         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
35428         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
35429         * modules/unicase/u32-tolower-tests (Files): Likewise.
35430         * modules/unicase/u32-totitle-tests (Files): Likewise.
35431         * modules/unicase/u32-toupper-tests (Files): Likewise.
35432         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
35433         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
35434         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
35435         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
35436         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
35437         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
35438         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
35439         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
35440         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
35441         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
35442         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
35443         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
35444         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
35445         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
35446         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
35447         * modules/unictype/bidicategory-name-tests (Files): Likewise.
35448         * modules/unictype/bidicategory-of-tests (Files): Likewise.
35449         * modules/unictype/bidicategory-test-tests (Files): Likewise.
35450         * modules/unictype/block-list-tests (Files): Likewise.
35451         * modules/unictype/block-of-tests (Files): Likewise.
35452         * modules/unictype/block-test-tests (Files): Likewise.
35453         * modules/unictype/category-C-tests (Files): Likewise.
35454         * modules/unictype/category-Cc-tests (Files): Likewise.
35455         * modules/unictype/category-Cf-tests (Files): Likewise.
35456         * modules/unictype/category-Cn-tests (Files): Likewise.
35457         * modules/unictype/category-Co-tests (Files): Likewise.
35458         * modules/unictype/category-Cs-tests (Files): Likewise.
35459         * modules/unictype/category-L-tests (Files): Likewise.
35460         * modules/unictype/category-Ll-tests (Files): Likewise.
35461         * modules/unictype/category-Lm-tests (Files): Likewise.
35462         * modules/unictype/category-Lo-tests (Files): Likewise.
35463         * modules/unictype/category-Lt-tests (Files): Likewise.
35464         * modules/unictype/category-Lu-tests (Files): Likewise.
35465         * modules/unictype/category-M-tests (Files): Likewise.
35466         * modules/unictype/category-Mc-tests (Files): Likewise.
35467         * modules/unictype/category-Me-tests (Files): Likewise.
35468         * modules/unictype/category-Mn-tests (Files): Likewise.
35469         * modules/unictype/category-N-tests (Files): Likewise.
35470         * modules/unictype/category-Nd-tests (Files): Likewise.
35471         * modules/unictype/category-Nl-tests (Files): Likewise.
35472         * modules/unictype/category-No-tests (Files): Likewise.
35473         * modules/unictype/category-P-tests (Files): Likewise.
35474         * modules/unictype/category-Pc-tests (Files): Likewise.
35475         * modules/unictype/category-Pd-tests (Files): Likewise.
35476         * modules/unictype/category-Pe-tests (Files): Likewise.
35477         * modules/unictype/category-Pf-tests (Files): Likewise.
35478         * modules/unictype/category-Pi-tests (Files): Likewise.
35479         * modules/unictype/category-Po-tests (Files): Likewise.
35480         * modules/unictype/category-Ps-tests (Files): Likewise.
35481         * modules/unictype/category-S-tests (Files): Likewise.
35482         * modules/unictype/category-Sc-tests (Files): Likewise.
35483         * modules/unictype/category-Sk-tests (Files): Likewise.
35484         * modules/unictype/category-Sm-tests (Files): Likewise.
35485         * modules/unictype/category-So-tests (Files): Likewise.
35486         * modules/unictype/category-Z-tests (Files): Likewise.
35487         * modules/unictype/category-Zl-tests (Files): Likewise.
35488         * modules/unictype/category-Zp-tests (Files): Likewise.
35489         * modules/unictype/category-Zs-tests (Files): Likewise.
35490         * modules/unictype/category-and-not-tests (Files): Likewise.
35491         * modules/unictype/category-and-tests (Files): Likewise.
35492         * modules/unictype/category-byname-tests (Files): Likewise.
35493         * modules/unictype/category-name-tests (Files): Likewise.
35494         * modules/unictype/category-none-tests (Files): Likewise.
35495         * modules/unictype/category-of-tests (Files): Likewise.
35496         * modules/unictype/category-or-tests (Files): Likewise.
35497         * modules/unictype/category-test-withtable-tests (Files): Likewise.
35498         * modules/unictype/combining-class-tests (Files): Likewise.
35499         * modules/unictype/ctype-alnum-tests (Files): Likewise.
35500         * modules/unictype/ctype-alpha-tests (Files): Likewise.
35501         * modules/unictype/ctype-blank-tests (Files): Likewise.
35502         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
35503         * modules/unictype/ctype-digit-tests (Files): Likewise.
35504         * modules/unictype/ctype-graph-tests (Files): Likewise.
35505         * modules/unictype/ctype-lower-tests (Files): Likewise.
35506         * modules/unictype/ctype-print-tests (Files): Likewise.
35507         * modules/unictype/ctype-punct-tests (Files): Likewise.
35508         * modules/unictype/ctype-space-tests (Files): Likewise.
35509         * modules/unictype/ctype-upper-tests (Files): Likewise.
35510         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
35511         * modules/unictype/decimal-digit-tests (Files): Likewise.
35512         * modules/unictype/digit-tests (Files): Likewise.
35513         * modules/unictype/mirror-tests (Files): Likewise.
35514         * modules/unictype/numeric-tests (Files): Likewise.
35515         * modules/unictype/property-alphabetic-tests (Files): Likewise.
35516         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
35517         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
35518         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
35519         Likewise.
35520         * modules/unictype/property-bidi-block-separator-tests (Files):
35521         Likewise.
35522         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
35523         Likewise.
35524         * modules/unictype/property-bidi-common-separator-tests (Files):
35525         Likewise.
35526         * modules/unictype/property-bidi-control-tests (Files): Likewise.
35527         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
35528         Likewise.
35529         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
35530         Likewise.
35531         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
35532         Likewise.
35533         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
35534         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
35535         Likewise.
35536         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
35537         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
35538         Likewise.
35539         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
35540         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
35541         * modules/unictype/property-bidi-segment-separator-tests (Files):
35542         Likewise.
35543         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
35544         * modules/unictype/property-byname-tests (Files): Likewise.
35545         * modules/unictype/property-combining-tests (Files): Likewise.
35546         * modules/unictype/property-composite-tests (Files): Likewise.
35547         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
35548         * modules/unictype/property-dash-tests (Files): Likewise.
35549         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
35550         * modules/unictype/property-default-ignorable-code-point-tests (Files):
35551         Likewise.
35552         * modules/unictype/property-deprecated-tests (Files): Likewise.
35553         * modules/unictype/property-diacritic-tests (Files): Likewise.
35554         * modules/unictype/property-extender-tests (Files): Likewise.
35555         * modules/unictype/property-format-control-tests (Files): Likewise.
35556         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
35557         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
35558         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
35559         * modules/unictype/property-hex-digit-tests (Files): Likewise.
35560         * modules/unictype/property-hyphen-tests (Files): Likewise.
35561         * modules/unictype/property-id-continue-tests (Files): Likewise.
35562         * modules/unictype/property-id-start-tests (Files): Likewise.
35563         * modules/unictype/property-ideographic-tests (Files): Likewise.
35564         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
35565         * modules/unictype/property-ids-trinary-operator-tests (Files):
35566         Likewise.
35567         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
35568         * modules/unictype/property-iso-control-tests (Files): Likewise.
35569         * modules/unictype/property-join-control-tests (Files): Likewise.
35570         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
35571         * modules/unictype/property-line-separator-tests (Files): Likewise.
35572         * modules/unictype/property-logical-order-exception-tests (Files):
35573         Likewise.
35574         * modules/unictype/property-lowercase-tests (Files): Likewise.
35575         * modules/unictype/property-math-tests (Files): Likewise.
35576         * modules/unictype/property-non-break-tests (Files): Likewise.
35577         * modules/unictype/property-not-a-character-tests (Files): Likewise.
35578         * modules/unictype/property-numeric-tests (Files): Likewise.
35579         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
35580         * modules/unictype/property-other-default-ignorable-code-point-tests
35581         (Files): Likewise.
35582         * modules/unictype/property-other-grapheme-extend-tests (Files):
35583         Likewise.
35584         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
35585         * modules/unictype/property-other-id-start-tests (Files): Likewise.
35586         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
35587         * modules/unictype/property-other-math-tests (Files): Likewise.
35588         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
35589         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
35590         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
35591         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
35592         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
35593         * modules/unictype/property-private-use-tests (Files): Likewise.
35594         * modules/unictype/property-punctuation-tests (Files): Likewise.
35595         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
35596         * modules/unictype/property-radical-tests (Files): Likewise.
35597         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
35598         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
35599         * modules/unictype/property-space-tests (Files): Likewise.
35600         * modules/unictype/property-terminal-punctuation-tests (Files):
35601         Likewise.
35602         * modules/unictype/property-test-tests (Files): Likewise.
35603         * modules/unictype/property-titlecase-tests (Files): Likewise.
35604         * modules/unictype/property-unassigned-code-value-tests (Files):
35605         Likewise.
35606         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
35607         * modules/unictype/property-uppercase-tests (Files): Likewise.
35608         * modules/unictype/property-variation-selector-tests (Files): Likewise.
35609         * modules/unictype/property-white-space-tests (Files): Likewise.
35610         * modules/unictype/property-xid-continue-tests (Files): Likewise.
35611         * modules/unictype/property-xid-start-tests (Files): Likewise.
35612         * modules/unictype/property-zero-width-tests (Files): Likewise.
35613         * modules/unictype/scripts-tests (Files): Likewise.
35614         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
35615         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
35616         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
35617         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
35618         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
35619         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
35620         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
35621         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
35622         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
35623         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
35624         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
35625         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
35626         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
35627         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
35628         * modules/uninorm/composition-tests (Files): Likewise.
35629         * modules/uninorm/decomposing-form-tests (Files): Likewise.
35630         * modules/uninorm/decomposition-tests (Files): Likewise.
35631         * modules/uninorm/filter-tests (Files): Likewise.
35632         * modules/uninorm/nfc-tests (Files): Likewise.
35633         * modules/uninorm/nfd-tests (Files): Likewise.
35634         * modules/uninorm/nfkc-tests (Files): Likewise.
35635         * modules/uninorm/nfkd-tests (Files): Likewise.
35636         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
35637         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
35638         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
35639         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
35640         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
35641         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
35642         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
35643         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
35644         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
35645         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
35646         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
35647         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
35648         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
35649         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
35650         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
35651         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
35652         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
35653         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
35654         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
35655         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
35656         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
35657         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
35658         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
35659         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
35660         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
35661         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
35662         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
35663         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
35664         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
35665         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
35666         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
35667         * modules/uniwidth/u8-width-tests (Files): Likewise.
35668         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
35669         * modules/uniwidth/u16-width-tests (Files): Likewise.
35670         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
35671         * modules/uniwidth/u32-width-tests (Files): Likewise.
35672         * modules/uniwidth/width-tests (Files): Likewise.
35673         * modules/unlink-tests (Files): Likewise.
35674         * modules/unsetenv-tests (Files): Likewise.
35675         * modules/usleep-tests (Files): Likewise.
35676         * modules/utimens-tests (Files): Likewise.
35677         * modules/utimensat-tests (Files): Likewise.
35678         * modules/vasnprintf-posix-tests (Files): Likewise.
35679         * modules/vasnprintf-tests (Files): Likewise.
35680         * modules/vasprintf-posix-tests (Files): Likewise.
35681         * modules/vasprintf-tests (Files): Likewise.
35682         * modules/vdprintf-posix-tests (Files): Likewise.
35683         * modules/vfprintf-posix-tests (Files): Likewise.
35684         * modules/vprintf-posix-tests (Files): Likewise.
35685         * modules/vsnprintf-posix-tests (Files): Likewise.
35686         * modules/vsnprintf-tests (Files): Likewise.
35687         * modules/vsprintf-posix-tests (Files): Likewise.
35688         * modules/wcrtomb-tests (Files): Likewise.
35689         * modules/wcsnrtombs-tests (Files): Likewise.
35690         * modules/wcsrtombs-tests (Files): Likewise.
35691         * modules/wctype-tests (Files): Likewise.
35692         * modules/wcwidth-tests (Files): Likewise.
35693         * modules/xmemdup0-tests (Files): Likewise.
35694         * modules/xprintf-posix-tests (Files): Likewise.
35695         * modules/xvasprintf-tests (Files): Likewise.
35696
35697 2009-12-24  Eric Blake  <ebb9@byu.net>
35698
35699         test-nanosleep: fix typo
35700         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
35701         patch.
35702         Reported by Bruno Haible.
35703
35704 2009-12-24  Bruno Haible  <bruno@clisp.org>
35705
35706         Reduce namespace pollution on glibc systems.
35707         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
35708         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
35709         systems.
35710         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
35711         <getopt.h> on glibc systems.
35712         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
35713         systems.
35714         * lib/fcntl.c: Include <unistd.h> here instead.
35715
35716 2009-12-24  Bruno Haible  <bruno@clisp.org>
35717
35718         * lib/stdlib.in.h (includes): Fix typo in today's commit.
35719
35720 2009-12-24  Eric Blake  <ebb9@byu.net>
35721
35722         tests: add signature checks
35723         * tests/signature.h (SIGNATURE_CHECK): New file.
35724         * modules/atexit-tests (Files): Use it.
35725         * modules/btowc-tests (Files): Likewise.
35726         * modules/canonicalize-lgpl-tests (Files): Likewise.
35727         * modules/ceilf-tests (Files): Likewise.
35728         * modules/ceill-tests (Files): Likewise.
35729         * modules/chown-tests (Files): Likewise.
35730         * modules/dprintf-posix-tests (Files): Likewise.
35731         * modules/dup2-tests (Files): Likewise.
35732         * modules/dup3-tests (Files): Likewise.
35733         * modules/duplocale-tests (Files): Likewise.
35734         * modules/fchdir-tests (Files): Likewise.
35735         * modules/fcntl-tests (Files): Likewise.
35736         * modules/fdopendir-tests (Files): Likewise.
35737         * modules/fflush-tests (Files): Likewise.
35738         * modules/flock-tests (Files): Likewise.
35739         * modules/floorf-tests (Files): Likewise.
35740         * modules/floorl-tests (Files): Likewise.
35741         * modules/fnmatch-tests (Files): Likewise.
35742         * modules/fopen-tests (Files): Likewise.
35743         * modules/fprintf-posix-tests (Files): Likewise.
35744         * modules/freopen-tests (Files): Likewise.
35745         * modules/frexp-nolibm-tests (Files): Likewise.
35746         * modules/frexp-tests (Files): Likewise.
35747         * modules/frexpl-nolibm-tests (Files): Likewise.
35748         * modules/frexpl-tests (Files): Likewise.
35749         * modules/fseek-tests (Files): Likewise.
35750         * modules/fseeko-tests (Files): Likewise.
35751         * modules/fsync-tests (Files): Likewise.
35752         * modules/ftell-tests (Files): Likewise.
35753         * modules/ftello-tests (Files): Likewise.
35754         * modules/futimens-tests (Files): Likewise.
35755         * modules/getaddrinfo-tests (Files): Likewise.
35756         * modules/getcwd-tests (Files): Likewise.
35757         * modules/getdelim-tests (Files): Likewise.
35758         * modules/getdtablesize-tests (Files): Likewise.
35759         * modules/getgroups-tests (Files): Likewise.
35760         * modules/gethostname-tests (Files): Likewise.
35761         * modules/getline-tests (Files): Likewise.
35762         * modules/getopt-posix-tests (Files): Likewise.
35763         * modules/gettimeofday-tests (Files): Likewise.
35764         * modules/glob-tests (Files): Likewise.
35765         * modules/iconv-tests (Files): Likewise.
35766         * modules/inet_ntop-tests (Files): Likewise.
35767         * modules/inet_pton-tests (Files): Likewise.
35768         * modules/isblank-tests (Files): Likewise.
35769         * modules/lchown-tests (Files): Likewise.
35770         * modules/ldexpl-tests (Files): Likewise.
35771         * modules/link-tests (Files): Likewise.
35772         * modules/linkat-tests (Files): Likewise.
35773         * modules/lseek-tests (Files): Likewise.
35774         * modules/lstat-tests (Files): Likewise.
35775         * modules/mbrtowc-tests (Files): Likewise.
35776         * modules/mbsinit-tests (Files): Likewise.
35777         * modules/mbsnrtowcs-tests (Files): Likewise.
35778         * modules/mbsrtowcs-tests (Files): Likewise.
35779         * modules/memchr-tests (Files): Likewise.
35780         * modules/memcmp-tests (Files): Likewise.
35781         * modules/memmem-tests (Files): Likewise.
35782         * modules/memrchr-tests (Files): Likewise.
35783         * modules/mkdir-tests (Files): Likewise.
35784         * modules/mkfifo-tests (Files): Likewise.
35785         * modules/mkfifoat-tests (Files): Likewise.
35786         * modules/mknod-tests (Files): Likewise.
35787         * modules/nanosleep-tests (Files): Likewise.
35788         * modules/nl_langinfo-tests (Files): Likewise.
35789         * modules/obstack-printf-tests (Files): Likewise.
35790         * modules/open-tests (Files): Likewise.
35791         * modules/openat-tests (Files): Likewise.
35792         * modules/perror-tests (Files): Likewise.
35793         * modules/pipe2-tests (Files): Likewise.
35794         * modules/poll-tests (Files): Likewise.
35795         * modules/popen-tests (Files): Likewise.
35796         * modules/posix_spawn-tests (Files): Likewise.
35797         * modules/posix_spawnp-tests (Files): Likewise.
35798         * modules/pread-tests (Files): Likewise.
35799         * modules/printf-posix-tests (Files): Likewise.
35800         * modules/pty-tests (Files): Likewise.
35801         * modules/random_r-tests (Files): Likewise.
35802         * modules/rawmemchr-tests (Files): Likewise.
35803         * modules/readlink-tests (Files): Likewise.
35804         * modules/remove-tests (Files): Likewise.
35805         * modules/rename-tests (Files): Likewise.
35806         * modules/renameat-tests (Files): Likewise.
35807         * modules/rmdir-tests (Files): Likewise.
35808         * modules/round-tests (Files): Likewise.
35809         * modules/roundf-tests (Files): Likewise.
35810         * modules/roundl-tests (Files): Likewise.
35811         * modules/select-tests (Files): Likewise.
35812         * modules/setenv-tests (Files): Likewise.
35813         * modules/sigaction-tests (Files): Likewise.
35814         * modules/sleep-tests (Files): Likewise.
35815         * modules/snprintf-posix-tests (Files): Likewise.
35816         * modules/snprintf-tests (Files): Likewise.
35817         * modules/sprintf-posix-tests (Files): Likewise.
35818         * modules/stat-tests (Files): Likewise.
35819         * modules/strcasestr-tests (Files): Likewise.
35820         * modules/strchrnul-tests (Files): Likewise.
35821         * modules/strerror-tests (Files): Likewise.
35822         * modules/strsignal-tests (Files): Likewise.
35823         * modules/strstr-tests (Files): Likewise.
35824         * modules/strtod-tests (Files): Likewise.
35825         * modules/strverscmp-tests (Files): Likewise.
35826         * modules/symlink-tests (Files): Likewise.
35827         * modules/symlinkat-tests (Files): Likewise.
35828         * modules/times-tests (Files): Likewise.
35829         * modules/trunc-tests (Files): Likewise.
35830         * modules/truncf-tests (Files): Likewise.
35831         * modules/truncl-tests (Files): Likewise.
35832         * modules/tsearch-tests (Files): Likewise.
35833         * modules/uname-tests (Files): Likewise.
35834         * modules/unlink-tests (Files): Likewise.
35835         * modules/unsetenv-tests (Files): Likewise.
35836         * modules/usleep-tests (Files): Likewise.
35837         * modules/utimensat-tests (Files): Likewise.
35838         * modules/vasprintf-tests (Files): Likewise.
35839         * modules/vdprintf-posix-tests (Files): Likewise.
35840         * modules/vfprintf-posix-tests (Files): Likewise.
35841         * modules/vprintf-posix-tests (Files): Likewise.
35842         * modules/vsnprintf-posix-tests (Files): Likewise.
35843         * modules/vsnprintf-tests (Files): Likewise.
35844         * modules/vsprintf-posix-tests (Files): Likewise.
35845         * modules/wcrtomb-tests (Files): Likewise.
35846         * modules/wcsnrtombs-tests (Files): Likewise.
35847         * modules/wcsrtombs-tests (Files): Likewise.
35848         * modules/wcwidth-tests (Files): Likewise.
35849         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
35850         * tests/test-isinf.c (isinf): Likewise.
35851         * tests/test-isnan.c (isnan): Likewise.
35852         * tests/test-signbit.c (signbit): Likewise.
35853         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
35854         declaration, either as macro or with correct signature.
35855         (select): Ensure function under test is declared with correct
35856         signature in correct header.
35857         * tests/test-atexit.c (atexit): Likewise.
35858         * tests/test-btowc.c (btowc): Likewise.
35859         * tests/test-canonicalize-lgpl.c (realpath)
35860         (canonicalize_file_name): Likewise.
35861         * tests/test-ceilf1.c (ceilf): Likewise.
35862         * tests/test-ceill.c (ceill): Likewise.
35863         * tests/test-chown.c (chown): Likewise.
35864         * tests/test-dprintf-posix.c (dprintf): Likewise.
35865         * tests/test-dup2.c (dup2): Likewise.
35866         * tests/test-dup3.c (dup3): Likewise.
35867         * tests/test-duplocale.c (duplocale): Likewise.
35868         * tests/test-fchdir.c (fchdir): Likewise.
35869         * tests/test-fchownat.c (fchownat): Likewise.
35870         * tests/test-fcntl.c (fcntl): Likewise.
35871         * tests/test-fdopendir.c (fdopendir): Likewise.
35872         * tests/test-fflush.c (fflush): Likewise.
35873         * tests/test-flock.c (flock): Likewise.
35874         * tests/test-floorf1.c (floorf): Likewise.
35875         * tests/test-floorl.c (floorl): Likewise.
35876         * tests/test-fnmatch.c (fnmatch): Likewise.
35877         * tests/test-fopen.c (fopen): Likewise.
35878         * tests/test-fprintf-posix.c (fprintf): Likewise.
35879         * tests/test-freopen.c (freopen): Likewise.
35880         * tests/test-frexp.c (frexp): Likewise.
35881         * tests/test-frexpl.c (frexpl): Likewise.
35882         * tests/test-fseek.c (fseek): Likewise.
35883         * tests/test-fseeko.c (fseeko): Likewise.
35884         * tests/test-fstatat.c (fstatat): Likewise.
35885         * tests/test-fsync.c (fsync): Likewise.
35886         * tests/test-ftell.c (ftell): Likewise.
35887         * tests/test-ftello.c (ftello): Likewise.
35888         * tests/test-futimens.c (futimens): Likewise.
35889         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
35890         (gai_strerror): Likewise.
35891         * tests/test-getcwd.c (getcwd): Likewise.
35892         * tests/test-getdelim.c (getdelim): Likewise.
35893         * tests/test-getdtablesize.c (getdtablesize): Likewise.
35894         * tests/test-getgroups.c (getgroups): Likewise.
35895         * tests/test-gethostname.c (gethostname): Likewise.
35896         * tests/test-getline.c (getline): Likewise.
35897         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
35898         Likewise.
35899         * tests/test-gettimeofday.c (gettimeofday): Likewise.
35900         * tests/test-glob.c (glob, globfree): Likewise.
35901         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
35902         * tests/test-inet_ntop.c (inet_ntop): Likewise.
35903         * tests/test-inet_pton.c (inet_pton): Likewise.
35904         * tests/test-isblank.c (isblank): Likewise.
35905         * tests/test-lchown.c (lchown): Likewise.
35906         * tests/test-ldexpl.c (ldexpl): Likewise.
35907         * tests/test-link.c (link): Likewise.
35908         * tests/test-linkat.c (linkat): Likewise.
35909         * tests/test-lseek.c (lseek): Likewise.
35910         * tests/test-lstat.c (lstat): Likewise.
35911         * tests/test-mbrtowc.c (mbrtowc): Likewise.
35912         * tests/test-mbsinit.c (mbsinit): Likewise.
35913         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
35914         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
35915         * tests/test-memchr.c (memchr): Likewise.
35916         * tests/test-memcmp.c (memcmp): Likewise.
35917         * tests/test-memmem.c (memmem): Likewise.
35918         * tests/test-memrchr.c (memrchr): Likewise.
35919         * tests/test-mkdir.c (mkdir): Likewise.
35920         * tests/test-mkdirat.c (mkdirat): Likewise.
35921         * tests/test-mkfifo.c (mkfifo): Likewise.
35922         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
35923         * tests/test-mknod.c (mknod): Likewise.
35924         * tests/test-nanosleep.c (nanosleep): Likewise.
35925         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
35926         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
35927         Likewise.
35928         * tests/test-open.c (open): Likewise.
35929         * tests/test-openat.c (openat): Likewise.
35930         * tests/test-perror.c (perror): Likewise.
35931         * tests/test-pipe2.c (pipe2): Likewise.
35932         * tests/test-poll.c (poll): Likewise.
35933         * tests/test-popen.c (popen, pclose): Likewise.
35934         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
35935         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
35936         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
35937         (posix_spawn_file_actions_destroy)
35938         (posix_spawn_file_actions_addclose)
35939         (posix_spawn_file_actions_addopen)
35940         (posix_spawn_file_actions_adddup2): Likewise.
35941         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
35942         * tests/test-pread.c (pread): Likewise.
35943         * tests/test-printf-posix.c (printf): Likewise.
35944         * tests/test-pty.c (openpty, forkpty): Likewise.
35945         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
35946         (random_r): Likewise.
35947         * tests/test-rawmemchr.c (rawmemchr): Likewise.
35948         * tests/test-readlink.c (readlink): Likewise.
35949         * tests/test-remove.c (remove): Likewise.
35950         * tests/test-rename.c (rename): Likewise.
35951         * tests/test-renameat.c (renameat): Likewise.
35952         * tests/test-rmdir.c (rmdir): Likewise.
35953         * tests/test-round1.c (round): Likewise.
35954         * tests/test-roundf1.c (roundf): Likewise.
35955         * tests/test-roundl.c (roundl): Likewise.
35956         * tests/test-setenv.c (setenv): Likewise.
35957         * tests/test-sigaction.c (sigaction): Likewise.
35958         * tests/test-sleep.c (sleep): Likewise.
35959         * tests/test-snprintf.c (snprintf): Likewise.
35960         * tests/test-sprintf-posix.c (sprintf): Likewise.
35961         * tests/test-stat.c (stat): Likewise.
35962         * tests/test-stpncpy.c (stpncpy): Likewise.
35963         * tests/test-strcasestr.c (strcasestr): Likewise.
35964         * tests/test-strchrnul.c (strchrnul): Likewise.
35965         * tests/test-strerror.c (strerror): Likewise.
35966         * tests/test-strsignal.c (strsignal): Likewise.
35967         * tests/test-strstr.c (strstr): Likewise.
35968         * tests/test-strtod.c (strtod): Likewise.
35969         * tests/test-strverscmp.c (strverscmp): Likewise.
35970         * tests/test-symlink.c (symlink): Likewise.
35971         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
35972         * tests/test-times.c (times): Likewise.
35973         * tests/test-trunc1.c (trunc): Likewise.
35974         * tests/test-truncf1.c (truncf): Likewise.
35975         * tests/test-truncl.c (truncl): Likewise.
35976         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
35977         Likewise.
35978         * tests/test-uname.c (uname): Likewise.
35979         * tests/test-unlink.c (unlink): Likewise.
35980         * tests/test-unlinkat.c (unlinkat): Likewise.
35981         * tests/test-unsetenv.c (unsetenv): Likewise.
35982         * tests/test-usleep.c (usleep): Likewise.
35983         * tests/test-utimensat.c (utimensat): Likewise.
35984         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
35985         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
35986         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
35987         * tests/test-vprintf-posix.c (vprintf): Likewise.
35988         * tests/test-vsnprintf.c (vsnprintf): Likewise.
35989         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
35990         * tests/test-wcrtomb.c (wcrtomb): Likewise.
35991         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
35992         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
35993         * tests/test-wcwidth.c (wcwidth): Likewise.
35994
35995         build: pull in conditional headers during GNULIB_POSIXCHECK
35996         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
35997         definitions from any conditionally-included headers.
35998         * lib/stdlib.in.h (includes): Likewise.
35999         * lib/unistd.in.h (includes): Likewise.
36000
36001 2009-12-24  Bruno Haible  <bruno@clisp.org>
36002
36003         * tests/test-argv-iter.c: Include header file being tested immediately
36004         after config.h.
36005         * tests/test-base64.c: Likewise.
36006         * tests/test-flock.c: Likewise.
36007         * tests/test-fsync.c: Likewise.
36008         * tests/test-getdate.c: Likewise.
36009         * tests/test-getndelim2.c: Likewise.
36010         * tests/test-isfinite.c: Likewise.
36011         * tests/test-isinf.c: Likewise.
36012         * tests/test-strerror.c: Likewise.
36013         * tests/test-strsignal.c: Likewise.
36014
36015 2009-12-23  Eric Blake  <ebb9@byu.net>
36016
36017         unistd: work around cygwin bug
36018         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
36019         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
36020         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36021
36022 2009-12-23  Bruno Haible  <bruno@clisp.org>
36023
36024         localename: More tests.
36025         * tests/test-localename.c (SIZEOF): New macro.
36026         (categories): New variable.
36027         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
36028         test_locale_name_default): Add test w.r.t. thread locale.
36029         (test_locale_name_thread): New function.
36030         (main): Invoke it.
36031
36032         localename: Make aware of thread locale.
36033         * lib/localename.h (gl_locale_name_thread): New declaration.
36034         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
36035         behaviour with respect to thread locale.
36036         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
36037         <langinfo.h>, glthread/lock.h.
36038         (SIZE_BITS): New macro.
36039         (string_hash): New function.
36040         (struct hash_node): New type.
36041         (HASH_TABLE_SIZE): New macro.
36042         (struniq_hash_table, struniq_lock): New variables.
36043         (struniq): New function.
36044         (gl_locale_name_thread): New function.
36045         (gl_locale_name): Invoke it.
36046         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
36047         * modules/localename (Depends-on): Add lock.
36048         Reported by Mike Gran <spk121@yahoo.com>.
36049
36050 2009-12-23  Eric Blake  <ebb9@byu.net>
36051
36052         va-args: new module
36053         * modules/va-args: New file.
36054         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
36055         * MODULES.html.sh (Core language properties): Mention it.
36056
36057         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
36058         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
36059         named alias for __attribute__((__unused__)).
36060         * lib/chown.c: Update client.
36061         * lib/fchmodat.c: Likewise.
36062         * lib/fts.c: Likewise.
36063         * lib/getdate.y: Likewise.
36064         * lib/getgroups.c: Likewise.
36065         * lib/getopt.c: Likewise.
36066         * lib/getugroups.c: Likewise.
36067         * lib/mkdir.c: Likewise.
36068         * lib/mkfifo.c: Likewise.
36069         * lib/mkfifoat.c: Likewise.
36070         * lib/mknod.c: Likewise.
36071         * lib/mknodat.c: Likewise.
36072         * lib/readlink.c: Likewise.
36073         * lib/se-context.in.h: Likewise.
36074         * lib/se-selinux.in.h: Likewise.
36075         * lib/sockets.c: Likewise.
36076         * lib/symlink.c: Likewise.
36077         * lib/symlinkat.c: Likewise.
36078         * lib/unicodeio.c: Likewise.
36079         * lib/unistr.h: Likewise.
36080         * tests/test-areadlink.c: Likewise.
36081         * tests/test-areadlinkat.c: Likewise.
36082         * tests/test-filenamecat.c: Likewise.
36083         * tests/test-fseeko.c: Likewise.
36084         * tests/test-ftello.c: Likewise.
36085         * tests/test-getdate.c: Likewise.
36086         * tests/test-getgroups.c: Likewise.
36087         * tests/test-gethostname.c: Likewise.
36088         * tests/test-quotearg.c: Likewise.
36089         * tests/test-version-etc.c: Likewise.
36090         * tests/test-xalloc-die.c: Likewise.
36091         * tests/test-xfprintf-posix.c: Likewise.
36092         * tests/test-xprintf-posix.c: Likewise.
36093         * tests/test-xvasprintf.c: Likewise.
36094
36095         tests: avoid compiler warnings
36096         * tests/test-fcntl.c (main): Delete unused parameters.
36097         * tests/test-freopen-safer.c (main): Likewise.
36098         * tests/test-xalloc-die.c (main): Mark unused parameters.
36099         * tests/test-fseeko.c (main): Likewise.
36100         * tests/test-ftello.c (main): Likewise.
36101         * tests/test-nanosleep.c (main): Avoid declaration warning.
36102         * tests/test-sleep.c (main): Likewise.
36103         * tests/test-unsetenv.c (main): Silence warning about string
36104         literal.
36105         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
36106
36107 2009-12-23  Bruno Haible  <bruno@clisp.org>
36108
36109         * tests/test-localename.c (test_locale_name): New function, extracted
36110         from main. Also test mixed situations.
36111         (test_locale_name_posix, test_locale_name_environ,
36112         test_locale_name_default): New functions.
36113         (main): Invoke them all.
36114         * modules/localename-tests (configure.ac): Test for newlocale.
36115
36116 2009-12-23  Bruno Haible  <bruno@clisp.org>
36117
36118         unistd: Ensure getcwd gets declared before being overridden.
36119         * lib/unistd.in.h: Conditionally include <io.h>.
36120
36121 2009-12-22  Bruno Haible  <bruno@clisp.org>
36122
36123         wchar: Diagnose broken combination of glibc and gcc versions and flags.
36124         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
36125         (gl_WCHAR_H): Invoke it.
36126         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
36127         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
36128         Reported by Karl Berry <karl@freefriends.org>.
36129
36130 2009-12-22  Eric Blake  <ebb9@byu.net>
36131
36132         math, unistd: avoid redundant includes
36133         * lib/math.in.h (isnan): No need to re-include <math.h>.
36134         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
36135
36136         getsubopt: work around cygwin bug
36137         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
36138         avoid conflicting with system getsubopt.
36139         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
36140         bug.
36141
36142         getopt: synchronize from glibc
36143         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
36144         parameter order.  Adjust all callers.
36145         (_getopt_internal_r, main): Adjust quoting in error messages.
36146         Drop considerations for outdated POSIX 1003.2 error message.
36147         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
36148         callers.
36149         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
36150
36151         test-getopt: test stderr behavior
36152         * modules/getopt-posix-tests (Depends-on): Add dup2.
36153         * tests/test-getopt.c (ASSERT): Avoid stderr.
36154         (main): Move stderr to a temporary file.
36155         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
36156         Instead, add parameter to inform caller if output occurred.
36157         (test_getopt): Adjust all existing tests to expect silence, and
36158         add new tests of leading ":".
36159         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36160         glibc shortcomings with leading "-:" or "+:" in optstring.
36161         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36162         Likewise.
36163         * doc/posix-functions/getopt.texi (getopt): Likewise.
36164
36165         test-getopt: enhance test
36166         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
36167         supports optind=0.
36168         * tests/test-getopt.c (OPTIND_MIN): Move...
36169         * tests/test-getopt.h (OPTIND_MIN): ...here.
36170         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
36171         Require that optind=0 works, since modern BSD supports it in
36172         addition to optreset, and since coreutils expects it.
36173         (test_getopt_long_only): New test.
36174         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36175         glibc shortcomings with 'W;', and enforcement of optind=0.
36176         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36177         Likewise.
36178
36179 2009-12-21  Bruno Haible  <bruno@clisp.org>
36180
36181         localename: Improvements for MacOS X and Cygwin.
36182         * lib/localename.h (gl_locale_name_environ): New declaration.
36183         * lib/localename.c (gl_locale_name_environ): New function, extracted from
36184         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
36185         (gl_locale_name_posix): Invoke it.
36186         (gl_locale_name_default): Add comments. Use Windows native API also on
36187         Cygwin.
36188
36189 2009-12-21  Bruno Haible  <bruno@clisp.org>
36190
36191         Update list of Win32 locale ids.
36192         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
36193         (LANG_SAMI): Renamed from LANG_SAAMI.
36194         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
36195         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
36196         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
36197         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
36198         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
36199         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
36200         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
36201         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
36202         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
36203         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
36204         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
36205         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
36206         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
36207         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
36208         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
36209         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
36210         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
36211         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
36212         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
36213         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
36214         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
36215         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
36216         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
36217         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
36218         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
36219         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
36220         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
36221         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
36222         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
36223         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
36224         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
36225         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
36226         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
36227         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
36228         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
36229         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
36230         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
36231         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
36232         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
36233         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
36234         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
36235         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
36236         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
36237         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
36238         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
36239         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
36240         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
36241         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
36242         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
36243         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
36244         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
36245         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
36246         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
36247         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
36248         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
36249         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
36250         Add more languages and countries for Sami, Sorbian. Add more countries
36251         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
36252         for Pashto. Change country for Syriac, Tswana.
36253
36254 2009-12-21  Eric Blake  <ebb9@byu.net>
36255
36256         test-utimens: avoid spurious failure
36257         * tests/test-chown.h (nap): Factor...
36258         * tests/nap.h: ...into new file.
36259         * tests/test-lchown.h (nap): Avoid duplication.
36260         * tests/test-utimens-common.h (nap): Use shared implementation,
36261         necessary on file systems with 1-second resolution.
36262         * modules/chown-tests (Files): Include new file.
36263         * modules/fdutimensat-tests (Files): Likewise.
36264         * modules/futimens-tests (Files): Likewise.
36265         * modules/lchown-tests (Files): Likewise.
36266         * modules/openat-tests (Files): Likewise.
36267         * modules/utimens-tests (Files): Likewise.
36268         * modules/utimensat-tests (Files): Likewise.
36269
36270 2009-12-19  Eric Blake  <ebb9@byu.net>
36271
36272         futimens, utimensat: work around Linux bug
36273         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
36274         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36275         * lib/utimensat.c (rpl_utimensat): Work around it.
36276         * lib/futimens.c (rpl_futimens): Adjust comment.
36277
36278         utimens: work around Linux ctime bug
36279         * lib/utimens.c (detect_ctime_bug): New helper function.
36280         (update_timespec): Differentiate between workaround needed for
36281         this bug vs. what is needed for systems that lack utimensat.
36282         (fdutimens, lutimens): Work around bug.
36283
36284         utimens: check for ctime update
36285         * tests/test-utimens-common.h (check_ctime): Define.
36286         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
36287         * tests/test-futimens.h (test_futimens): Likewise.
36288         * tests/test-lutimens.h (test_lutimens): Likewise.
36289         * doc/posix-functions/futimens.texi (futimens): Document the bug.
36290         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36291
36292 2009-12-19  Bruno Haible  <bruno@clisp.org>
36293
36294         dprintf-posix: Check against memory leak fixed on 2009-12-15.
36295         * tests/test-dprintf-posix2.sh: New file.
36296         * tests/test-dprintf-posix2.c: New file.
36297         * modules/dprintf-posix-tests (Files): Add them.
36298         (configure.ac): Check for getrlimit and setrlimit.
36299         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36300
36301 2009-12-19  Bruno Haible  <bruno@clisp.org>
36302
36303         fprintf-posix: Check against memory leak fixed on 2009-12-15.
36304         * tests/test-fprintf-posix3.sh: New file.
36305         * tests/test-fprintf-posix3.c: New file.
36306         * modules/fprintf-posix-tests (Files): Add them.
36307         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36308
36309 2009-12-19  Eric Blake  <ebb9@byu.net>
36310
36311         dirfd: fix prototype
36312         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
36313         * lib/dirfd.c (dirfd): Likewise.
36314
36315         canonicalize: reduce memory usage
36316         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
36317         allocation to size.
36318         Reported by Solar Designer <solar@openwall.com>.
36319
36320 2009-12-19  Bruno Haible  <bruno@clisp.org>
36321
36322         New module attribute 'Applicability'.
36323         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
36324         * gnulib-tool: New option --extract-applicability.
36325         (func_usage): Document it.
36326         (sed_extract_prog): Recognize it.
36327         (func_get_applicability): New function.
36328         (func_import): Generalize handling of 'link-warning' module.
36329         * modules/link-warning (Applicability): New section.
36330         * modules/arg-nonnull (Applicability): New section.
36331         Repoted by Simon Josefsson <simon@josefsson.org>.
36332
36333 2009-12-19  Bruno Haible  <bruno@clisp.org>
36334
36335         fflush: tweak
36336         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
36337         * lib/fseeko.c (rpl_fseeko): Likewise.
36338
36339 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
36340
36341         * lib/gl_list.h: Fix typo in comment.
36342
36343 2009-12-16  Eric Blake  <ebb9@byu.net>
36344
36345         fcntl: use to simplify other modules
36346         * modules/cloexec (Depends-on): Add fcntl.
36347         * modules/fchdir (Depends-on): Likewise.
36348         * modules/fd-safer-flag (Depends-on): Likewise.
36349         * modules/unistd-safer (Depends-on): Likewise.
36350         * modules/dup3 (configure.ac): Set module indicator.
36351         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
36352         missing.
36353         * lib/fchdir.c (_gl_register_dup): Fix comment.
36354         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
36355         * lib/dup-safer.c (dup_safer): Likewise.
36356         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
36357         * lib/dup3.c (dup3): Likewise.
36358         * tests/test-fchdir.c (main): Enhance test.
36359         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
36360
36361         fcntl: port portions of fcntl to mingw
36362         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
36363         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
36364         replacement for mingw.
36365         * modules/fcntl (Description): Update.
36366         (Depends-on): Add dup2.
36367         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
36368         * modules/fcntl-h (Makefile.am): Substitute it.
36369         * lib/fcntl.in.h (fcntl): Update declaration.
36370         (F_DUPFD, F_GETFD): New macros, when needed.
36371         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36372         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
36373         * tests/test-fcntl.c (check_flags, main): Enhance test for items
36374         we now guarantee.
36375
36376         fcntl: work around cygwin bug in F_DUPFD
36377         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
36378         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
36379         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
36380         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
36381         * doc/posix-functions/fcntl.texi (fcntl): Document it.
36382
36383         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
36384         * modules/fcntl (Files): List new files.
36385         (configure.ac): Run a test.
36386         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
36387         * lib/fcntl.c (rpl_fcntl): Likewise.
36388         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
36389         (gl_FCNTL_H): Always replace fcntl.h.
36390         * modules/fcntl-h (Makefile.am): Substitute witnesses.
36391         * lib/fcntl.in.h (fcntl): Declare replacement.
36392         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
36393         needed, plus a witness.
36394         * doc/posix-functions/fcntl.texi (fcntl): Document this.
36395         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36396         * tests/test-fcntl.c: New file.
36397         * modules/fcntl-tests: Likewise.
36398
36399         binary-io: avoid potential compilation warning
36400         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
36401         directives.
36402
36403         fflush: avoid compilation error on NetBSD
36404         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
36405         between off_t and fpos_t, since the latter is sometimes a struct.
36406         * lib/fseeko.c (rpl_fseeko): Likewise.
36407         Reported by Alexander Nasonov <alnsn@yandex.ru>.
36408
36409 2009-12-15  Eric Blake  <ebb9@byu.net>
36410
36411         fcntl-h, stdio, sys_ioctl: fix declarations
36412         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
36413         function must not take arguments.
36414         * lib/sys_ioctl.in.h (ioctl): Likewise.
36415         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
36416         (open): Add a link warning.
36417
36418 2009-12-15  Jim Meyering  <meyering@redhat.com>
36419
36420         areadlink, areadlink-with-size: relax license to LGPLv2+
36421         * modules/areadlink (License): Relax to LGPLv2+.
36422         * modules/areadlink-with-size (License): Likewise.
36423
36424 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
36425             Bruno Haible  <bruno@clisp.org>
36426
36427         *printf: Fix memory leak.
36428         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
36429         * lib/vfprintf.c (vfprintf): Likewise.
36430         * lib/dprintf.c (dprintf): Likewise.
36431         * lib/vdprintf.c (vdprintf): Likewise.
36432
36433 2009-12-14  Eric Blake  <ebb9@byu.net>
36434
36435         accept4: adjust module dependencies
36436         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
36437
36438         utimens: one more try at avoiding compiler warning
36439         * lib/utimens.c (lutimens): Lower scope of result.
36440
36441 2009-12-13  Bruno Haible  <bruno@clisp.org>
36442
36443         Move the malloc checking from module 'list' to new module 'xlist'.
36444         * modules/xlist: New file.
36445         * lib/gl_xlist.h: New file.
36446         * lib/gl_xlist.c: New file.
36447         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
36448         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
36449         gl_list_add_last, gl_list_add_before, gl_list_add_after,
36450         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
36451         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
36452         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
36453         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
36454         gl_sortedlist_nx_add): New declarations.
36455         (struct gl_list_implementation): Rename and change methods accordingly.
36456         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
36457         (gl_list_nx_create): Renamed from gl_list_create.
36458         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36459         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36460         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36461         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36462         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36463         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36464         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36465         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36466         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
36467         gl_list_create_empty.
36468         (gl_list_nx_create): Renamed from gl_list_create.
36469         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36470         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36471         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36472         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36473         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36474         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36475         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36476         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36477         * lib/gl_array_list.c: Don't include xalloc.h.
36478         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
36479         NULL upon out-of-memory.
36480         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
36481         out-of-memory.
36482         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
36483         Change return type to 'int'.
36484         (gl_array_nx_set_at): Renamed from gl_array_set_at.
36485         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36486         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
36487         upon out-of-memory.
36488         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
36489         upon out-of-memory.
36490         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
36491         upon out-of-memory.
36492         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
36493         upon out-of-memory.
36494         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
36495         out-of-memory.
36496         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
36497         Update.
36498         (gl_array_list_implementation): Update.
36499         * lib/gl_carray_list.c: Don't include xalloc.h.
36500         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
36501         Return NULL upon out-of-memory.
36502         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
36503         out-of-memory.
36504         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
36505         Change return type to 'int'.
36506         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
36507         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36508         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
36509         upon out-of-memory.
36510         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
36511         upon out-of-memory.
36512         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
36513         out-of-memory.
36514         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
36515         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
36516         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
36517         Update.
36518         (gl_carray_list_implementation): Update.
36519         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
36520         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
36521         gl_linked_create_empty. Return NULL upon out-of-memory.
36522         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
36523         out-of-memory.
36524         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
36525         Change return type to 'int'. Return -1 upon out-of-memory.
36526         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
36527         out-of-memory.
36528         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
36529         upon out-of-memory.
36530         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
36531         upon out-of-memory.
36532         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
36533         NULL upon out-of-memory.
36534         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
36535         upon out-of-memory.
36536         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
36537         out-of-memory.
36538         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
36539         Update.
36540         * lib/gl_linked_list.c: Don't include xalloc.h.
36541         (gl_linked_list_implementation): Update.
36542         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
36543         (add_to_bucket): Change return type to 'int'.
36544         (gl_linkedhash_list_implementation): Update.
36545         * lib/gl_anytree_list1.h (free_subtree): New function.
36546         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
36547         gl_tree_create_empty. Return NULL upon out-of-memory.
36548         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
36549         Change return type to 'int'. Return -1 upon out-of-memory.
36550         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
36551         out-of-memory.
36552         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
36553         (gl_tree_remove_node): New function, moved here from
36554         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
36555         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
36556         Update.
36557         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
36558         malloc, not xmalloc. Return NULL upon out-of-memory.
36559         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36560         out-of-memory.
36561         (gl_tree_remove_node_from_tree): New function, extracted from
36562         gl_tree_remove_node.
36563         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36564         upon out-of-memory.
36565         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36566         out-of-memory.
36567         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36568         upon out-of-memory.
36569         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36570         upon out-of-memory.
36571         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36572         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
36573         not xmalloc. Return NULL upon out-of-memory.
36574         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36575         out-of-memory.
36576         (gl_tree_remove_node_from_tree): New function, extracted from
36577         gl_tree_remove_node.
36578         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36579         upon out-of-memory.
36580         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36581         out-of-memory.
36582         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36583         upon out-of-memory.
36584         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36585         upon out-of-memory.
36586         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36587         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
36588         gl_anytree_list1.h before gl_anyavltree_list2.h.
36589         (gl_avltree_list_implementation): Update.
36590         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
36591         gl_anytree_list1.h before gl_anyavltree_list2.h.
36592         (gl_rbtree_list_implementation): Update.
36593         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
36594         Change return type to 'int'. Return -1 upon out-of-memory. Use
36595         __builtin_expect.
36596         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
36597         (gl_avltreehash_list_implementation): Update.
36598         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
36599         (gl_rbtreehash_list_implementation): Update.
36600         * modules/array-list (Depends-on): Remove xalloc.
36601         * modules/carray-list (Depends-on): Likewise.
36602         * modules/linked-list (Depends-on): Likewise.
36603         * modules/linkedhash-list (Depends-on): Likewise.
36604         * modules/avltree-list (Depends-on): Likewise.
36605         * modules/rbtree-list (Depends-on): Likewise.
36606         * modules/avltreehash-list (Depends-on): Likewise.
36607         * modules/rbtreehash-list (Depends-on): Likewise.
36608
36609         * modules/xsublist: New file.
36610         * lib/gl_xsublist.h: New file.
36611         * lib/gl_xsublist.c: New file.
36612         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
36613         (gl_sublist_nx_create): New declaration.
36614         * lib/gl_sublist.c: Don't include xalloc.h.
36615         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
36616         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
36617         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
36618         Change return type to 'int'. Return -1 upon out-of-memory.
36619         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
36620         upon out-of-memory.
36621         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
36622         NULL upon out-of-memory.
36623         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
36624         upon out-of-memory.
36625         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
36626         NULL upon out-of-memory.
36627         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
36628         NULL upon out-of-memory.
36629         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
36630         upon out-of-memory.
36631         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
36632         (gl_sublist_list_implementation): Update.
36633         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
36634         upon out-of-memory.
36635         * modules/sublist (Depends-on): Remove xalloc.
36636
36637         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
36638         * tests/test-carray_list.c: Likewise.
36639         * tests/test-linked_list.c: Likewise.
36640         * tests/test-linkedhash_list.c: Likewise.
36641         * tests/test-avltree_list.c: Likewise.
36642         * tests/test-rbtree_list.c: Likewise.
36643         * tests/test-avltreehash_list.c: Likewise.
36644         * tests/test-rbtreehash_list.c: Likewise.
36645         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
36646         * modules/carray-list-tests (Makefile.am): Likewise.
36647         * modules/linked-list-tests (Makefile.am): Likewise.
36648         * modules/linkedhash-list-tests (Makefile.am): Likewise.
36649         * modules/avltree-list-tests (Makefile.am): Likewise.
36650         * modules/rbtree-list-tests (Makefile.am): Likewise.
36651         * modules/avltreehash-list-tests (Makefile.am): Likewise.
36652         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
36653
36654         * NEWS: Mention the changes.
36655
36656         * lib/clean-temp.c: Include gl_xlist.h.
36657         * modules/clean-temp (Depends-on): Add xlist.
36658
36659         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
36660         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
36661
36662         * tests/test-array_oset.c: Include gl_xlist.h.
36663         * modules/array-oset-tests (Depends-on): Add xlist.
36664
36665         Reported by José E. Marchesi <jemarch@gnu.org>.
36666
36667 2009-12-13  Bruno Haible  <bruno@clisp.org>
36668
36669         Move the malloc checking from module 'oset' to new module 'xoset'.
36670         * modules/xoset: New file.
36671         * lib/gl_xoset.h: New file.
36672         * lib/gl_xoset.c: New file.
36673         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
36674         declarations.
36675         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
36676         (struct gl_oset_implementation): Rename and change methods accordingly.
36677         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
36678         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36679         'int'. Mark as __warn_unused_result__.
36680         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
36681         gl_oset_create_empty.
36682         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36683         'int'.
36684         * lib/gl_array_oset.c: Don't include xalloc.h.
36685         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
36686         malloc, not xmalloc.
36687         (grow): Change return type to 'int'. Don't call xalloc_die.
36688         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
36689         to 'int'.
36690         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
36691         'int'.
36692         (gl_array_oset_implementation): Update.
36693         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
36694         gl_tree_create_empty.
36695         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
36696         'int'.
36697         * lib/gl_avltree_oset.c: Don't include xalloc.h.
36698         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
36699         xmalloc.
36700         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
36701         not xmalloc.
36702         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
36703         xmalloc.
36704         (gl_avltree_oset_implementation): Update.
36705         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
36706         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
36707         xmalloc.
36708         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
36709         not xmalloc.
36710         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
36711         xmalloc.
36712         (gl_rbtree_oset_implementation): Update.
36713         * modules/array-oset (Depends-on): Remove xalloc.
36714         * modules/avltree-oset (Depends-on): Likewise.
36715         * modules/rbtree-oset (Depends-on): Likewise.
36716         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
36717         * tests/test-avltree_oset.c: Likewise.
36718         * tests/test-rbtree_oset.c: Likewise.
36719         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
36720         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
36721         * modules/rbtree-oset-tests (Makefile.am): Likewise.
36722         * NEWS: Mention the change.
36723
36724 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
36725
36726         maint.mk: allow a project to override release-prep commands
36727         * top/maint.mk (alpha, beta, stable): Move release-preparatory
36728         commands into a new rule.
36729         (release-prep): New rule.
36730         (release-prep-hook): New overridable variable.
36731
36732 2009-12-13  Bruno Haible  <bruno@clisp.org>
36733
36734         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
36735
36736 2009-12-13  Jim Meyering  <meyering@redhat.com>
36737
36738         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
36739         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
36740
36741 2009-12-12  Bruno Haible  <bruno@clisp.org>
36742
36743         duplocale: Tweak.
36744         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
36745
36746 2009-12-12  Karl Berry  <karl@gnu.org>
36747
36748         * config/srclist.txt (strtoll.c): tab changes, no more sync.
36749
36750 2009-12-12  Bruno Haible  <bruno@clisp.org>
36751
36752         * m4/po.m4: Undo incorrect untabification.
36753
36754 2009-12-12  Bruno Haible  <bruno@clisp.org>
36755
36756         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
36757         * modules/c-strtod (Depends-on): Add locale.
36758         * modules/c-strtold (Depends-on): Likewise.
36759
36760 2009-12-12  Bruno Haible  <bruno@clisp.org>
36761
36762         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
36763
36764 2009-12-11  Eric Blake  <ebb9@byu.net>
36765
36766         setenv: relax requirement in light of POSIX ruling
36767         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
36768         not NULL.
36769         * tests/test-setenv.c (main): Relax test.
36770         * tests/test-unsetenv.c (main): Likewise.
36771         * doc/posix-functions/setenv.texi (setenv): Document this.
36772         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
36773
36774 2009-12-11  Bruno Haible  <bruno@clisp.org>
36775
36776         New module 'fd-safer-flag'.
36777         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
36778         * lib/dup-safer.c (dup_safer_flag): Remove function.
36779         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
36780         * lib/fd-safer.c (fd_safer_flag): Remove function.
36781         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
36782         * modules/cloexec (configure.ac): Drop indicator macro.
36783         * modules/fd-safer-flag: New file.
36784         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
36785         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
36786         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
36787
36788 2009-12-11  Bruno Haible  <bruno@clisp.org>
36789
36790         Tests for module 'nl_langinfo'.
36791         * modules/nl_langinfo-tests: New file.
36792         * tests/test-nl_langinfo.sh: New file.
36793         * tests/test-nl_langinfo.c: New file.
36794
36795         New module 'nl_langinfo'.
36796         * lib/nl_langinfo.c: New file.
36797         * m4/nl_langinfo.m4: New file.
36798         * modules/nl_langinfo: New file.
36799         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
36800
36801 2009-12-11  Bruno Haible  <bruno@clisp.org>
36802
36803         Tests for module 'langinfo'.
36804         * modules/langinfo-tests: New file.
36805         * tests/test-langinfo.c: New file.
36806
36807         New module 'langinfo'.
36808         * lib/langinfo.in.h: New file.
36809         * m4/langinfo_h.m4: New file.
36810         * modules/langinfo: New file.
36811         * doc/posix-headers/langinfo.texi: Mention the new module.
36812
36813 2009-12-11  Bruno Haible  <bruno@clisp.org>
36814
36815         * lib/config.charset: Untabify.
36816
36817 2009-12-11  Bruno Haible  <bruno@clisp.org>
36818
36819         * modules/unistd-safer (configure.ac): Drop indicator macro.
36820
36821 2009-12-11  Bruno Haible  <bruno@clisp.org>
36822
36823         Move pipe2-safer code to its own file.
36824         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
36825         * lib/pipe-safer.c (pipe2_safer): Remove function.
36826         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
36827         (Makefile.am): Add it to lib_SOURCES.
36828
36829 2009-12-10  Bruno Haible  <bruno@clisp.org>
36830
36831         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
36832
36833 2009-12-10  Bruno Haible  <bruno@clisp.org>
36834
36835         Declare which arguments expect non-NULL values, for GCC and clang.
36836         * build-aux/arg-nonnull.h: New file.
36837         * modules/arg-nonnull: New file.
36838         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
36839         (inet_ntop, inet_pton): Use it.
36840         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
36841         (closedir, dirfd, opendir, scandir, alphasort): Use it.
36842         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
36843         (open, openat): Use it.
36844         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
36845         (fnmatch): Use it.
36846         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
36847         (getopt, getopt_long, getopt_long_only): Use it.
36848         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
36849         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
36850         Use it.
36851         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
36852         (iconv_open): Use it.
36853         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
36854         (strtoimax, strtoumax): Use it.
36855         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
36856         (duplocale): Use it.
36857         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
36858         (frexp, frexpl): Use it.
36859         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
36860         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
36861         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
36862         (tsearch, tfind, tdelete, twalk): Use it.
36863         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
36864         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
36865         sigpending): Use it.
36866         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
36867         (posix_spawn, posix_spawnp, posix_spawnattr_init,
36868         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
36869         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
36870         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
36871         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
36872         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
36873         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
36874         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
36875         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
36876         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
36877         Use it.
36878         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
36879         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
36880         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
36881         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
36882         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
36883         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
36884         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
36885         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
36886         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
36887         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
36888         strtoull, unsetenv): Use it.
36889         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
36890         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
36891         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
36892         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
36893         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
36894         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
36895         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
36896         (strcasecmp, strncasecmp): Use it.
36897         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
36898         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
36899         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
36900         rpl_setsockopt): Use it.
36901         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
36902         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
36903         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
36904         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
36905         (gettimeofday): Use it.
36906         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
36907         (times): Use it.
36908         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
36909         (uname): Use it.
36910         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
36911         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
36912         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
36913         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
36914         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
36915         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
36916         unlinkat, write): Use it.
36917         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
36918         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
36919         * lib/argv-iter.h: Include arg-nonnull.h.
36920         (_ATTRIBUTE_NONNULL_): Remove macro.
36921         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
36922         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
36923         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
36924         optimization.
36925         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
36926         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
36927         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
36928         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
36929         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
36930         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
36931         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
36932         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
36933         * modules/arpa_inet (Depends-on): Add arg-nonnull.
36934         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
36935         * modules/dirent (Depends-on): Add arg-nonnull.
36936         (Makefile.am): Insert arg-nonnull.h into dirent.h.
36937         * modules/fcntl-h (Depends-on): Add arg-nonnull.
36938         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
36939         * modules/fnmatch (Depends-on): Add arg-nonnull.
36940         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
36941         * modules/getopt-posix (Depends-on): Add arg-nonnull.
36942         (Makefile.am): Insert arg-nonnull.h into getopt.h.
36943         * modules/glob (Depends-on): Add arg-nonnull.
36944         (Makefile.am): Insert arg-nonnull.h into glob.h.
36945         * modules/iconv_open (Depends-on): Add arg-nonnull.
36946         (Makefile.am): Insert arg-nonnull.h into iconv.h.
36947         * modules/inttypes (Depends-on): Add arg-nonnull.
36948         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
36949         * modules/locale (Depends-on): Add arg-nonnull.
36950         (Makefile.am): Insert arg-nonnull.h into locale.h.
36951         * modules/math (Depends-on): Add arg-nonnull.
36952         (Makefile.am): Insert arg-nonnull.h into math.h.
36953         * modules/netdb (Depends-on): Add arg-nonnull.
36954         (Makefile.am): Insert arg-nonnull.h into netdb.h.
36955         * modules/search (Depends-on): Add arg-nonnull.
36956         (Makefile.am): Insert arg-nonnull.h into search.h.
36957         * modules/signal (Depends-on): Add arg-nonnull.
36958         (Makefile.am): Insert arg-nonnull.h into signal.h.
36959         * modules/spawn (Depends-on): Add arg-nonnull.
36960         (Makefile.am): Insert arg-nonnull.h into spawn.h.
36961         * modules/stdio (Depends-on): Add arg-nonnull.
36962         (Makefile.am): Insert arg-nonnull.h into stdio.h.
36963         * modules/stdlib (Depends-on): Add arg-nonnull.
36964         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
36965         * modules/string (Depends-on): Add arg-nonnull.
36966         (Makefile.am): Insert arg-nonnull.h into string.h.
36967         * modules/strings (Depends-on): Add arg-nonnull.
36968         (Makefile.am): Insert arg-nonnull.h into strings.h.
36969         * modules/sys_socket (Depends-on): Add arg-nonnull.
36970         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
36971         * modules/sys_stat (Depends-on): Add arg-nonnull.
36972         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
36973         * modules/sys_time (Depends-on): Add arg-nonnull.
36974         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
36975         * modules/sys_times (Depends-on): Add arg-nonnull.
36976         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
36977         * modules/sys_utsname (Depends-on): Add arg-nonnull.
36978         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
36979         * modules/time (Depends-on): Add arg-nonnull.
36980         (Makefile.am): Insert arg-nonnull.h into time.h.
36981         * modules/unistd (Depends-on): Add arg-nonnull.
36982         (Makefile.am): Insert arg-nonnull.h into unistd.h.
36983         * modules/wchar (Depends-on): Add arg-nonnull.
36984         (Makefile.am): Insert arg-nonnull.h into wchar.h.
36985         * modules/argv-iter (Depends-on): Add arg-nonnull.
36986         * tests/test-canonicalize.c (null_ptr): New function.
36987         (main): Use it.
36988         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
36989         (main): Use it.
36990         * tests/test-memmem.c (null_ptr): New function.
36991         (main): Use it.
36992         Reported by Jim Meyering.
36993
36994 2009-12-10  Bruno Haible  <bruno@clisp.org>
36995
36996         Use spaces for indentation, not tabs.
36997         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
36998         * m4/*.m4: Untabify.
36999         * build-aux/*.h: Untabify.
37000         * tests/**/*.[hc]: Untabify.
37001         * README: New section "Indent with spaces, not TABs", based on
37002         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
37003         * NEWS: Mention the change.
37004
37005 2009-12-10  Bruno Haible  <bruno@clisp.org>
37006
37007         pty test: Fix link error.
37008         * modules/pty-tests (Makefile.am): Add the default LDADD value to
37009         test_pty_LDADD.
37010
37011 2009-12-07  Simon Josefsson  <simon@josefsson.org>
37012
37013         * modules/pty: New file.
37014         * modules/pty-tests: New file.
37015         * m4/pty.m4: New file.
37016         * tests/test-pty.c: New file.
37017         * doc/glibc-headers/pty.texi: Modified.
37018         * doc/glibc-functions/forkpty.texi: Modified.
37019         * doc/glibc-functions/openpty.texi: Modified.
37020
37021 2009-12-10  Bruno Haible  <bruno@clisp.org>
37022
37023         Avoid syntax error in C++ mode.
37024         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
37025
37026 2009-12-10  Bruno Haible  <bruno@clisp.org>
37027
37028         Use sed with option -e.
37029         * gnulib-tool (func_version, func_emit_copyright_notice,
37030         func_emit_initmacro_end, func_import, func_create_testdir): Pass
37031         option -e to sed.
37032         * modules/link-warning (Makefile.am): Likewise.
37033
37034 2009-12-10  Jim Meyering  <meyering@redhat.com>
37035
37036         mgetgroups: do not write bytes beyond end of malloc'd buffer
37037         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
37038         username, we call getgroups with a one-element-shorter buffer,
37039         but still told it the length was original, max_n_groups.
37040
37041 2009-12-09  Eric Blake  <ebb9@byu.net>
37042
37043         cloexec: relax license
37044         * modules/cloexec (Maintainer): Add myself.
37045         (License): Use LGPL, not GPL.
37046
37047         link-warning: optimize generation
37048         * modules/link-warning (Makefile.am): Reduce process usage.
37049
37050 2009-12-09  Bruno Haible  <bruno@clisp.org>
37051
37052         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
37053         workaround was added on 2009-11-17.
37054
37055 2009-12-09  Jim Meyering  <meyering@redhat.com>
37056             Bruno Haible  <bruno@clisp.org>
37057
37058         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
37059         * modules/link-warning (Makefile.am): Make the comment-removing sed
37060         command more robust in the face of bootstrap-prepended comment lines.
37061
37062 2009-12-09  Bruno Haible  <bruno@clisp.org>
37063
37064         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
37065         most one group.
37066
37067 2009-12-09  Simon Josefsson <simon@josefsson.org>
37068             Bruno Haible  <bruno@clisp.org>
37069
37070         * build-aux/link-warning.h: Add copyright notice.
37071         * modules/link-warning (Makefile.am): Generate link-warning.h from
37072         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
37073         * NEWS: Mention change in link-warning module.
37074         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
37075         * modules/dirent (Makefile.am): Add dependency to dirent.h.
37076         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
37077         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
37078         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
37079         * modules/math (Makefile.am): Add dependency to math.h.
37080         * modules/search (Makefile.am): Add dependency to search.h.
37081         * modules/signal (Makefile.am): Add dependency to signal.h.
37082         * modules/spawn (Makefile.am): Add dependency to spawn.h.
37083         * modules/stdio (Makefile.am): Add dependency to stdio.h.
37084         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
37085         * modules/string (Makefile.am): Add dependency to string.h.
37086         * modules/strings (Makefile.am): Add dependency to strings.h.
37087         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
37088         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
37089         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
37090         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
37091         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
37092         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
37093         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
37094         * modules/unistd (Makefile.am): Add dependency to unistd.h.
37095         * modules/wchar (Makefile.am): Add dependency to wchar.h.
37096
37097 2009-12-09  Bruno Haible  <bruno@clisp.org>
37098
37099         fchdir: Optimize away rpl_fstat when possible.
37100         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
37101         REPLACE_OPEN_DIRECTORY.
37102         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
37103
37104 2009-12-09  Bruno Haible  <bruno@clisp.org>
37105
37106         * lib/fchdir.c: Update comment.
37107
37108 2009-12-09  Bruno Haible  <bruno@clisp.org>
37109
37110         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
37111
37112 2009-12-08  Eric Blake  <ebb9@byu.net>
37113
37114         fchdir: avoid memory leak on re-registration.
37115         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
37116
37117 2009-12-08  Jim Meyering  <meyering@redhat.com>
37118
37119         init.sh: avoid Solaris 10 /bin/sh portability problem
37120         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
37121         sourced script:
37122           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
37123           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
37124           bar
37125         tests/init.sh relied on that, accepting a --set-path=DIR argument,
37126         and two tests used that idiom.
37127         * tests/init.sh: Update suggested usage comments.
37128         (path_prepend_): New function, to be used in place
37129         of the --src-path=DIR option.
37130         (setup_): Move PATH-prepending code into path_prepend_.
37131         * tests/test-pread.sh: Adapt to new usage.
37132         * tests/test-xalloc-die.sh: Likewise.
37133
37134 2009-12-08  Simon Josefsson  <simon@josefsson.org>
37135
37136         * doc/gnulib.texi (Glibc pty.h): Add.
37137         * doc/glibc-functions/forkpty.texi: Add.
37138         * doc/glibc-functions/openpty.texi: Add.
37139         Suggested by Bruno Haible.
37140
37141 2009-12-08  Eric Blake  <ebb9@byu.net>
37142
37143         fchdir: fix logic bugs
37144         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
37145         * tests/test-fchdir.c (main): Enhance test.
37146         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
37147         is in use.
37148
37149         dup2: fix logic bugs
37150         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
37151         REPLACE_DUP2 to decide when rpl_dup2 is needed.
37152         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
37153         exists.
37154         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
37155
37156 2009-12-07  Eric Blake  <ebb9@byu.net>
37157
37158         unlink: fix m4 detection
37159         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
37160
37161         unistd-safer: add unit test
37162         * modules/unistd-safer-tests: New file.
37163         * tests/test-dup-safer.c: Likewise.
37164         * tests/test-cloexec.c (setmode): Avoid compiler warning.
37165         * tests/test-dup2.c (setmode): Likewise.
37166         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
37167
37168         cloexec: preserve text vs. binary across dup_cloexec
37169         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
37170         mode.
37171         * modules/dup2-tests (Depends-on): Add binary-io.
37172         * modules/cloexec-tests (Depends-on): Likewise.
37173         * tests/test-dup2.c (setmode, is_mode): New helpers.
37174         (main): Add tests that translation mode is preserved.
37175         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
37176         Reported by Bruno Haible.
37177
37178         mgetgroups: reduce duplicate listings
37179         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
37180         resulting array.
37181         * tests/test-chown.h (test_chown): Simplify client.
37182         * tests/test-lchown.h (test_lchown): Likewise.
37183
37184 2009-12-06  Bruno Haible  <bruno@clisp.org>
37185
37186         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
37187         value.
37188
37189 2009-12-06  Bruno Haible  <bruno@clisp.org>
37190
37191         * lib/progname.c: Include stdio.h, stdlib.h.
37192         (set_program_name): Reject a NULL argument.
37193
37194 2009-12-05  Eric Blake  <ebb9@byu.net>
37195
37196         pipe2-safer: new module
37197         * modules/pipe2-safer: New file.
37198         * lib/unistd-safer.h (pipe2_safer): New prototype.
37199         * lib/unistd--.h (pipe2): New wrapper.
37200         * lib/pipe-safer.c (pipe2_safer): New function.
37201         * modules/pipe (Depends-on): Add pipe2-safer.
37202         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
37203
37204         stdlib-safer: preserve cloexec flag for mkostemp[s]
37205         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
37206         fd_safer_flag.
37207
37208         unistd-safer: allow preservation of cloexec status via flag
37209         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
37210         prototypes.
37211         * lib/dup-safer.c (dup_safer_flag): New function.
37212         * lib/fd-safer.c (fd_safer_flag): Likewise.
37213         * modules/cloexec (configure.ac): Set witness.
37214
37215         test-dup2: enhance test
37216         * modules/dup2-tests (Depends-on): Add cloexec.
37217         * tests/test-dup2.c (main): Enhance test.
37218
37219         cloexec: add dup_cloexec
37220         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
37221         header and comments.
37222         * lib/cloexec.c (set_cloexec_flag): Add comments.
37223         (dup_cloexec): New function, with mingw implementation borrowed
37224         from...
37225         * lib/w32spawn.h (dup_noinherit): ...here.
37226         * modules/execute (Depends-on): Add cloexec.
37227         * modules/pipe (Depends-on): Likewise.
37228         * modules/cloexec (Depends-on): Add dup2.
37229         * modules/cloexec-tests (Files): New file.
37230         * tests/test-cloexec.c: Likewise.
37231
37232         test-xalloc-die: fix test for mingw
37233         * modules/xalloc-die-tests (Files): Add tests/init.sh.
37234         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
37235         directory and .exe suffix off argv[0] output.
37236
37237         test-fseeko: fix test for mingw
37238         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
37239         than undefining fseek, so test will pass on mingw.
37240
37241 2009-12-05  Bruno Haible  <bruno@clisp.org>
37242
37243         * lib/progname.h (set_program_name): Clarify specification.
37244         * lib/progname.c (set_program_name): Likewise.
37245         Reported by Jim Meyering.
37246
37247 2009-12-05  Jim Meyering  <meyering@redhat.com>
37248
37249         maint.mk: backslash-escape parens in default regexp
37250         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
37251         backslash-escape the literal parentheses.
37252
37253         maint.mk: news-date-check: use grep -E
37254         * top/maint.mk (today): Define a Make variable, not a...
37255         (news-date-check): ...shell variable.
37256         (news-date-regexp): Use the Make variable.
37257         Use grep's -E option.  Change the failing diagnostic to mention
37258         the variable, $(news-date-regexp).
37259
37260 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
37261
37262         maintainer-makefile: allow customization of NEWS entry format
37263         * top/maint.mk (news-date-regexp): New overridable variable.
37264         (news-date-check): Use it.
37265
37266 2009-12-04  Eric Blake  <ebb9@byu.net>
37267
37268         mgetgroups: add xgetgroups, and avoid ENOSYS failures
37269         * lib/mgetgroups.h (xgetgroups): New prototype.
37270         * lib/mgetgroups.c (xgetgroups): New wrapper.
37271         (mgetgroups): Handle ENOSYS.
37272         * modules/mgetgroups (Depends-on): Add realloc.
37273         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
37274
37275         mgetgroups: avoid argument promotion issues with -1
37276         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
37277         for invalid gid_t.
37278         * tests/test-chown.h (getegid, test_chown): Likewise.
37279         * tests/test-lchown.h (getegid, test_lchown): Likewise.
37280
37281 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
37282
37283         exclude: Fix header file problems.
37284         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
37285
37286 2009-12-01  Jim Meyering  <meyering@redhat.com>
37287
37288         fts: fts_open: do not let an empty string cause immediate failure
37289         This is required in support of GNU rm, for which the command
37290         "rm A '' B" must process and remove both A and B, in spite of
37291         the empty string argument.
37292         * lib/fts.c (fts_open): Do not let the presence of an empty string
37293         cause fts_open to fail immediately.  Most fts-using tools must be
37294         able to process all arguments, in order, and can be expected to
37295         diagnose such arguments themselves.
37296
37297 2009-11-30  Eric Blake  <ebb9@byu.net>
37298
37299         utimens: fix compilation error
37300         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
37301         Declare variable at right scope.
37302
37303 2009-11-29  Jim Meyering  <meyering@redhat.com>
37304
37305         bootstrap: handle perl-5.11's changed --version output
37306         * build-aux/bootstrap (get_version): Handle perl separately,
37307         since perl-5.11's --version output is different.
37308
37309 2009-11-28  Jim Meyering  <meyering@redhat.com>
37310
37311         userspec: depend on the inttostr module, too
37312         * modules/userspec (Depends-on): Add inttostr.
37313
37314         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
37315         * lib/userspec.c (parse_with_separator): Do not accept a user ID
37316         number of MAXUID when it evaluates to (uid_t) -1.
37317         Likewise for group ID.  Reported by Matt McCutchen in
37318         <http://savannah.gnu.org/bugs/?28113>
37319
37320         userspec: reformat to use spaces, not TABs
37321         * lib/userspec.c: Expand TABs to spaces.
37322         Add Emacs' "indent-tabs-mode: nil" hint.
37323
37324 2009-11-27  Eric Blake  <ebb9@byu.net>
37325
37326         getopt-gnu: flush out another BSD bug
37327         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
37328         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
37329         flush out BSD bug.
37330         * tests/test-getopt.h (test_getopt): End lists with NULL.
37331         * tests/test-getopt_long.h (test_getopt_long): Likewise.
37332         (test_getopt_long_posix): Enhance test.
37333         * modules/getopt-posix-tests (Depends-on): Add stdbool.
37334         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
37335         getopt-gnu.
37336         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37337         Likewise.
37338
37339 2009-11-27  Simon Josefsson  <simon@josefsson.org>
37340
37341         * modules/idpriv-droptemp-tests (Notice): Fix text.
37342
37343 2009-11-27  Jim Meyering  <meyering@redhat.com>
37344
37345         test-xalloc-die: avoid spurious failure due to libtool argv difference
37346         In a libtool-enabled project, this test would fail due to a difference
37347         in the emitted program name, e.g.,
37348         -test-xalloc-die: memory exhausted
37349         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
37350         Use program to avoid that.
37351         * modules/xalloc-die-tests (Depends-on): Add progname.
37352         * tests/test-xalloc-die.c: Include progname.h".
37353         (program_name): Remove decl.
37354         (main): Call set_program_name.
37355         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
37356
37357 2009-11-26  Richard Jones  <rjones@redhat.com>
37358
37359         w32sock: leave win32 error in place.
37360         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
37361
37362 2009-11-26  Eric Blake  <ebb9@byu.net>
37363
37364         init.sh: suggest to use skip_ and fail_ functions in comments
37365         * tests/init.sh: Add a sentence.
37366
37367 2009-11-25  Bruno Haible  <bruno@clisp.org>
37368
37369         init.sh: add documentation in comments
37370         * tests/init.sh: Add some developer and user documentation.
37371
37372 2009-11-26  Jim Meyering  <meyering@redhat.com>
37373
37374         init.sh: accommodate even those who specify bogus srcdir manually
37375         * tests/init.sh: Normally, srcdir is guaranteed by automake and
37376         configure-time tests to be sanitized, so that there is no need to
37377         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
37378         (with no double quotes) suffices.  However, since tests may be
37379         invoked manually, and since you may explicitly set srcdir to the
37380         name of a directory containing spaces, do quote its uses here.
37381         * tests/test-pread.sh: Likewise.
37382         Suggested by Bruno Haible.
37383
37384         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
37385         * tests/test-pread.sh: Write no data into the pipe, because
37386         test-pread actually reads none.  This avoids a diagnostic,
37387         "bash: echo: write error: Broken pipe", that arises in the unusual
37388         event something is ignoring SIGPIPE, and might be interpreted
37389         as some sort of failure.  Reported by Bruno Haible.
37390
37391 2009-11-25  Jim Meyering  <meyering@redhat.com>
37392
37393         test-pread: cover failure with ESPIPE and EINVAL
37394         * tests/test-pread.c (main): Test for failure, too.
37395         * tests/test-pread.sh: Invoke with stdin on a pipe.
37396         Suggested by Eric Blake.
37397
37398         pread: improvement and fix
37399         * modules/pread (Depends-on): Depend on lseek, for portability to
37400         e.g., mingw.  Suggested by Eric Blake.
37401         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
37402
37403         unistd.in.h: correct declaration of pread
37404         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
37405         Reported by Richard W.M. Jones.
37406
37407         test-pread.sh: distribute the test script
37408         * modules/pread-tests (Files): Include test-pread.sh.
37409
37410         test-pread.sh: clean up
37411         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
37412         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
37413         That is unnecessary, since it's always ".".
37414         Suggestion from Eric Blake.
37415
37416         test-pread.sh: make executable
37417         * tests/test-pread.sh: Set executable bit.
37418         Reported by Eric Blake.
37419
37420         correct typo in test-pread.sh
37421         * tests/test-pread.sh: Add #! line.
37422
37423         test pread
37424         * tests/test-pread.c: New file.
37425         * tests/test-pread.sh: Likewise.
37426         * modules/pread-tests: Likewise.
37427
37428         pread: new module
37429         * modules/pread: New file.
37430         * lib/unistd.in.h (pread): Define/declare.
37431         * lib/pread.c (pread): New file.
37432         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
37433         * modules/unistd (Makefile.am): Substitute witnesses.
37434         * doc/posix-functions/pread.texi (pread): Update.
37435         * MODULES.html.sh: Add pread.
37436
37437 2009-11-25  Jim Meyering  <meyering@redhat.com>
37438
37439         tests/init.sh: new file to be used via most *.sh tests
37440         * tests/init.sh: New file.
37441
37442 2009-11-25  Eric Blake  <ebb9@byu.net>
37443
37444         utimens: work around older Linux failure with symlinks
37445         * lib/utimens.c (lutimensat_works_really): New variable.
37446         (fdutimens, lutimens): Use it to manage kernels that support
37447         nanosecond times on files, but not on symlinks.
37448         Reported by OndÅ™ej Vašík.
37449
37450         utimes: fix configure grammar
37451         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
37452
37453 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
37454
37455         regex: Fix fastmap for multibyte character ranges.
37456         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
37457         characters when a multibyte character range is included.
37458
37459 2009-11-22  Andy Wingo  <wingo@pobox.com>
37460
37461         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
37462         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
37463
37464 2009-11-24  Bruno Haible  <bruno@clisp.org>
37465
37466         doc: Most *_l functions exist in MacOS X 10.5.
37467         * doc/posix-functions/duplocale.texi: Update platforms list.
37468         * doc/posix-functions/freelocale.texi: Likewise.
37469         * doc/posix-functions/newlocale.texi: Likewise.
37470         * doc/posix-functions/uselocale.texi: Likewise.
37471         * doc/posix-functions/isalnum_l.texi: Likewise.
37472         * doc/posix-functions/isalpha_l.texi: Likewise.
37473         * doc/posix-functions/isblank_l.texi: Likewise.
37474         * doc/posix-functions/iscntrl_l.texi: Likewise.
37475         * doc/posix-functions/isdigit_l.texi: Likewise.
37476         * doc/posix-functions/isgraph_l.texi: Likewise.
37477         * doc/posix-functions/islower_l.texi: Likewise.
37478         * doc/posix-functions/isprint_l.texi: Likewise.
37479         * doc/posix-functions/ispunct_l.texi: Likewise.
37480         * doc/posix-functions/isspace_l.texi: Likewise.
37481         * doc/posix-functions/isupper_l.texi: Likewise.
37482         * doc/posix-functions/iswalnum_l.texi: Likewise.
37483         * doc/posix-functions/iswalpha_l.texi: Likewise.
37484         * doc/posix-functions/iswblank_l.texi: Likewise.
37485         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37486         * doc/posix-functions/iswctype_l.texi: Likewise.
37487         * doc/posix-functions/iswdigit_l.texi: Likewise.
37488         * doc/posix-functions/iswgraph_l.texi: Likewise.
37489         * doc/posix-functions/iswlower_l.texi: Likewise.
37490         * doc/posix-functions/iswprint_l.texi: Likewise.
37491         * doc/posix-functions/iswpunct_l.texi: Likewise.
37492         * doc/posix-functions/iswspace_l.texi: Likewise.
37493         * doc/posix-functions/iswupper_l.texi: Likewise.
37494         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37495         * doc/posix-functions/isxdigit_l.texi: Likewise.
37496         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
37497         * doc/posix-functions/strcasecmp_l.texi: Likewise.
37498         * doc/posix-functions/strcoll_l.texi: Likewise.
37499         * doc/posix-functions/strfmon_l.texi: Likewise.
37500         * doc/posix-functions/strftime_l.texi: Likewise.
37501         * doc/posix-functions/strncasecmp_l.texi: Likewise.
37502         * doc/posix-functions/strxfrm_l.texi: Likewise.
37503         * doc/posix-functions/tolower_l.texi: Likewise.
37504         * doc/posix-functions/toupper_l.texi: Likewise.
37505         * doc/posix-functions/towctrans_l.texi: Likewise.
37506         * doc/posix-functions/towlower_l.texi: Likewise.
37507         * doc/posix-functions/towupper_l.texi: Likewise.
37508         * doc/posix-functions/wcscoll_l.texi: Likewise.
37509         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37510         * doc/posix-functions/wctrans_l.texi: Likewise.
37511         * doc/posix-functions/wctype_l.texi: Likewise.
37512         * doc/glibc-functions/strptime_l.texi: Likewise.
37513         * doc/glibc-functions/strtod_l.texi: Likewise.
37514         * doc/glibc-functions/strtof_l.texi: Likewise.
37515         * doc/glibc-functions/strtol_l.texi: Likewise.
37516         * doc/glibc-functions/strtold_l.texi: Likewise.
37517         * doc/glibc-functions/strtoll_l.texi: Likewise.
37518         * doc/glibc-functions/strtoul_l.texi: Likewise.
37519         * doc/glibc-functions/strtoull_l.texi: Likewise.
37520         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37521         * doc/glibc-functions/wcstod_l.texi: Likewise.
37522         * doc/glibc-functions/wcstof_l.texi: Likewise.
37523         * doc/glibc-functions/wcstol_l.texi: Likewise.
37524         * doc/glibc-functions/wcstold_l.texi: Likewise.
37525         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37526         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37527         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37528
37529 2009-11-24  Bruno Haible  <bruno@clisp.org>
37530
37531         duplocale: Fix logic bug.
37532         * lib/duplocale.c: Don't include <langinfo.h>.
37533         (_NL_LOCALE_NAME): Remove macro.
37534         (rpl_duplocale): Use setlocale instead of nl_langinfo.
37535         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
37536
37537 2009-11-23  Jim Meyering  <meyering@redhat.com>
37538
37539         test-update-copyright: don't hard-code /usr/bin/perl
37540         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
37541         perl to print the current year.  Gilles Espinasse reported that
37542         the replaced use of perl was hard-coded as /usr/bin/perl.
37543
37544 2009-11-23  Bruno Haible  <bruno@clisp.org>
37545
37546         duplocale: Add support for glibc 2.3.x.
37547         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
37548
37549 2009-11-22  Bruno Haible  <bruno@clisp.org>
37550
37551         vasnprintf: Tiny optimization.
37552         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
37553         MacOS X.
37554
37555 2009-11-22  Bruno Haible  <bruno@clisp.org>
37556
37557         Tests for module 'duplocale'.
37558         * modules/duplocale-tests: New file.
37559         * tests/test-duplocale.c: New file.
37560
37561         New module 'duplocale'.
37562         * m4/duplocale.m4: New file.
37563         * lib/locale.in.h (duplocale): New declaration.
37564         * lib/duplocale.c: New file.
37565         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
37566         gl_LOCALE_H_DEFAULTS): New macros.
37567         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
37568         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
37569         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
37570         REPLACE_DUPLOCALE.
37571         * modules/duplocale: New file.
37572         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
37573
37574 2009-11-22  Bruno Haible  <bruno@clisp.org>
37575
37576         * modules/locale-tests (configure.ac): Test for newlocale function.
37577         * tests/test-locale.c: When the system has extended locale functions,
37578         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
37579
37580         locale: Make locale_t available when possible.
37581         * lib/locale.in.h: Include <xlocale.h> when it exists.
37582         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
37583         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
37584         * modules/locale (Depends-on): Add extensions.
37585         (Makefile.am): Also substitute HAVE_XLOCALE_H.
37586         * doc/posix-headers/locale.texi: Document the problem with locale_t.
37587
37588 2009-11-22  Bruno Haible  <bruno@clisp.org>
37589
37590         Add comments.
37591         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
37592         invocation.
37593         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
37594         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37595         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37596
37597 2009-11-22  Bruno Haible  <bruno@clisp.org>
37598
37599         error: account for the possibility of freopen (stdout).
37600         * lib/error.c: Include <unistd.h>.
37601         (flush_stdout): New function, extracted from error and error_at_line.
37602         Determine stdout's fd dynamically.
37603         (error, error_at_line): Invoke flush_stdout.
37604         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
37605         * modules/error (Depends-on): Add unistd.
37606
37607 2009-11-22  Bruno Haible  <bruno@clisp.org>
37608
37609         diffseq: Add comment.
37610         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
37611
37612 2009-11-22  Jim Meyering  <meyering@redhat.com>
37613
37614         c-stack: avoid defining an unused static function
37615         * lib/c-stack.c (find_stack_direction): Do not define this function
37616         when it will not be used.
37617
37618         diffseq: avoid spurious gcc warnings
37619         * lib/diffseq.h (IF_LINT2): Define.
37620         (compareseq): Use it to initialize two members of "part".
37621         This avoids two used-uninitialized warnings.
37622
37623 2009-11-21  Jim Meyering  <meyering@redhat.com>
37624
37625         c-stack: avoid "ignoring return value of `write'" warning
37626         * lib/c-stack.c: Include "ignore-value.h".
37627         (die): Explicitly ignore each write return value.
37628         * modules/c-stack (Depends-on): Add ignore-value.
37629
37630 2009-11-21  Bruno Haible  <bruno@clisp.org>
37631
37632         diffseq: reduce scope of variable 'best'.
37633         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
37634         variable, earlier used for two different purposes.
37635
37636 2009-11-21  Jim Meyering  <meyering@redhat.com>
37637
37638         diffseq: remove useless assignment to "best"
37639         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
37640         assignment.  At that point "best" is already guaranteed to be zero.
37641
37642 2009-11-20  Eric Blake  <ebb9@byu.net>
37643
37644         build: mention ftp redirector in release announcements
37645         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
37646         values that used to come from cfg.mk; mention FTP redirect URL.
37647         * build-aux/announce-gen: Mention the mirror list.
37648         Suggested by Karl Berry.
37649
37650         nanosleep: improve port to mingw
37651         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
37652         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
37653         LIB_NANOSLEEP, but only when needed.
37654         * modules/select (Link): Document LIBSOCKET.
37655         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
37656         enough.
37657
37658         nanosleep: work around cygwin bug
37659         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
37660         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
37661         bug.
37662         (getnow): Delete, not needed.
37663         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
37664         LIB_CLOCK_GETTIME.
37665         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
37666         clock-time, gettime.
37667         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
37668         bug.
37669         * modules/nanosleep-tests: New test.
37670         * tests/test-nanosleep.c: New file.
37671
37672         sleep: work around cygwin bug
37673         * lib/sleep.c (rpl_sleep): Work around the bug.
37674         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
37675         (gl_PREREQ_SLEEP): Delete unused macro.
37676         * modules/sleep (Depends-on): Add verify.
37677         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
37678         * modules/unistd (Makefile.am): Substitute witness.
37679         * lib/unistd.in.h (sleep): Update prototype.
37680         * doc/posix-functions/sleep.texi (sleep): Document the bug.
37681         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
37682         * modules/sleep-tests (Depends-on): Check for alarm.
37683
37684 2009-11-20  Jim Meyering  <meyering@redhat.com>
37685
37686         maint.mk: improve sc_prohibit_magic_number_exit
37687         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
37688         so it does not match uses like System.exit(1).
37689         Add comments showing how to correct all offenders.
37690
37691 2009-11-19  Eric Blake  <ebb9@byu.net>
37692
37693         xalloc-die-tests: add missing library
37694         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
37695
37696         test-xvasprintf: silence compiler warnings
37697         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
37698         empty string from gcc.
37699
37700 2009-11-19  Jim Meyering  <meyering@redhat.com>
37701
37702         xfreopen: new module, from coreutils
37703         * modules/xfreopen: New module.
37704         * lib/xfreopen.c: New file.
37705         * lib/xfreopen.h: New file.
37706         * MODULES.html.sh (File stream based Input/Output"): Add it.
37707
37708 2009-11-19  Eric Blake  <ebb9@byu.net>
37709
37710         manywarnings: depend on warnings
37711         * modules/manywarnings (Depends-on): Add warnings.
37712
37713         build: avoid compiler warnings
37714         * lib/select.c (rpl_select): Delete unused variable.
37715         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
37716
37717 2009-11-18  Eric Blake  <ebb9@byu.net>
37718
37719         tests: avoid false negative with --with-packager
37720         * tests/test-version-etc.sh: Discard packager information.
37721         * tests/test-argp-version-etc-1.sh: Likewise.
37722         Reported by Mike Frysinger.
37723
37724         utimens: fix regression on Solaris
37725         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
37726         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
37727         can only change fd timestamps via futimesat.  Instead, use an
37728         additional witness macro to avoid BSD bug.
37729         Reported by Jim Meyering.
37730
37731 2009-11-17  Eric Blake  <ebb9@byu.net>
37732
37733         usleep: use it to simplify tests
37734         * modules/stat-time-tests (Depends-on): Add usleep.
37735         (configure.ac): Drop usleep check.
37736         * modules/chown-tests (Depends-on, configure.ac): Likewise.
37737         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
37738         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
37739         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
37740         * modules/openat-tests (Depends-on, configure.ac): Likewise.
37741         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
37742         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
37743         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
37744         Likewise.
37745         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
37746         * tests/test-lchown.h (nap): Likewise.
37747         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
37748         * tests/test-stat-time.c (nap): Likewise.
37749         * tests/test-utimens-common.h (nap): Update comments.
37750
37751         usleep: new module
37752         * modules/usleep: New file.
37753         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
37754         * lib/usleep.c (usleep): Likewise.
37755         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
37756         * modules/unistd (Makefile.am): Substitute witnesses.
37757         * lib/unistd.in.h (usleep): Add declaration.
37758         * doc/pastposix-functions/usleep.texi (usleep): Document this.
37759         * MODULES.html.sh (Date and time): Likewise.
37760         * modules/usleep-tests (Depends-on): New test.
37761         * tests/test-usleep.c: New file.
37762
37763         chown: work around OpenBSD bug
37764         * lib/chown.c (rpl_chown): Work around the bug.
37765         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
37766         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
37767         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
37768         * modules/chown (Depends-on): Add stdbool.
37769         * modules/lchown (Depends-on): Likewise.
37770         * doc/posix-functions/chown.texi (chown): Document the bug.
37771         * doc/posix-functions/lchown.texi (lchown): Likewise.
37772         * tests/test-lchown.h (test_chown): Relax test.
37773
37774         mkstemp: avoid conflict with C++ keyword template
37775         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
37776         * lib/mkostemp.c (mkostemp): Likewise.
37777         * lib/mkostemps.c (mkostemps): Likewise.
37778         * lib/mkstemp.c (mkstemp): Likewise.
37779         * lib/mkstemps.c (mkstemps): Likewise.
37780
37781         xalloc-die-tests: optimize
37782         * tests/test-xalloc-die.sh: Reduce number of processes.
37783
37784 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37785
37786         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
37787         patch from ludo@gnu.org (Ludovic Courtès).
37788
37789 2009-11-17  Jim Meyering  <meyering@redhat.com>
37790
37791         version-etc: use proper license string
37792         * modules/version-etc (License): Use LGPL, not LGPLv3+.
37793         * modules/version-etc-fsf: Likewise.
37794
37795 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37796
37797         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
37798         printed to stdout.  Deal with EOL differences.
37799
37800 2009-11-17  Eric Blake  <ebb9@byu.net>
37801
37802         unsetenv: work around Solaris bug
37803         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
37804         * lib/unsetenv.c (rpl_unsetenv): Work around it.
37805         Reported by Jim Meyering.
37806
37807         vasnprintf: avoid compiler warnings
37808         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
37809         variables.
37810         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
37811
37812 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37813
37814         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
37815         settings since xalloc-die is no longer the self test,
37816         xalloc-die.sh is.
37817
37818 2009-11-17  Jim Meyering  <meyering@redhat.com>
37819
37820         test-xalloc-die.sh: make the code agree with the commit log
37821         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
37822         at the end, just in case you happen to have a test-xalloc-die
37823         program in some other PATH directory.
37824
37825         test-xalloc-die.sh: fix a portability bug
37826         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
37827         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
37828         Otherwise, argv[0] (as often seen in diagnostics) would be too
37829         system-dependent, sometimes with, and sometimes without the leading "./".
37830
37831         version-etc-fsf: relax license to LGPLv3+
37832         * modules/version-etc-fsf (License): Relax license.
37833
37834 2009-11-16  Eric Blake  <ebb9@byu.net>
37835
37836         xalloc-die-tests: avoid printing null pointer
37837         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
37838         shell script.
37839         * tests/test-xalloc-die.c (program_name): Declare.
37840         * tests/test-xalloc-die.sh (tmpfiles): New file.
37841
37842         setenv, unsetenv: work around various bugs
37843         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
37844         (setenv) [HAVE_SETENV]: Work around bugs.
37845         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
37846         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
37847         for bugs.
37848         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
37849         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
37850         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
37851         * modules/stdlib (Makefile.am): Update substitutions.
37852         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
37853         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
37854         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37855         * modules/setenv-tests: New test.
37856         * modules/unsetenv-tests: Likewise.
37857         * tests/test-setenv.c: New file.
37858         * tests/test-unsetenv.c: Likewise.
37859
37860 2009-11-16  Jim Meyering  <meyering@redhat.com>
37861
37862         version-etc: relax license to LGPLv3+
37863         * modules/version-etc (License): Relax license.
37864
37865         better AC_REQUIRE expanded-before-required-warning avoidance
37866         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
37867         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
37868         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
37869         which is no longer needed.
37870
37871 2009-11-16  Eric Blake  <ebb9@byu.net>
37872
37873         test-freading: clean up temporary file
37874         * tests/test-freading.c (main): Remove file on success, and use
37875         ASSERT more liberally.
37876         Reported by Jim Meyering.
37877
37878 2009-11-16  Jim Meyering  <meyering@redhat.com>
37879
37880         avoid new AC_REQUIRE expanded-before-required warnings
37881         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
37882         merely using it.
37883         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
37884         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
37885
37886 2009-11-15  Simon Josefsson  <simon@josefsson.org>
37887
37888         * tests/test-xalloc-die.c: New file.
37889         * modules/xalloc-die-tests: New file.
37890         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
37891         XFAIL_TESTS so it can be appended by modules.
37892
37893 2009-11-15  Simon Josefsson  <simon@josefsson.org>
37894
37895         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
37896         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
37897
37898 2009-11-14  Eric Blake  <ebb9@byu.net>
37899
37900         fnmatch: avoid compiler warning
37901         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
37902         to silence compiler warning about mismatch signedness in ?:.
37903         Reported by Robert Millan.
37904
37905         intprops: add double-inclusion guard
37906         * lib/intprops.h: Allow idempotent includes.
37907         Suggested by Bruce Korb.
37908
37909         openat: detect Solaris fchownat bug
37910         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
37911         penalizing glibc chownat when only lchownat is broken.
37912         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
37913         trailing slash bugs.
37914         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
37915         * modules/openat-tests (Files): Include more files.
37916         (Depends-on): Add mgetgroups, sleep, stat-time.
37917         (configure.ac): Add additional checks.
37918         (Makefile.am): Build new test.
37919         * tests/test-fchownat.c: New file.
37920
37921         lchown: detect Solaris and FreeBSD bug
37922         * lib/lchown.c (rpl_lchown): Work around bug.
37923         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
37924         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37925         * modules/unistd (Makefile.am): Populate it.
37926         * lib/unistd.in.h (lchown): Update declaration.
37927         * doc/posix-functions/lchown.texi (lchown): Document the bug.
37928         * modules/lchown-tests: New file.
37929         * tests/test-lchown.h (test_lchown): Likewise.
37930         * tests/test-lchown.c (main): Likewise.
37931
37932         chown: detect Solaris and FreeBSD bug
37933         * lib/chown.c (rpl_chown): Work around bug.
37934         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
37935         (gl_PREREQ_CHOWN): Delete.
37936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37937         * modules/unistd (Makefile.am): Populate it.
37938         * lib/unistd.in.h (chown): Update declaration.
37939         * lib/lchown.c (chown): Update client.
37940         * modules/lchown (Depends-on): Add lstat.
37941         * doc/posix-functions/chown.texi (chown): Document the bug.
37942         * doc/posix-functions/getgroups.texi (getgroups): Document
37943         getgroups pitfall.
37944         * modules/chown-tests: New file.
37945         * tests/test-chown.h (test_chown): Likewise.
37946         * tests/test-chown.c (main): Likewise.
37947
37948 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
37949
37950         gnulib-tool: correctly detect absence of m4 directories
37951         * gnulib-tool: Avoid extra newline on data passed to wc -l.
37952
37953 2009-11-14  Jim Meyering  <meyering@redhat.com>
37954
37955         maint.mk: Prohibit inclusion of "xalloc.h" without use.
37956         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
37957
37958 2009-11-14  John W. Eaton  <jwe@gnu.org>
37959
37960         strftime.h: wrap funtion declaration in extern "C" block
37961         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
37962
37963 2009-11-13  Eric Blake  <ebb9@byu.net>
37964
37965         getgroups: avoid compiler warning
37966         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
37967
37968         getgroups: work around FreeBSD bug
37969         * lib/getgroups.c (rpl_getgroups): Work around the bug.
37970         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
37971         * doc/posix-functions/getgroups.texi (getgroups): Document it.
37972         * tests/test-getgroups.c (main): Fix buffer overrun.
37973
37974         getgroups: avoid compilation failure
37975         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
37976         * modules/getgroups (Depends-on): Add stdint.
37977
37978 2009-11-13  Jim Meyering  <meyering@redhat.com>
37979
37980         test-getgroups: avoid compilation failure
37981         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
37982
37983 2009-11-13  Eric Blake  <ebb9@byu.net>
37984
37985         mgetgroups: new module, taken from coreutils
37986         * modules/mgetgroups: New file.
37987         * lib/mgetgroups.h: Likewise.
37988         * lib/mgetgroups.c (mgetgroups): Likewise.
37989         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
37990         * MODULES.html.sh (Users and groups): Mention it.
37991
37992         getgroups: don't expose GETGROUPS_T to user
37993         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
37994         an element at a time if GETGROUPS_T is wrong size.
37995         * lib/getugroups.h (getugroups): Change signature.
37996         * lib/unistd.in.h (getgroups): Likewise.
37997         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
37998         signature needs fixing.
37999         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
38000         AC_TYPE_GETGROUPS.
38001         * modules/group-member (Depends-on): Add getgroups.
38002         * lib/group-member.c (group_info, get_group_info): Use gid_t.
38003         (group_member): Rely on getgroups replacement.
38004         * lib/getugroups.c (getugroups): Use gid_t.
38005         * tests/test-getgroups.c (main): Likewise.
38006         * NEWS: Mention the signature change.
38007         * doc/posix-functions/getgroups.texi (getgroups): Mention the
38008         problem with signature.
38009         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
38010         GETGROUPS_T is still useful for setgroups.
38011
38012         getgroups, getugroups: provide stubs for mingw
38013         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
38014         * lib/getugroups.c (getugroups): Likewise.
38015         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
38016         function.  Modernize replacement scheme.
38017         (gl_PREREQ_GETGROUPS): Delete.
38018         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
38019         * modules/getgroups (configure.ac): Declare witness.
38020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38021         * modules/unistd (Depends-on): Substitute witness.
38022         * lib/unistd.in.h (getgroups): Declare replacement.
38023
38024         getgroups: avoid calling exit
38025         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
38026         drop xalloc.
38027         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
38028         dependencies.
38029         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
38030         exiting, in the rare case of malloc failure.
38031
38032         getgroups: fix logic error
38033         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
38034         has more than 20 groups.
38035         * modules/getgroups-tests: New test.
38036         * tests/test-getgroups.c: New file.
38037
38038 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38039
38040         * tests/test-base64.c: Improve.
38041
38042 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38043
38044         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
38045         Blake <ebb9@byu.net>.
38046
38047 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38048
38049         * tests/test-xvasprintf.c: Add %s%s related checks.
38050
38051 2009-11-12  Eric Blake  <ebb9@byu.net>
38052
38053         version-etc: match standards.texi style
38054         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
38055         and use <> only for URLs.
38056
38057 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
38058
38059         fts: do not fail on a submount during traversal
38060         * lib/fts.c (fts_build): Read the stat info again after opening
38061         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
38062         Original report at http://bugzilla.redhat.com/501848.
38063
38064 2009-11-12  Jim Meyering  <meyering@redhat.com>
38065
38066         bootstrap: sync from coreutils
38067         * build-aux/bootstrap (bootstrap_epilogue): New function.
38068         Use git_modules_config in one more place.  This make bootstrap's
38069         --gnulib-srcdir option more useful for testing.
38070
38071         bootstrap: generalize autoheader check
38072         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
38073         AC_CONFIG_HEADERS.
38074
38075 2009-11-11  Eric Blake  <ebb9@byu.net>
38076
38077         mkfifoat: use new modules for Solaris and BSD bugs
38078         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
38079         * lib/mkfifoat.c (mknodat): Split...
38080         * lib/mknodat.c (mknodat): ...into new file.
38081         * modules/mkfifoat (Files): Ship new file.
38082         (Depends-on): Add mkfifo, mknod.
38083         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
38084         (Depends-on): Add symlink.
38085         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
38086         redundant with test_mkfifo.h.
38087         (do_mkfifoat, do_mknodat): New helpers.
38088
38089         mknod: new module
38090         * modules/mknod: New file.
38091         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
38092         * lib/mknod.c (mknod): Likewise.
38093         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38094         defaults.
38095         * modules/sys_stat (Makefile.am): Substitute them.
38096         * lib/sys_stat.in.h (mknod): Declare replacement.
38097         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38098         Document it.
38099         * doc/posix-functions/mknod.texi (mknod): Likewise.
38100         * modules/mknod-tests: New test.
38101         * tests/test-mknod.c: Likewise.
38102
38103         mkfifo: new module
38104         * modules/mkfifo: New file.
38105         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
38106         * lib/mkfifo.c (mkfifo): Likewise.
38107         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38108         defaults.
38109         * modules/sys_stat (Makefile.am): Substitute them.
38110         * lib/sys_stat.in.h (mkfifo): Declare replacement.
38111         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38112         Document it.
38113         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
38114         * modules/mkfifo-tests: New test.
38115         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
38116         from test-mkfifoat.c.
38117         * tests/test-mkfifo.c: New file.
38118
38119         readlink: detect FreeBSD bug
38120         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
38121         slash on symlink.
38122         * doc/posix-functions/readlink.texi (readlink): Document the bug.
38123         * tests/test-readlink.h (test_readlink): Enhance test.
38124
38125         symlink: detect FreeBSD bug
38126         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
38127         slash on symlink.
38128         * doc/posix-functions/symlink.texi (symlink): Document the bug.
38129         * tests/test-symlink.h (test_symlink): Enhance test.
38130
38131 2009-11-10  Eric Blake  <ebb9@byu.net>
38132
38133         link: detect FreeBSD bug
38134         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
38135         symlink.
38136         * doc/posix-functions/link.texi (link): Document the bug.
38137         * tests/test-link.h (test_link): Enhance test.
38138         * tests/test-linkat.c (main): Update caller.
38139
38140         unlink, remove: detect FreeBSD bug
38141         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
38142         slash on symlink.
38143         * doc/posix-functions/unlink.texi (unlink): Document the bug.
38144         * doc/posix-functions/remove.texi (remove): Likewise.
38145         * tests/test-unlink.h (test_unlink): Enhance test.
38146         * tests/test-remove.c (main): Likewise.
38147
38148 2009-11-09  Eric Blake  <ebb9@byu.net>
38149
38150         rename: detect FreeBSD bug
38151         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
38152         slash on symlink.
38153         * modules/renameat-tests (Depends-on): Add filenamecat.
38154         * tests/test-rename.h (test_rename): Allow one more errno.
38155         * tests/test-renameat.c (main): Likewise.
38156         * doc/posix-functions/rename.texi (rename): Document the bug.
38157
38158         open: detect FreeBSD bug
38159         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
38160         symlink.
38161         * doc/posix-functions/open.texi (open): Document the bug.
38162         * doc/posix-functions/utimes.texi (utimes): Likewise.
38163         * tests/test-open.h (test_open): Add parameters, and test symlink
38164         handling.
38165         * tests/test-open.c (main): Adjust caller.
38166         * tests/test-fcntl-safer.c (main): Likewise.
38167         * modules/open-tests (Depends-on): Add stdbool, symlink.
38168         * modules/fcntl-safer-tests (Depends-on): Likewise.
38169         * tests/test-openat.c (main): Add test-open tests.
38170
38171         stat: detect FreeBSD bug
38172         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
38173         symlink.
38174         * doc/posix-functions/stat.texi (stat): Document the bug.
38175         * tests/test-stat.h (test_stat_func): Add argument.
38176         * tests/test-stat.c (main): Adjust caller.
38177         * tests/test-fstatat.c (main): Likewise.
38178         * modules/stat-tests (Depends-on): Add stdbool, symlink.
38179         Reported by Jim Meyering.
38180
38181 2009-11-09  James Youngman  <jay@gnu.org>
38182
38183         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
38184         * lib/strftime.c: Correct placement of #include "ignore-value.h".
38185
38186 2009-11-08  Jim Meyering  <meyering@redhat.com>
38187
38188         utimens: remove invalid futimesat call
38189         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
38190         It used the file descriptor of the target file as the DIR_FD
38191         parameter and NULL as the file name.  That caused failure with
38192         errno == EFAULT on FreeBSD-8.0-rc2
38193
38194 2009-11-07  Eric Blake  <ebb9@byu.net>
38195
38196         fflush, freadseek: use fseeko, not fseek
38197         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
38198         (clear_ungetc_buffer): Avoid potential problems on large files.
38199         * lib/freadseek.c (freadseek): Likewise.
38200         * modules/freadseek (Depends-on): Add fseeko.
38201         * modules/fseek (configure.ac): Set a witness.
38202         * tests/test-fflush.c (main): Use fseeko.
38203         * tests/test-fpurge.c (fseek): Disable link warning.
38204         * tests/test-freadable.c (fseek): Likewise.
38205         * tests/test-freading.c (fseek): Likewise.
38206         * tests/test-fseeko.c (fseek): Likewise.
38207         * tests/test-ftell.c (fseek): Likewise.
38208         * tests/test-ftello.c (fseek): Likewise.
38209         * tests/test-fwritable.c (fseek): Likewise.
38210         * tests/test-fwriting.c (fseek): Likewise.
38211
38212 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38213
38214         * modules/memchr (Depends-on): Drop getpagesize dependency.
38215
38216 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38217
38218         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
38219         Reported by Ludovic Courtès.
38220         * build-aux/pmccabe2html: Improve example usage.
38221         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
38222
38223 2009-11-06  Jim Meyering  <meyering@redhat.com>
38224
38225         do-release-commit-and-tag: New module.
38226         Automate the release-commit and tag process.
38227         * build-aux/do-release-commit-and-tag: New script, from coreutils.
38228         * modules/do-release-commit-and-tag: New file.
38229         * MODULES.html.sh (Support for maintaining and releasing): Add it.
38230
38231 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38232
38233         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
38234         because test-select.c uses inet_pton.
38235
38236 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38237
38238         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
38239         GETADDRINFO_LIB.  Bump serial number.
38240         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
38241         Suggested by Eric Blake <ebb9@byu.net>.
38242
38243 2009-11-05  Eric Blake  <ebb9@byu.net>
38244
38245         strtod: detect darwin bug
38246         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
38247         Reported by Leo Davis.
38248
38249         freopen-safer: new module
38250         * modules/freopen-safer: New module.
38251         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
38252         * lib/freopen-safer.c (freopen_safer): New file.
38253         * lib/stdio-safer.h (freopen_safer): New declaration.
38254         * lib/stdio--.h (freopen): New override.
38255         * MODULES.html.sh (File stream based Input/Output): Mention it.
38256         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
38257         freopen-safer module.
38258         * doc/posix-functions/stderr.texi (stderr): Likewise.
38259         * doc/posix-functions/stdin.texi (stdin): Likewise.
38260         * doc/posix-functions/stdout.texi (stdout): Likewise.
38261         * modules/freopen-safer-tests: New test.
38262         * tests/test-reopen-safer.c: New file.
38263
38264 2009-11-05  Jim Meyering  <meyering@redhat.com>
38265
38266         maint.mk: Prohibit inclusion of "close-stream.h" without use.
38267         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38268
38269 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38270
38271         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
38272
38273 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38274
38275         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
38276
38277 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38278
38279         Fix link error.
38280         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38281         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38282
38283 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38284
38285         * tests/test-func.c: Also test value of __func__.
38286
38287 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38288
38289         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
38290         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
38291
38292 2009-11-05  Bruno Haible  <bruno@clisp.org>
38293
38294         Fix link error.
38295         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38296         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38297         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
38298
38299 2009-11-05  Bruno Haible  <bruno@clisp.org>
38300
38301         Tests for module 'inet_pton'.
38302         * modules/inet_pton-tests: New file.
38303         * tests/test-inet_pton.c: New file.
38304
38305 2009-11-05  Bruno Haible  <bruno@clisp.org>
38306
38307         Tests for module 'inet_ntop'.
38308         * modules/inet_ntop-tests: New file.
38309         * tests/test-inet_ntop.c: New file.
38310
38311 2009-11-04  Eric Blake  <ebb9@byu.net>
38312
38313         stdlib-safer: wrap all mkstemp variants
38314         * modules/mkostemp (configure.ac): Set witness.
38315         * modules/mkostemps (configure.ac): Likewise.
38316         * modules/mkstemps (configure.ac): Likewise.
38317         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
38318         (mkstemps_safer): Wrap more functions.
38319         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
38320         wrapping.
38321         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
38322         (mkstemps_safer): Implement the wrappers.
38323
38324         mkstemps, mkostemps: new modules
38325         * modules/mkostemps: New module.
38326         * modules/mkstemps: Likewise.
38327         * lib/mkostemps.c (mkostemps): New file.
38328         * lib/mkstemps.c (mkstemps): Likewise.
38329         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
38330         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
38331         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
38332         * modules/stdlib (Makefile.am): Substitute them.
38333         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
38334         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
38335         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
38336         * doc/gnulib.texi (Glibc stdlib.h): Include them.
38337         * MODULES.html.sh (File system functions): Mention them.
38338
38339         tempname: resync from glibc
38340         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
38341         same values for __GT_FILE as glibc.  Abort even when assertions
38342         are disabled.
38343         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
38344         match its value otherwise.  Allow idempotent inclusion.
38345         * lib/mkdtemp.c (mkdtemp): Adjust caller.
38346         * lib/mkostemp.c (mkostemp): Likewise.
38347         * lib/mkstemp.c (mkstemp): Likewise.
38348         * lib/tmpfile.c (tmpfile): Likewise.
38349         * NEWS: Document this.
38350
38351         utimens: fix use of futimens on older Linux
38352         * lib/utimens.c (fdutimens): Use updated, rather than original,
38353         timespec to avoid bug in older Linux kernel.
38354         Reported by Simon Josefsson.
38355
38356 2009-11-04  Bruno Haible  <bruno@clisp.org>
38357
38358         Make num_processors more flexible and consistent.
38359         * lib/nproc.h (enum nproc_query): New type.
38360         (num_processors): Add a 'query' argument.
38361         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
38362         (num_processors): Add a 'query' argument. Test the value of the
38363         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
38364         mingw, count the number of CPUs available for the current process.
38365         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
38366         Check for sched_getaffinity and sched_getaffinity_np.
38367         * modules/nproc (Depends-on): Add c-ctype, extensions.
38368         * NEWS: Mention the change.
38369
38370 2009-11-03  Bruno Haible  <bruno@clisp.org>
38371
38372         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
38373
38374 2009-11-03  Jim Meyering  <meyering@redhat.com>
38375
38376         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
38377         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
38378         if it is defined.
38379
38380 2009-11-02  Eric Blake  <ebb9@byu.net>
38381
38382         mktime, timegm: share common declaration
38383         * lib/mktime-internal.h: New file.
38384         * lib/mktime.c: Use it rather than open-coding a declaration.
38385         * lib/timegm.c: Likewise.
38386         * modules/mktime (Files): Ship it.
38387         * modules/timegm (Files): Likewise.
38388         Suggested by Bruno Haible.
38389
38390         test-update-copyright: update test to match script changes
38391         * tests/test-update-copyright.sh: Avoid hard-coding perl
38392         location.  Don't update *.bak created by earlier runs.
38393
38394 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
38395             Simon Josefsson  <simon@josefsson.org>
38396             Bruno Haible  <bruno@clisp.org>
38397
38398         Fix link error on Solaris 8.
38399         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
38400         also in libnsl. Define also INET_PTON_LIB.
38401         * modules/inet_pton (Link): New section.
38402
38403 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38404             Bruno Haible  <bruno@clisp.org>
38405
38406         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
38407         * modules/inet_ntop (Link): New section.
38408         Reported by Boyan Kasarov <bkasarov@gmail.com>.
38409
38410 2009-11-02  Eric Blake  <ebb9@byu.net>
38411
38412         maint: avoid compiler warnings in m4 macros
38413         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
38414         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
38415
38416 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38417
38418         * m4/pmccabe2html.m4: Remove file.
38419         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
38420         function.  Change maintainer.
38421         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
38422         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
38423         Courtès).
38424
38425 2009-10-31  Eric Blake  <ebb9@byu.net>
38426
38427         fseeko: fix m4 regression
38428         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
38429         regression from 2009-10-27.
38430         Reported by Ralf Wildenhues.
38431
38432 2009-10-31  Jim Meyering  <meyering@redhat.com>
38433
38434         inttostr: aesthetics and improved (compile-time) safety
38435         Define inttype_is_signed rather than inttype_is_unsigned,
38436         since the sole use is via "#if inttype_is_signed".
38437         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
38438         inttype_is_unsigned.
38439         * lib/offtostr.c (inttype_is_signed): Likewise.
38440         * lib/uinttostr.c (inttype_is_signed): Likewise.
38441         * lib/umaxtostr.c (inttype_is_signed): Likewise.
38442         * lib/inttostr.c (inttostr): Use verify to cross-check the
38443         inttype_is_signed value and the signedness of the actual type.
38444         * modules/inttostr (Depends-on): Add verify.
38445
38446 2009-10-30  Eric Blake  <ebb9@byu.net>
38447
38448         build: avoid compiler warnings
38449         * lib/fchmodat.c (lchmod): Mark unused variables.
38450         * lib/getopt.c (_getopt_initialize): Likewise.
38451         * lib/mktime.c (__mktime_internal): Provide prototype.
38452         * lib/inttostr.c (inttostr): Avoid compiler warning even with
38453         older gcc that do not understand #pragma GCC diagnostic.
38454         * lib/uinttostr.c (inttype_is_unsigned): Define.
38455         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
38456
38457 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
38458
38459         stat: fix compilation on AIX
38460         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
38461         only see struct stat64.
38462
38463 2009-10-30  Eric Blake  <ebb9@byu.net>
38464
38465         exclude: make more robust
38466         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
38467         rather than masking a coding bug.
38468         Suggested by Bruno Haible.
38469
38470 2009-10-30  Jim Meyering  <meyering@redhat.com>
38471
38472         perl scripts: remove #!/usr/bin/perl in favor of more portable...
38473         Rather than putting #!/usr/bin/perl on the first line,
38474         start with a variant of what's recommended by "man perlrun" that
38475         invokes the first "perl" program from your shell's search path.
38476         * build-aux/gitlog-to-changelog: Replace #!... as above.
38477         Add a "Local Variables" perl mode setting.
38478         Prompted by a patch from Ludovic Courtès.
38479         Improved by Eric Blake.
38480         * build-aux/useless-if-before-free: Likewise.
38481         * build-aux/announce-gen: Likewise.
38482         * build-aux/update-copyright: Likewise.
38483
38484 2009-10-29  Eric Blake  <ebb9@byu.net>
38485
38486         filenamecat-lgpl: adjust clients
38487         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
38488         filenamecat.
38489         * modules/renameat (Depends-on): Likewise.
38490
38491         filenamecat: split into filenamecat-lgpl
38492         * modules/filenamecat-lgpl: New module.
38493         * modules/filenamecat (Files): Move library-safe files into
38494         filenamecat-lgpl.
38495         (Depends-on): Add filenamecat-lgpl.
38496         (configure.ac): Declare witness.
38497         * lib/filenamecat.h (file_name_concat): Only declare when using
38498         GPL module.
38499         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
38500         Move...
38501         * lib/filenamecat-lgpl.c: ...into new file.
38502         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
38503         (gl_FILE_NAME_CONCAT): Use it.
38504         * MODULES.html.sh (File system functions): Mention new module.
38505
38506         argp: avoid memory leak
38507         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
38508         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
38509         base_name, since the latter malloc()s and can call exit().
38510         Leak introduced 2006-07-03.
38511
38512         dirname-lgpl: adjust clients that don't need full dirname
38513         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
38514         * modules/filenamecat (Depends-on): Likewise.
38515         * modules/linkat (Depends-on): Likewise.
38516         * modules/mkancesdirs (Depends-on): Likewise.
38517         * modules/mkdir (Depends-on): Likewise.
38518         * modules/openat (Depends-on): Likewise.
38519         * modules/savewd (Depends-on): Likewise.
38520         * modules/rename (Depends-on): Likewise.
38521         (License): Relax license.
38522         * modules/mkdir-tests (Depends-on): Drop progname.
38523         (Makefile.am): Delete unneeded LDADD.
38524         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
38525
38526         dirname: split into dirname-lgpl
38527         * modules/dirname-lgpl: New module.
38528         * modules/dirname (Files): Move library-safe files into
38529         dirname-lgpl.
38530         (Depends-on): Add dirname-lgpl.
38531         (configure.ac): Declare witness.
38532         * modules/double-slash-root (License): Relax license.
38533         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
38534         module.
38535         * lib/dirname.c (dir_len, mdir_name): Move...
38536         * lib/dirname-lgpl.c: ...into new file.
38537         * lib/basename.c (last_component, base_len): Move...
38538         * lib/basename-lgpl.c: ...into new file.
38539         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
38540         (gl_DIRNAME): Use it.
38541         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
38542         Mention new module.
38543         * modules/dirname-tests (Depends-on): Add progname.
38544         * tests/test-dirname.c (program_name): Delete.
38545
38546         mkdir: make safe for libraries
38547         * modules/mkdir (Depends-on): Drop xalloc.
38548         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
38549         exit.
38550
38551         tests: avoid some compiler warnings
38552         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
38553         literals.
38554         * tests/test-memchr.c (main): Avoid type mismatch.
38555         * tests/test-arpa_inet.c (main): Avoid unused parameters.
38556         * tests/test-base64.c (main): Likewise.
38557         * tests/test-getdelim.c (main): Likewise.
38558         * tests/test-gethostname.c (main): Likewise.
38559         * tests/test-getline.c (main): Likewise.
38560         * tests/test-netinet_in.c (main): Likewise.
38561         * tests/test-select.c (open_server_socket, main): Likewise.
38562         * tests/test-select-stdin.c (main): Likewise.
38563         * tests/test-sockets.c (main): Likewise.
38564         * tests/test-strsignal.c (main): Likewise.
38565         * tests/test-sys_select.c (main): Likewise.
38566         * tests/test-sys_socket.c (main): Likewise.
38567         * tests/test-u64.c (main): Likewise.
38568         * tests/test-xfprintf-posix.c (main): Likewise.
38569         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
38570
38571         sockets: avoid compiler warning
38572         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
38573
38574         maint: detect usage(1) and other suspicious exits
38575         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
38576
38577 2009-10-29  Jim Meyering  <meyering@redhat.com>
38578
38579         timespec: long-to-int truncation could make timespec_cmp malfunction
38580         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
38581         a multiple of 2^32 nanoseconds as no difference.
38582
38583 2009-10-28  Jim Meyering  <meyering@redhat.com>
38584
38585         fprintftime: wrap macro code argument in "do {...} while(0)"
38586         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
38587         cpy macro must be a statement that can be followed by a semicolon.
38588         Now that the else clause contains a comment and is hence longer
38589         than one line, I require curly braces.  That in turn requires
38590         that we wrap this code block in the standard do...while(0).
38591
38592         fprintftime: remove stray semicolon from previous change
38593         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
38594
38595         fprintftime: avoid a warning about ignored fwrite return value
38596         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
38597         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
38598         that is unsafe.
38599         * modules/fprintftime (Depends-on): Add ignore-value.
38600
38601         exclude: avoid an unwarranted warning
38602         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
38603
38604 2009-10-27  Eric Blake  <ebb9@byu.net>
38605
38606         fseek: avoid compilation failure when fflush is replaced
38607         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
38608         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
38609         module is in use.
38610         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
38611         module is not in use; since REPLACE_FSEEK worked otherwise.
38612         (GNULIB_FTELLO): Likewise for ftell.
38613         Reported by Ian Beckwith and others.
38614
38615 2009-10-27  Bruno Haible  <bruno@clisp.org>
38616
38617         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
38618         Reported by Jim Meyering.
38619
38620 2009-10-27  Jim Meyering  <jim@meyering.net>
38621             Bruno Haible  <bruno@clisp.org>
38622
38623         Avoid warning despite dropping the return value of fwrite.
38624         * lib/unicodeio.c: Include ignore-value.h.
38625         (fwrite_success_callback): Explicitly ignore fwrite's return value.
38626         * modules/unicodeio (Depends-on): Add ignore-value.
38627
38628 2009-10-26  Eric Blake  <ebb9@byu.net>
38629
38630         areadlinkat: fix fallback path
38631         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
38632         pointer and zero.
38633
38634 2009-10-22  Pádraig Brady  <P@draigBrady.com>
38635
38636         Use a better IO block size for modern systems
38637         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
38638         * lib/md2.c: Likewise.
38639         * lib/md4.c: Likewise.
38640         * lib/md5.c: Likewise.
38641         * lib/sha1.c: Likewise.
38642         * lib/sha256.c: Likewise.
38643         * lib/sha512.c: Likewise.
38644
38645 2009-10-22  Eric Blake  <ebb9@byu.net>
38646
38647         tests: avoid several compiler warnings
38648         * tests/test-getcwd.c (main): Avoid buffer underflow.
38649         * tests/test-getdate.c (main): String literals are not safe with
38650         putenv, so use setenv.  Declare unused argument.
38651         * modules/getdate-tests (Depends-on): Add setenv.
38652         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
38653         problems with string literals in char *.
38654         * tests/test-hash.c (main): Avoid shadowing declaration.
38655         (insert_new): Treat string literals as char const *.
38656         * tests/test-getopt.h (test_getopt): Likewise.
38657         (getopt_loop): Alter types to minimize casting elsewhere.
38658         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
38659         (test_getopt_long_posix): Likewise.
38660         (do_getopt_long): Add wrapper to minimize casting.
38661         * tests/test-atexit.c (clear_temp_file): Use void.
38662         * tests/test-areadlink-with-size.c (main): Declare unused
38663         arguments.
38664         * tests/test-areadlink.c (main): Likewise.
38665         * tests/test-areadlinkat-with-size.c (main): Likewise.
38666         * tests/test-areadlinkat.c (main): Likewise.
38667         * tests/test-canonicalize-lgpl.c (main): Likewise.
38668         * tests/test-canonicalize.c (main): Likewise.
38669         * tests/test-dirent-safer.c (main): Likewise.
38670         * tests/test-dirname.c (main): Likewise.
38671         * tests/test-dup2.c (main): Likewise.
38672         * tests/test-fchdir.c (main): Likewise.
38673         * tests/test-fcntl-h.c (main): Likewise.
38674         * tests/test-fcntl-safer.c (main): Likewise.
38675         * tests/test-fdopendir.c (main): Likewise.
38676         * tests/test-fdutimensat.c (main): Likewise.
38677         * tests/test-fflush.c (main): Likewise.
38678         * tests/test-filenamecat.c (main): Likewise.
38679         * tests/test-filevercmp.c (main): Likewise.
38680         * tests/test-fopen-safer.c (main): Likewise.
38681         * tests/test-fopen.c (main): Likewise.
38682         * tests/test-fpending.c (main): Likewise.
38683         * tests/test-fpurge.c (main): Likewise.
38684         * tests/test-freading.c (main): Likewise.
38685         * tests/test-fstatat.c (main): Likewise.
38686         * tests/test-fsync.c (main): Likewise.
38687         * tests/test-futimens.c (main): Likewise.
38688         * tests/test-getndelim2.c (main): Likewise.
38689         * tests/test-gettimeofday.c (main): Likewise.
38690         * tests/test-getopt.c (main): Likewise.
38691         * tests/test-i-ring.c (main): Likewise.
38692         * tests/test-inttypes.c (main): Likewise.
38693         * tests/test-link.c (main): Likewise.
38694         * tests/test-lstat.c (main): Likewise.
38695         * tests/test-math.c (main): Likewise.
38696         * tests/test-md5.c (main): Likewise.
38697         * tests/test-memchr2.c (main): Likewise.
38698         * tests/test-memrchr.c (main): Likewise.
38699         * tests/test-mkdir.c (main): Likewise.
38700         * tests/test-mkdirat.c (main): Likewise.
38701         * tests/test-mkfifoat.c (main): Likewise.
38702         * tests/test-open.c (main): Likewise.
38703         * tests/test-openat-safer.c (main): Likewise.
38704         * tests/test-openat.c (main): Likewise.
38705         * tests/test-quotearg.c (main): Likewise.
38706         * tests/test-rawmemchr.c (main): Likewise.
38707         * tests/test-readlink.c (main): Likewise.
38708         * tests/test-remove.c (main): Likewise.
38709         * tests/test-rename.c (main): Likewise.
38710         * tests/test-renameat.c (main): Likewise.
38711         * tests/test-rmdir.c (main): Likewise.
38712         * tests/test-sha1.c (main): Likewise.
38713         * tests/test-signal.c (main): Likewise.
38714         * tests/test-sigaction.c (main): Likewise.
38715         * tests/test-stat.c (main): Likewise.
38716         * tests/test-stat-time.c (main): Likewise.
38717         * tests/test-stddef.c (main): Likewise.
38718         * tests/test-stdint.c (main): Likewise.
38719         * tests/test-stdio.c (main): Likewise.
38720         * tests/test-stdlib.c (main): Likewise.
38721         * tests/test-strchrnul.c (main): Likewise.
38722         * tests/test-strerror.c (main): Likewise.
38723         * tests/test-string.c (main): Likewise.
38724         * tests/test-strtod.c (main): Likewise.
38725         * tests/test-strverscmp.c (main): Likewise.
38726         * tests/test-symlink.c (main): Likewise.
38727         * tests/test-symlinkat.c (main): Likewise.
38728         * tests/test-sys_stat.c (main): Likewise.
38729         * tests/test-sys_time.c (main): Likewise.
38730         * tests/test-time.c (main): Likewise.
38731         * tests/test-unistd.c (main): Likewise.
38732         * tests/test-unlink.c (main): Likewise.
38733         * tests/test-unlinkat.c (main): Likewise.
38734         * tests/test-utimens.c (main): Likewise.
38735         * tests/test-utimensat.c (main): Likewise.
38736         * tests/test-version-etc.c (main): Likewise.
38737         * tests/test-wchar.c (main): Likewise.
38738         * tests/test-wctype.c (main): Likewise.
38739         * tests/test-xprintf-posix.c (main): Likewise.
38740         * tests/test-posixtm.c (main): Likewise.
38741         (STREQ): Delete unused macro.
38742         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
38743         shadowed variables.
38744         * tests/test-memchr.c (main): Likewise.
38745
38746 2009-10-21  Eric Blake  <ebb9@byu.net>
38747
38748         areadlinkat: avoid failure on older glibc
38749         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
38750         rather than mis-comparing 0 against FUNC_RESULT of char*.
38751
38752 2009-10-21  Bruno Haible  <bruno@clisp.org>
38753
38754         * modules/stpncpy (License): Relicense under LGPLv2+.
38755         Reported by David Lutterkort <lutter@redhat.com>.
38756
38757 2009-10-20  Eric Blake  <ebb9@byu.net>
38758
38759         utimensat: work around Solaris 9 bug
38760         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
38761         has trailing slash bugs.
38762         * tests/test-lutimens.h (test_lutimens): Enhance test.
38763         * tests/test-utimens.h (test_utimens): Likewise.
38764         * doc/posix-functions/utime.texi (utime): Enhance documentation.
38765         * doc/posix-functions/utimes.texi (utimes): Likewise.
38766         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38767         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
38768         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
38769         * doc/posix-functions/futimens.texi (futimens): Likewise.
38770
38771         fdutimensat: new module
38772         * modules/fdutimensat: New file.
38773         * lib/fdutimensat.c (fdutimensat): Likewise.
38774         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
38775         * MODULES.html.sh (File system functions): Mention module.
38776         * modules/fdutimensat-tests: New test.
38777         * tests/test-fdutimensat.c: Likewise.
38778
38779         doc: regenerate INSTALL
38780         * doc/INSTALL: Reflect recent autoconf update.
38781         * doc/INSTALL.ISO: Likewise.
38782         * doc/INSTALL.UTF-8: Likewise.
38783
38784 2009-10-20  Pádraig Brady  <P@draigBrady.com>
38785
38786         acl: warn if ACL support is not detected
38787         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
38788
38789 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
38790
38791         * lib/nproc.h: Add extern "C" block for C++.
38792
38793 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
38794             Bruno Haible  <bruno@clisp.org>
38795
38796         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
38797         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
38798         * doc/posix-functions/isalpha.texi: Likewise.
38799         * doc/posix-functions/isblank.texi: Likewise.
38800         * doc/posix-functions/iscntrl.texi: Likewise.
38801         * doc/posix-functions/isdigit.texi: Likewise.
38802         * doc/posix-functions/isgraph.texi: Likewise.
38803         * doc/posix-functions/islower.texi: Likewise.
38804         * doc/posix-functions/isprint.texi: Likewise.
38805         * doc/posix-functions/ispunct.texi: Likewise.
38806         * doc/posix-functions/isspace.texi: Likewise.
38807         * doc/posix-functions/isupper.texi: Likewise.
38808         * doc/posix-functions/isxdigit.texi: Likewise.
38809
38810 2009-10-18  Bruno Haible  <bruno@clisp.org>
38811
38812         Tests for module 'isblank'.
38813         * modules/isblank-tests: New file.
38814         * tests/test-isblank.c: New file.
38815
38816         New module 'isblank'.
38817         * lib/isblank.c: New file.
38818         * m4/isblank.m4: New file.
38819         * modules/isblank: New file.
38820         * doc/posix-functions/isblank.texi: Mention the new module.
38821
38822 2009-10-18  Bruno Haible  <bruno@clisp.org>
38823
38824         New module 'ctype'.
38825         * lib/ctype.in.h: New file.
38826         * m4/ctype.m4: New file.
38827         * modules/ctype: New file.
38828         * doc/posix-headers/ctype.texi: Mention the new module.
38829
38830 2009-10-18  Jim Meyering  <meyering@redhat.com>
38831
38832         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
38833         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
38834         right after its initialization, rather than farther down.
38835         Keeping these in close proximity makes it easier to ensure
38836         that each such variable is initialized.  E.g.,
38837
38838             LIB_CLOCK_GETTIME=
38839             AC_SUBST([LIB_CLOCK_GETTIME])
38840
38841         This change also increments these serial numbers.
38842         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
38843         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
38844         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38845
38846 2009-10-18  Bruno Haible  <bruno@clisp.org>
38847
38848         Don't let environment variables perturb build.
38849         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
38850         (gl_PREREQ_GETHRXTIME): ... not here.
38851
38852 2009-10-18  Bruno Haible  <bruno@clisp.org>
38853
38854         Avoid symlink attack in localcharset module.
38855         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
38856         (O_NOFOLLOW): Define fallback.
38857         (get_charset_aliases): Don't open the file if it is a symbolic link.
38858         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
38859         gl_FCNTL_H.
38860         (gl_FCNTL_H): Require it.
38861         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
38862         * modules/localcharset (Files): Add m4/fcntl_h.m4.
38863         Reported by Fergal Glynn <fglynn@veracode.com>.
38864
38865 2009-10-18  Bruno Haible  <bruno@clisp.org>
38866
38867         Implement nproc for mingw.
38868         * lib/nproc.c: Include <windows.h>
38869         (num_processors): On native Windows platforms, try GetSystemInfo.
38870
38871 2009-10-18  Bruno Haible  <bruno@clisp.org>
38872
38873         Implement nproc for IRIX.
38874         * lib/nproc.c: Include <sys/sysmp.h>.
38875         (num_processors): On IRIX systems, try sysmp.
38876         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
38877
38878 2009-10-18  Bruno Haible  <bruno@clisp.org>
38879
38880         Implement nproc for HP-UX.
38881         * lib/nproc.c: Include <sys/pstat.h>
38882         (num_processors): On HP-UX systems, try pstat_getdynamic.
38883         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
38884         pstat_getdynamic.
38885
38886 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
38887             Bruno Haible  <bruno@clisp.org>
38888
38889         Implement nproc for NetBSD, OpenBSD.
38890         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
38891         (ARRAY_SIZE): New macro.
38892         (num_processors): On BSD systems, try sysctl of HW_NCPU.
38893         * m4/nproc.m4: New file.
38894         * modules/nproc (Files): Add m4/nproc.m4.
38895         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
38896         (Makefile.am): Instead, augment lib_SOURCES.
38897
38898 2009-10-18  Bruno Haible  <bruno@clisp.org>
38899
38900         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
38901         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
38902         sys/param.h.
38903
38904 2009-10-16  Eric Blake  <ebb9@byu.net>
38905
38906         utimensat: new module
38907         * modules/utimensat: New file.
38908         * lib/utimensat.c (utimensat): Likewise.
38909         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38910         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
38911         so we can work around Linux bugs.
38912         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
38913         * modules/sys_stat (Makefile.am): Substitute them.
38914         * lib/sys_stat.in.h (utimensat): Declare it.
38915         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38916         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38917         * modules/utimensat-tests: New test.
38918         * tests/test-utimensat.c: Likewise.
38919
38920         utimens: let lutimens work on non-symlinks
38921         * lib/utimens.c (lutimens): Fall back to utimens rather than
38922         failing with ENOSYS, when file is not a symlink.
38923         (utimens): Reduce redirection.
38924         * tests/test-lutimens.h (test_lutimens): Update test to cover
38925         non-symlinks.
38926         * tests/test-utimens.h (test_utimens): Update test to cover
38927         symlinks.
38928         * tests/test-utimens.c (main): Update caller.
38929
38930         utimens: cache whether utimensat syscall works
38931         * lib/utimens.c (utimensat_works_really): New cache variable.
38932         (fdutimens, lutimens): Use it to avoid failing syscall.
38933
38934         test-stat-time, test-utimens: improve portability
38935         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
38936         ext4 on alpha, and for cygwin.
38937         * tests/test-utimens-common.h: New file.
38938         (nap): Factor delays into single function.
38939         * tests/test-lutimens.h (test_lutimens): Use new header.
38940         * tests/test-futimens.h (test_futimens): Likewise.
38941         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
38942         timestamps to occur from same machine, as was done previously for
38943         test_utimens.
38944         * modules/utimens-tests (Files): Ship new file.
38945         * modules/futimens-tests (Files): Likewise.
38946         Reported in part by Jim Meyering.
38947
38948         sys_stat: sort replacement declarations
38949         * lib/sys_stat.in.h: Sort declarations.
38950         * lib/futimens.c (futimens): Fix typo.
38951
38952 2009-10-15  Jim Meyering  <meyering@redhat.com>
38953
38954         don't let environment settings perturb build
38955         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
38956         could cause a configure-time and/or build-time malfunction.
38957         Typically, a configure-time function-in-library test is performed
38958         via code like this:
38959
38960           LIB_VAR=
38961           AC_SUBST([LIB_VAR])
38962           prefix_saved_LIBS=$LIBS
38963             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
38964                        [test "$ac_cv_search_FUNC" = "none required" ||
38965                         LIB_VAR=$ac_cv_search_FUNC])
38966           LIBS=$prefix_saved_LIBS
38967
38968         However, in each of the files affected by this change, the LIB_VAR=
38969         initialization was omitted.  Thus, when set in the environment, its
38970         value would propagate into generated Makefiles when FUNC is not found
38971         in LIB_NAME.
38972         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
38973         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
38974         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38975
38976 2009-10-14  Eric Blake  <ebb9@byu.net>
38977
38978         fchdir: avoid infinite recursion in mingw
38979         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
38980         recursing.
38981
38982         test-stat-time: port to mingw
38983         * tests/test-stat-time.c (force_unlink): Return a value.
38984         (test_ctime) [W32]: Fix compilation error.
38985         (nap): Don't call usleep with too large an argument.  Use
38986         force_unlink.
38987         * doc/pastposix-functions/usleep.texi (usleep): Document the
38988         portability issue.
38989
38990 2009-10-13  Jim Meyering  <meyering@redhat.com>
38991
38992         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
38993         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
38994         * modules/pipe-filter-ii: Likewise.
38995         * modules/sys_socket-tests: Likewise.
38996         * modules/tsearch-tests: Likewise.
38997         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
38998         (check): Depend on it.
38999
39000 2009-10-12  Eric Blake  <ebb9@byu.net>
39001
39002         utimens-tests: port to NFS file systems
39003         * tests/test-utimens.h (test_utimens): Refactor utimecmp
39004         comparisons to avoid spurious failures from timestamp drift
39005         between NFS machines.
39006
39007 2009-10-12  Eric Blake  <ebb9@byu.net>
39008
39009         stat-time-tests: minor cleanups
39010         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
39011         * tests/test-stat-time.c (nap): Separate assignment from call.
39012         Suggested by Paolo Bonzini and Bruno Haible.
39013
39014         sys_stat: guarantee struct timespec
39015         * lib/sys_stat.in.h (includes): Always include <time.h>
39016         * modules/sys_stat (Depends-on): Add time.
39017         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
39018         mode_t permission values.
39019         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
39020         get at subsecond timestamps.
39021
39022 2009-10-10  Eric Blake  <ebb9@byu.net>
39023
39024         futimens: new module
39025         * modules/futimens: New file.
39026         * lib/futimens.c (futimens): Likewise.
39027         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
39028         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
39029         we can work around Linux bugs.
39030         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39031         * modules/sys_stat (Makefile.am): Substitute them.
39032         * lib/sys_stat.in.h (futimens): Declare it.
39033         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39034         * doc/posix-functions/futimens.texi (futimens): Likewise.
39035         * modules/futimens-tests: New test.
39036         * tests/test-futimens.c: Likewise.
39037
39038         utimens: introduce fdutimens
39039         * lib/utimens.h (fdutimens): New prototype.
39040         * lib/utimens.c (gl_futimens): Move guts...
39041         (fdutimens): ...to new interface.
39042         * tests/test-utimens.c (do_fdutimens): Use it.
39043
39044         utimens: add UTIME_NOW and UTIME_OMIT support
39045         * lib/utimens.c (validate_timespec, update_timespec): New helper
39046         functions.
39047         (gl_futimens, lutimens): Use them.
39048         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
39049         stdbool, sys_stat.
39050         (Link): Mention resulting library dependency.
39051         * modules/utimecmp (Link): Likewise.
39052         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
39053         (Makefile.am): Pick up library dependency.
39054         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
39055         definition.
39056         * tests/test-sys_stat.c: Test the definitions.
39057         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
39058         * NEWS: Document library dependency.
39059
39060         utimecmp: support symlink timestamps
39061         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
39062         hashing when possible.  Use pathconf when available.
39063         (SYSCALL_RESOLUTION): Recognize tighter resolution.
39064         * modules/utimecmp (Depends-on): Add lstat.
39065
39066         utimens: add lutimens interface
39067         * lib/utimens.c (lutimens): New function.
39068         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
39069         * lib/utimens.h (lutimens): Declare new interface.
39070         * tests/test-utimens.c (main): Enhance test.
39071         * tests/test-lutimens.h (test_lutimens): New file.
39072         * modules/utimens-tests (Files): Distribute it.
39073         (Depends-on): Add symlink.
39074         (configure.ac): Check for usleep.
39075
39076         utimens: validate futimens usage
39077         * lib/utimens.c (gl_futimens): Require valid fd up front, using
39078         fewer syscalls on failure later on.  Avoid compiler warning on
39079         mingw.
39080         * modules/utimens (Depends-on): Add dup2.
39081
39082         utimens: add test
39083         * modules/utimens-tests: New test.
39084         * tests/test-utimens.h: New file.
39085         * tests/test-futimens.h: Likewise.
39086         * tests/test-utimens.c: Likewise.
39087
39088         doc: mention timestamp portability issues
39089         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
39090         instead.
39091         * doc/posix-functions/utime.texi (utime): Likewise.
39092         * doc/posix-functions/utimes.texi (utimes): Likewise.
39093         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
39094         instead.
39095         * doc/posix-functions/futimens.texi (futimens): Mention utimens
39096         module.
39097         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39098         Mention weakness with symlink timestamps.
39099         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
39100         to utimensat/futimens instead.
39101         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
39102
39103         test-dup2: enhance test
39104         * tests/test-dup2.c (main): Also check AT_FDCWD.
39105
39106         test-stat-time: avoid more spurious failures
39107         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
39108         xfs; and avoid race if the two timestamps cross quantization edge.
39109
39110         relocatable: prefer 'file system' over 'filesystem'
39111         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
39112         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
39113         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
39114         * doc/relocatable.texi (Enabling Relocatability): Likewise.
39115         * lib/relocatable.c (compute_curr_prefix): Likewise.
39116
39117 2009-10-10  Jim Meyering  <meyering@redhat.com>
39118
39119         stat-time-tests: check for the usleep function
39120         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
39121
39122 2009-10-10  Bruno Haible  <bruno@clisp.org>
39123
39124         * modules/xnanosleep: Put the Link section after the Include section.
39125
39126 2009-10-09  Eric Blake  <ebb9@byu.net>
39127
39128         dup2: work around FreeBSD 6.1 bug
39129         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
39130         * doc/posix-functions/dup2.texi (dup2): Document it.
39131         Reported by Nelson H. F. Beebe and Jim Meyering.
39132
39133         test-stat-time: port to buggy NFS clients
39134         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
39135         (test_ctime): Also skip test if mtime and ctime are skewed.
39136
39137         maint: prefer 'file system' over 'filesystem'
39138         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39139         * doc/posix-functions/lstat.texi (lstat): Likewise.
39140         * lib/file-has-acl.c (file_has_acl): Likewise.
39141         * lib/fwriteerror.c [TEST]: Likewise.
39142         * tests/test-areadlink.h (test_areadlink): Likewise.
39143         * tests/test-areadlinkat-with-size.c (main): Likewise.
39144         * tests/test-areadlinkat.c (main): Likewise.
39145         * tests/test-canonicalize-lgpl.c (main): Likewise.
39146         * tests/test-canonicalize.c (main): Likewise.
39147         * tests/test-fstatat.c (main): Likewise.
39148         * tests/test-linkat.c (main): Likewise.
39149         * tests/test-lstat.h (test_lstat_func): Likewise.
39150         * tests/test-mkdir.h (test_mkdir): Likewise.
39151         * tests/test-readlink.h (test_readlink): Likewise.
39152         * tests/test-remove.c (main): Likewise.
39153         * tests/test-rename.h (test_rename): Likewise.
39154         * tests/test-renameat.c (main): Likewise.
39155         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39156         * tests/test-symlink.h (test_symlink): Likewise.
39157         * tests/test-symlinkat.c (main): Likewise.
39158         * tests/test-unlink.h (test_unlink_func): Likewise.
39159         * tests/test-unlinkat.c (main): Likewise.
39160
39161         maint: make realtime library usage explicit
39162         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
39163         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
39164         * modules/settime (Link): Likewise.
39165         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
39166
39167         test-stat-time: speed up execution
39168         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
39169         warning on mingw.
39170         (nap): New helper function.
39171         (prepare_test): Use it to reduce sleep time.
39172         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
39173         execution.
39174         * modules/stat-time-tests (configure.ac): Check for usleep.
39175
39176 2009-10-09  Jim Meyering  <meyering@redhat.com>
39177
39178         selinux-h: always use getfilecon wrappers
39179         * lib/getfilecon.c: New file.
39180         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
39181         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
39182         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
39183         (fgetfilecon): Provide a stub.
39184         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
39185         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
39186         file unconditionally.
39187         When <selinux/selinux.h> is found, arrange to use wrappers.
39188         * modules/selinux-h (Files): Add getfilecon.c.
39189         (Makefile.am): Substitute include-next-related bits
39190         into the now-always-generated selinux/selinux.h file.
39191         * doc/glibc-functions/lgetfilecon.texi: New file.
39192         * doc/glibc-functions/fgetfilecon.texi: New file.
39193         * doc/glibc-functions/getfilecon.texi: New file.
39194         * doc/glibc-functions/getfilecon-desc.texi: New file.
39195         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
39196         which to pull in the new files.
39197         * MODULES.html.sh (Misc): Add selinux-h.
39198
39199 2009-10-08  Jim Meyering  <meyering@redhat.com>
39200
39201         unistd: fix comment typo
39202         * lib/unistd.in.h (euidaccess): Fix a comment typo.
39203
39204 2009-10-08  Eric Blake  <ebb9@byu.net>
39205
39206         areadlink: use SIZE_MAX consistently
39207         * modules/areadlink (Depends-on): Add stdint.
39208         * modules/areadlink-with-size (Depends-on): Likewise.
39209         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
39210         gives NULL; drop sys/types, since unistd gives size_t; and add
39211         stdint for SIZE_MAX.
39212         (SIZE_MAX): Rely on headers.
39213         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
39214         and add stdint.
39215         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
39216         (SIZE_MAX): Likewise.
39217         (INITIAL_BUF_SIZE): Turn into enum.
39218         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
39219
39220 2009-10-08  Jim Meyering  <meyering@redhat.com>
39221
39222         areadlinkat: avoid compilation failure
39223         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
39224         Fix typo in comment.
39225
39226 2009-10-07  Eric Blake  <ebb9@byu.net>
39227
39228         areadlinkat-with-size: new module
39229         * modules/areadlinkat-with-size: New module.
39230         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
39231         * lib/areadlink.h (areadlinkat): Declare it.
39232         * MODULES.html.sh (File system functions): Mention it.
39233         * modules/areadlinkat-with-size-tests: New test.
39234         * tests/test-areadlinkat-with-size.c: New file.
39235
39236         xreadlinkat: new module
39237         * modules/xreadlinkat: New module.
39238         * lib/xreadlinkat.c (xreadlinkat): New file.
39239         * lib/xreadlink.h (xreadlinkat): Declare it.
39240         * MODULES.html.sh (File system functions): Mention it.
39241
39242         areadlinkat: new module
39243         * lib/at-func.c (FUNC_FAIL): New define.
39244         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
39245         * modules/areadlinkat: New module.
39246         * lib/linkat.c (areadlinkat): Move...
39247         * lib/areadlinkat.c (areadlinkat): ...to new file.
39248         * lib/areadlink.h (areadlinkat): Declare it.
39249         * modules/linkat (Depends-on): Add areadlinkat.
39250         * MODULES.html.sh (File system functions): Mention it.
39251         * modules/areadlinkat-tests: New test.
39252         * tests/test-areadlinkat.c: New file.
39253
39254         areadlink, areadlink-with-size: add tests
39255         * modules/areadlink-tests: New test.
39256         * modules/areadlink-with-size-tests: Likewise.
39257         * tests/test-areadlink.h: New file.
39258         * tests/test-areadlink.c: Likewise.
39259         * tests/test-areadlink-with-size.c: Likewise.
39260
39261         maint: minor cleanups
39262         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
39263         _UNUSED_PARAMETER_ instead.
39264         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
39265         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
39266         * modules/linkat-tests (Files): Distribute test-link.h.
39267
39268         openat, utimens: whitespace cleanup
39269         * lib/openat.c: Prefer space throughout, rather than mix of 8
39270         spaces vs. tabs.
39271         * lib/at-func.c: Likewise.
39272         * lib/utimens.c: Likewise.
39273
39274         openat: avoid using wrong fd
39275         * lib/openat.c (openat_permissive): Reject user's fd if saving the
39276         working directory chooses same fd.
39277         * lib/at-func.c (AT_FUNC_NAME): Likewise.
39278
39279         mkdir, mkdirat: fix cygwin 1.5.x bug
39280         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
39281         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
39282         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
39283         bug.
39284         (gl_PREREQ_MKDIR): Delete unused macro.
39285         * modules/mkdir (Files): Track file rename.
39286         (configure.ac): Update macro name.
39287         * modules/openat (Depends-on): Add mkdir.
39288         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
39289
39290         mkdir, mkdirat: add tests
39291         * modules/mkdir-tests: New test.
39292         * tests/test-mkdir.h: New file.
39293         * tests/test-mkdir.c: Likewise.
39294         * tests/test-mkdirat.c: Likewise.
39295         * modules/openat-tests (Files): Add new files.
39296         (Makefile.am): Run new test.
39297
39298 2009-10-06  Eric Blake  <ebb9@byu.net>
39299
39300         doc: tweak *at function documentation
39301         * doc/posix-functions/faccessat.texi (faccessat): Mention
39302         known issue with replacement.
39303         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
39304         * doc/posix-functions/linkat.texi (linkat): Likewise.
39305         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
39306         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
39307         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39308         * doc/posix-functions/renameat.texi (renameat): Likewise.
39309         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39310
39311         openat: fix GNU/Hurd bug in unlinkat
39312         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
39313         broken.
39314         * doc/posix-functions/unlink.texi (unlink): Document this.
39315         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
39316
39317         fdopendir: fix GNU/Hurd bug
39318         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
39319         allowing non-directory fds.
39320         * lib/fdopendir.c (rpl_fdopendir): Work around it.
39321         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
39322         * modules/dirent (Makefile.am): Substitute it.
39323         * lib/dirent.in.h (fdopendir): Declare replacement.
39324         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
39325         * tests/test-fdopendir.c (main): Test something other than
39326         /dev/null, since on Hurd that behaves like a directory.
39327
39328         test-symlink: port to GNU/Hurd
39329         * tests/test-symlink.h (test_symlink): Relax expected errno.
39330
39331         doc: tweak more cygwin information
39332         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
39333         now compatible with glibc.
39334         * doc/posix-functions/getopt.texi (getopt): Likewise.
39335
39336         getopt-gnu: add another test
39337         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
39338         guarantee behavior relied on by m4.
39339         * tests/test-getopt.c (main): Use it.
39340         * modules/getopt-posix-tests (Depends-on): Add setenv.
39341         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
39342
39343         getopt: fix compilation on darwin
39344         * lib/getopt.in.h (includes): Leave breadcrumbs during system
39345         include.
39346         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
39347         Reported by Ludovic Courtès.
39348
39349 2009-10-06  Bruno Haible  <bruno@clisp.org>
39350
39351         * modules/size_max (Description): Discourage its use.
39352         Reported by Simon Josefsson.
39353
39354 2009-10-06  Jim Meyering  <meyering@redhat.com>
39355
39356         linkat: avoid compilation failure
39357         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
39358
39359 2009-10-05  Eric Blake  <ebb9@byu.net>
39360
39361         linkat: support Linux 2.6.17
39362         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
39363         linkat on Linux, but allow cache variable override.
39364         * lib/linkat.c (rpl_linkat): Define override.
39365         * modules/linkat (Depends-on): Add symlinkat.
39366         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
39367         * modules/unistd (Makefile.am): Substitute it.
39368         * lib/unistd.in.h (linkat): Declare replacement.
39369         Reported by Pádraig Brady.
39370
39371         quotearg: port test to systems with C.UTF-8 locale
39372         * tests/test-quotearg.c (struct result_strings): Add another
39373         member, differentiating between C.ASCII and C.UTF-8 handling.
39374         (compare_strings): Add parameter.
39375         (main): Adjust all callers.
39376
39377         getopt: avoid clash with FreeBSD _getopt_internal
39378         * lib/getopt.in.h (_getopt_internal): Override the name.
39379         * lib/getopt_int.h (includes): Pick up any overrides.
39380         Reported by Reuben Thomas.
39381
39382         hash: allow C89 compilation
39383         * lib/hash.c (check_tuning): Move declaration before statement.
39384         Reported by Reuben Thomas.
39385
39386 2009-10-05  Karl Berry  <karl@gnu.org>
39387
39388         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
39389
39390 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
39391             Bruno Haible  <bruno@clisp.org>
39392
39393         * lib/uname.c (uname): Use a table-driven algorithm to compute
39394         Windows NT versions.
39395
39396 2009-10-04  Bruno Haible  <bruno@clisp.org>
39397
39398         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
39399         program_invocation_short_name.
39400         * modules/progname (configure.ac): Test for presence of
39401         program_invocation_short_name.
39402         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
39403
39404 2009-10-04  Bruno Haible  <bruno@clisp.org>
39405
39406         * lib/progname.c (set_program_name): Fix comment.
39407         Reported by Jim Meyering.
39408
39409 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39410             Bruno Haible  <bruno@clisp.org>
39411
39412         * lib/uname.c: Include <string.h>.
39413         (uname): Do only one call to GetVersionEx in the common case.
39414
39415 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39416             Bruno Haible  <bruno@clisp.org>
39417
39418         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
39419         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
39420         (uname): Add support for Windows CE and various non-x86 CPU types.
39421
39422 2009-10-03  Bruno Haible  <bruno@clisp.org>
39423
39424         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
39425         invocation to tests/configure.ac.
39426         Reported by Ian Beckwith <ianb@erislabs.net>.
39427
39428 2009-10-02  Eric Blake  <ebb9@byu.net>
39429
39430         fchdir: avoid compiler warning
39431         * lib/fchdir.c (canonicalize_file_name)
39432         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
39433
39434         test-open: support mingw errno values
39435         * tests/test-open.h (test_open): Relax test.
39436         * tests/test-fopen.h (test_fopen): Likewise.
39437         * tests/test-openat-safer.c (main): Likewise.
39438
39439         open: fix opening directory on mingw
39440         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
39441
39442         test-open: on GNU/Hurd, /dev/null is a directory
39443         * tests/test-fopen.h (main): Rename...
39444         (test_fopen): ...to this.  Use a guaranteed non-directory when
39445         confirming open behavior on trailing slash.
39446         * tests/test-openat-safer.c (main): Likewise.
39447         * tests/test-open.h (main): Likewise....
39448         (test_open): ...to this.
39449         * tests/test-fopen.c (main): Adjust caller.
39450         * tests/test-fopen-safer.c (main): Likewise.
39451         * tests/test-open.c (main): Likewise.
39452         * tests/test-fcntl-safer.c (main): Likewise.
39453         Reported by Samuel Thibault.
39454
39455         rename, fchdir: don't ignore chdir failure
39456         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
39457         * lib/rename.c (rpl_rename) [W32]: Likewise.
39458         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
39459         an empty destination directory if source cannot be renamed,
39460         although there is still possibility for failure.
39461         * doc/posix-functions/rename.texi (rename): Document the race.
39462         Reported by Jim Meyering.
39463
39464         maint: cleanup whitespace in recent commits
39465         * lib/rename.c (rpl_rename): Remove tabs.
39466         * tests/test-link.h (test_link): Likewise.
39467         * lib/fchdir.c (get_name): Likewise.
39468         Reported by Jim Meyering.
39469
39470 2009-10-02  Ben Pfaff  <blp@gnu.org>
39471
39472         relocatable-prog-wrapper: Add missing dependency on
39473         double-slash-root.
39474         * modules/relocatable-prog-wrapper: Add dependency.
39475         Reported by Ian Beckwith <ianb@erislabs.net>.
39476
39477 2009-10-02  Eric Blake  <ebb9@byu.net>
39478
39479         renameat: fix Solaris bugs
39480         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
39481         needed fixing.
39482         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
39483         * modules/stdio (Makefile.am): Substitute it.
39484         * lib/stdio.in.h (renameat): Declare replacement.
39485         * lib/renameat.c (rpl_renameat): Implement fix.
39486
39487         renameat: new module
39488         * modules/renameat: New file.
39489         * lib/renameat.c (renameat): Likewise.
39490         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
39491         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
39492         * modules/stdio (Makefile.am): Substitute them.
39493         * lib/stdio.in.h (renameat): Declare it.
39494         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39495         * doc/posix-functions/renameat.texi (renameat): Likewise.
39496         * modules/renameat-tests: New test.
39497         * tests/test-renameat.c: Likewise.
39498
39499         rename: fix mingw bugs
39500         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
39501         directory overwrite bugs.
39502
39503         rename: fix another cygwin 1.5 bug
39504         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
39505         checks.
39506         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
39507         unnecessary cygwin workarounds.  Also work around bug with moving
39508         full directory onto an empty one.
39509         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
39510
39511         rename-dest-slash: merge into rename module
39512         * modules/rename-dest-slash (Status): Mark obsolete.
39513         (Depends-on): Add rename.
39514         (Files): Let rename do it all.
39515         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
39516         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
39517         * m4/rename-dest-slash.m4: ...so this file can be deleted.
39518         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
39519         * lib/rename.c (rpl_rename): Update comments.
39520
39521         rename: fix cygwin 1.5.x bugs
39522         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
39523         * lib/rename.c (rpl_rename): Work around them.
39524         * modules/rename (Depends-on): Add same-inode.
39525
39526         rename: fix Solaris 10 bug
39527         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39528         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
39529         was the only bug.
39530
39531         rename: fix Solaris 9 bug
39532         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
39533         on non-directory.  Avoid calling exit.
39534         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
39535         strdup.
39536         * modules/rename-tests (Depends-on): Drop lstat.
39537         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39538         (gl_PREREQ_RENAME): Delete unused macro.
39539
39540         rename-dest-slash: fix NetBSD bug
39541         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
39542         links.
39543         * modules/rename-dest-slash (Depends-on): Add same-inode.
39544
39545         rename-tests: new test, exposes several platform bugs
39546         * modules/rename-tests: New file.
39547         * tests/test-rename.h: Likewise.
39548         * tests/test-rename.c: Likewise.
39549         * doc/posix-functions/rename.texi (rename): Improve documentation,
39550         including bugs that will eventually be fixed in gnulib.
39551
39552 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
39553
39554         * lib/uname.c: Include <stdlib.h>
39555         (uname): Assume version info is available.
39556
39557 2009-10-02  Jim Meyering  <meyering@redhat.com>
39558
39559         gnu-web-doc-update: correct --help output
39560         * build-aux/gnu-web-doc-update: Make --help output relevant.
39561
39562         gnu-web-doc-update: add standard options
39563         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
39564
39565         gnu-web-doc-update: New module.
39566         Use this script to automatically update the on-line web documentation
39567         for your GNU project at http://www.gnu.org/software/$pkg/manual/
39568         * modules/gnu-web-doc-update: New file, from coreutils.
39569         * build-aux/gnu-web-doc-update: New script.
39570
39571 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
39572
39573         link: LoadLibrary is not needed.
39574         * lib/link.c: Use GetModuleHandle.
39575
39576 2009-10-01  Eric Blake  <ebb9@byu.net>
39577
39578         getopt: bump serial number
39579         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
39580         change.
39581
39582         tests: tighten link, rmdir, and remove tests
39583         * tests/test-link.h (includes): No need to use <config.h> here.
39584         Clean up if directory hard link was created, otherwise test for
39585         trailing '.'.
39586         * tests/test-linkat.c (main): Simplify.
39587         * tests/test-remove.c (main): Enhance test for trailing '.'.
39588         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39589
39590 2009-10-01  Jim Meyering  <meyering@redhat.com>
39591
39592         maint.mk: requiring "make major" was annoying, for a "minor" release.
39593         What is intended is "stable", to contrast with alpha and beta,
39594         so require "make stable", not "make major".
39595         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
39596         (get_tool_versions): Likewise.
39597         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
39598
39599 2009-09-30  Ben Pfaff  <blp@gnu.org>
39600
39601         Fix broken build of replacement for Windows tmpfile().
39602         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
39603         flags argument added along with the 'mkostemp' module.
39604
39605 2009-09-28  Bruno Haible  <bruno@clisp.org>
39606
39607         Avoid identifier clash with POSIX function 'remove' defined as a macro.
39608         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
39609         to 'remove_elt'.
39610         (gl_list_remove): Update.
39611         * lib/gl_list.c (gl_list_remove): Update.
39612         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
39613         to 'remove_elt'.
39614         (gl_oset_remove): Update.
39615         * lib/gl_list.c (gl_oset_remove): Update.
39616         Reported by Eric Blake.
39617
39618 2009-09-28  Eric Blake  <ebb9@byu.net>
39619
39620         doc: mention yet more cygwin 1.7 status
39621         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
39622         cygwin.
39623         * doc/glibc-functions/execvpe.texi (execvpe): New file.
39624         * doc/gnulib.texi (Glibc unistd.h): Mention it.
39625
39626         argp: fix test failure
39627         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
39628         that are not upper-case.  Pass correct range to tolower.
39629
39630 2009-09-27  Jim Meyering  <meyering@redhat.com>
39631
39632         test-yesno: work around sparc-dash here-document infelicity
39633         Without this change, the literal \177 byte in a here document
39634         would make dash 0.5.5.1-3 access uninitialized memory.
39635         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
39636         Instead, use a marker, "@", and filter through tr to create the desired
39637         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
39638
39639 2009-09-27  Bruno Haible  <bruno@clisp.org>
39640
39641         Disable untested support for new flavours of ACLs on AIX.
39642         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
39643         progress.
39644         * lib/set-mode-acl.c (qset_acl): Likewise.
39645
39646 2008-12-07  Bruno Haible  <bruno@clisp.org>
39647
39648         Add support for new flavours of ACLs on AIX. (Untested.)
39649         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
39650         (file_has_acl): Add support for newer AIX.
39651         * lib/set-mode-acl.c (qset_acl): Likewise.
39652         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
39653         Rainer Tammer <tammer@tammer.net>.
39654
39655 2009-09-26  Eric Blake  <ebb9@byu.net>
39656
39657         argp: fix compilation of getopt
39658         * lib/getopt.in.h (includes): Use different guard than glibc.
39659         Reported by Sergey Poznyakoff.
39660
39661         doc: mention more cygwin 1.7 status
39662         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
39663         bug.
39664         * doc/posix-functions/execl.texi (execl): Likewise.
39665         * doc/posix-functions/execle.texi (execle): Likewise.
39666         * doc/posix-functions/execlp.texi (execlp): Likewise.
39667         * doc/posix-functions/execv.texi (execv): Likewise.
39668         * doc/posix-functions/execve.texi (execve): Likewise.
39669         * doc/posix-functions/execvp.texi (execvp): Likewise.
39670         * doc/glibc-functions/canonicalize_file_name.texi
39671         (canonicalize_file_name): Cygwin 1.7 now provides this.
39672         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
39673         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
39674         on AT_SYMLINK_NOFOLLOW.
39675
39676 2009-09-24  Eric Blake  <ebb9@byu.net>
39677
39678         test-linkat: make test more robust
39679         * tests/test-linkat.c (main): Avoid collision with EEXIST.
39680
39681         getopt: fix inclusion guards for cygwin
39682         * modules/getopt-posix (Depends-on): Add include-next.
39683         (Makefile.am): Substitute more items in replacement header.
39684         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
39685         <getopt.h>.
39686         * lib/getopt.in.h (includes): Use split inclusion guard, and
39687         prefer <getopt.h> over include <unistd.h> when one is present.
39688         (option): Also override name of 'struct option'.
39689
39690         same-inode: revert prior change; it is not yet ready
39691         * NEWS: Undo mention of this change.
39692         * lib/same-inode.h (same-inode.h): Undo tri-state change.
39693         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
39694         * lib/cycle-check.c (cycle_check): Likewise.
39695         * lib/same.c (same_name): Likewise.
39696         * lib/at-func2.c (at_func2): Likewise.
39697
39698 2009-09-23  Eric Blake  <ebb9@byu.net>
39699
39700         linkat: new module
39701         * modules/linkat: New file.
39702         * lib/at-func2.c (at_func2): Likewise.
39703         * lib/linkat.c (linkat): Likewise.
39704         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
39705         * lib/openat-priv.h (at_func2): Add declaration.
39706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
39707         * modules/unistd (Makefile.am): Substitute them.
39708         * lib/unistd.in.h (linkat): Declare it.
39709         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39710         * doc/posix-functions/linkat.texi (linkat): Likewise.
39711         * doc/posix-functions/link.texi (link): Tweak wording.
39712         * tests/test-link.c (main): Move guts...
39713         * tests/test-link.h (test_link): ...into new file.
39714         * modules/linkat-tests: New test.
39715         * tests/test-linkat.c: Likewise.
39716         * modules/link-tests (Files): Ship new file.
39717         (Depends-on): Add stdbool.
39718
39719         dirname: add library-safe mdir_name
39720         * lib/dirname.h (mdir_name): New prototype.
39721         * lib/dirname.c (dir_name): Move guts...
39722         (mdir_name): ...to new function that avoids xalloc_die.
39723
39724         fchdir: another mingw fix
39725         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
39726         * lib/fchdir.c (get_name): New helper method; skips canonicalize
39727         on mingw (where it has not yet been ported), and make it optional
39728         elsewhere.
39729         (_gl_register_fd): Use it.
39730
39731         same-inode: make SAME_INODE tri-state, to port to mingw
39732         * NEWS: Mention this change.
39733         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
39734         st_ino always being 0.
39735         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
39736         * lib/cycle-check.c (cycle_check): Likewise.
39737         * lib/same.c (same_name): Likewise.
39738
39739         lstat: avoid mingw compilation error
39740         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
39741         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
39742         lstat ourselves.
39743         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
39744         was adequate.
39745         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
39746         the checks for lstat.
39747         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
39748
39749         link: fix test failure on Solaris 9
39750         * lib/link.c (rpl_link): Don't assume link will catch bogus
39751         trailing slash on source.
39752
39753         test-symlinkat: enhance test
39754         * tests/test-readlink.c (main): Move guts...
39755         * tests/test-readlink.h (test_readlink): ...into new file.
39756         * tests/test-symlink.c (main): Move guts...
39757         * tests/test-symlink.h (test_symlink): ...into new file.
39758         * tests/test-symlinkat.c (main): Use new files for further
39759         coverage.
39760         (do_symlink, do_readlink): New helper functions.
39761         * modules/symlink-tests (Files): Ship new file.
39762         (Depends-on): Add stdbool.
39763         * modules/readlink-tests (Files): Ship new file.
39764         (Depends-on): Add stdbool.
39765         * modules/symlinkat-tests (Files): Use new files.
39766
39767 2009-09-23  Eric Blake  <ebb9@byu.net>
39768
39769         readlink: document portability issue with symlink length
39770         * doc/posix-functions/lstat.texi (lstat): Mention that some file
39771         systems have bogus st_size on symlinks, and mention the
39772         areadlink-with-size module.
39773         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39774         * doc/posix-functions/readlink.texi (readlink): Mention the
39775         areadlink module, and ERANGE failure.
39776         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39777         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
39778
39779         readlink: fix Solaris 9 bug with trailing slash
39780         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
39781         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
39782         * doc/posix-functions/readlink.texi (readlink): Document this.
39783         * modules/readlink-tests: New test.
39784         * tests/test-readlink.c: Likewise.
39785
39786         readlink: fix cygwin 1.5.x bug with return type
39787         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
39788         * lib/unistd.in.h (readlink): Use ssize_t.
39789         * lib/readlink.c (readlink): Likewise.
39790         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39791         * modules/unistd (Makefile.am): Substitute it.
39792         * lib/unistd.in.h (readlink): Declare replacement.
39793         * doc/posix-functions/readlink.texi (readlink): Document this.
39794
39795         symlink: use throughout gnulib
39796         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
39797         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
39798         symlink is not used.
39799         * modules/symlinkat (Depends-on): Add symlink.
39800         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
39801         * modules/canonicalize-tests (Depends-on): Likewise.
39802         * modules/lstat-tests (Depends-on): Likewise.
39803         * modules/openat-tests (Depends-on): Likewise.
39804         * modules/remove-tests (Depends-on): Likewise.
39805         * modules/rmdir-tests (Depends-on): Likewise.
39806         * modules/unlink-tests (Depends-on): Likewise.
39807         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
39808         * tests/test-canonicalize.c (symlink): Likewise.
39809         * tests/test-fstatat.c (symlink): Likewise.
39810         * tests/test-lstat.c (symlink): Likewise.
39811         * tests/test-remove.c (symlink): Likewise.
39812         * tests/test-rmdir.c (symlink): Likewise.
39813         * tests/test-unlink.c (symlink): Likewise.
39814         * tests/test-unlinkat.c (symlink): Likewise.
39815
39816         symlink: new module, for Solaris 9 bug
39817         * modules/symlink: New file.
39818         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
39819         * lib/symlink.c: Likewise.
39820         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
39821         * modules/unistd (Makefile.am): Substitute them.
39822         * lib/unistd.in.h (symlink): Declare replacement.
39823         * MODULES.html.sh (File system functions): Mention it.
39824         * doc/posix-functions/symlink.texi (symlink): Likewise.
39825         * modules/symlink-tests: New test.
39826         * tests/test-symlink.c: Likewise.
39827
39828 2009-09-23  Bruno Haible  <bruno@clisp.org>
39829
39830         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
39831         when needed.
39832         Test case: gnulib-tool --import --with-tests atexit inttypes.
39833         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
39834
39835 2009-09-23  Bruno Haible  <bruno@clisp.org>
39836
39837         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
39838         subcommand, not in a subshell.
39839
39840 2009-09-22  Eric Blake  <ebb9@byu.net>
39841
39842         unistd: sort replacement declarations
39843         * lib/unistd.in.h: Sort declarations.
39844
39845         open, openat: minor optimization
39846         * lib/open.c (open): If open succeeded, len is non-zero.
39847         * lib/openat.c (rpl_openat): Likewise.
39848
39849         link-follow: ensure correct result
39850         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
39851         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
39852         distinguish between possible failures.
39853
39854 2009-09-21  Eric Blake  <ebb9@byu.net>
39855
39856         fts: avoid compiler warning
39857         * lib/fts.c (dirent_inode_sort_may_be_useful)
39858         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
39859
39860 2009-09-19  Bruno Haible  <bruno@clisp.org>
39861
39862         * lib/progreloc.c (canonicalize_file_name): New declaration.
39863
39864 2009-09-19  Eric Blake  <ebb9@byu.net>
39865
39866         link: fix quoting
39867         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
39868
39869         openat: fix openat bugs on Solaris 9
39870         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
39871         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
39872         * modules/openat (Depends-on): Add open.
39873         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
39874         * modules/fcntl-h (Makefile.am): Substitute it.
39875         * lib/fcntl.in.h (openat): Declare replacement.
39876         * doc/posix-functions/openat.texi (openat): Document this.
39877
39878         openat: move fstatat and unlinkat into correct files
39879         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
39880         compiled.
39881         * lib/openat.c (fstatat, unlinkat): Move...
39882         * lib/fstatat.c (fstatat): ...into correct files.
39883         * lib/unlinkat.c (unlinkat): Likewise.
39884
39885         openat: fix unlinkat bugs on Solaris 9
39886         * lib/unlinkat.c (unlinkat): New file.
39887         * modules/openat (Depends-on): Add unlink.
39888         (Files): Distribute it.
39889         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
39890         trailing slash behavior is broken.
39891         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39892         * modules/unistd (Makefile.am): Substitute it.
39893         * lib/unistd.in.h (unlinkat): Declare replacement.
39894         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
39895
39896         openat: fix fstatat bugs on Solaris 9
39897         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
39898         stat.
39899         * doc/posix-functions/fstatat.texi (fstatat): Document this.
39900
39901         test-unlinkat: enhance test, to expose Solaris 9 bug
39902         * tests/test-unlink.c (main): Factor guts...
39903         * tests/test-unlink.h (test_rmdir_func): ...into new file.
39904         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
39905         * tests/test-rmdir.c (main): Adjust caller.
39906         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
39907         (unlinker): New helper function.
39908         (rmdirat): Enhance check.
39909         * modules/rmdir-tests (Depends-on): Add stdbool.
39910         * modules/unlink-tests (Depends-on): Likewise.
39911         (Files): Add test-unlink.h.
39912         * modules/openat-tests (Files): Likewise.
39913         (Depends-on): Add unlinkdir.
39914
39915         test-fstatat: new test, to expose Solaris 9 bugs
39916         * tests/test-stat.c (main): Factor guts...
39917         * tests/test-stat.h (test_stat_func): ...into new file.
39918         * tests/test-lstat.c (main): Factor guts...
39919         * tests/test-lstat.h (test_lstat_func): ...into new file.
39920         * tests/test-fstatat.c: New file.
39921         * modules/stat-tests (Files): Add test-stat.h.
39922         * modules/lstat-tests (Files): Add test-lstat.h.
39923         (Depends-on): Add stdbool.
39924         * modules/openat-tests (Depends-on): Add pathmax.
39925         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
39926         (Makefile.am): Run new test.
39927
39928         remove: new module, for mingw and Solaris 9 bugs
39929         * modules/remove: New file.
39930         * lib/remove.c: Likewise.
39931         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
39932         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
39933         * modules/stdio (Makefile.am): Use them.
39934         * lib/stdio.in.h (remove): Declare replacement.
39935         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39936         * doc/posix-functions/remove.texi (remove): Likewise.
39937         * modules/remove-tests: New test.
39938         * tests/test-remove.c: Likewise.
39939
39940         unlink: new module, for Solaris 9 bug
39941         * modules/unlink: New file.
39942         * lib/unlink.c: Likewise.
39943         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
39944         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
39945         * modules/unistd (Makefile.am): Use them.
39946         * lib/unistd.in.h (stat): Declare replacement.
39947         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39948         * doc/posix-functions/unlink.texi (unlink): Likewise.
39949         * modules/unlink-tests: New test.
39950         * tests/test-unlink.c: Likewise.
39951
39952         lstat: fix Solaris 9 bug
39953         * lib/lstat.c (lstat): Also check for trailing slash on
39954         non-symlink, non-directories.  Use stat module to simplify logic.
39955         * doc/posix-functions/lstat.texi (lstat): Document it.
39956         * modules/lstat-tests (Depends-on): Add errno, same-inode.
39957         (configure.ac): Check for symlink.
39958         * tests/test-lstat.c (main): Add more tests.
39959
39960         stat: add as dependency to other modules
39961         * modules/chown (Depends-on): Add stat.
39962         * modules/euidaccess (Depends-on): Likewise.
39963         * modules/fchdir (Depends-on): Likewise.
39964         * modules/isdir (Depends-on): Likewise.
39965         * modules/link (Depends-on): Likewise.
39966         * modules/lstat (Depends-on): Likewise.
39967         * modules/mkdir-p (Depends-on): Likewise.
39968         * modules/modechange (Depends-on): Likewise.
39969         * modules/open (Depends-on): Likewise.
39970         * modules/readlink (Depends-on): Likewise.
39971         * modules/same (Depends-on): Likewise.
39972
39973         stat: fix Solaris 9 bug
39974         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
39975         slash.
39976         * lib/stat.c (rpl_stat): Work around it.
39977         * doc/posix-functions/stat.texi (stat): Update documentation.
39978
39979         stat: new module, for mingw bug
39980         * modules/stat: New file.
39981         * lib/stat.c: Likewise.
39982         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
39983         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39984         * modules/sys_stat (Makefile.am): Use them.
39985         * lib/sys_stat.in.h (stat): Declare replacement.
39986         * lib/openat.c (fstatat): Deal with lstat and stat being function
39987         macros.
39988         * modules/openat (Depends-on): Add inline.
39989         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39990         * doc/posix-functions/stat.texi (stat): Likewise.
39991         * modules/stat-tests: New test.
39992         * tests/test-stat.c: Likewise.
39993
39994 2009-09-19  Jim Meyering  <meyering@redhat.com>
39995
39996         syntax-check: detect unnecessary inclusion of canonicalize.h
39997         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
39998
39999 2009-09-19  Eric Blake  <ebb9@byu.net>
40000
40001         canonicalize-lgpl: adjust clients to use correct header
40002         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40003         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
40004         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
40005         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
40006         * lib/progreloc.c (includes): Likewise.
40007
40008 2009-09-19  Jim Meyering  <meyering@redhat.com>
40009
40010         test-posixtm.c: correct a comment
40011         * tests/test-posixtm.c: Correct first-line comment.
40012         Spotted by Eric Blake.
40013
40014 2009-09-16  Jim Meyering  <meyering@redhat.com>
40015
40016         posixtm-tests: make T const-correct; add a test case
40017         * tests/test-posixtm.c (T): Declare const.
40018         Add a test for -(2^31+1).
40019         Remove useless can-succeed-only-in-2002 test.
40020
40021         posixtm-tests: adjust the sole failing test
40022         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
40023         expected output matches what mktime now produces.  Cross-checked via
40024         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
40025
40026         posixtm: move #ifdef'd tests into a new module
40027         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
40028         * tests/test-posixtm.c: ... this new file.
40029         * modules/posixtm-tests: New module.
40030
40031 2009-09-19  Eric Blake  <ebb9@byu.net>
40032
40033         openat: simplify use of at-func.c
40034         * lib/at-func.c (includes): Include prerequisites here, to
40035         simplify requirements on client files.
40036         * lib/openat-priv.h: Add double-inclusion guard.
40037         * lib/faccessat.c (includes): Simplify.
40038         * lib/fchmodat.c (includes): Likewise.
40039         * lib/fchownat.c (includes): Likewise.
40040         * lib/mkdirat.c (includes): Likewise.
40041         * lib/mkfifoat.c (includes): Likewise.
40042         * lib/symlinkat.c (includes): Likewise.
40043
40044         openat: allow return of fd 0
40045         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
40046         * modules/save-cwd (Depends-on): Replace fcntl-safer with
40047         unistd-safer.
40048         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
40049         <fcntl.h>; this module does not leak fds.
40050         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
40051         must be allowed to return 0, leaving openat_safer to add the
40052         safety.
40053         (openat_permissive): Avoid writing to just-opened fd 2 if
40054         restoring the current directory fails.
40055         * lib/openat-die.c (openat_restore_fail): Add comment.
40056         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
40057         (save_cwd): Guarantee safe fd, but without use of open_safer.
40058         * tests/test-openat.c: New test.
40059         * modules/openat-tests (Files, Makefile.am): Distribute and build
40060         new file.
40061
40062         relocatable-prog-wrapper: fix build
40063         * modules/relocatable-prog-wrapper (Files): Update name of
40064         canonicalize m4 file, broken on 2009-09-17.
40065         Reported by emad hajjar <aleppos@hotmail.com>.
40066
40067 2009-09-19  Bruno Haible  <bruno@clisp.org>
40068
40069         * lib/safe-alloc.h: Use the standard header with GPL copyright.
40070         * lib/safe-alloc.c: Likewise.
40071         Reported by Ian Beckwith <ianb@erislabs.net>.
40072
40073 2009-09-18  Bruno Haible  <bruno@clisp.org>
40074
40075         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
40076         Reported by <erobles@sensacd.com.mx>.
40077
40078 2009-09-17  Eric Blake  <ebb9@byu.net>
40079
40080         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
40081         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
40082         slashes when checking if last component is missing.
40083         * tests/test-canonicalize.c (main): Test this.
40084
40085         canonicalize, canonicalize-lgpl: honor // if distinct from /
40086         * modules/canonicalize (Files): Add double-slash-root.m4.
40087         * modules/canonicalize-lgpl (Files): Likewise.
40088         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40089         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
40090         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
40091         fallback definition.
40092         (canonicalize_filename_mode): Use it to protect //.
40093         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
40094         (__realpath): Likewise.
40095         * tests/test-canonicalize.c (main): Test this.
40096         * tests/test-canonicalize-lgpl.c (main): Likewise.
40097         * modules/canonicalize-tests (Depends-on): Add same-inode.
40098         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40099
40100         canonicalize-lgpl: fix glibc bug with trailing slash
40101         * m4/canonicalize-lgpl.m4: Move contents...
40102         * m4/canonicalize.m4: ...here.
40103         (gl_CANONICALIZE_LGPL): Factor realpath check...
40104         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
40105         glibc 2.3.5 bug, fixed 2005-04-27.
40106         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
40107         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
40108         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
40109         * modules/canonicalize-lgpl (Files): Manage file rename.
40110         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40111         * modules/stdlib (Makefile.am): Substitute witness.
40112         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
40113         is needed.
40114         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
40115         replacement is required.
40116         * lib/canonicalize.c (canonicalize_file_name): Likewise.
40117         * doc/glibc-functions/canonicalize_file_name.texi
40118         (canonicalize_file_name): Document this.
40119         * doc/posix-functions/realpath.texi (realpath): Likewise.
40120
40121         canonicalize-lgpl: reject non-directory with trailing slash
40122         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
40123         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
40124         catches failures in glibc 2.3.5.
40125         * tests/test-canonicalize.c (main): Likewise.
40126
40127         canonicalize-lgpl: use native realpath if it works
40128         * lib/canonicalize-lgpl.c (realpath): Guard with
40129         FUNC_REALPATH_WORKS.
40130         * lib/stdlib.in.h (realpath): Make declaration optional based on
40131         HAVE_REALPATH.
40132         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
40133         native realpath works.
40134         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40135         * modules/stdlib (Makefile.am): Substitute witness.
40136
40137         canonicalize, canonicalize-lgpl: use <stdlib.h>
40138         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
40139         (Include): Mention <stdlib.h>.
40140         (configure.ac): Mention functions we provide.
40141         * modules/canonicalize (configure.ac): Likewise.
40142         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
40143         realpath if canonicalize_file_name is missing.
40144         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
40145         * modules/stdlib (Makefile.am): Substitute witnesses.
40146         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
40147         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
40148         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
40149         * NEWS: Document this.
40150         * doc/glibc-functions/canonicalize_file_name.texi
40151         (canonicalize_file_name): Likewise.
40152         * doc/posix-functions/realpath.texi (realpath): Likewise.
40153         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
40154
40155         test-canonicalize: consolidate into single C program
40156         * tests/test-canonicalize.sh: Delete; move setup into...
40157         * tests/test-canonicalize.c (main): ...the program, making it
40158         easier to run in debugger.  Add some tests.
40159         * modules/canonicalize-tests (Files): Remove unused file.
40160         (Depends-on): Add progname.
40161         (configure.ac, Makefile.am): Simplify.
40162
40163         test-canonicalize-lgpl: consolidate into single C program
40164         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
40165         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
40166         easier to run in debugger.  Add some tests.
40167         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
40168         (configure.ac, Makefile.am): Simplify.
40169
40170         canonicalize: avoid resolvepath
40171         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
40172         unnecessary checks.
40173         * lib/canonicalize.c (includes): Simplify.
40174         (canonicalize_file_name): Drop resolvepath implementation.
40175         * modules/canonicalize (Depends-on): Drop filenamecat.
40176
40177         canonicalize: don't lose errno
40178         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
40179         over calls to free.
40180
40181         canonicalize: simplify errno handling
40182         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
40183         assignment.
40184
40185         canonicalize, canonicalize-lgpl: update module dependencies
40186         * modules/canonicalize (Depends-on): Add extensions, lstat,
40187         pathmax, stdlib.
40188         (Files): Drop pathmax.h.
40189         (configure.ac): Adjust macro name.
40190         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
40191         lstat, stdlib, sys_stat.
40192         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
40193         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
40194         extensions.
40195         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
40196         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
40197         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
40198         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
40199         declaration, if available.
40200         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
40201         we can rely on the readlink module.
40202         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
40203         (includes): Use <unistd.h> unconditionally.
40204
40205 2009-09-17  Eric Blake  <ebb9@byu.net>
40206
40207         maint: make Include sections of modules consistent
40208         * modules/alloca: Use only header name; no need to list #include.
40209         * modules/alloca-opt: Likewise.
40210         * modules/arpa_inet: Likewise.
40211         * modules/canon-host: Likewise.
40212         * modules/configmake: Likewise.
40213         * modules/dirent: Likewise.
40214         * modules/eealloc: Likewise.
40215         * modules/environ: Likewise.
40216         * modules/fchdir: Likewise.
40217         * modules/fcntl: Likewise.
40218         * modules/fcntl-h: Likewise.
40219         * modules/gethrxtime: Likewise.
40220         * modules/gettime: Likewise.
40221         * modules/ignore-value: Likewise.
40222         * modules/inet_ntop: Likewise.
40223         * modules/inet_pton: Likewise.
40224         * modules/inttypes: Likewise.
40225         * modules/isnand-nolibm: Likewise.
40226         * modules/isnanf-nolibm: Likewise.
40227         * modules/mbchar: Likewise.
40228         * modules/mbfile: Likewise.
40229         * modules/mbiter: Likewise.
40230         * modules/mbuiter: Likewise.
40231         * modules/netdb: Likewise.
40232         * modules/netinet_in: Likewise.
40233         * modules/nproc: Likewise.
40234         * modules/pagealign_alloc: Likewise.
40235         * modules/poll: Likewise.
40236         * modules/printf-frexp: Likewise.
40237         * modules/pthread: Likewise.
40238         * modules/putenv: Likewise.
40239         * modules/random_r: Likewise.
40240         * modules/relocatable-prog: Likewise.
40241         * modules/search: Likewise.
40242         * modules/select: Likewise.
40243         * modules/selinux-h: Likewise.
40244         * modules/settime: Likewise.
40245         * modules/signal: Likewise.
40246         * modules/size_max: Likewise.
40247         * modules/socklen: Likewise.
40248         * modules/ssize_t: Likewise.
40249         * modules/stdarg: Likewise.
40250         * modules/stdbool: Likewise.
40251         * modules/stddef: Likewise.
40252         * modules/stdint: Likewise.
40253         * modules/stdio: Likewise.
40254         * modules/stdlib: Likewise.
40255         * modules/string: Likewise.
40256         * modules/strings: Likewise.
40257         * modules/sys_file: Likewise.
40258         * modules/sys_ioctl: Likewise.
40259         * modules/sys_select: Likewise.
40260         * modules/sys_socket: Likewise.
40261         * modules/sys_stat: Likewise.
40262         * modules/sys_time: Likewise.
40263         * modules/sys_times: Likewise.
40264         * modules/sys_utsname: Likewise.
40265         * modules/sys_wait: Likewise.
40266         * modules/sysexits: Likewise.
40267         * modules/time: Likewise.
40268         * modules/times: Likewise.
40269         * modules/tmpfile: Likewise.
40270         * modules/trim: Likewise.
40271         * modules/unistd: Likewise.
40272         * modules/wchar: Likewise.
40273         * modules/wctype: Likewise.
40274
40275 2009-09-17  Bruno Haible  <bruno@clisp.org>
40276
40277         Make getdate.y compile on QNX and NetBSD 5 / i386.
40278         * m4/getdate.m4 (gl_GETDATE): Conditionally define
40279         TIME_T_FITS_IN_LONG_INT.
40280         * lib/getdate.y (long_time_t): New type.
40281         (relative_time): Change type of 'seconds' field to long_time_t.
40282         (get_date): Update types of local variables. Check against overflow
40283         during conversion from long_time_t to time_t.
40284         Reported by Matt Kraai <kraai@ftbfs.org>
40285         and Hasso Tepper <hasso@netbsd.org>.
40286
40287 2009-09-17  Bruno Haible  <bruno@clisp.org>
40288
40289         * modules/COPYING: Update copyright years.
40290         * modules/README: Likeiwse.
40291         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
40292         Reported by Ian Beckwith <ianb@erislabs.net>.
40293
40294 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40295
40296         * users.txt: Update references for gnuit package.
40297
40298 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40299
40300         * m4/getdelim.m4: Fix typo in copyright line.
40301
40302 2009-09-17  Bruno Haible  <bruno@clisp.org>
40303
40304         * lib/atoll.c: Use the standard header with GPL copyright.
40305         * lib/argz.in.h: Likewise.
40306         * lib/glob.c: Likewise.
40307         * lib/glob-libc.h: Likewise.
40308         * lib/random_r.c: Likewise.
40309         * lib/siglist.h: Likewise.
40310         * lib/strsignal.c: Likewise.
40311         Reported by Ian Beckwith <ianb@erislabs.net>.
40312
40313 2009-09-17  Eric Blake  <ebb9@byu.net>
40314
40315         rmdir: ensure correct dependency order
40316         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
40317
40318 2009-09-17  Bruno Haible  <bruno@clisp.org>
40319
40320         Disable assertion that fails on NetBSD 5 / i386.
40321         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
40322         Reported by Sam Steingold <sds@gnu.org>
40323         and Hasso Tepper <hasso@netbsd.org>.
40324
40325 2009-09-16  Eric Blake  <ebb9@byu.net>
40326
40327         unlinkdir: port to mingw
40328         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
40329         on which no one can unlink a directory.
40330
40331         stdlib: sort witness names
40332         * modules/stdlib (Makefile.am): Sort replacements.
40333         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
40334         * lib/stdlib.in.h: Likewise.
40335
40336         parse-duration-tests: avoid link failure
40337         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
40338         LIBINTL.
40339         Reported by Tom G. Christensen.
40340
40341         openat-tests: ensure unlinkat behaves like rmdir
40342         * tests/test-rmdir.c (main): Factor guts...
40343         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
40344         * modules/rmdir-tests (Files): Ship new file.
40345         * modules/openat-tests: New test.
40346         * tests/test-unlinkat.c: Likewise.
40347
40348         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
40349         * modules/rmdir-errno (Status, Notice): Now obsolete.
40350
40351         rmdir: work around cygwin 1.5.x and mingw bugs
40352         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
40353         * lib/rmdir.c (rmdir): Work around it.
40354         * modules/rmdir (Status, Notice): No longer obsolete.
40355         (Files): Add dos.m4.
40356         (Depends-on): Add unistd.
40357         (configure.ac): Set witnesses.
40358         (License): Relax to LGPLv2+.
40359         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
40360         * modules/unistd (Makefile.am): Substitute witnesses.
40361         * lib/unistd.in.h (rmdir): Declare replacement.
40362         * doc/posix-functions/rmdir.texi (rmdir): Document this.
40363         * modules/rmdir-tests: New tests.
40364         * tests/test-rmdir.c: Likewise.
40365
40366 2009-09-15  Eric Blake  <ebb9@byu.net>
40367
40368         fchdir: improve use of replacement functions
40369         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
40370         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
40371         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
40372         REPLACE_CLOSEDIR.
40373         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
40374         * modules/sys_stat (Makefile.am): Substitute correct witness.
40375         * modules/dirent (Makefile.am): Likewise.
40376         * modules/unistd (Makefile.am): Likewise.
40377         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
40378         * lib/unistd.in.h (dup): Likewise.
40379         * lib/sys_stat.in.h (fstat): Likewise.
40380
40381         maint: ignore gnulib-tool temp files
40382         * .gitignore: Ignore files created during gnulib-tool --test.
40383
40384 2009-09-13  Jim Meyering  <meyering@redhat.com>
40385
40386         posixtm: don't reject a time that specify "60" as the number of seconds
40387         * lib/posixtm.c (posixtime): The code to reject invalid dates
40388         would also reject a time specified with the .60 suffix.
40389         But POSIX allows that, in order to accommodate leap seconds.
40390         So don't reject it.
40391         (main): Adjust tests accordingly.
40392         * modules/posixtm (Depends-on): Add stpcpy.
40393
40394 2009-09-11  Jim Meyering  <meyering@redhat.com>
40395
40396         announce-gen: include [$release_type] in emitted Subject:
40397         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
40398         e.g., [stable] in the emitted Subject: line.
40399
40400 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40401
40402         Remove obsolete macros from several modules.
40403         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
40404         obsolete Autoconf macros with their modern counterparts.
40405         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
40406         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
40407         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
40408         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
40409         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
40410         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40411         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40412         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40413         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
40414         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
40415         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
40416         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
40417         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
40418         * m4/sockets.m4 (gl_SOCKETS): Likewise.
40419         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
40420         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
40421         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
40422         * m4/time_r.m4 (gl_TIME_R): Likewise.
40423         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
40424         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
40425         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40426
40427         Fix copyright header in build-aux scripts.
40428         * build-aux/git-version-gen: Fix copyright header to match GPLv3
40429         recommendation.
40430         * build-aux/ncftpput-ftp: Likewise.
40431         * build-aux/update-copyright: Likewise.
40432
40433 2009-09-09  Eric Blake  <ebb9@byu.net>
40434
40435         test-link: allow Linux choice of errno
40436         * tests/test-link.c (main): Relax test for alternate error.
40437
40438         strndup: fix improper m4 caching
40439         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
40440         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
40441         (gl_PREREQ_STRNDUP): Delete.
40442         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
40443         * modules/string (Makefile.am): Substitute it.
40444         * lib/string.in.h (strndup): Modernize prototype.
40445
40446         getcwd: port to mingw
40447         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
40448         different from the POSIX assumptions made throughout the getcwd
40449         module; fortunately, the mingw getcwd does not need replacement.
40450         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
40451         * modules/getcwd-tests: New test.
40452         * tests/test-getcwd.c: Likewise.
40453
40454         link: fix platform bugs
40455         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
40456         * lib/link.c (link): Work around them.  Fix related mingw bug.
40457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
40458         * modules/unistd (Makefile.am): Substitute it.
40459         * lib/unistd.in.h (link): Declare replacement.
40460         * doc/posix-functions/link.texi (link): Document this.
40461         * modules/link (Depends-on): Add strdup-posix, sys_stat.
40462
40463         test-link: consolidate into single C program, test more cases
40464         * tests/test-link.sh: Delete.
40465         * tests/test-link.c: Test more error conditions.  Exposes bugs on
40466         at least Cygwin and Solaris.
40467         * modules/link-tests (Files): Remove unused file.
40468         (Depends-on): Add errno, sys_stat.
40469         (Makefile.am): Simplify.
40470
40471 2009-09-08  Bruno Haible  <bruno@clisp.org>
40472
40473         Work around towlower, towupper bug on mingw.
40474         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
40475         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
40476         * doc/posix-functions/towlower.texi: Mention the mingw bug.
40477         * doc/posix-functions/towupper.texi: Likewise.
40478         Reported by Eric Blake.
40479
40480 2009-09-08  Jim Meyering  <meyering@redhat.com>
40481
40482         build: don't try to run autoheader if we don't use it
40483         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
40484         is not used in configure.ac.
40485
40486 2009-09-08  Eric Blake  <ebb9@byu.net>
40487
40488         euidaccess: fix compilation error
40489         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
40490
40491         rawmemchr: relax license
40492         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
40493         okay.
40494         Reported by Jim Meyering.
40495
40496         mkfifoat: new module
40497         * modules/mkfifoat: New file.
40498         * lib/mkfifoat.c: Likewise.
40499         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
40500         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40501         * modules/sys_stat (Makefile.am): Use them.
40502         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
40503         * MODULES.html.sh (File system functions): Mention module.
40504         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40505         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40506         * modules/mkfifoat-tests: New test.
40507         * tests/test-mkfifoat.c: Likewise.
40508
40509         strchrnul: relax license
40510         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
40511         okay.
40512         Reported by Jim Meyering.
40513
40514 2009-09-08  Eric Blake  <ebb9@byu.net>
40515
40516         fstatat: fix compilation on Solaris
40517         * lib/fstatat.c (includes): Add fcntl.h.
40518         Reported by Pádraig Brady.
40519
40520 2009-09-07  Eric Blake  <ebb9@byu.net>
40521
40522         rename: modernize replacement
40523         * modules/rename (Depends-on): Add stdio.
40524         (configure.ac): Declare witness.
40525         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
40526         stdio take care of replacement.
40527         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
40528         * modules/stdio (Makefile.am): Substitute them.
40529         * lib/stdio.in.h (rename): Declare replacement.
40530         * lib/rename.c (includes): Allow cross-compilation to non-windows
40531         machines.
40532         * doc/posix-functions/rename.texi (rename): Improve
40533         documentation.
40534
40535         stdio: sort witness names
40536         * modules/stdio (Makefile.am): Sort replacements.
40537         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40538         * lib/stdio.in.h: Likewise.
40539
40540         getcwd: minor cleanups
40541         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
40542         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
40543
40544         openat: provide more convenience names
40545         * modules/faccessat (configure.ac): Add C witness.
40546         * lib/unistd.in.h (readlinkat): Fix typo.
40547         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
40548         convenience wrappers.
40549         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
40550         wrappers in syntax checks.
40551
40552 2009-09-06  Eric Blake  <ebb9@byu.net>
40553
40554         doc: fix comments in recent patches
40555         * lib/faccessat.c: Mention correct function.
40556         * lib/fchmodat.c: Likewise.
40557         * lib/fchownat.c: Likewise.
40558         * lib/symlinkat.c: Likewise.
40559         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
40560         constants.
40561
40562         faccessat, symlinkat: continue cleanup of previous patch
40563         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
40564         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40565         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
40566         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
40567         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
40568         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
40569         set.
40570
40571 2009-09-06  Bruno Haible  <bruno@clisp.org>
40572
40573         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
40574         (fstatat): Declare if GNULIB_FSTATAT is set.
40575         (mkdirat): Declare if GNULIB_MKDIRAT is set.
40576         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
40577         (unlinkat): Declare if GNULIB_UNLINKAT is set.
40578         * modules/fcntl-h (Files): Remove m4/openat.m4.
40579         * modules/sys_stat (Files): Remove m4/openat.m4.
40580         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
40581         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
40582         * modules/unistd (Files): Remove m4/openat.m4.
40583         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
40584         GNULIB_OPENAT.
40585         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
40586         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
40587         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
40588         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
40589         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
40590         gl_OPENAT_DEFAULTS.
40591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
40592         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
40593         Don't require gl_OPENAT_DEFAULTS.
40594         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
40595         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
40596         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
40597         (gl_OPENAT_DEFAULTS): Remove macro.
40598
40599 2009-09-06  Bruno Haible  <bruno@clisp.org>
40600
40601         * modules/openat (configure.ac): Remove unneeded witness.
40602
40603 2009-09-06  Bruno Haible  <bruno@clisp.org>
40604
40605         Set errno to ENOSYS when a function is entirely unsupported.
40606         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
40607         EOPNOTSUPP.
40608         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
40609         * modules/chown (Depends-on): Remove errno.
40610
40611 2009-09-06  Bruno Haible  <bruno@clisp.org>
40612
40613         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
40614
40615 2009-09-06  Bruno Haible  <bruno@clisp.org>
40616
40617         * lib/sys_stat.in.h: Fix preprocessor command indentation.
40618
40619 2009-09-06  Ben Pfaff  <blp@gnu.org>
40620             Bruno Haible  <bruno@clisp.org>
40621
40622         Work around a glibc bug in strtok_r.
40623         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
40624         Undefine if UNDEFINE_STRTOK_R is set.
40625         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
40626         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40627         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
40628         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
40629         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
40630         UNDEFINE_STRTOK_R.
40631         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
40632
40633 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
40634
40635         exclude: minor fix
40636         * lib/exclude.c: Include wctype.h
40637
40638 2009-09-06  Akim Demaille  <demaille@gostai.com>
40639
40640         bootstrap: improve error message
40641         * build-aux/bootstrap (find_tool): Upon failure, report the list
40642         of candidates.
40643         Honor the initial value of the envvar.
40644
40645 2009-09-05  Eric Blake  <ebb9@byu.net>
40646
40647         symlinkat: new module
40648         * modules/symlinkat: New file.
40649         * lib/symlinkat.c: Likewise.
40650         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
40651         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40652         * modules/unistd (Makefile.am): Use them.
40653         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
40654         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
40655         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
40656         * MODULES.html.sh (File system functions): Mention module.
40657         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40658         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40659         * modules/symlinkat-tests: New test.
40660         * tests/test-symlinkat.c: Likewise.
40661
40662         test-openat-safer: add more checks
40663         * tests/test-openat-safer.c (main): Check more code paths.
40664
40665 2009-09-05  Jim Meyering  <meyering@redhat.com>
40666
40667         syntax-check: detect unnecessary inclusion of openat.h
40668         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
40669
40670 2009-09-05  Bruno Haible  <bruno@clisp.org>
40671
40672         Support towlower, towupper.
40673         * doc/posix-functions/towlower.texi: Mention module wctype.
40674         * doc/posix-functions/towupper.texi: Likewise.
40675         * lib/wctype.in.h (towlower, towupper): New functions.
40676         * tests/test-wctype.c: Include stdio.h, stdlib.h.
40677         (ASSERT): New macro.
40678         (e): New variable.
40679         (main): Test also towlower, towupper. Test WEOF argument.
40680         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40681
40682 2009-09-05  Bruno Haible  <bruno@clisp.org>
40683
40684         Fix conversion behaviour when the input is invalid.
40685         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
40686         mark occurring in first pass of indirect conversion.
40687         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
40688         input.
40689         Found by clang's static analyzer.
40690
40691 2009-09-05  Bruno Haible  <bruno@clisp.org>
40692
40693         * tests/test-striconveh.c (main): Test indirect conversion on platforms
40694         where direct conversion is possible.
40695
40696 2009-09-04  Eric Blake  <ebb9@byu.net>
40697
40698         openat: fail with ENOENT on empty name
40699         * lib/openat-proc.c (openat_proc_name): Special-case the empty
40700         buffer.
40701
40702         link-follow: fix logic bug in prior patch
40703         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
40704         reversed sense of yes and no in prior patch.  Avoid confusing
40705         compilation failure with desired semantics.
40706
40707         link-follow: accomodate mingw and cross-compilation
40708         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
40709         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
40710         cross-compilation results to -1, to make linkat easier to
40711         implement when cross-compiling.  Trivially support mingw.
40712         * modules/link-follow (configure.ac): Call new name.
40713         * NEWS: Mention this.
40714
40715 2009-09-03  Eric Blake  <ebb9@byu.net>
40716
40717         faccessat: compile replacement
40718         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
40719         needed.
40720
40721         fts: fix compilation error
40722         * lib/fts.c (includes): Re-add "openat.h", for
40723         openat_needs_fchdir.
40724
40725         faccessat: new module
40726         * modules/faccessat: New file.
40727         * lib/faccessat.c: Likewise.
40728         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40729         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40730         * modules/unistd (Makefile.am): Use it.
40731         * lib/unistd.in.h (faccessat): Declare it.
40732         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
40733         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
40734         * MODULES.html.sh (File system functions): Mention it.
40735         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
40736         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
40737
40738         euidaccess: prefer POSIX over non-standard implementation
40739         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
40740         * lib/euidaccess.c (euidaccess): Use it if available.
40741
40742         openat: make template easier to use
40743         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
40744         AT_FUNC_F2 to be undefined.
40745         (VALIDATE_FLAG): New macro; use it to reject bad flags.
40746         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
40747         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
40748         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
40749         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
40750         Likewise.
40751         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
40752         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
40753         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
40754         Likewise.
40755
40756         openat: declare in POSIX headers
40757         * NEWS: Mention this.
40758         * modules/openat (configure.ac): Declare witnesses.
40759         (Depends-on): Add fcntl-h, sys_stat, unistd.
40760         (Include): Mention correct headers.
40761         * modules/fcntl-h (Depends-on): Add link-warning.
40762         (Files): Add openat.m4.
40763         (Makefile.am): Substitute witnesses.
40764         * modules/sys_stat (Files, Makefile.am): Likewise.
40765         * modules/unistd (Files, Makefile.am): Likewise.
40766         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
40767         (gl_OPENAT_DEFAULTS): New macro.
40768         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
40769         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
40770         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
40771         (SYS_STAT_H): Remove unused variable.
40772         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
40773         * lib/fcntl--.h (includes): Remove unneeded header.
40774         * lib/openat-safer.c (includes): Likewise.
40775         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
40776         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
40777         appropriate headers.
40778         (__OPENAT_PREFIX): Delete.
40779         * lib/fcntl.in.h (openat): Provide declaration.
40780         (AT_FDCWD): Fix Solaris bug.
40781         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
40782         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
40783         * lib/fchmodat.c (includes):  Adjust to find declaration.
40784         * lib/fchownat.c (includes): Likewise.
40785         * lib/mkdirat.c (includes): Likewise.
40786         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
40787         still visible.
40788
40789 2009-09-02  Eric Blake  <ebb9@byu.net>
40790
40791         errno: use consistently
40792         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
40793         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
40794         * lib/canonicalize.c (ELOOP): Likewise.
40795         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
40796         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
40797         * lib/lchown.c (EOPNOTSUPP): Likewise.
40798         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
40799         * lib/savewd.c (ESTALE): Likewise.
40800         * lib/settime.c (ENOSYS): Likewise.
40801         * lib/utimens.c (ENOSYS): Likewise.
40802         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
40803         * lib/chdir-safer.c (ELOOP): Likewise.
40804         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
40805         * modules/c-stack (Depends-on): Add errno.
40806         * modules/canonicalize (Depends-on): Likewise.
40807         * modules/chdir-safer (Depends-on): Likewise.
40808         * modules/fdopendir (Depends-on): Likewise.
40809         * modules/inet_ntop (Depends-on): Likewise.
40810         * modules/inet_pton (Depends-on): Likewise.
40811         * modules/lchown (Depends-on): Likewise.
40812         * modules/openat (Depends-on): Likewise.
40813         * modules/savewd (Depends-on): Likewise.
40814         * modules/settime (Depends-on): Likewise.
40815         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
40816
40817         fts: avoid leaking fds
40818         * modules/fts (Depends-on): Add cloexec.
40819         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
40820         flag.
40821
40822         fts: make directory fds more robust
40823         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
40824         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
40825
40826         backupfile, chdir-long, fts, savedir: make safer
40827         * lib/backupfile.c (includes): Use "dirent--.h", since
40828         numbered_backup can write to stderr during readdir.
40829         * lib/savedir.c (includes): Likewise.
40830         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
40831         emulation can write to stderr on failure.
40832         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
40833         * lib/getcwd.c: Document why opendir_safer is unused.
40834         * lib/glob.c: Likewise.
40835         * lib/scandir.c: Likewise.
40836         * lib/openat-proc.c: Likewise, for open_safer.
40837         * modules/backupfile (Depends-on): Add dirent-safer.
40838         * modules/savedir (Depends-on): Likewise.
40839         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
40840         * modules/chdir-long (Depends-on): Add openat-safer.
40841
40842         openat-safer: new module
40843         * modules/openat-safer: New file.
40844         * lib/openat-safer.c: Likewise.
40845         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
40846         * lib/fcntl-safer.h (openat_safer): Declare.
40847         * lib/fcntl--.h (openat): Override.
40848         * MODULES.html.sh (File descriptor based I/O): Mention it.
40849         * lib/openat.h: Add double-inclusion guards.
40850         * lib/openat.c (includes): Only include "fcntl-safer.h", not
40851         "fcntl--.h", so we can implement openat.
40852         * modules/openat-safer-tests: New test.
40853         * tests/test-openat-safer.c: New file.
40854
40855         dirent-safer: new module
40856         * modules/dirent-safer: New file.
40857         * lib/dirent--.h: Likewise.
40858         * lib/dirent-safer.h: Likewise.
40859         * lib/opendir-safer.c: Likewise.
40860         * m4/dirent-safer.m4: Likewise.
40861         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
40862         * modules/dirent-safer-tests: New test.
40863         * tests/test-dirent-safer.c: New file.
40864         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
40865
40866         fdopendir: optimize on mingw
40867         * lib/unistd.in.h (_gl_directory_name): New prototype.
40868         * lib/fchdir.c (_gl_directory_name): Implement it.
40869         (fchdir): Use it to simplify implementation.
40870         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
40871         fchdir, when available, to avoid calling [f]chdir().
40872
40873         fdopendir: split into its own module
40874         * lib/openat.c (fdopendir): Move...
40875         * lib/fdopendir.c: ...into new file.
40876         * modules/fdopendir: New module.
40877         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
40878         * modules/openat (Depends-on): Add fdopendir.
40879         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
40880         fdopendir here.
40881         * modules/savedir (Depends-on): Only need fdopendir, not full
40882         openat.
40883         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
40884         * lib/openat.h (fdopendir): Drop prototype.
40885         * lib/dirent.in.h (fdopendir): Provide prototype.
40886         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
40887         * modules/dirent (Makefile.am): Substitute them.
40888         * MODULES.html.sh (File system functions): Mention it.
40889         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
40890         * modules/fdopendir-tests: New file.
40891         * tests/test-fdopendir.c: Likewise.
40892
40893         fchdir: use more consistent macro convention
40894         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
40895         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
40896         REPLACE_FCHDIR, rather than relying on config.h macros.
40897         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
40898         inside a single make-time REPLACE_FCHDIR block, rather than using
40899         the config.h FCHDIR_REPLACEMENT.
40900         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
40901         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
40902         Manage fstat replacement.
40903         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
40904         REPLACE_FCHDIR.
40905         * modules/sys_stat (Files): Add m4/unistd_h.m4.
40906         (Makefile.am): Substitute REPLACE_FCHDIR.
40907         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
40908         FCHDIR_REPLACEMENT.
40909         * lib/dup-safer.c (dup_safer): Likewise.
40910         * lib/dup2.c (rpl_dup2): Likewise.
40911         * lib/dup3.c (rpl_dup3): Likewise.
40912         * lib/open.c (rpl_open): Likewise.
40913
40914         fchdir: simplify error handling, and support dup3
40915         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
40916         stdbool, malloc-posix, realloc-posix.
40917         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
40918         (ensure_dirs_slot): Return false on allocation failure.
40919         (rpl_dup2): Delete.
40920         (_gl_register_dup): New function.
40921         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
40922         (_gl_register_fd): Close fd on allocation failure.
40923         * lib/fcntl.in.h (_gl_register_fd): Update signature.
40924         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
40925         prototype.
40926         (rpl_dup2_fchdir): Delete prototype.
40927         * lib/open.c (open): Update caller.
40928         * lib/dup2.c (dup2): Track fchdir metadata.
40929         * lib/dup3.c (dup3): Likewise.
40930         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
40931         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
40932
40933 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40934
40935         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
40936         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
40937         don't pass arguments to AC_OUTPUT.
40938
40939 2009-09-02  Bruno Haible  <bruno@clisp.org>
40940
40941         * modules/mkdtemp (License): Relicense under LGPLv2+.
40942         Reported by Paolo Bonzini.
40943
40944 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40945
40946         Replace uses of obsolete autoconf macros in Jim's modules.
40947         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
40948         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
40949         can evoke a warning from autoconf when run with -Wobsolete
40950         enabled.  They were declared obsolete for good reasons (see
40951         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
40952         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
40953         should not continue using the deprecated macros.
40954         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
40955         obsolete Autoconf macros with modern counterparts.
40956         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
40957         * m4/dos.m4 (gl_AC_DOS): Likewise.
40958         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
40959         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
40960         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
40961         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
40962         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
40963         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
40964         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
40965         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
40966         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
40967         Likewise.
40968         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
40969         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
40970         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
40971         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
40972         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
40973         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
40974
40975 2009-09-01  Eric Blake  <ebb9@byu.net>
40976
40977         fchdir: fix off-by-one bug in previous patch
40978         * lib/fchdir.c (rpl_fstat): Use correct bounds.
40979         (_gl_unregister_fd): Delete useless if.
40980
40981 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
40982
40983         maint.mk: sort the list of syntax-check rules
40984         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
40985         easier to get a sense of progress when the rules are run sequentially
40986         and take a long time.
40987
40988 2009-09-01  Simon Josefsson  <simon@josefsson.org>
40989
40990         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
40991         * modules/netinet_in: Likewise.
40992         * modules/sys_file: Likewise.
40993         * modules/sys_ioctl: Likewise.
40994         * modules/sys_select: Likewise.
40995         * modules/sys_socket: Likewise.
40996         * modules/sys_stat: Likewise.
40997         * modules/sys_time: Likewise.
40998         * modules/sys_times: Likewise.
40999         * modules/sys_utsname: Likewise.
41000         * modules/sys_wait: Likewise.
41001
41002 2009-09-01  Jim Meyering  <meyering@redhat.com>
41003
41004         fts: help ensure that return values are not ignored
41005         * lib/fts_.h (__GNUC_PREREQ): Define.
41006         (__attribute_warn_unused_result__): Define.
41007         (fts_children, fts_close, fts_open, fts_read): Declare with
41008         __attribute_warn_unused_result__.
41009
41010         fts: fts_close now fails also when closing a dir file descriptor fails
41011         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
41012         and propagate to caller, along with errno.
41013
41014         announce-gen: correct formatting in --help output
41015         * build-aux/announce-gen (usage): Move the one-line description in
41016         --help output "up", to where it belongs, just after Usage:.
41017
41018 2009-08-31  Eric Blake  <ebb9@byu.net>
41019
41020         fchdir: port to mingw
41021         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
41022         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
41023         opened, then use a substitute.
41024         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
41025         replacement.
41026         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
41027         (_gl_register_fd): No need to check stat if open already filters
41028         all directories.
41029         (fchdir): Fix error condition to match POSIX.
41030         * modules/fchdir (Depends-on): Add sys_stat.
41031         * doc/posix-functions/open.texi (open): Document the limitation.
41032         * modules/fchdir-tests: New file.
41033         * tests/test-fchdir.c: Likewise.
41034
41035         canonicalize: allow cross-testing from cygwin to mingw
41036         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
41037         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
41038         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
41039         Likewise.
41040         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
41041         target does not support symlinks.
41042         * tests/test-canonicalize-lgpl.sh: Likewise.
41043
41044         chown: avoid compilation warning on mingw
41045         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
41046         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
41047         mingw.
41048         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41049         * modules/chown (Depends-on): Add errno.
41050
41051 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
41052
41053         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
41054         command.
41055
41056 2009-08-31  Jim Meyering  <meyering@redhat.com>
41057
41058         canonicalize: remove useless initialization
41059         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
41060         initialization of local, "end".
41061
41062 2009-08-30  Bruno Haible  <bruno@clisp.org>
41063
41064         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
41065         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
41066         ENOSYS.
41067
41068 2009-08-30  Bruno Haible  <bruno@clisp.org>
41069
41070         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
41071         /usr/xpg4/bin/tr when it exists.
41072         * tests/test-pipe-filter-gi1.sh: Likewise.
41073
41074 2009-08-30  Bruno Haible  <bruno@clisp.org>
41075
41076         Work around deficient /usr/bin/id program on Solaris.
41077         * tests/test-file-has-acl.sh (ID): New variable.
41078         * tests/test-set-mode-acl.sh (ID): Likewise.
41079         * tests/test-copy-acl.sh (ID): Likewise.
41080         * tests/test-copy-file.sh (ID): Likewise.
41081
41082 2009-08-30  Bruno Haible  <bruno@clisp.org>
41083
41084         New module 'xstriconveh'.
41085         * lib/xstriconveh.h: New file.
41086         * lib/xstriconveh.c: New file.
41087         * modules/xstriconveh: New file.
41088
41089 2009-08-30  Bruno Haible  <bruno@clisp.org>
41090
41091         Make it easier to use mem_cd_iconveh.
41092         * lib/striconveh.h (iconveh_t): New type.
41093         (iconveh_open, iconveh_close): New declarations.
41094         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41095         with a single 'const iconveh_t *' argument.
41096         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
41097         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41098         with a single 'const iconveh_t *' argument.
41099         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
41100         * tests/test-striconveh.c (main): Update.
41101         * NEWS: Mention the change.
41102
41103 2009-08-30  Bruno Haible  <bruno@clisp.org>
41104
41105         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
41106         problem.
41107
41108 2009-08-30  Bruno Haible  <bruno@clisp.org>
41109
41110         Work around iconv_open problem on Solaris.
41111         * lib/iconv_open-solaris.gperf: New file.
41112         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
41113         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
41114         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
41115         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
41116         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
41117         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
41118
41119 2009-08-29  Jim Meyering  <meyering@redhat.com>
41120
41121         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
41122         * top/maint.mk (cvs-check): Remove target; it was just an alias
41123         to the better-named vc-diff-check.
41124         (maintainer-distcheck): Remove rule.  It was used only from
41125         the (alpha/beta/major) target, and all of its commands but one
41126         were coreutils-specific.
41127         (vc-dist): Remove rule.
41128         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
41129         Run vc-diff-check, not vc-dist.
41130         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
41131
41132 2009-08-27  Bruno Haible  <bruno@clisp.org>
41133
41134         * tests/test-bitrotate.c (main): Remove test that uses a shift count
41135         of 0.
41136
41137 2009-08-27  Bruno Haible  <bruno@clisp.org>
41138
41139         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
41140         compilers.
41141         * doc/func.texi: Document the SunPRO C bug.
41142
41143 2009-08-27  Bruno Haible  <bruno@clisp.org>
41144
41145         Fix link error on Solaris.
41146         * tests/test-parse-duration.c (xstrdup): Remove function.
41147
41148 2009-08-26  Pádraig Brady  <P@draigbrady.com>
41149
41150         ignore-value: handle pointer types, too
41151         * lib/ignore-value.h (__attribute__): Remove definition.
41152         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
41153         of a more concise and more-often effective "(void) i" statement.
41154         (ignore_ptr): New function to suppress warnings from functions that
41155         return pointers, and to make it explicit that one function doesn't
41156         handle all cases.
41157
41158 2009-08-25  Bruno Haible  <bruno@clisp.org>
41159
41160         dup2: work around a Linux bug.
41161         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
41162         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
41163         * doc/posix-functions/dup2.texi: Mention the Linux bug.
41164         Reported by Simon Josefsson.
41165
41166 2009-08-25  Jim Meyering  <meyering@redhat.com>
41167
41168         libguestfs uses gnulib
41169         * users.txt: Add libguestfs.
41170
41171 2009-08-24  Eric Blake  <ebb9@byu.net>
41172
41173         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
41174         * lib/pipe2.c (includes): Add binary-io.h.
41175         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
41176
41177 2009-08-24  Bruno Haible  <bruno@clisp.org>
41178
41179         Tolerate declared but missing accept4 syscall.
41180         * lib/accept4.c (accept4): Invoke original accept4 function first, if
41181         available.
41182         * lib/sys_socket.in.h (accept4): If the function is already present,
41183         override it.
41184         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
41185         * modules/accept4 (Makefile.am): Compile accept4.c always.
41186         Reported by Paolo Bonzini and Eric Blake.
41187
41188 2009-08-23  Bruno Haible  <bruno@clisp.org>
41189
41190         New module 'accept4'.
41191         * lib/sys_socket.in.h (accept4): New declaration.
41192         * lib/accept4.c: New file.
41193         * m4/accept4.m4: New file.
41194         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41195         GNULIB_ACCEPT4, HAVE_ACCEPT4.
41196         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
41197         HAVE_ACCEPT4.
41198         * modules/accept4: New file.
41199         * doc/glibc-functions/accept4.texi: Mention the new module.
41200
41201 2009-08-24  Jim Meyering  <meyering@redhat.com>
41202
41203         progname: also set global program_invocation_name, when possible
41204         Before this change, a libtool-enabled program that calls glibc's
41205         error function would report the program name as
41206         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
41207         * modules/progname (configure.ac): Check for a declaration of
41208         program_invocation_name.
41209         * lib/progname.c:  Include <errno.h>.
41210         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
41211         Set program_invocation_name.
41212
41213 2009-08-23  Bruno Haible  <bruno@clisp.org>
41214
41215         * lib/dup3.c: Include <string.h>.
41216
41217 2009-08-23  Bruno Haible  <bruno@clisp.org>
41218
41219         * lib/dup3.c (dup3): Test only once whether the system actually exists.
41220         * lib/pipe2.c (pipe2): Likewise.
41221         Suggested by Eric Blake.
41222
41223 2009-08-23  Bruno Haible  <bruno@clisp.org>
41224
41225         Tolerate declared but missing dup3 syscall.
41226         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
41227         * lib/unistd.in.h (dup3): If the function is already present,
41228         override it.
41229         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
41230         * modules/dup3 (Makefile.am): Compile dup3.c always.
41231         Reported by Paolo Bonzini.
41232
41233 2009-08-23  Bruno Haible  <bruno@clisp.org>
41234
41235         Tolerate declared but missing pipe2 syscall.
41236         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
41237         available.
41238         * lib/unistd.in.h (pipe2): If the function is already present,
41239         override it.
41240         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
41241         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
41242         Reported by Paolo Bonzini.
41243
41244 2009-08-23  Bruno Haible  <bruno@clisp.org>
41245
41246         * lib/pipe2.c (pipe2): Move #ifs inside function.
41247
41248 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41249
41250         quotearg: document limitations of quote_these_too
41251         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
41252         those limitations are created.
41253         * lib/quotearg.h (set_char_quoting): Document that digits and
41254         letters that are special after backslash are not permitted.
41255         (quotearg_char): Cross-reference set_char_quoting documentation.
41256
41257 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
41258
41259         quotearg: implement custom_quoting_style
41260         * lib/quotearg.c: (struct quoting_options): Add left_quote and
41261         right_quote fields.
41262         (set_custom_quoting): New public function.
41263         (quotearg_buffer_restyled): Add left_quote and right_quote
41264         arguments, handle them very much like locale quoting, and update
41265         all uses.
41266         (quotearg_n_custom): New public function.
41267         (quotearg_n_custom_mem): New public function.
41268         (quotearg_custom): New public function.
41269         (quotearg_custom_mem): New public function.
41270         * lib/quotearg.h: Prototype and document new public functions.
41271         (enum quoting_style): For escape_quoting_style and
41272         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
41273         ignored even though they're otherwise like c_quoting_style.
41274         Add custom_quoting_style member and document with comparison to
41275         clocale_quoting_style.
41276         * tests/test-quotearg.c (custom_quotes): New array.
41277         (custom_results): New array.
41278         (main): Extend to test custom quoting.
41279
41280 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41281
41282         quotearg: fix right quote escaping when it's in quote_these_too
41283         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
41284         quote, be sure to prepend only one backslash.
41285         * tests/test-quotearg.c (use_quote_double_quotes): New function.
41286         (main): Test it.
41287
41288 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41289
41290         quotearg-tests: test escaping of embedded locale quotes
41291         * tests/test-quotearg.c (struct result_strings): Add member for
41292         new input.
41293         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
41294         (inputs): Add new input.
41295         (results_g): Add expected results.
41296         (flag_results): Likewise.
41297         (locale_results): Likewise.
41298         (compare_strings): Check those.
41299
41300 2009-08-23  Bruno Haible  <bruno@clisp.org>
41301
41302         Tests for module 'dup3'.
41303         * modules/dup3-tests: New file.
41304         * tests/test-dup3.c: New file.
41305
41306         New module 'dup3'.
41307         * lib/unistd.in.h (dup3): New declaration.
41308         * lib/dup3.c: New file.
41309         * m4/dup3.m4: New file.
41310         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
41311         HAVE_DUP3.
41312         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
41313         * modules/dup3: New file.
41314         * doc/glibc-functions/dup3.texi: Mention the new module.
41315
41316 2009-08-23  Bruno Haible  <bruno@clisp.org>
41317
41318         Tweak the dup2 test.
41319         * tests/test-dup2.c (main): Create the test file empty. Verify that an
41320         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
41321         the test file is still empty. Fix argument order of lseek.
41322
41323 2009-08-23  Bruno Haible  <bruno@clisp.org>
41324
41325         Avoid test link errors when the modules getopt-gnu, gettext are used.
41326         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
41327         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41328
41329 2009-08-23  Bruno Haible  <bruno@clisp.org>
41330
41331         Fix getdtablesize() on mingw.
41332         * lib/getdtablesize.c (getdtablesize): Implement differently.
41333         * lib/unistd.in.h (getdtablesize): Improve comment.
41334
41335 2009-08-23  Bruno Haible  <bruno@clisp.org>
41336
41337         New module 'mkostemp'.
41338         Based on Ulrich Drepper's 2007-08-10 change in glibc.
41339         * lib/stdlib.in.h (mksotemp): New declaration.
41340         * lib/mkostemp.c: New file, from glibc with modifications.
41341         * lib/tempname.h (GT_FILE): Remove outdated comment.
41342         (gen_tempname): Add flags argument.
41343         * lib/tempname.c (__GT_BIGFILE): Remove macro.
41344         (__GT_FILE): Map to 1.
41345         (small_open, large_open): Remove macros.
41346         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
41347         * lib/mkstemp.c (mkstemp): Update.
41348         * lib/mkdtemp.c (mkdtemp): Likewise.
41349         * m4/mkostemp.m4: New file.
41350         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
41351         HAVE_MKOSTEMP.
41352         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
41353         HAVE_MKOSTEMP.
41354         * modules/mkostemp: New file, based on modules/mkstemp.
41355         * doc/glibc-functions/mkostemp.texi: Mention the new module.
41356         * NEWS: Mention the change.
41357
41358 2009-08-23  Bruno Haible  <bruno@clisp.org>
41359
41360         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
41361         Reported by Eric Blake.
41362
41363 2009-08-23  Bruno Haible  <bruno@clisp.org>
41364
41365         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
41366         Reported by Eric Blake.
41367
41368 2009-08-23  Bruno Haible  <bruno@clisp.org>
41369
41370         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
41371         * modules/pipe2 (Depends-on): Likewise.
41372
41373 2009-08-23  Eric Blake  <ebb9@byu.net>
41374
41375         fcntl-h: add O_TTY_INIT support
41376         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
41377         * tests/test-fcntl-h.c (o): Test it.
41378         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41379
41380         fcntl-h: rename from fcntl, in preparation for fcntl(2)
41381         * modules/fcntl: Move <fcntl.h> header replacement...
41382         * modules/fcntl-h: ...to new name, so as not to collide with
41383         like-named function.
41384         * tests/test-fcntl.c: Rename...
41385         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
41386         * modules/fcntl-tests: Rename...
41387         * modules/fcntl-h-tests: ...to this.  Update test file name.
41388         * modules/chdir-long (Depends-on): Update clients.
41389         * modules/chdir-safer (Depends-on): Likewise.
41390         * modules/fcntl-safer (Depends-on): Likewise.
41391         * modules/fts (Depends-on): Likewise.
41392         * modules/mkancesdirs (Depends-on): Likewise.
41393         * modules/mkdir-p (Depends-on): Likewise.
41394         * modules/open (Depends-on): Likewise.
41395         * modules/savewd (Depends-on): Likewise.
41396         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
41397         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41398
41399 2009-08-22  Bruno Haible  <bruno@clisp.org>
41400
41401         * modules/binary-io (License): Relicense under LGPL.
41402         * modules/pipe2 (License): Likewise.
41403
41404 2009-08-22  Bruno Haible  <bruno@clisp.org>
41405
41406         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
41407         return value.
41408         * lib/pipe-filter-gi.c (filter_init): Likewise.
41409         Reported by Eric Blake.
41410
41411 2009-08-22  Bruno Haible  <bruno@clisp.org>
41412
41413         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
41414         * modules/pipe (Depends-on): Add pipe2.
41415
41416 2009-08-22  Bruno Haible  <bruno@clisp.org>
41417
41418         Tests for module 'pipe2'.
41419         * modules/pipe2-tests: New file.
41420         * tests/test-pipe2.c: New file.
41421
41422         New module 'pipe2'.
41423         * lib/unistd.in.h (pipe2): New declaration.
41424         * lib/pipe2.c: New file.
41425         * m4/pipe2.m4: New file.
41426         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
41427         HAVE_PIPE2.
41428         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
41429         * modules/pipe2: New file.
41430         * doc/glibc-functions/pipe2.texi: Mention the new module.
41431
41432 2009-08-22  Bruno Haible  <bruno@clisp.org>
41433
41434         Reference some new glibc functions.
41435         * doc/glibc-functions/accept4.texi: New file.
41436         * doc/glibc-functions/dup3.texi: New file.
41437         * doc/glibc-functions/mkostemp.texi: New file.
41438         * doc/glibc-functions/pipe2.texi: New file.
41439         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
41440         (Glibc sys/socket.h): Refer to accept4.
41441         (Glibc unistd.h): Refer to dup3, pipe2.
41442         Reported by Eric Blake.
41443
41444 2009-08-22  Jim Meyering  <meyering@redhat.com>
41445             Bruno Haible  <bruno@clisp.org>
41446
41447         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
41448         This makes it so packages using automake-1.11's silent-rules option
41449         can print e.g., a single "GEN    configmake.h" line, rather than
41450         the 30+ statements that perform the job.  If you want to see the
41451         actual commands, you can still run "make V=1".
41452         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
41453         so that make output is abbreviated when those variables are defined
41454         appropriately.
41455         * modules/argz: Likewise.
41456         * modules/arpa_inet: Likewise.
41457         * modules/byteswap: Likewise.
41458         * modules/configmake: Likewise.
41459         * modules/dirent: Likewise.
41460         * modules/errno: Likewise.
41461         * modules/fcntl: Likewise.
41462         * modules/float: Likewise.
41463         * modules/fnmatch: Likewise.
41464         * modules/getopt-posix: Likewise.
41465         * modules/glob: Likewise.
41466         * modules/iconv_open: Likewise.
41467         * modules/inttypes: Likewise.
41468         * modules/localcharset: Likewise.
41469         * modules/locale: Likewise.
41470         * modules/math: Likewise.
41471         * modules/netdb: Likewise.
41472         * modules/netinet_in: Likewise.
41473         * modules/poll: Likewise.
41474         * modules/posix_spawnp-tests: Likewise.
41475         * modules/sched: Likewise.
41476         * modules/search: Likewise.
41477         * modules/selinux-h: Likewise.
41478         * modules/signal: Likewise.
41479         * modules/spawn: Likewise.
41480         * modules/stdarg: Likewise.
41481         * modules/stdbool: Likewise.
41482         * modules/stddef: Likewise.
41483         * modules/stdint: Likewise.
41484         * modules/stdio: Likewise.
41485         * modules/stdlib: Likewise.
41486         * modules/string: Likewise.
41487         * modules/strings: Likewise.
41488         * modules/sys_file: Likewise.
41489         * modules/sys_ioctl: Likewise.
41490         * modules/sys_select: Likewise.
41491         * modules/sys_socket: Likewise.
41492         * modules/sys_stat: Likewise.
41493         * modules/sys_time: Likewise.
41494         * modules/sys_times: Likewise.
41495         * modules/sys_utsname: Likewise.
41496         * modules/sys_wait: Likewise.
41497         * modules/sysexits: Likewise.
41498         * modules/time: Likewise.
41499         * modules/unistd: Likewise.
41500         * modules/wchar: Likewise.
41501         * modules/wctype: Likewise.
41502
41503 2009-08-22  Jim Meyering  <meyering@redhat.com>
41504
41505         announce-gen: detect write failure
41506         * build-aux/announce-gen: Add Coda at end.
41507         Remove equivalent-but-more-verbose block at top.
41508
41509 2009-08-19  Akim Demaille  <demaille@gostai.com>
41510
41511         bootstrap: --help to stdout.
41512         * bootstrap (usage): Don't send --help to stderr.
41513         Use a here doc instead of a long string.
41514
41515 2009-08-21  Eric Blake  <ebb9@byu.net>
41516
41517         test-popen-safer: split from test-popen
41518         * tests/test-popen.c (main): Move...
41519         * tests/test-popen.h: ...into new file.
41520         * tests/test-popen-safer2.c: New file.
41521         * modules/popen-tests (Files): Add test-popen.h.
41522         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
41523         Suggested by Bruno Haible.
41524
41525         test-fcntl-safer: split from test-open
41526         * tests/test-open.c (main): Move...
41527         * tests/test-open.h: ...into new file.
41528         * tests/test-fcntl-safer.c: New file.
41529         * modules/open-tests (Files): Add test-open.h.
41530         * modules/fcntl-safer-tests: New file.
41531         Suggested by Bruno Haible.
41532
41533         test-fopen-safer: split from test-fopen
41534         * tests/test-fopen.c (main): Move...
41535         * tests/test-fopen.h: ...into new file.
41536         * tests/test-fopen-safer.c: New file.
41537         * modules/fopen-tests (Files): Add test-fopen.h.
41538         * modules/fopen-safer-tests: New file.
41539         Suggested by Bruno Haible.
41540
41541 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41542
41543         popen-safer: test O_CLOEXEC at run-time.
41544         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
41545
41546 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41547
41548         fcntl: move more flags to the header
41549         * lib/cloexec.c: Do not define FD_CLOEXEC here.
41550         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
41551         * lib/fcntl.in.h: Do both things here.
41552
41553 2009-08-21  Jim Meyering  <meyering@redhat.com>
41554
41555         consistently remove $@-t before redirecting to it
41556         * modules/argz: Remove $@-t and $@ before redirecting to the former.
41557         * modules/alloca-opt: Likewise.
41558         * modules/byteswap: Likewise.
41559         * modules/fnmatch: Likewise.
41560         * modules/getopt-posix: Likewise.
41561         * modules/glob: Likewise.
41562         * modules/poll: Likewise.
41563         * modules/posix_spawnp-tests: Likewise.
41564         * modules/sys_socket: Likewise.
41565         * modules/sysexits: Likewise.
41566
41567 2009-08-21  Eric Blake  <ebb9@byu.net>
41568
41569         popen: simplify access to original popen
41570         * lib/popen.c (rpl_popen): No need to worry about popen being a
41571         macro.
41572         Reported by Bruno Haible.
41573
41574 2009-08-20  Eric Blake  <ebb9@byu.net>
41575
41576         build: avoid some compiler warnings
41577         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
41578         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
41579         type.
41580         (new_exclude_segment, excluded_file_pattern_p)
41581         (excluded_file_name_p): Reduce scope.
41582         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
41583         old-style declaration.
41584
41585 2009-08-20  Simon Josefsson  <simon@josefsson.org>
41586
41587         * tests/test-exclude1.sh: Handle Windows EOL.
41588         * tests/test-exclude2.sh: Likewise.
41589         * tests/test-exclude3.sh: Likewise.
41590         * tests/test-exclude4.sh: Likewise.
41591         * tests/test-exclude5.sh: Likewise.
41592         * tests/test-exclude6.sh: Likewise.
41593         * tests/test-exclude7.sh: Likewise.
41594
41595 2009-08-19  Akim Demaille  <demaille@gostai.com>
41596
41597         bootstrap: find sha1sum when named gsha1sum.
41598         * bootstrap (find_tool): New.
41599         ($SHA1SUM): New.
41600         Use it.
41601
41602 2009-08-20  Jim Meyering  <meyering@redhat.com>
41603
41604         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
41605         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
41606         expression that converts "." in a file name to "\." in the resulting
41607         regexp.  Start with a dummy statement, so that prior shell variable
41608         definitions are expanded portably.  Reported by Simon Josefsson.
41609
41610 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
41611
41612         Fix polling for writeability of a screen buffer.
41613         * lib/poll.c: Distinguish input and screen buffers for the
41614         Win32 implementation.
41615         * lib/select.c: Likewise.
41616
41617 2009-08-19  Eric Blake  <ebb9@byu.net>
41618
41619         popen-safer: prevent popen from clobbering std descriptors
41620         * modules/popen-safer: New file.
41621         * lib/popen-safer.c: Likewise.
41622         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
41623         * lib/stdio--.h (popen): Provide override.
41624         * lib/stdio-safer.h (popen_safer): Provide declaration.
41625         * tests/test-popen.c (includes): Partially test this.
41626         * modules/popen-safer-tests: New file, for more tests.
41627         * tests/test-popen-safer.c: Likewise.
41628         * MODULES.html.sh (file stream based Input/Output): Mention it.
41629
41630         tests: test some of the *-safer modules
41631         * modules/fopen-safer (Depends-on): Add fopen.
41632         * modules/fcntl-safer (Depends-on): Add fcntl.
41633         * modules/stdlib-safer (Depends-on): Add stdlib.
41634         (configure.ac): Set indicator.
41635         * modules/unistd-safer (configure.ac): Likewise.
41636         * modules/tmpfile-safer (configure.ac): Likewise.
41637         (Depends-on): Add tmpfile.
41638         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
41639         active.
41640         * tests/test-fopen.c (includes): Test safer versions when they are
41641         in use.
41642         * tests/test-open.c (includes): Likewise.
41643
41644         popen: fix cygwin 1.5 bug when stdin closed
41645         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
41646         * modules/popen: New file.
41647         * modules/popen-tests: Likewise.
41648         * tests/test-popen.c: Likewise.
41649         * m4/popen.m4: Likewise.
41650         * lib/popen.c: Likewise.
41651         * lib/stdio.in.h (popen): New declaration.
41652         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
41653         * modules/stdio (Makefile.am): Likewise.
41654         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
41655
41656 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
41657
41658         maint.mk: give full control over update-copyright exclusions
41659         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
41660         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
41661         (update-copyright): Don't force inclusion of top-level
41662         ChangeLog.  Don't force exclusion of all COPYING files, but make
41663         them the default exclusion instead.
41664
41665 2009-08-16  Bruno Haible  <bruno@clisp.org>
41666
41667         Fix test failures on Solaris 10.
41668         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
41669         tests when Solaris iconv() is used.
41670         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
41671         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
41672         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
41673         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
41674         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
41675
41676 2009-08-16  Bruno Haible  <bruno@clisp.org>
41677
41678         Fix test failures on Solaris 10.
41679         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
41680         'tr' program and pass it as first argument.
41681         * tests/test-pipe-filter-gi1.sh: Likewise.
41682         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
41683         program as first argument.
41684         * tests/test-pipe-filter-gi1.c (main): Likewise.
41685
41686 2009-08-16  Eric Blake  <ebb9@byu.net>
41687
41688         fpurge: fix previous commits
41689         * modules/fpurge (Makefile.am): Make replacement conditional,
41690         partially reverting 2007-04-29 change; missed in previous
41691         attempt.
41692         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
41693         is missing.
41694
41695 2009-08-16  Bruno Haible  <bruno@clisp.org>
41696
41697         Clarify fpurge's effect on the file position.
41698         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
41699         * tests/test-fpurge.c (main): Make a second pass for checking the file
41700         position.
41701
41702 2009-08-16  Bruno Haible  <bruno@clisp.org>
41703
41704         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
41705         declaration of fpurge is missing.
41706         * tests/test-fpurge.c (main): Check that the file has not more contents
41707         than expected. Close the file before removing it.
41708
41709 2009-08-15  Eric Blake  <ebb9@byu.net>
41710
41711         fpurge: don't wrap working cygwin implementation
41712         * lib/fpurge.c (fpurge): Fix comment typo.
41713         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
41714         1.7 to avoid replacement.
41715         * tests/test-fpurge.c (main): Enhance test.
41716
41717 2009-08-15  Eric Blake  <ebb9@byu.net>
41718         and Jim Meyering  <meyering@redhat.com>
41719
41720         test-update-copyright: skip if perl is insufficient
41721         * tests/test-update-copyright.sh: Failure to run maintainer tool
41722         should not cause testsuite failure on cygwin 1.5.
41723
41724 2009-08-14  Eric Blake  <ebb9@byu.net>
41725
41726         doc: mention more functions added in cygwin 1.7.0
41727         * doc/posix-headers/limits.texi (limits.h): Update for recent
41728         cygwin additions.
41729         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
41730         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
41731         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
41732         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
41733         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
41734
41735 2009-08-14  Eric Blake  <ebb9@byu.net>
41736
41737         maint.mk: simplify update-copyright rule
41738         * top/maint.mk (update-copyright-local): Delete, and document how
41739         to do it in cfg.mk instead.
41740         (update-copyright-exclude-regexp): Delete, and document how to do
41741         it in .x-update-copyright instead.
41742         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
41743         exclude ChangeLog.
41744
41745 2009-08-14  Bruno Haible  <bruno@clisp.org>
41746
41747         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
41748
41749 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41750
41751         maint.mk: support update-copyright-env
41752         * top/maint.mk (update-copyright-env): Define place-holder.
41753         (update-copyright): Expand $(update-copyright-env) before
41754         invoking update-copyright.
41755
41756 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41757
41758         update-copyright: implement forced reformatting
41759         * build-aux/update-copyright: Implement and document
41760         UPDATE_COPYRIGHT_FORCE.
41761         * tests/test-update-copyright.sh: Test it.
41762
41763 2009-08-14  Eric Blake  <ebb9@byu.net>
41764         and Bruno Haible  <bruno@clisp.org>
41765
41766         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
41767         * tests/test-locale.c: Revert previous patch related to NULL.
41768         * tests/test-stdio.c: Likewise.
41769         * tests/test-stdlib.c: Likewise.
41770         * tests/test-string.c: Likewise.
41771         * tests/test-unistd.c: Likewise.
41772         * modules/time-tests (Depends-on): Add verify.
41773         * modules/wchar-tests (Depends-on): Likewise.
41774         * tests/test-time.c: Test for NULL compliance.
41775         * tests/test-wchar.c: Likewise.
41776         * modules/locale (Depends-on): Add stddef.
41777         * modules/stdio (Depends-on): Likewise.
41778         * modules/stdlib (Depends-on): Likewise.
41779         * modules/string (Depends-on): Likewise.
41780         * modules/time (Depends-on): Likewise.
41781         * modules/unistd (Depends-on): Likewise.
41782         * modules/wchar (Depends-on): Likewise.
41783         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
41784         * lib/stdlib.in.h (includes): Likewise.
41785         * lib/string.in.h (includes): Likewise.
41786         * lib/time.in.h (includes): Likewise.
41787         * lib/unistd.in.h (includes): Likewise.
41788         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
41789         replaced.
41790         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41791         * m4/stddef_h.m4: New file.
41792         * modules/stddef: Likewise.
41793         * lib/stddef.in.h: Likewise.
41794         * modules/stddef-tests: Likewise.
41795         * tests/test-stddef.c: Likewise.
41796         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
41797         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
41798         * doc/posix-headers/locale.texi (locale.h): Likewise.
41799         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
41800         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
41801         * doc/posix-headers/string.texi (string.h): Likewise.
41802         * doc/posix-headers/time.texi (time.h): Likewise.
41803         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
41804         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
41805
41806 2009-08-14  Eric Blake  <ebb9@byu.net>
41807
41808         doc: improve git diff of texinfo files
41809         * .gitattributes: Add rule for *.texi files, with hint on how to
41810         use it.
41811         Copied from m4, and based on a report by Bruno Haible.
41812
41813 2009-08-14  Bruno Haible  <bruno@clisp.org>
41814
41815         Disable multithread support by default on Cygwin 1.5.x for real.
41816         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
41817
41818 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41819
41820         update-copyright: much ado about intervals
41821         * build-aux/update-copyright: Implement and document
41822         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
41823         of copyright year intervals.
41824         Also, document UPDATE_COPYRIGHT_YEAR.
41825         * tests/test-update-copyright.sh: Test it.
41826
41827         update-copyright: convert 2-digit to 4-digit years
41828         * build-aux/update-copyright: Implement and document.
41829         * tests/test-update-copyright.sh: Update.
41830
41831 2009-08-14  Jim Meyering  <meyering@redhat.com>
41832
41833         test-exclude: avoid coreutils "make check" failure
41834         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
41835         just as in test-argmatch.c.
41836
41837 2009-08-13  Eric Blake  <ebb9@byu.net>
41838
41839         test-dup2: fix bad assumption
41840         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
41841         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
41842
41843         test-version-etc: fix CRLF portability issue
41844         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
41845         recognize \r.
41846         * tests/test-argp-version-etc-1.sh: Likewise.
41847
41848         getopt: update client modules
41849         * modules/argp (Depends-on): Use getopt-gnu.
41850         * modules/git-merge-changelog (Depends-on): Likewise.
41851         * modules/long-options (Depends-on): Likewise.
41852         * modules/xstrtol (Depends-on): Likewise.
41853
41854 2009-08-13  Simon Josefsson  <simon@josefsson.org>
41855
41856         * tests/test-version-etc.sh: Don't fail on different
41857         project/version.  Don't fail on CRLF differences.  Rewrite to use
41858         multiple -e instead of multiple sed forks, suggested by Eric Blake
41859         <ebb9@byu.net>.
41860         * tests/test-argp-version-etc-1.sh: Likewise.
41861
41862 2009-08-13  Simon Josefsson  <simon@josefsson.org>
41863
41864         * tests/test-version-etc.sh: Don't fail on different
41865         project/version.
41866
41867 2009-08-12  Bruno Haible  <bruno@clisp.org>
41868
41869         Tests for modules 'getopt-posix', 'getopt-gnu'.
41870         * modules/getopt-posix-tests: New file.
41871         * tests/test-getopt.c: New file.
41872         * tests/test-getopt.h: New file.
41873         * tests/test-getopt_long.h: New file.
41874
41875         New modules 'getopt-posix', 'getopt-gnu'.
41876         * modules/getopt-gnu: New file, renamed from modules/getopt.
41877         * modules/getopt-posix: New file.
41878         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
41879         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
41880         (gl_GETOPT): Remove macro.
41881         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
41882         Disable the test against BSD systems that declare optreset. Test
41883         against mingw bug. Test against lack of support of optional arguments
41884         on many platforms.
41885         * doc/glibc-headers/getopt.texi: Update module name and list of
41886         relevant platforms.
41887         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
41888         'getopt-gnu' and more portability problems.
41889         * NEWS: Mention the changes.
41890
41891 2009-08-12  Bruno Haible  <bruno@clisp.org>
41892
41893         Ensure that optarg etc. get declared by <unistd.h>.
41894         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
41895         AC_USE_SYSTEM_EXTENSIONS.
41896         * modules/getopt (Depends-on): Add 'extensions'.
41897
41898 2009-08-12  Bruno Haible  <bruno@clisp.org>
41899
41900         Avoid test link errors.
41901         * modules/pipe-filter-ii-tests (Makefile.am): Define
41902         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
41903         * modules/pipe-filter-gi-tests (Makefile.am): Define
41904         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
41905         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41906
41907 2009-08-12  Bruno Haible  <bruno@clisp.org>
41908
41909         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
41910         gl_GETOPT_SUBSTITUTE before.
41911         (gl_GETOPT): Use it.
41912         * m4/argp.m4 (gl_ARGP): Update.
41913         Reported by Sergey Poznyakoff.
41914
41915         * m4/getopt.m4: Reorder macros.
41916         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
41917         (gl_GETOPT_SUBSTITUTE): Remove macro.
41918
41919 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41920
41921         Minor improvement in gitlog-to-changelog
41922
41923         * build-aux/gitlog-to-changelog: New option `--format' makes
41924         output format string configurable.
41925
41926 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41927
41928         Optimize exclude: use hash tables for non-wildcard patterns.
41929
41930         * lib/exclude.c: Include hash.h and mbuiter.h
41931         (struct exclude_pattern, exclude_segment): New data types.
41932         (struct exclude): Rewrite.
41933         (fnmatch_pattern_has_wildcards): New function.
41934         (new_exclude_segment, free_exclude_segment): New functions.
41935         (excluded_file_pattern_p, excluded_file_name_p): New functions.
41936         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
41937         * lib/exclude.h (is_fnmatch_pattern): New prototype.
41938         * modules/exclude: Depend on hash and mbuiter.
41939
41940         * modules/exclude-tests: New file.
41941         * tests/test-exclude.c: New file.
41942         * tests/test-exclude1.sh: New file.
41943         * tests/test-exclude2.sh: New file.
41944         * tests/test-exclude3.sh: New file.
41945         * tests/test-exclude4.sh: New file.
41946         * tests/test-exclude5.sh: New file.
41947         * tests/test-exclude6.sh: New file.
41948         * tests/test-exclude7.sh: New file.
41949
41950 2009-08-12  Bruno Haible  <bruno@clisp.org>
41951
41952         Ensure that getopt() gets declared by <unistd.h>.
41953         * lib/unistd.in.h: Conditionally include getopt.h.
41954         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
41955         Set GNULIB_UNISTD_H_GETOPT.
41956         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41957         GNULIB_UNISTD_H_GETOPT.
41958         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
41959
41960 2009-08-12  Bruno Haible  <bruno@clisp.org>
41961
41962         Clarify logic.
41963         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
41964         gl_replace_getopt instead of GETOPT_H.
41965
41966 2009-08-12  Bruno Haible  <bruno@clisp.org>
41967
41968         * m4/getopt.m4: Add comments.
41969
41970 2009-08-12  Bruno Haible  <bruno@clisp.org>
41971
41972         Disable multithread support by default on Cygwin 1.5.x.
41973         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
41974         set gl_use_threads=no if not specified otherwise.
41975
41976 2009-08-11  Bruno Haible  <bruno@clisp.org>
41977
41978         Avoid compilation error on NetBSD 5.0.
41979         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
41980         * tests/test-stdio.c: Likewise.
41981         * tests/test-stdlib.c: Likewise.
41982         * tests/test-string.c: Likewise.
41983         * tests/test-unistd.c: Likewise.
41984         Reported by Greg Troxel <gdt@ir.bbn.com>
41985         at <https://savannah.gnu.org/support/?106973>.
41986
41987 2009-08-11  Bruno Haible  <bruno@clisp.org>
41988
41989         * modules/dup2-tests (Depends-on): Remove close.
41990
41991         Undo 2009-07-19 commit.
41992         * modules/acl-tests (Depends-on): Remove close.
41993         * modules/binary-io-tests (Depends-on): Likewise.
41994         * modules/closein-tests (Depends-on): Likewise.
41995         * modules/flock-tests (Depends-on): Likewise.
41996         * modules/fsync-tests (Depends-on): Likewise.
41997         * modules/lseek-tests (Depends-on): Likewise.
41998         * modules/pipe-tests (Depends-on): Likewise.
41999         * modules/posix_spawn-tests (Depends-on): Likewise.
42000         * modules/posix_spawnp-tests (Depends-on): Likewise.
42001         * modules/stat-time-tests (Depends-on): Likewise.
42002         * modules/yesno-tests (Depends-on): Likewise.
42003
42004 2009-08-10  Bruno Haible  <bruno@clisp.org>
42005
42006         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
42007
42008 2009-08-10  Bruno Haible  <bruno@clisp.org>
42009
42010         Fix a gcc warning.
42011         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
42012
42013 2009-08-10  Bruno Haible  <bruno@clisp.org>
42014
42015         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
42016         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
42017         not only the first time.
42018         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
42019         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
42020         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
42021         is 1, not only the the first time.
42022
42023 2009-08-10  Bruno Haible  <bruno@clisp.org>
42024
42025         Make it possible to use module 'gethostname' without module 'close'.
42026         * lib/unistd.in.h (close): Evoke a link error only if
42027         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42029         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42030         * modules/unistd (Makefile.am): Substitute
42031         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42032         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
42033         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42034         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
42035         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42036         * modules/sys_ioctl (Makefile.am): Substitute
42037         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42038         * modules/socket (configure.ac): On native Windows, set
42039         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
42040         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42041         Reported by Sam Steingold <sds@gnu.org>.
42042
42043 2009-08-10  Bruno Haible  <bruno@clisp.org>
42044
42045         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
42046         * modules/ioctl (configure.ac): Likewise.
42047
42048 2009-08-10  Bruno Haible  <bruno@clisp.org>
42049
42050         Avoid collision between gnulib wrapper and libintl wrapper.
42051         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
42052         already defined in intl/printf.c.
42053         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
42054         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
42055
42056 2009-08-09  Bruno Haible  <bruno@clisp.org>
42057
42058         Make <sys/select.h> really self-contained, also on Solaris 10.
42059         * lib/sys_select.in.h: Include <string.h>.
42060         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
42061         Solaris 10 problem.
42062         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
42063         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
42064         Reported by Jim Meyering.
42065
42066 2009-08-09  Bruno Haible  <bruno@clisp.org>
42067
42068         Avoid warnings from 'aclocal' that are due to a use of macro name
42069         AM_XGETTEXT_OPTION that is not defined in automake.
42070         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
42071         automake.
42072         * modules/error (configure.ac): Likewise.
42073         * modules/propername (configure.ac): Likewise.
42074         * modules/vasprintf (configure.ac): Likewise.
42075         * modules/verror (configure.ac): Likewise.
42076         * modules/xprintf (configure.ac): Likewise.
42077         * modules/xvasprintf (configure.ac): Likewise.
42078
42079 2009-08-08  Bruno Haible  <bruno@clisp.org>
42080
42081         Avoid compilation error in C++ mode.
42082         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
42083         Reported by Sam Steingold <sds@gnu.org>.
42084
42085 2009-08-08  Bruno Haible  <bruno@clisp.org>
42086
42087         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
42088         for the various Unix platforms.
42089         * doc/posix-headers/limits.texi: Update platforms list regarding
42090         HOST_NAME_MAX.
42091         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42092
42093 2009-08-07  Jim Meyering  <meyering@redhat.com>
42094
42095         selinux-at: fix typo in a comment
42096         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
42097         Spotted by Paolo Bonzini.
42098
42099         selinux-at: remove redundant m4 code, add documentation
42100         * modules/selinux-at (configure.ac): Remove redundant code.
42101         LIB_SELINUX is already set via the dependent module, selinux-h.
42102         (Include): Add quotes around selinux-at.h.
42103         * lib/selinux-at.h: Add documentation.
42104         Reported by Bruno Haible in
42105         http://marc.info/?l=gnulib-bug&m=124958988300749
42106
42107 2009-08-07  Bruno Haible  <bruno@clisp.org>
42108
42109         Avoid link error on MacOS X 10.3 and 10.4.
42110         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
42111         on non-ELF systems.
42112         * lib/argp-pv.c (argp_program_version): Likewise.
42113         Reported by Simon Josefsson.
42114
42115 2009-08-07  Simon Josefsson  <simon@josefsson.org>
42116
42117         * tests/test-version-etc.sh: Use $EXEEXT.
42118
42119 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
42120
42121         update-copyright: update documentation to point to maint.mk
42122         * build-aux/update-copyright: Here.
42123
42124 2009-08-06  Jim Meyering  <meyering@redhat.com>
42125
42126         maint.mk: support update-copyright-local
42127         * top/maint.mk (update-copyright-local): Define place-holder.
42128         (update-copyright): Depend on $(update-copyright-local).
42129
42130 2009-08-06  Jim Meyering  <meyering@redhat.com>
42131
42132         selinux-at: new module
42133         Initially written for coreutils, this module will soon be
42134         used by findutils, too.
42135         * MODULES.html.sh [Misc]: Add selinux-at.
42136         * lib/selinux-at.h: New file, from coreutils.
42137         * lib/selinux-at.c: Likewise.
42138         * modules/selinux-at: Likewise.
42139         (License): Change from LGPL to GPL, since it depends
42140         on the GPL'd openat module.
42141
42142         doc: update README
42143         * README: Remove references to cogito.
42144         Remove cvs-repo-updating instructions from 2007.
42145         Don't imply that CVS is better if you have limited disk space.
42146
42147 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42148
42149         update-copyright: support C-style comments
42150         * build-aux/update-copyright: Implement and document.
42151         * tests/test-update-copyright.sh: Test.
42152
42153 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42154
42155         update-copyright: support omitted "(C)"
42156         * build-aux/update-copyright: Implement and document.  Also,
42157         allow variable whitespace before "(C)".
42158         * tests/test-update-copyright.sh: Test.
42159
42160 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42161
42162         update-copyright: don't trip on non-FSF copyright statements
42163         * build-aux/update-copyright: Fix so that the first correctly
42164         formatted FSF copyright statement is recognized no matter what
42165         appears before it.  Update documentation.
42166         * tests/test-update-copyright.sh: Test that.
42167
42168 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42169
42170         update-copyright: clean up code a little
42171         * build-aux/update-copyright: Append "_re" to the name of any
42172         variable holding a regular expression.
42173         Replace "old" and "new" with "stmt" in variable names.
42174         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
42175         handled correctly.
42176         Format code more consistently.
42177
42178 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42179
42180         update-copyright-tests: improve portability
42181         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
42182         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
42183
42184 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42185
42186         update-copyright: support @copyright{} and &copy;
42187         * build-aux/update-copyright: Implement and document.
42188         * tests/test-update-copyright.sh: Test.
42189
42190 2009-08-04  Jim Meyering  <meyering@redhat.com>
42191
42192         update-copyright-tests: correctly test EOL=\r\n handling
42193         * tests/test-update-copyright.sh: Put \r at the end of some lines
42194         for the dos-eol tests.  Based on a patch by Joel E. Denny.
42195
42196         maint.mk: make update-copyright exclusion list more configurable
42197         * top/maint.mk (update-copyright): Default to excluding COPYING,
42198         but allow an override, in case someone does want to update that file.
42199
42200         maint.mk: don't update copyright date in COPYING
42201         * top/maint.mk (update-copyright): Exclude COPYING.
42202
42203         maint.mk: add a copyright-updating rule
42204         * top/maint.mk (update-copyright): New rule.
42205         Derived from coreutils/Makefile.am.
42206
42207         update-copyright: rename some variables
42208         * build-aux/update-copyright: Rename a few variables for clarity.
42209         Tweak syntax.  List Joel E. Denny as coauthor.
42210
42211 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42212
42213         update-copyright: fix bug for 2-digit last year and add tests
42214         * build-aux/update-copyright: Fix bug.
42215         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
42216         specified.
42217         * modules/update-copyright-tests: New
42218         * tests/test-update-copyright.sh: New.
42219
42220 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42221
42222         update-copyright: handle leading tabs in line prefix
42223         * build-aux/update-copyright: Count leading tabs as 8 spaces
42224         when computing margin.  This helps with the formatting of
42225         ChangeLogs, for example.
42226         Fix documentation a little.
42227
42228 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42229
42230         update-copyright: support EOL=\r\n
42231         * build-aux/update-copyright: Implement that.
42232
42233 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42234
42235         update-copyright: automatically format copyright statements
42236         * build-aux/update-copyright: Implement that.
42237         Also, be a little more predictable and safer by always failing
42238         when the full copyright format is not perfectly recognized as an
42239         unbroken whole.  Discussed at
42240         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
42241         Rewrite documentation.
42242
42243 2009-08-03  Bruno Haible  <bruno@clisp.org>
42244
42245         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
42246
42247 2009-08-02  Bruno Haible  <bruno@clisp.org>
42248
42249         Tests for module 'uname'.
42250         * modules/uname-tests: New file.
42251         * tests/test-uname.c: New file.
42252
42253         New module 'uname'.
42254         * lib/uname.c: New file.
42255         * m4/uname.m4: New file.
42256         * modules/uname: New file.
42257         * doc/posix-functions/uname.texi: Mention the new module.
42258
42259 2009-08-02  Bruno Haible  <bruno@clisp.org>
42260
42261         Tests for module 'sys_utsname'.
42262         * modules/sys_utsname-tests: New file.
42263         * tests/test-sys_utsname.c: New file.
42264
42265         New module 'sys_utsname'.
42266         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
42267         * m4/sys_utsname_h.m4: New file.
42268         * modules/sys_utsname: New file.
42269         * doc/posix-headers/sys_utsname.texi: Mention the new module.
42270
42271 2009-08-02  Bruno Haible  <bruno@clisp.org>
42272
42273         Implicitly initialize the sockets library.
42274         * lib/gethostname.c: Include sockets.h.
42275         (rpl_gethostname): Invoke gl_sockets_startup.
42276         * lib/socket.c: Include sockets.h.
42277         (rpl_socket): Invoke gl_sockets_startup.
42278         * modules/gethostname (Depends-on): Add sockets.
42279         * modules/socket (Depends-on): Likewise.
42280         * tests/test-poll.c: Don't include sockets.h.
42281         (main): Don't invoke gl_sockets_startup.
42282         * tests/test-select.c: Don't include sockets.h.
42283         (main): Don't invoke gl_sockets_startup.
42284
42285 2009-08-02  Bruno Haible  <bruno@clisp.org>
42286
42287         Allow multiple calls to gl_sockets_startup.
42288         * lib/sockets.c (initialized_sockets_version): New variable.
42289         (gl_sockets_startup): Do nothing if already called for this or a higher
42290         version.
42291         (gl_sockets_cleanup): Reset initialized_sockets_version.
42292
42293 2009-08-03  Simon Josefsson  <simon@josefsson.org>
42294
42295         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
42296         different project/version.
42297
42298 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
42299             Bruno Haible  <bruno@clisp.org>
42300
42301         Tests for module 'pipe-filter-gi'.
42302         * modules/pipe-filter-gi-tests: New file.
42303         * tests/test-pipe-filter-gi1.sh: New file.
42304         * tests/test-pipe-filter-gi1.c: New file.
42305         * tests/test-pipe-filter-gi2.sh: New file.
42306         * tests/test-pipe-filter-gi2-main.c: New file.
42307         * tests/test-pipe-filter-gi2-child.c: New file.
42308
42309         New module 'pipe-filter-gi'.
42310         * lib/pipe-filter-gi.c: New file.
42311         * modules/pipe-filter-gi: New file.
42312
42313 2009-08-02  Bruno Haible  <bruno@clisp.org>
42314             Paolo Bonzini  <bonzini@gnu.org>
42315
42316         Tests for module 'pipe-filter-ii'.
42317         * modules/pipe-filter-ii-tests: New file.
42318         * tests/test-pipe-filter-ii1.sh: New file.
42319         * tests/test-pipe-filter-ii1.c: New file.
42320         * tests/test-pipe-filter-ii2.sh: New file.
42321         * tests/test-pipe-filter-ii2-main.c: New file.
42322         * tests/test-pipe-filter-ii2-child.c: New file.
42323
42324         New module 'pipe-filter-ii'.
42325         * lib/pipe-filter.h: New file.
42326         * lib/pipe-filter-ii.c: New file.
42327         * lib/pipe-filter-aux.h: New file.
42328         * modules/pipe-filter-ii: New file.
42329
42330 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42331
42332         * lib/gc-libgcrypt.c: Change copyright to FSF.
42333         * lib/gc-gnulib.c: Likewise.
42334
42335 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
42336
42337         * lib/gethostname.c: Include limits.h.
42338
42339 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42340             Bruno Haible  <bruno@clisp.org>
42341
42342         Ensure HOST_NAME_MAX as part of the gethostname module.
42343         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
42344         define also HOST_NAME_MAX.
42345         * tests/test-gethostname.c: Include <limits.h>.
42346         (main): Check also HOST_NAME_MAX.
42347         * doc/posix-headers/limits.texi: Document the mingw problem.
42348
42349 2009-08-02  Bruno Haible  <bruno@clisp.org>
42350
42351         * lib/gethostname.c (gethostname): Fix handling of large len argument.
42352         Add comments.
42353
42354 2009-03-31  Simon Josefsson  <simon@josefsson.org>
42355
42356         * lib/gethostname.c: Add Windows wrapper.
42357         * m4/gethostname.m4: Look for gethostname in -lws2_32.
42358         * modules/gethostname: Depend on sys_socket & errno, for also
42359         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
42360         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
42361
42362 2009-07-31  Jim Meyering  <meyering@redhat.com>
42363
42364         getloadavg: fix symbol name in comment
42365         * lib/getloadavg.c: Correct a typo I introduced when adding
42366         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
42367         Matt Kraai spotted the problem.
42368
42369 2009-07-29  Matt Kraai  <mkraai@beckman.com>
42370
42371         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
42372         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
42373         code also if ! defined N_NAME_POINTER.
42374         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
42375         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
42376         but the n_name member is a 12-byte array.
42377
42378 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
42379
42380         update-copyright: generalize comment handling
42381         * build-aux/update-copyright: Handle copyright statements
42382         within more comment styles.
42383         Document usage.
42384         Report any file with an external copyright holder or parse failure.
42385
42386 2009-07-29  Jim Meyering  <meyering@redhat.com>
42387
42388         mktime: correct setting of REPLACE_MKTIME
42389         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
42390
42391         update-copyright: new module
42392         * modules/update-copyright: New file.
42393         * build-aux/update-copyright: New file.
42394         * MODULES.html.sh (maint+release support): Add update-copyright.
42395
42396 2009-07-27  Bruno Haible  <bruno@clisp.org>
42397
42398         Fix compilation error when <ctime> is used and mktime is replaced.
42399         * lib/time.in.h (mktime): New declaration.
42400         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
42401         REPLACE_MKTIME instead of defining mktime in config.h.
42402         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
42403         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
42404         Reported by Ross McFarland <rwmcfa1@neces.com>.
42405
42406 2009-07-27  Bruno Haible  <bruno@clisp.org>
42407
42408         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
42409         Reported by Matt Kraai <mkraai@beckman.com>.
42410
42411 2009-07-25  Jim Meyering  <meyering@redhat.com>
42412
42413         maint.mk: avoid warnings about missing files
42414         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
42415         diagnostic when .prev-version does not exist.
42416         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
42417         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
42418         nonexistent cfg.mk.
42419         Suggestions from Simon Josefsson.
42420
42421 2009-07-25  Bruno Haible  <bruno@clisp.org>
42422
42423         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
42424         defined as macros. Needed on QNX 6.4.1.
42425         Reported by Matt Kraai <mkraai@beckman.com>.
42426
42427 2009-07-23  Jim Meyering  <meyering@redhat.com>
42428
42429         maint.mk: invoke "make dist" with a working value of XZ_OPT
42430         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
42431
42432 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
42433
42434         Make fseeko.c compile on QNX.
42435         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
42436
42437 2009-07-22  Peter Simons  <simons@cryp.to>
42438
42439         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
42440         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
42441         * lib/md4.h: Likewise.
42442         * lib/md5.h: Likewise.
42443         * lib/sha1.h: Likewise.
42444         * lib/sha256.h: Likewise.
42445         * lib/sha512.h: Likewise.
42446
42447         tests-sha1: don't assign literal string to 'char *' variable
42448         * tests/test-sha1.c (main): Declare locals with "const" to match
42449         attributes of the right hand side.
42450
42451 2009-07-21  Eric Blake  <ebb9@byu.net>
42452
42453         dup2: fix more mingw problems
42454         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
42455         fd to itself.
42456         * doc/posix-functions/dup2.texi (dup2): Document the bug.
42457         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
42458         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
42459         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
42460         care of mingw bugs.
42461
42462 2009-07-21  Jim Meyering  <meyering@redhat.com>
42463
42464         vc-list-files: avoid failure when /bin/sh is dash
42465         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
42466         On some Debian based systems, /bin/sh is a symlink to dash, and running
42467         this command would omit the "/" following each 'tests' prefix:
42468           dash -x build-aux/vc-list-files -C . tests
42469         That is because bash and dash work differently:
42470           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
42471           bash ok
42472           dash odd
42473
42474 2009-07-21  Eric Blake  <ebb9@byu.net>
42475
42476         dup2-tests: test previous patch
42477         * modules/dup2-tests: New file.
42478         * tests/test-dup2.c: Likewise.
42479         * tests/test-open.c (main): Avoid unspecified behavior.
42480         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
42481         test.
42482
42483         dup2: work around mingw and cygwin 1.5 bug
42484         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
42485         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42486         * modules/unistd (Makefile.am): Substitute it.
42487         * lib/unistd.in.h (dup2): Declare the replacement.
42488         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
42489         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
42490         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
42491         * modules/execute (Depends-on): Add dup2.
42492         * modules/fseterr (Depends-on): Likewise.
42493         * modules/pipe (Depends-on): Likewise.
42494         * modules/posix_spawn-internal (Depends-on): Likewise.
42495
42496 2009-07-21  Bruno Haible  <bruno@clisp.org>
42497
42498         * modules/.gitattributes: New file.
42499
42500 2009-07-20  Bruno Haible  <bruno@clisp.org>
42501
42502         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
42503         (main): Use it.
42504
42505 2009-07-20  Eric Blake  <ebb9@byu.net>
42506
42507         test-pipe: make a bit more robust.
42508         * tests/test-pipe.c (myerr): Allow error messages regardless of
42509         what we do to stderr.
42510         (test_pipe): Rearrange to avoid deadlock.
42511         (child_main): Try a larger read, to ensure we avoided deadlock.
42512         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
42513         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
42514         if misused.
42515
42516 2009-07-19  Jim Meyering  <meyering@redhat.com>
42517
42518         fts: avoid false-positive cycle-detection
42519         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
42520         for each new command line argument.
42521
42522 2009-07-19  Bruno Haible  <bruno@clisp.org>
42523
42524         Fix build error on mingw with the modules sys_select and unistd.
42525         * modules/acl-tests (Depends-on): Add close.
42526         * modules/binary-io-tests (Depends-on): Likewise.
42527         * modules/closein-tests (Depends-on): Likewise.
42528         * modules/flock-tests (Depends-on): Likewise.
42529         * modules/fsync-tests (Depends-on): Likewise.
42530         * modules/lseek-tests (Depends-on): Likewise.
42531         * modules/pipe-tests (Depends-on): Likewise.
42532         * modules/posix_spawn-tests (Depends-on): Likewise.
42533         * modules/posix_spawnp-tests (Depends-on): Likewise.
42534         * modules/stat-time-tests (Depends-on): Likewise.
42535         * modules/yesno-tests (Depends-on): Likewise.
42536
42537 2009-07-19  Bruno Haible  <bruno@clisp.org>
42538
42539         Unify conditionals.
42540         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
42541         macros, not at the compiler macros.
42542         * lib/pipe.c: Likewise.
42543         * lib/execute.c: Likewise.
42544         * lib/spawni.c: Likewise.
42545
42546 2009-07-19  Bruno Haible  <bruno@clisp.org>
42547
42548         Fix handling of closed stdin/stdout/stderr on mingw.
42549         * lib/w32spawn.h: Include unistd.h.
42550         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
42551         file descriptor with O_NOINHERIT flag.
42552         (fd_safer_noinherit): New function, based on fd-safer.c.
42553         (dup_safer_noinherit): New function, based on dup-safer.c.
42554         (undup_safer_noinherit): New function.
42555         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
42556         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
42557         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
42558         instead of fd_safer.
42559         * tests/test-pipe.c: Include <windows.h>.
42560         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
42561         result.
42562
42563         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
42564         from main.
42565         (test_pipe): Pass an extra argument for disambiguation.
42566         (main): Invoke parent_main or child_main.
42567
42568         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
42569         consistently.
42570
42571 2009-07-18  Eric Blake  <ebb9@byu.net>
42572
42573         test-pipe: fix mingw build
42574         * tests/test-pipe.c (main): Avoid fcntl on mingw.
42575
42576 2009-07-18  Bruno Haible  <bruno@clisp.org>
42577
42578         * modules/pipe-tests (Makefile.am): Fix typo.
42579
42580 2009-07-18  Eric Blake  <ebb9@byu.net>
42581
42582         error: fix mingw build
42583         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
42584         Reported by Bruno Haible.
42585
42586         error: avoid undefined use of stdout
42587         * lib/error.c (error, error_at_line): Check that fd 1 is open
42588         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
42589         is handling faults and the close_stdout module wants to report the
42590         detection of closed stdout as an error.
42591
42592 2009-07-17  Eric Blake  <ebb9@byu.net>
42593
42594         pipe: be robust in face of closed fds
42595         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
42596         should cause child to misbehave.
42597         * modules/pipe-tests: New module.
42598         * tests/test-pipe.c: New file.
42599         * tests/test-pipe.sh: New file.
42600         Reported by Akim Demaille.
42601
42602 2009-07-14  Bruno Haible  <bruno@clisp.org>
42603
42604         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
42605         Reported by anonymous kc.
42606
42607 2009-07-07  Jim Meyering  <meyering@redhat.com>
42608
42609         maint.mk: don't look for translatable strings in *.m4 or *.mk
42610         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
42611         when searching for translatable strings.
42612
42613 2009-07-05  Jim Meyering  <meyering@redhat.com>
42614
42615         remove superfluous parentheses in STREQ definition
42616         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
42617         * lib/getugroups.c (STREQ): Likewise.
42618         * lib/fnmatch.c (STREQ): Likewise.
42619         Spotted by Bruno Haible.
42620
42621 2009-07-04  Jim Meyering  <meyering@redhat.com>
42622
42623         argv-iter: new module
42624         * MODULES.html.sh: Add argv-iter.
42625         * lib/argv-iter.c, lib/argv-iter.h: New files.
42626         * modules/argv-iter: New file.
42627         * modules/argv-iter-tests: New file.
42628         * tests/test-argv-iter.c: Test it.
42629
42630 2009-07-04  Bruno Haible  <bruno@clisp.org>
42631
42632         Fix assertion.
42633         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
42634         contains more exact copies of a given entry than file2, leave the extra
42635         copies unpaired rather than aborting.
42636         Reported by Eric Blake.
42637
42638 2009-07-02  Bruno Haible  <bruno@clisp.org>
42639
42640         Speedup git-merge-changelog for git cherry-pick.
42641         * lib/git-merge-changelog.c (struct entries_mapping): New type.
42642         (entries_mapping_get): New function, extracted from compute_mapping.
42643         (entries_mapping_reverse_get): New function.
42644         (compute_mapping): Add a 'full' argument. Return the result in a
42645         'struct entries_mapping'.
42646         (main): Update. Access the mappings through entries_mapping_get.
42647         Reported by Eric Blake.
42648
42649 2009-07-02  Bruno Haible  <bruno@clisp.org>
42650
42651         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
42652         best_i.
42653
42654 2009-07-02  Bruno Haible  <bruno@clisp.org>
42655
42656         Speed up approximate search for matching ChangeLog entries.
42657         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
42658         argument. Call fstrcmp_bounded instead of fstrcmp.
42659         (compute_mapping, try_split_merged_entry, main): Update callers.
42660
42661 2009-07-02  Bruno Haible  <bruno@clisp.org>
42662
42663         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
42664
42665 2009-06-30  Bruno Haible  <bruno@clisp.org>
42666
42667         Reduce the number of uc_is_cased calls.
42668         * lib/unicase.h (casing_suffix_context_t): Add
42669         'first_char_except_ignorable' field.
42670         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
42671         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
42672         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
42673         Update initializer.
42674         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
42675         case-ignorable characters.
42676         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
42677         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
42678         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
42679         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
42680         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
42681
42682 2009-06-30  Bruno Haible  <bruno@clisp.org>
42683
42684         Tests for module 'unicase/ignorable'.
42685         * modules/unicase/ignorable-tests: New file.
42686         * tests/unicase/test-ignorable.c: New file, generated by
42687         gen-uni-tables.
42688
42689         Tests for module 'unicase/cased'.
42690         * modules/unicase/cased-tests: New file.
42691         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
42692         * tests/unicase/test-predicate-part1.h: New file, derived from
42693         tests/unictype/test-predicate-part1.h.
42694         * tests/unicase/test-predicate-part2.h: New file, same as
42695         tests/unictype/test-predicate-part2.h.
42696
42697         Fix evaluation of "Before C" condition of FINAL_SIGMA.
42698         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
42699         (output_casing_properties): New function.
42700         (main): Call it.
42701         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
42702         * lib/unicase/cased.c: Include unictype/bitmap.h.
42703         (uc_is_cased): Define through a bitmap lookup.
42704         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
42705         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
42706         (uc_is_case_ignorable): Define through a bitmap lookup.
42707         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
42708         lib/unictype/bitmap.h.
42709         (Depends-on): Add inline. Clean up.
42710         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
42711         lib/unictype/bitmap.h.
42712         (Depends-on): Add inline. Clean up.
42713         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
42714         recognition.
42715         * tests/unicase/test-u16-tolower.c (main): Likewise.
42716         * tests/unicase/test-u32-tolower.c (main): Likewise.
42717
42718 2009-06-30  Bruno Haible  <bruno@clisp.org>
42719
42720         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
42721         * lib/unicase/u16-casemap.c: Likewise.
42722         * lib/unicase/u32-casemap.c: Likewise.
42723
42724 2009-06-29  Bruno Haible  <bruno@clisp.org>
42725
42726         Define u32_casefold as a wrapper around u32_ct_casefold.
42727         * lib/unicase/u32-casefold.c: Update.
42728         * modules/unicase/u32-casefold (Depends-on): Add
42729         unicase/u32-ct-casefold, unicase/empty-prefix-context,
42730         unicase/empty-suffix-context. Clean up.
42731
42732         Define u16_casefold as a wrapper around u16_ct_casefold.
42733         * lib/unicase/u16-casefold.c: Update.
42734         * modules/unicase/u16-casefold (Depends-on): Add
42735         unicase/u16-ct-casefold, unicase/empty-prefix-context,
42736         unicase/empty-suffix-context. Clean up.
42737
42738         Define u8_casefold as a wrapper around u8_ct_casefold.
42739         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
42740         * lib/unicase/u8-casefold.c: Update.
42741         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
42742         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42743
42744         Define u32_totitle as a wrapper around u32_ct_totitle.
42745         * lib/unicase/u32-totitle.c: Update.
42746         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
42747         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42748
42749         Define u16_totitle as a wrapper around u16_ct_totitle.
42750         * lib/unicase/u16-totitle.c: Update.
42751         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
42752         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42753
42754         Define u8_totitle as a wrapper around u8_ct_totitle.
42755         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
42756         functions.
42757         (FUNC): Delegate to U_CT_TOTITLE.
42758         * lib/unicase/u8-totitle.c: Update.
42759         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
42760         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42761
42762         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
42763         invocation.
42764         * modules/unicase/u32-tolower (Depends-on): Add
42765         unicase/empty-prefix-context, unicase/empty-suffix-context.
42766
42767         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
42768         invocation.
42769         * modules/unicase/u16-tolower (Depends-on): Add
42770         unicase/empty-prefix-context, unicase/empty-suffix-context.
42771
42772         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
42773         * modules/unicase/u8-tolower (Depends-on): Add
42774         unicase/empty-prefix-context, unicase/empty-suffix-context.
42775
42776         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
42777         invocation.
42778         * modules/unicase/u32-toupper (Depends-on): Add
42779         unicase/empty-prefix-context, unicase/empty-suffix-context.
42780
42781         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
42782         invocation.
42783         * modules/unicase/u16-toupper (Depends-on): Add
42784         unicase/empty-prefix-context, unicase/empty-suffix-context.
42785
42786         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
42787         * modules/unicase/u8-toupper (Depends-on): Add
42788         unicase/empty-prefix-context, unicase/empty-suffix-context.
42789
42790         New module 'unicase/u32-ct-casefold'.
42791         * lib/unicase/u32-ct-casefold.c: New file.
42792         * modules/unicase/u32-ct-casefold: New file.
42793
42794         New module 'unicase/u16-ct-casefold'.
42795         * lib/unicase/u16-ct-casefold.c: New file.
42796         * modules/unicase/u16-ct-casefold: New file.
42797
42798         New module 'unicase/u8-ct-casefold'.
42799         * lib/unicase/u8-ct-casefold.c: New file.
42800         * lib/unicase/u-ct-casefold.h: New file, derived from
42801         lib/unicase/u-casefold.h.
42802         * modules/unicase/u8-ct-casefold: New file.
42803
42804         New module 'unicase/u32-ct-totitle'.
42805         * lib/unicase/u32-ct-totitle.c: New file.
42806         * modules/unicase/u32-ct-totitle: New file.
42807
42808         New module 'unicase/u16-ct-totitle'.
42809         * lib/unicase/u16-ct-totitle.c: New file.
42810         * modules/unicase/u16-ct-totitle: New file.
42811
42812         New module 'unicase/u8-ct-totitle'.
42813         * lib/unicase/u8-ct-totitle.c: New file.
42814         * lib/unicase/u-ct-totitle.h: New file, derived from
42815         lib/unicase/u-totitle.h.
42816         * modules/unicase/u8-ct-totitle: New file.
42817
42818         New module 'unicase/u32-ct-tolower'.
42819         * lib/unicase/u32-ct-tolower.c: New file.
42820         * modules/unicase/u32-ct-tolower: New file.
42821
42822         New module 'unicase/u16-ct-tolower'.
42823         * lib/unicase/u16-ct-tolower.c: New file.
42824         * modules/unicase/u16-ct-tolower: New file.
42825
42826         New module 'unicase/u8-ct-tolower'.
42827         * lib/unicase/u8-ct-tolower.c: New file.
42828         * modules/unicase/u8-ct-tolower: New file.
42829
42830         New module 'unicase/u32-ct-toupper'.
42831         * lib/unicase/u32-ct-toupper.c: New file.
42832         * modules/unicase/u32-ct-toupper: New file.
42833
42834         New module 'unicase/u16-ct-toupper'.
42835         * lib/unicase/u16-ct-toupper.c: New file.
42836         * modules/unicase/u16-ct-toupper: New file.
42837
42838         New module 'unicase/u8-ct-toupper'.
42839         * lib/unicase/u8-ct-toupper.c: New file.
42840         * modules/unicase/u8-ct-toupper: New file.
42841
42842         Add context arguments to u*_casemap functions.
42843         * lib/unicase/unicasemap.h: Include unicase.h.
42844         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
42845         suffix_context arguments.
42846         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
42847         functions.
42848         (FUNC): Add prefix_context and suffix_context arguments. Use
42849         uc_is_cased and uc_is_case_ignorable.
42850         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
42851         * lib/unicase/u16-casemap.c: Likewise.
42852         * lib/unicase/u32-casemap.c: Likewise.
42853         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
42854         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
42855         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
42856         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
42857         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
42858         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
42859
42860         New module 'unicase/u32-suffix-context'.
42861         * lib/unicase/u32-suffix-context.c: New file.
42862         * modules/unicase/u32-suffix-context: New file.
42863
42864         New module 'unicase/u16-suffix-context'.
42865         * lib/unicase/u16-suffix-context.c: New file.
42866         * modules/unicase/u16-suffix-context: New file.
42867
42868         New module 'unicase/u8-suffix-context'.
42869         * lib/unicase/u8-suffix-context.c: New file.
42870         * lib/unicase/u-suffix-context.h: New file.
42871         * modules/unicase/u8-suffix-context: New file.
42872
42873         New module 'unicase/empty-suffix-context'.
42874         * lib/unicase/empty-suffix-context.c: New file.
42875         * modules/unicase/empty-suffix-context: New file.
42876
42877         New module 'unicase/u32-prefix-context'.
42878         * lib/unicase/u32-prefix-context.c: New file.
42879         * modules/unicase/u32-prefix-context: New file.
42880
42881         New module 'unicase/u16-prefix-context'.
42882         * lib/unicase/u16-prefix-context.c: New file.
42883         * modules/unicase/u16-prefix-context: New file.
42884
42885         New module 'unicase/u8-prefix-context'.
42886         * lib/unicase/u8-prefix-context.c: New file.
42887         * lib/unicase/u-prefix-context.h: New file.
42888         * lib/unicase/context.h: New file.
42889         * modules/unicase/u8-prefix-context: New file.
42890
42891         New module 'unicase/empty-prefix-context'.
42892         * lib/unicase/empty-prefix-context.c: New file.
42893         * modules/unicase/empty-prefix-context: New file.
42894
42895         New module 'unicase/ignorable'.
42896         * lib/unicase/ignorable.c: New file.
42897         * modules/unicase/ignorable: New file.
42898
42899         New module 'unicase/cased'.
42900         * lib/unicase/caseprop.h: New file.
42901         * lib/unicase/cased.c: New file.
42902         * modules/unicase/cased: New file.
42903
42904         New functions for case mapping of substrings.
42905         * lib/unicase.h (casing_prefix_context_t): New type.
42906         (unicase_empty_prefix_context): New variable.
42907         (u8_casing_prefix_context, u16_casing_prefix_context,
42908         u32_casing_prefix_context, u8_casing_prefixes_context,
42909         u16_casing_prefixes_context, u32_casing_prefixes_context): New
42910         declarations.
42911         (casing_suffix_context_t): New type.
42912         (unicase_empty_suffix_context): New variable.
42913         (u8_casing_suffix_context, u16_casing_suffix_context,
42914         u32_casing_suffix_context, u8_casing_suffixes_context,
42915         u16_casing_suffixes_context, u32_casing_suffixes_context,
42916         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
42917         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
42918         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
42919         declarations.
42920
42921 2009-06-28  Jim Meyering  <meyering@redhat.com>
42922
42923         boostrap: indent only with spaces
42924         * build-aux/bootstrap: Indent only with spaces, never TABs.
42925
42926         bootstrap: split long lines
42927         * build-aux/bootstrap: Keep line length < 80.
42928
42929         bootstrap: sync from coreutils
42930         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
42931         just as autoreconf does.  Verify a list of prerequisite
42932         package-name,version-number pairs if defined in bootstrap.conf.
42933         Refer to README-prereq, if prerequisites are not satisfied.
42934
42935 2009-06-27  Eric Blake  <ebb9@byu.net>
42936
42937         tests: add test for bogus NULL definition
42938         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
42939         * tests/test-stdlib.c: Likewise.
42940         * tests/test-string.c: Likewise.
42941         * tests/test-locale.c: Likewise.
42942         * tests/test-unistd.c: Likewise.
42943         * modules/stdio-tests (Depends-on): Add verify.
42944         * modules/stdlib-tests (Depends-on): Likewise.
42945         * modules/string-tests (Depends-on): Likewise.
42946         * modules/locale-tests (Depends-on): Likewise.
42947         * modules/unistd-tests (Depends-on): Likewise.
42948
42949 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
42950
42951         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
42952         self-explaining comment.
42953         * m4/selinux-selinux-h: Update serial.
42954         (gl_LIBSELINUX): New macro, adding a warning for missing development
42955         packages to code extracted from...
42956         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
42957         Add warning for missing development packages here, too.
42958
42959 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
42960
42961         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
42962
42963 2009-06-25  Eric Blake  <ebb9@byu.net>
42964
42965         version-etc: fix regression
42966         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
42967         gcc.
42968         (version_etc): Use it, to catch bugs with trailing NULL.
42969         * lib/version-etc.c (version_etc_arn): Delete unused argument.
42970         (version_etc_va): Fix logic bug.
42971         * modules/version-etc-tests: Add test.
42972         * tests/test-version-etc.c: New file.
42973         * tests/test-version-etc.sh: Likewise.
42974
42975 2009-06-25  Sam Steingold  <sds@gnu.org>
42976
42977         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
42978         mbtowc declaration.
42979
42980 2009-06-25  Eric Blake  <ebb9@byu.net>
42981
42982         fpurge: migrate into <stdio.h>
42983         * lib/fpurge.h: Delete...
42984         * lib/stdio.in.h (fpurge): ...and declare here, instead.
42985         * lib/fpurge.c (fpurge): Change declaring header.
42986         * modules/fpurge (Files): Drop deleted file.
42987         (Depends-on): Add stdio.
42988         (configure.ac): Set witness.
42989         * modules/stdio (Makefile.am): Support fpurge macros.
42990         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42991         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
42992         * lib/fflush.c: Update client.
42993         * tests/test-fpurge.c: Likewise.
42994         * NEWS: Mention the change.
42995
42996 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
42997
42998         * lib/argp-version-etc.c (program_authors): Add const
42999         qualifier.
43000         * lib/version-etc.c: Fix typos in the comments.
43001         * modules/argp-version-etc: Depends on version-etc.
43002
43003 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43004
43005         argp-version-etc: new module.
43006
43007         * lib/argp-version-etc.c: New file.
43008         * lib/argp-version-etc.h: New file.
43009         * modules/argp-version-etc: New file.
43010         * modules/argp-version-etc-tests: New file.
43011         * tests/test-argp-version-etc.c: New test.
43012         * tests/test-argp-version-etc-1.sh: New test.
43013
43014 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43015
43016         Provide additional interfaces and documentation for version-etc
43017         module.
43018
43019         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
43020         interfaces.
43021         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
43022         prototypes.
43023
43024 2009-06-24  Bruno Haible  <bruno@clisp.org>
43025
43026         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
43027         HAVE_LIB${NAME} macro.
43028         Reported by Sam Steingold <sds@gnu.org>.
43029
43030 2009-06-23  Simon Josefsson  <simon@josefsson.org>
43031
43032         * modules/hash-tests (test_hash_LDADD): Link to libintl when
43033         needed.
43034
43035 2009-06-21  Bruno Haible  <bruno@clisp.org>
43036
43037         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
43038         work.
43039         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
43040         together with LIB${NAME}, LTLIB${NAME}.
43041         Reported by Sam Steingold <sds@gnu.org>.
43042
43043 2009-06-20  Jim Meyering  <meyering@redhat.com>
43044
43045         tests: make sc_require_test_exit_idiom more generic
43046         * top/maint.mk (Exit_witness_file): New overridable variable.
43047         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
43048         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
43049
43050 2009-06-19  Jim Meyering  <meyering@redhat.com>
43051
43052         hash: reverse order of src/dst parameters in an internal interface
43053         * lib/hash.c (transfer_entries): Reverse order of parameters to
43054         put DST before SRC.  Adjust callers.
43055
43056         tests: test-hash: avoid wholesale duplication
43057         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
43058         Instead, use a loop and add a single conditional.
43059
43060         tests: test-hash: allow seed selection via a command line argument
43061         * tests/test-hash.c (get_seed): New function.
43062         (main): Use it.
43063
43064 2009-06-19  Eric Blake  <ebb9@byu.net>
43065
43066         hash: avoid memory leak on allocation failure
43067         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
43068         failure.  Factor repeated algorithm...
43069         (transfer_entries): ...into new helper routine.
43070         (hash_delete): React to hash_rehash return value.
43071
43072         hash: reduce memory pressure in hash_rehash no-op case
43073         * lib/hash.c (next_prime): Avoid overflow.
43074         (hash_initialize): Factor bucket size computation...
43075         (compute_bucket_size): ...into new helper function.
43076         (hash_rehash): Use new function and open coding to reduce memory
43077         pressure, and avoid a memory leak in USE_OBSTACK code.
43078         Reported by Jim Meyering.
43079
43080 2009-06-18  Eric Blake  <ebb9@byu.net>
43081
43082         hash: make rotation more obvious
43083         * modules/hash (Depends-on): Add bitrotate and stdint.
43084         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
43085         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
43086         (SIZE_MAX): Rely on headers for definition.
43087         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
43088         (raw_hasher): Use rotr_sz.
43089         Suggested by Jim Meyering.
43090
43091         hash: fix memory leak in last patch
43092         * lib/hash.c (hash_rehash): Avoid memory leak.
43093
43094         hash: avoid no-op rehashing
43095         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
43096
43097         hash: provide default callback functions
43098         * lib/hash.c (raw_hasher, raw_comparator): New functions.
43099         (hash_initialize): Use them as defaults.
43100         * tests/test-hash.c (main): Test this.
43101
43102         hash: minor optimization
43103         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
43104         when possible.
43105         (hash_initialize): Document this promise.
43106         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
43107         * tests/test-hash.c (hash_compare_strings): Test this.
43108
43109 2009-06-18  Bruno Haible  <bruno@clisp.org>
43110
43111         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
43112         going to be replaced anyway.
43113
43114 2009-06-18  Bruno Haible  <bruno@clisp.org>
43115
43116         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
43117         in one place.
43118         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
43119         be replaced anyway.
43120
43121 2009-06-18  Eric Blake  <ebb9@byu.net>
43122
43123         hash: check for resize before insertion
43124         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
43125         threshold before insertion, so that a pathological hash_rehash
43126         that fills every bucket can still trigger another rehash.
43127
43128 2009-06-18  Jim Meyering  <meyering@redhat.com>
43129
43130         hash-tests: add a loop around the small tests
43131         * tests/test-hash.c (main): Repeat small tests with selected
43132         small initial table sizes.
43133
43134 2009-06-17  Eric Blake  <ebb9@byu.net>
43135
43136         hash: minor cleanups
43137         * lib/hash.h (hash_entry): Make opaque, by moving...
43138         * lib/hash.c (hash_entry): ...here.
43139         (hash_insert): Clarify restrictions on what can be inserted.
43140         (hash_get_next): Clarify when it is safe to remove an element
43141         during traversal.
43142         (check_tuning): Skip verification when tuning is known safe.
43143         (hash_initialize): Clarify restrictions on tuning.
43144
43145 2009-06-17  Jim Meyering  <jim@meyering.net>
43146         and Eric Blake  <ebb9@byu.net>
43147
43148         hash-tests: new module
43149         * modules/hash-tests: New file.
43150         * tests/test-hash.c: New file.
43151
43152 2009-06-17  Eric Blake  <ebb9@byu.net>
43153
43154         strstr-simple: document new module
43155         * MODULES.html.sh: Document new module.
43156
43157         strstr, strcasestr: replace on platforms with broken memchr
43158         * modules/strstr: Split into...
43159         * modules/strstr-simple: ...new module that does not care about
43160         performance, but does care about glibc bug.
43161         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
43162         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
43163         if platform memchr is broken, per Debian bug 521737.
43164         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
43165         memchr.
43166         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
43167         * doc/posix-functions/strstr.texi (strstr): Document the fix.
43168         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43169         * modules/mountlist (Depends-on): Add strstr-simple.
43170         * modules/gen-uni-tables (Depends-on): Likewise.
43171         * modules/argz (Depends-on): Add strstr.
43172
43173 2009-06-17  Bruno Haible  <bruno@clisp.org>
43174
43175         * modules/posix_spawn-internal (Depends-on): Add errno.
43176
43177 2009-06-17  Bruno Haible  <bruno@clisp.org>
43178
43179         Define missing ESTALE on Interix 3.5.
43180         * lib/errno.in.h (ESTALE): Assign a value if missing.
43181         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
43182         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
43183         missing.
43184         * doc/posix-headers/errno.texi: Mention the Interix bug.
43185         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
43186
43187 2009-06-15  Eric Blake  <ebb9@byu.net>
43188
43189         memchr, memchr2: add valgrind exception
43190         * lib/memchr.valgrind: New file.
43191         * lib/memchr2.valgrind: New file.
43192         * modules/memchr (Files): Distribute valgrind file.
43193         * modules/memchr2 (Files): Likewise.
43194
43195         docs: memchr is no longer obsolete
43196         * MODULES.html.sh: Move memchr from obsolete to string.h section.
43197         * lib/string.in.h (memchr): Simplify logic.
43198
43199 2009-06-14  Jim Meyering  <meyering@redhat.com>
43200
43201         link-follow: fix the "checking..." message to not mention trailing slash
43202         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
43203         never considered trailing slashes.
43204
43205 2009-06-14  Bruno Haible  <bruno@clisp.org>
43206
43207         * m4/memchr.m4: Mention also the bug on IA-64.
43208         * doc/posix-functions/memchr.texi: Likewise.
43209
43210 2009-06-12  Eric Blake  <ebb9@byu.net>
43211
43212         memchr: detect broken x86_64 and alpha implementations
43213         * modules/memchr-tests (Depends-on): Move mmap detection...
43214         * modules/memchr (Depends-on): ...here.
43215         (configure.ac): Set indicator.
43216         * lib/string.in.h (memchr): Declare replacement.
43217         * modules/string (Makefile.am): Trigger replacement.
43218         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43219         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
43220         bugs.
43221         * doc/posix-functions/memchr.texi (memchr): Document the bug.
43222         * modules/getpagesize (License): Relax license.
43223
43224 2009-06-11  Bruno Haible  <bruno@clisp.org>
43225
43226         * lib/idpriv.h: Add more references.
43227
43228 2009-06-08  Bruno Haible  <bruno@clisp.org>
43229
43230         Tests for module 'idpriv-droptemp'.
43231         * modules/idpriv-droptemp-tests: New file.
43232         * tests/test-idpriv-droptemp.sh: New file.
43233         * tests/test-idpriv-droptemp.su.sh: New file.
43234         * tests/test-idpriv-droptemp.c: New file.
43235
43236         New module 'idpriv-droptemp'.
43237         * lib/idpriv-droptemp.c: New file.
43238         * modules/idpriv-droptemp: New file.
43239
43240 2009-06-08  Bruno Haible  <bruno@clisp.org>
43241
43242         Tests for module 'idpriv-drop'.
43243         * modules/idpriv-drop-tests: New file.
43244         * tests/test-idpriv-drop.sh: New file.
43245         * tests/test-idpriv-drop.su.sh: New file.
43246         * tests/test-idpriv-drop.c: New file.
43247
43248         New module 'idpriv-drop'.
43249         * lib/idpriv.h: New file.
43250         * lib-idpriv-drop.c: New file.
43251         * m4/idpriv.m4: New file.
43252         * modules/idpriv-drop: New file.
43253
43254 2009-06-08  Bruno Haible  <bruno@clisp.org>
43255
43256         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
43257         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43258         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43259         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43260         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43261         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43262         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43263
43264 2009-06-08  Eric Blake  <ebb9@byu.net>
43265
43266         test-strstr: use memory fence, when possible
43267         * tests/test-strstr.c (main): Use memory fence, in order to be
43268         more likely to trigger Debian bug 521737.
43269         * modules/strstr-tests (Files): Pull in additional files.
43270
43271         memchr: no longer obsolete, for wider field testing
43272         * modules/memchr (Status, Notice): Delete, this module is no
43273         longer obsolete.
43274         * modules/vasnprintf (Depends-on): Add memchr.
43275
43276 2009-06-07  Jim Meyering  <meyering@redhat.com>
43277
43278         hash: declare some functions with the warn_unused_result attribute
43279         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
43280
43281 2009-06-07  Bruno Haible  <bruno@clisp.org>
43282
43283         * tests/test-alignof.c: Don't test int64_t if it does not exist.
43284         Reported by Eric Blake.
43285
43286 2009-06-06  Eric Blake  <ebb9@byu.net>
43287
43288         test-alignof: fix typo with long double
43289         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
43290         compiler error.
43291
43292 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
43293
43294         Escape non-texinfo { and }s.
43295         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
43296         markup error.
43297
43298 2009-06-04  Jim Meyering  <meyering@redhat.com>
43299
43300         gitlog-to-changelog: don't infloop on an empty commit log
43301         * build-aux/gitlog-to-changelog: Warn about an empty log message.
43302         Reported by Boris Petersen <transacid@centerim.org>.
43303
43304 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
43305
43306         version-etc: extend for packagers
43307         Add three new configure options, intended for packagers:
43308           --with-packager="packager name"
43309           --with-packager-version="packager-specific version"
43310           --with-packager-bug-reports="packager bug reporting"
43311         An example with coreutils:
43312           $ ./configure \
43313             --with-packager=Gentoo \
43314             --with-packager-bug-report=http://bugs.gentoo.org/ \
43315             --with-packager-version="patchset 1.6"
43316           $ ./src/ls --version | head -n2
43317           ls (GNU coreutils) 7.1-dirty
43318           Packaged by Gentoo (patchset 1.6)
43319         Note that the bug reporting info via --help doesn't show up because
43320         coreutils uses its own custom emit_bug_reporting_address() implementation
43321         in src/system.h.  If it didn't, it'd look like:
43322           $ ./src/ls --help | tail -n4
43323           Report bugs to <bug-coreutils@gnu.org>.
43324           Report Gentoo bugs to <http://bugs.gentoo.org/>.
43325           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
43326           General help using GNU software: <http://www.gnu.org/gethelp/>.
43327         * lib/version-etc.c: Print new information, if provided.
43328         * m4/version-etc.m4: New file.
43329         * modules/version-etc (Files): Add m4/version-etc.m4.
43330         (configure.ac): Add gl_VERSION_ETC.
43331
43332 2009-05-31  Bruno Haible  <bruno@clisp.org>
43333
43334         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
43335         and 'int64_t'.
43336         * modules/alignof-tests (Dependencies): Add stdint.
43337         Reported by Eric Blake.
43338
43339 2009-05-31  Bruno Haible  <bruno@clisp.org>
43340
43341         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
43342         restriction due to compiler bugs.
43343         Reported by Eric Blake.
43344
43345 2009-05-31  Simon Josefsson  <simon@josefsson.org>
43346             Bruno Haible  <bruno@clisp.org>
43347
43348         Fix test-alignof failure.
43349         * lib/alignof.h (alignof_slot): New macro.
43350         (alignof_type): New macro, with the same semantics as the previous
43351         'alignof'.
43352         (alignof): Alias to alignof_slot.
43353         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
43354         check that the results are usable as constant expressions.
43355
43356 2009-05-31  Bruno Haible  <bruno@clisp.org>
43357
43358         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
43359         * tests/test-memchr.c (main): Check that memchr does not read past the
43360         first occurrence of the byte.
43361         * tests/test-strstr.c (main): Update comment.
43362         Suggested by Eric Blake.
43363
43364 2009-05-30  Bruno Haible  <bruno@clisp.org>
43365
43366         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
43367         detail how to use dumpbin.
43368         Reported by David Byron <dbyron@dbyron.com>.
43369
43370 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43371
43372         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
43373
43374 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43375
43376         * m4/manywarnings.m4: Add GCC 4.4 warnings.
43377
43378 2009-05-28  Bruno Haible  <bruno@clisp.org>
43379
43380         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
43381         build-aux/ files.
43382
43383 2009-05-28  Simon Josefsson  <simon@josefsson.org>
43384
43385         * gnulib-tool (func_import): Transform license on build-aux/ files too.
43386
43387 2009-05-27  Simon Josefsson  <simon@josefsson.org>
43388
43389         * gnulib-tool (sed_transform_main_lib_file)
43390         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
43391         regexps.
43392
43393 2009-05-26  Simon Josefsson  <simon@josefsson.org>
43394
43395         * tests/test-strstr.c: Add another self-test.
43396         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
43397         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
43398
43399 2009-05-23  Bruno Haible  <bruno@clisp.org>
43400
43401         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
43402         change.
43403
43404 2009-05-21  Bruno Haible  <bruno@clisp.org>
43405
43406         Simplify use of mode_t varargs.
43407         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
43408         uses 'mode_t' or 'int'.
43409         * lib/openat.c (openat): Likewise.
43410         * lib/open-safer.c (open_safer): Likewise.
43411         * m4/mode_t.m4: New file.
43412         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
43413         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
43414         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
43415         * modules/open (Files): Add m4/mode_t.m4.
43416         * modules/openat (Files): Likewise.
43417         * modules/fcntl-safer (Files): Likewise.
43418         Suggested by Eric Blake.
43419
43420 2009-05-21  Pádraig Brady  <P@draigbrady.com>
43421
43422         * doc/glibc-functions/fallocate.texi: New file.
43423         * doc/gnulib.texi: Include it.
43424
43425 2009-05-21  Eric Blake  <ebb9@byu.net>
43426             Bruno Haible  <bruno@clisp.org>
43427
43428         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
43429         invocations.
43430         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43431
43432 2009-05-21  Eric Blake  <ebb9@byu.net>
43433             Bruno Haible  <bruno@clisp.org>
43434
43435         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
43436         include_next. Fix of 2008-11-20 commit.
43437         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
43438         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
43439         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
43440         NEXT_MATH_H.
43441         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
43442         instead of NEXT_MATH_H.
43443
43444 2009-05-21  Bruno Haible  <bruno@clisp.org>
43445
43446         Avoid redefinition warnings for SIZE_MAX.
43447         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
43448         Reported by Simon Josefsson.
43449
43450 2009-05-21  Bruno Haible  <bruno@clisp.org>
43451
43452         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
43453         AC_CACHE_VAL.
43454
43455 2009-05-20  Bruno Haible  <bruno@clisp.org>
43456
43457         Make zeroptr.h work on mingw.
43458         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
43459         mprotect.
43460         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
43461         * modules/memchr2-tests (configure.ac): Likewise.
43462         * modules/memcmp-tests (configure.ac): Likewise.
43463         * modules/memmem-tests (configure.ac): Likewise.
43464         * modules/memrchr-tests (configure.ac): Likewise.
43465         Reported by Simon Josefsson.
43466
43467 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43468
43469         * tests/test-glob.c: Include string.h for strcmp prototype.
43470
43471 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43472
43473         * modules/getdelim (Depends-on): Add explicit stdint, although it
43474         was implicitly already pulled in via realloc-posix.
43475         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
43476
43477 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43478
43479         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
43480         G. Christensen" <tgc@jupiterrise.com>.
43481         * m4/sys_socket_h.m4: Check for sa_family_t.
43482         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
43483         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
43484         * tests/test-sys_socket.c: Check that sa_family_t works.
43485
43486 2009-05-18  Eric Blake  <ebb9@byu.net>
43487
43488         maint.mk: allow gnulib_dir in VPATH build
43489         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
43490
43491 2009-05-15  Jim Meyering  <meyering@redhat.com>
43492
43493         maint.mk: Give gnulib_dir a default definition.
43494         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
43495         Thus, most packages no longer need to specify this variable in cfg.mk
43496
43497 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
43498
43499         rename.m4: fix typos that would make non-mingw cross-configure fail
43500         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
43501
43502 2009-05-13  Eric Blake  <ebb9@byu.net>
43503
43504         mmap-anon: avoid out-of-order autoconf expansion
43505         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
43506         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
43507         * modules/memchr-tests (Depends-on): Add extensions.
43508         * modules/memchr2-tests (Depends-on): Add extensions.
43509         * modules/memcmp-tests (Depends-on): Add extensions.
43510         * modules/memmem-tests (Depends-on): Add extensions.
43511         * modules/memrchr-tests (Depends-on): Add extensions.
43512
43513 2009-05-13  Bruno Haible  <bruno@clisp.org>
43514
43515         Make some tests ISO C 99 compliant.
43516         * tests/zerosize-ptr.h: New file.
43517         * tests/test-memchr.c: Include zerosize-ptr.h.
43518         (main): Use a zero-size object pointer instead of NULL.
43519         * tests/test-memchr2.c: Include zerosize-ptr.h.
43520         (main): Use a zero-size object pointer instead of NULL.
43521         * tests/test-memcmp.c: Include zerosize-ptr.h.
43522         (main): Use a zero-size object pointer instead of NULL.
43523         * tests/test-memmem.c: Include zerosize-ptr.h.
43524         (main): Use a zero-size object pointer instead of NULL.
43525         * tests/test-memrchr.c: Include zerosize-ptr.h.
43526         (main): Use a zero-size object pointer instead of NULL.
43527         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
43528         m4/mmap-anon.m4.
43529         (Depends-on): Add getpagesize.
43530         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43531         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
43532         m4/mmap-anon.m4.
43533         (Depends-on): Add getpagesize.
43534         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43535         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
43536         m4/mmap-anon.m4.
43537         (Depends-on): Add getpagesize.
43538         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43539         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
43540         m4/mmap-anon.m4.
43541         (Depends-on): Add getpagesize.
43542         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43543         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
43544         m4/mmap-anon.m4.
43545         (Depends-on): Add getpagesize.
43546         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43547
43548 2009-05-12  Bruno Haible  <bruno@clisp.org>
43549
43550         Tests for module 'alignof'.
43551         * modules/alignof-tests: New file.
43552         * tests/test-alignof.c: New file.
43553
43554 2009-05-12  Bruno Haible  <bruno@clisp.org>
43555
43556         Fix alignof macro.
43557         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
43558         vendor compilers that are always correct.
43559
43560 2009-05-12  Bruno Haible  <bruno@clisp.org>
43561
43562         Make the MAP_ANONYMOUS detection work on HP-UX 11.
43563         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
43564         not whether its fully works.
43565
43566 2009-05-12  Bruno Haible  <bruno@clisp.org>
43567
43568         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
43569
43570 2009-05-12  Jim Meyering  <meyering@redhat.com>
43571
43572         * top/maint.mk: Adjust backslash alignment.
43573
43574 2009-05-11  Simon Josefsson  <simon@josefsson.org>
43575
43576         * top/maint.mk: Make $(srcdir)/build-aux configurable.
43577
43578 2009-05-11  Eric Blake  <ebb9@byu.net>
43579
43580         argp: avoid undefined behavior
43581         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
43582         macros.
43583
43584 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43585
43586         * tests/test-vc-list-files-git.sh: Do git config of user.email and
43587         user.name to prevent git commit from complaining.
43588
43589 2009-05-10  Bruno Haible  <bruno@clisp.org>
43590
43591         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
43592         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
43593         it rewrites every file name only once.
43594         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
43595
43596 2009-05-08  Bruno Haible  <bruno@clisp.org>
43597
43598         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
43599         instead of 'max'.
43600
43601 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43602
43603         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
43604         sockaddr_storage test.
43605
43606 2009-05-07  Simon Josefsson  <simon@josefsson.org>
43607
43608         * modules/sys_socket (Makefile.am): Substitute
43609         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
43610         * m4/sys_socket_h.m4: Check for sockaddr_storage.
43611         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
43612         * tests/test-sys_socket.c: Check sockaddr_storage.
43613
43614 2009-05-08  Bruno Haible  <bruno@clisp.org>
43615
43616         New module 'alignof'.
43617         * lib/alignof.h: New file.
43618         * modules/alignof: New file.
43619
43620 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43621             Bruno Haible  <bruno@clisp.org>
43622
43623         Fix test-file-has-acl on FreeBSD.
43624         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
43625         mask is implicitly added.
43626         * tests/test-file-has-acl.c: Include <signal.h>.
43627         (main): Terminate the test after 5 seconds.
43628         * modules/acl-tests (configure.ac): Check for alarm function.
43629
43630 2009-05-04  Bruno Haible  <bruno@clisp.org>
43631
43632         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
43633         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
43634         * modules/errno (configure.ac): Drop AC_REQUIRE.
43635         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
43636         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
43637
43638 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43639
43640         * modules/glob-tests: New module.
43641         * tests/test-glob.c: Add.
43642
43643 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43644
43645         * modules/fnmatch-tests: New module.
43646         * tests/test-fnmatch.c: Add.
43647
43648 2009-05-04  Eric Blake  <ebb9@byu.net>
43649
43650         maint: make the new no-submodule-changes rule VPATH-safe
43651         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
43652
43653 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43654             Bruno Haible  <bruno@clisp.org>
43655
43656         acl: Fix infinite loop on FreeBSD.
43657         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
43658         of return value from acl_get_entry.
43659         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
43660         Likewise.
43661
43662 2009-05-03  Bruno Haible  <bruno@clisp.org>
43663
43664         * lib/acl-internal.h (acl_entries): Clarify return value.
43665         * lib/acl_entries.c (acl_entries): Likewise.
43666
43667 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43668
43669         Bug fix in acl module.
43670         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
43671
43672 2009-05-03  Bruno Haible  <bruno@clisp.org>
43673
43674         Create gperf-generated file in the source dir, not in the build dir.
43675         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
43676         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
43677         * modules/unicase/locale-language (unicase/locale-languages.h):
43678         Likewise.
43679         * modules/unicase/special-casing (unicase/special-casing-table.h):
43680         Likewise.
43681         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
43682         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
43683         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
43684         Reported by Ralf Wildenhues.
43685
43686 2009-05-03  Bruno Haible  <bruno@clisp.org>
43687
43688         * modules/fnmatch (Description, configure.ac): Taken from
43689         fnmatch-posix.
43690         * modules/fnmatch-posix: Turn into a symbolic reference to the
43691         'fnmatch' module, and deprecate.
43692         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
43693
43694 2009-05-03  Bruno Haible  <bruno@clisp.org>
43695
43696         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
43697         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
43698         Reported by Ralf Wildenhues.
43699
43700 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43701
43702         * m4/fnmatch.m4: Fix fnmatch re-define.
43703
43704 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43705
43706         priv-set: new module and tests; adapt write-any-file
43707         * lib/priv-set.c: New file.
43708         * lib/priv-set.h: New file.
43709         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
43710         * lib/write-any-file.c: Simplify by using priv-set module.
43711         * m4/priv-set.m4: New file.
43712         * modules/priv-set: New file.
43713         * modules/unlinkdir: Add dependency on priv-set module.
43714         * modules/write-any-file: Likewise.
43715
43716         Tests for module 'priv-set'.
43717         * modules/priv-set-tests: New file.
43718         * tests/test-priv-set.c: New file.
43719
43720 2009-05-03  Jim Meyering  <meyering@redhat.com>
43721             Bruno Haible  <bruno@clisp.org>
43722
43723         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
43724         use the converted UTF-8 variant of the name instead.
43725
43726 2009-05-03  Jim Meyering  <meyering@redhat.com>
43727
43728         tests: tighten some getdate tests
43729         * tests/test-getdate.c (main): Tighten tests: require equality,
43730         not just greater than.  Set TZ envvar to UTC0.
43731
43732 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
43733
43734         getdate: correctly interpret "next monday" when run on a Monday
43735         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
43736         that e.g., "next tues" (when run on a tuesday) results in a date
43737         that is one week in the future, and not today's date.
43738         I.e., add a week when the wday is the same as the current one.
43739         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
43740         and earlier by Martin Bernreuther and Jan Minář.
43741         * tests/test-getdate.c (main): Check that "next DAY" is always in
43742         the future and that "last DAY" is always in the past.
43743
43744 2009-05-02  Jim Meyering  <meyering@redhat.com>
43745
43746         build: ensure that a release build fails when a submodule is unclean
43747         * top/maint.mk (no-submodule-changes): New rule.
43748         (alpha beta major): Depend on it.
43749
43750 2009-05-02  Bruno Haible  <bruno@clisp.org>
43751
43752         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
43753         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
43754         shell variable gl_fnmatch_required to detect which variant is
43755         requested.
43756         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
43757         gl_FUNC_FNMATCH_POSIX.
43758         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
43759         exclude fnmatch-posix.
43760
43761 2009-05-02  Bruno Haible  <bruno@clisp.org>
43762
43763         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
43764         * modules/mbsrtowcs (License): Change to LGPLv2+.
43765         * modules/strnlen1 (License): Likewise.
43766         Reported by Simon Josefsson.
43767
43768 2009-05-02  Bruno Haible  <bruno@clisp.org>
43769
43770         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
43771         "cross".
43772         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
43773         gnulib-tool was called with option --source-base=lib.
43774
43775 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43776
43777         Use automake *-local hooks without commands, for extensibility.
43778         * modules/localcharset (Makefile.am): Rename install-exec-local
43779         rule to install-exec-localcharset, and make it a prerequisite of
43780         install-exec-local.  Likewise, rename the uninstall-local rule to
43781         uninstall-localcharset, and make it a prerequisite of the former.
43782
43783 2009-05-01  Bruno Haible  <bruno@clisp.org>
43784
43785         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
43786         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
43787         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
43788         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
43789         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
43790         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
43791         m4/locale-zh.m4, m4/codeset.m4.
43792
43793         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
43794         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
43795         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
43796         m4/locale-zh.m4.
43797
43798         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
43799         REPLACE_WCRTOMB if mbstate_t must be replaced.
43800         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
43801         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
43802
43803 2009-05-01  Bruno Haible  <bruno@clisp.org>
43804
43805         Avoid compiler warnings when redefining macros defined by <libintl.h>.
43806         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
43807         dngettext, dcngettext, textdomain, bindtextdomain,
43808         bind_textdomain_codeset): Undefine before redefining.
43809
43810 2009-04-30  Bruno Haible  <bruno@clisp.org>
43811
43812         Fix bug introduced on 2009-04-25.
43813         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
43814         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
43815         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
43816         is defined.
43817         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
43818         is defined.
43819         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
43820         is defined.
43821         Reported by Elbert_Pol <elbert.pol@gmail.com>.
43822
43823 2009-04-28  Bruno Haible  <bruno@clisp.org>
43824
43825         Comment tweaks.
43826         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
43827         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
43828         * lib/unicase.h (u*_casexfrm): Likewise.
43829         Reported by Paolo Bonzini.
43830
43831 2009-04-28  Bruno Haible  <bruno@clisp.org>
43832
43833         Fix a compilation error.
43834         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
43835         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
43836         Reported by Jim Meyering.
43837
43838 2009-04-27  Bruno Haible  <bruno@clisp.org>
43839
43840         New module 'libunistring'.
43841         * modules/libunistring: New file.
43842         * m4/libunistring.m4: New file.
43843         * MODULES.html.sh (Unicode string functions): Add it.
43844
43845 2009-04-27  Eric Blake  <ebb9@byu.net>
43846
43847         maint.mk: allow package-specific header to provide <config.h>
43848         * top/maint.mk (sc_require_config_h): New variable.
43849         (sc_require_config_h, sc_require_config_h_first): Use it.
43850
43851 2009-04-27  Simon Josefsson  <simon@josefsson.org>
43852
43853         * top/maint.mk (sc_avoid_if_before_free): Except
43854         useless-if-before-free script.
43855
43856 2009-04-27  Eric Blake  <ebb9@byu.net>
43857
43858         maintainer-makefile: depend on all required helper scripts
43859         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
43860         useless-if-before-free.
43861         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
43862         version, rather than assuming gnulib checkout is available.
43863         Reported by Simen Josefsson.
43864
43865 2009-04-26  Bruno Haible  <bruno@clisp.org>
43866
43867         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
43868         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
43869         "../" or "..".
43870
43871 2009-04-26  Bruno Haible  <bruno@clisp.org>
43872
43873         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
43874         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
43875         AC_LIB_HAVE_LINKFLAGS.
43876
43877 2009-04-26  Bruno Haible  <bruno@clisp.org>
43878
43879         Simplify calling convention of u*_conv_from_encoding.
43880         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
43881         u32_conv_from_encoding): Expect a resultbuf argument and return the
43882         result directly as a pointer.
43883         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
43884         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
43885         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
43886         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
43887         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
43888         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
43889         Update.
43890         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
43891         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
43892         * lib/vasnprintf.c (VASNPRINTF): Update.
43893         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
43894         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
43895         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
43896         * NEWS: Mention the change.
43897
43898 2009-04-26  Bruno Haible  <bruno@clisp.org>
43899
43900         Simplify calling convention of u*_conv_to_encoding.
43901         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
43902         u32_conv_to_encoding): Expect a resultbuf argument and return the
43903         result directly as a pointer.
43904         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
43905         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
43906         freeing scaled_offsets if mem_iconveha failed.
43907         * lib/unicase/u-casexfrm.h (FUNC): Update.
43908         * lib/uninorm/u-normxfrm.h (FUNC): Update.
43909         * lib/vasnprintf.c (VASNPRINTF): Update.
43910         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
43911         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
43912         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
43913         * NEWS: Mention the change.
43914
43915 2009-04-26  Bruno Haible  <bruno@clisp.org>
43916
43917         Avoid test failures on AIX and OSF/1.
43918         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
43919         malloc(0).
43920         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
43921         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
43922         Likewise.
43923         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
43924         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
43925         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
43926         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
43927         * doc/posix-functions/malloc.texi: Document the portability problem
43928         related to malloc(0).
43929
43930 2009-04-26  Bruno Haible  <bruno@clisp.org>
43931
43932         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
43933         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
43934         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
43935
43936 2009-04-25  Bruno Haible  <bruno@clisp.org>
43937
43938         Avoid link error when creating a namespace clean library.
43939         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
43940         as macro with arguments if already defined as an alias.
43941         * lib/signbitf.c (gl_signbitf): Don't undefine.
43942         * lib/signbitd.c (gl_signbitd): Don't undefine.
43943         * lib/signbitl.c (gl_signbitl): Don't undefine.
43944
43945 2009-04-25  Jim Meyering  <meyering@redhat.com>
43946
43947         vc-list-files: fix another quoting bug
43948         * build-aux/vc-list-files: Avoid sed backslash expansion
43949         of pathological directory names.
43950
43951 2009-04-25  Eric Blake  <ebb9@byu.net>
43952
43953         vc-list-files: fix shell quoting error
43954         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
43955         timestamp.
43956
43957 2009-04-25  Jim Meyering  <meyering@redhat.com>
43958
43959         vc-list-files: restore lost functionality with subdir argument
43960         * build-aux/vc-list-files: When given a non-"." sub-directory
43961         argument, substitute the $dir/ prefix back onto each resulting name.
43962         Otherwise, coreutils' root_tests check would fail.
43963
43964 2009-04-24  Eric Blake  <ebb9@byu.net>
43965
43966         vc-list-files: ignore git symlinks
43967         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
43968         than ls-files, to ignore git symlinks.
43969
43970         maint.mk: import improvements from m4
43971         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
43972         (move_if_change): Delete unused macro.
43973         (news-date-check, vc-diff-check): Support VPATH builds.
43974         (announcement): Likewise.  Split --bootstrap-tools list...
43975         (boostrap-tools): ...into separate list, which can be overridden
43976         in cfg.mk.
43977         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
43978         requiring dependency on useless-if-before-free module.
43979         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
43980         Support VPATH builds.
43981
43982 2009-04-24  Jim Meyering  <meyering@redhat.com>
43983
43984         maint.mk: remove coreutils-specific rules and variables
43985         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
43986         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
43987         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
43988
43989         maint.mk: remove obsolete rule
43990         * top/maint.mk (rel-check): Remove rule.
43991         (WGET, WGETFLAGS): Remove now-unused variables.
43992
43993 2009-04-24  Simon Josefsson  <simon@josefsson.org>
43994
43995         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
43996         consistency.
43997
43998         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
43999         '$(PATH_SEPARATOR)' instead of ':'.
44000
44001 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44002
44003         * lib/getopt1.c (main): Use 'const' for static array.
44004
44005 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44006
44007         * top/maint.mk: Sync with coreutils.
44008         * NEWS: Explain incompatibilities.
44009
44010 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44011             Bruno Haible  <bruno@clisp.org>
44012
44013         Fix cross-compilation results.
44014         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
44015         statement, as third argument of AC_TRY_RUN.
44016         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
44017         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
44018         Likewise.
44019         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44020         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
44021         Likewise.
44022         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44023         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
44024         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
44025
44026 2009-04-20  Bruno Haible  <bruno@clisp.org>
44027
44028         Avoid test failure on mingw.
44029         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
44030
44031 2009-04-20  Bruno Haible  <bruno@clisp.org>
44032
44033         Avoid compilation error on mingw.
44034         * modules/localename-tests (Depends-on): Add locale.
44035
44036 2009-04-19  Bruno Haible  <bruno@clisp.org>
44037
44038         Support for building a shared library on Windows platforms.
44039         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
44040         (main): Test the presence of UNINORM_NFC here.
44041         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
44042         (main): Test the presence of UNINORM_NFD here.
44043         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
44044         (main): Test the presence of UNINORM_NFKC here.
44045         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
44046         (main): Test the presence of UNINORM_NFKD here.
44047
44048 2009-04-19  Bruno Haible  <bruno@clisp.org>
44049
44050         Avoid a compiler warning.
44051         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
44052         Change type of variable 'sequence'.
44053
44054 2009-04-19  Bruno Haible  <bruno@clisp.org>
44055
44056         * modules/configmake (Makefile.am): When the contents of configmake.h
44057         does not change, arrange to preserve its modification time.
44058
44059 2009-04-17  Simon Josefsson  <simon@josefsson.org>
44060
44061         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
44062         gettext domain.
44063
44064 2009-04-16  Jim Meyering  <meyering@redhat.com>
44065
44066         useless-if-before-free: improve conversion code
44067         * build-aux/useless-if-before-free: Adjust code-in-comment to match
44068         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
44069
44070 2009-04-14  Bruno Haible  <bruno@clisp.org>
44071
44072         * modules/fcntl (Depends-on): Add extensions.
44073         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
44074
44075 2009-04-12  Ben Pfaff  <blp@gnu.org>
44076
44077         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
44078         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
44079
44080 2009-03-20  Ben Pfaff  <blp@gnu.org>
44081
44082         Make rename replace existing destinations on Windows.
44083         * m4/rename.m4: Add test for Mingw.
44084         * lib/rename.c: Add rename replacement that uses MoveFileEx with
44085         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
44086         * doc/posix-functions/rename.texi: Document.
44087
44088 2009-04-10  Bruno Haible  <bruno@clisp.org>
44089
44090         New include file "iconveh.h".
44091         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
44092         * lib/striconveh.h: Include it.
44093         (enum iconv_ilseq_handler): Remove definition.
44094         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
44095         striconveh.h.
44096         * lib/striconveha.c: Include striconveh.h.
44097         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
44098         * modules/striconveh (Files): Add lib/iconveh.h.
44099         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
44100         lib/striconveh.h.
44101
44102 2009-04-10  Bruno Haible  <bruno@clisp.org>
44103
44104         * lib/uniconv.h: Update comment.
44105
44106 2009-04-10  Bruno Haible  <bruno@clisp.org>
44107
44108         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
44109         always.
44110         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44111         * lib/unistr/u16-mbtouc-aux.c: Likewise.
44112         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44113         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
44114         "unistring-notinline.h", so that the function gets defined always.
44115         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
44116         * lib/unistr/u8-uctomb.c: Likewise.
44117         * lib/unistr/u16-mbtouc.c: Likewise.
44118         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
44119         * lib/unistr/u16-uctomb.c: Likewise.
44120         * lib/unistr/u32-mbtouc.c: Likewise.
44121         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
44122         * lib/unistr/u32-uctomb.c: Likewise.
44123
44124 2009-04-10  Bruno Haible  <bruno@clisp.org>
44125
44126         Mark 'utime' obsolete.
44127         * modules/utime (Status, Notice): New sections.
44128         Suggested by Jim Meyering.
44129
44130         Fix cross-compile guess for utime test.
44131         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
44132         autoconf.
44133         * doc/posix-functions/utime.texi: Give more precisions.
44134         Reported by Jan <ipif@ymail.com>.
44135
44136 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
44137
44138         filevercmp: correct today's change
44139         * lib/filevercmp.c: Also handle coreutils' test inputs.
44140         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
44141
44142         Fix regression in 'filevercmp' module. Thanks Sven Joachim
44143         for reporting it.
44144         * lib/filevercmp.c: Special handle for "", "." and "..".
44145         * tests/test-filevercmp.c: Enlarge the set suite.
44146
44147 2009-04-07  Jim Meyering  <meyering@redhat.com>
44148
44149         useless-if-before-free: show how to remove braced useless free, too
44150         * build-aux/useless-if-before-free: still only in a comment, though.
44151
44152 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
44153
44154         maint.mk: import changes to syntax-check macros from coreutils
44155         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
44156         Use them in the relevant macros.
44157
44158 2009-04-06  Bruno Haible  <bruno@clisp.org>
44159
44160         Fix unportable use of bit-fields.
44161         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
44162         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
44163         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
44164
44165 2009-04-06  Bruno Haible  <bruno@clisp.org>
44166
44167         Avoid test failures on AIX and OSF/1.
44168         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
44169         that malloc(0) = NULL.
44170         * tests/unicase/test-u8-tolower.c (check): Likewise.
44171         * tests/unicase/test-u8-totitle.c (check): Likewise.
44172         * tests/unicase/test-u8-toupper.c (check): Likewise.
44173         * tests/unicase/test-u16-casefold.c (check): Likewise.
44174         * tests/unicase/test-u16-tolower.c (check): Likewise.
44175         * tests/unicase/test-u16-totitle.c (check): Likewise.
44176         * tests/unicase/test-u16-toupper.c (check): Likewise.
44177         * tests/unicase/test-u32-casefold.c (check): Likewise.
44178         * tests/unicase/test-u32-tolower.c (check): Likewise.
44179         * tests/unicase/test-u32-totitle.c (check): Likewise.
44180         * tests/unicase/test-u32-toupper.c (check): Likewise.
44181         * tests/uninorm/test-u8-nfc.c (check): Likewise.
44182         * tests/uninorm/test-u8-nfd.c (check): Likewise.
44183         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
44184         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
44185         * tests/uninorm/test-u16-nfc.c (check): Likewise.
44186         * tests/uninorm/test-u16-nfd.c (check): Likewise.
44187         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
44188         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
44189         * tests/uninorm/test-u32-nfc.c (check): Likewise.
44190         * tests/uninorm/test-u32-nfd.c (check): Likewise.
44191         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
44192         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
44193
44194 2009-04-05  Bruno Haible  <bruno@clisp.org>
44195
44196         Work around an autoconf limitation.
44197         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
44198         comment line if it would be longer than 3 KB.
44199
44200 2009-04-05  Bruno Haible  <bruno@clisp.org>
44201
44202         Avoid test failure with libiconv-1.13.
44203         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
44204         of the expected test results.
44205
44206 2009-04-05  Bruno Haible  <bruno@clisp.org>
44207
44208         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
44209         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
44210         that it should be installed.
44211
44212 2009-04-05  Bruno Haible  <bruno@clisp.org>
44213
44214         * gnulib-tool: New option --copy-file.
44215         (func_usage): Document it.
44216         (func_dest_tmpfilename): Moved out of func_import.
44217         (func_add_file, func_update_file): New functions, extracted from
44218         func_import.
44219         (func_import): Update.
44220
44221 2009-04-05  Karl Berry  <karl@gnu.org>
44222
44223         * README: prominently mention gnulib-tool.
44224         Rearrange sections so getting the code is near the top.
44225
44226 2009-04-05  Bruno Haible  <bruno@clisp.org>
44227
44228         * lib/unicase.h: Mention u*_cmp2.
44229         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44230         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
44231         * lib/unicase/ulc-casecmp.c: Likewise.
44232         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
44233         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
44234         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
44235         unistr/u8-cmp.
44236         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
44237         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
44238         unistr/u16-cmp.
44239         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
44240         unistr/u32-cmp.
44241
44242         * lib/uninorm.h: Mention u*_cmp2.
44243         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44244         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
44245         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
44246         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
44247         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
44248         unistr/u8-cmp.
44249         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
44250         unistr/u16-cmp.
44251         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
44252         unistr/u32-cmp.
44253
44254         New module 'unistr/u32-cmp2'.
44255         * lib/unistr/u32-cmp2.c: New file.
44256         * modules/unistr/u32-cmp2: New file.
44257
44258         New module 'unistr/u16-cmp2'.
44259         * lib/unistr/u16-cmp2.c: New file.
44260         * modules/unistr/u16-cmp2: New file.
44261
44262         New module 'unistr/u8-cmp2'.
44263         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
44264         * lib/unistr/u8-cmp2.c: New file.
44265         * lib/unistr/u-cmp2.h: New file.
44266         * modules/unistr/u8-cmp2: New file.
44267
44268 2009-04-05  Bruno Haible  <bruno@clisp.org>
44269
44270         * lib/unictype.h (uc_property_is_valid): New macro.
44271         * tests/unictype/test-pr_byname.c (main): Use it.
44272
44273         * lib/unistr.h: Doc fixes.
44274         * lib/uniconv.h: Doc fixes.
44275         * lib/unictype.h: Doc fixes.
44276
44277 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
44278
44279         Port coreutils 7.2 to Solaris 8.
44280
44281         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
44282         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
44283         for Solaris 8.  This is a bit of a hack, as it means it's the
44284         caller's responsibility to add -lnsl if needed, but most likely it
44285         won't be needed since only getaddrinfo uses this and getaddrinfo
44286         isn't needed on Solaris 8.
44287
44288         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
44289         problem to Solaris 8 encountered with coreutils 7.2, which
44290         resulted in a message "fnmatch.c:292: warning: passing argument 4
44291         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
44292         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
44293
44294 2009-04-03  Simon Josefsson  <simon@josefsson.org>
44295
44296         * m4/ld-version-script.m4: Add FIXME comment.
44297
44298 2009-04-02  Simon Josefsson  <simon@josefsson.org>
44299
44300         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
44301         SOVERSION variable.
44302
44303 2009-04-02  Bruno Haible  <bruno@clisp.org>
44304
44305         * Makefile (info, html, dvi, pdf): Combine the rules.
44306         Suggested by Jim Meyering.
44307
44308 2009-04-01  Bruno Haible  <bruno@clisp.org>
44309
44310         * Makefile (info, html, dvi, pdf): New targets.
44311         Reported by Reuben Thomas <rrt@sc3d.org>.
44312
44313 2009-04-01  Bruno Haible  <bruno@clisp.org>
44314
44315         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
44316         can be put into PATH.
44317         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
44318
44319 2009-04-01  Bruno Haible  <bruno@clisp.org>
44320
44321         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
44322
44323 2009-04-01  Bruno Haible  <bruno@clisp.org>
44324
44325         Rename module 'visibility'.
44326         * modules/lib-symbol-visibility: Renamed from modules/visibility.
44327         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
44328         * doc/gnulib.texi: Update.
44329         * MODULES.html.sh (Misc): Update.
44330         * NEWS: Mention the change.
44331
44332 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44333
44334         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
44335         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
44336         Eric Blake <ebb9@byu.net> for review.
44337         * MODULES.html.sh: Add lib-msvc-compat.
44338         * doc/gnulib.texi: Link to new section.
44339         * m4/ld-output-def.m4: New file.
44340         * doc/ld-output-def.texi: New file.
44341
44342 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44343
44344         Rename ld-version-script to lib-symbol-versions.  Suggested by
44345         Bruno Haible <bruno@clisp.org>.
44346         * modules/ld-version-script: Renamed to lib-symbol-versions.
44347         * doc/ld-version-script.texi: Fix module name.
44348         * MODULES.html.sh: Add lib-symbol-versions.
44349
44350 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44351
44352         * modules/u64-tests: New file.
44353         * tests/test-u64.c: New file.
44354
44355 2009-03-04  Simon Josefsson  <simon@josefsson.org>
44356
44357         * MODULES.html.sh: Mention u64.
44358         * modules/u64: New module.
44359         * modules/crypto/sha512: Depend on u64 module instead of providing
44360         u64.h.
44361
44362 2009-03-27  Eric Blake  <ebb9@byu.net>
44363
44364         test-strerror: make debugging EAI_SYSTEM easier
44365         * modules/getaddrinfo-tests (Depends-on): Add strerror.
44366         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
44367         failure was EAI_SYSTEM.
44368
44369 2009-03-25  Bruno Haible  <bruno@clisp.org>
44370
44371         Fix a problem with --enable-relocatable on Solaris 7.
44372         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
44373         since 2008-02-24.
44374
44375 2009-03-25  Eric Blake  <ebb9@byu.net>
44376
44377         test-sockets: avoid gcc warning
44378         * tests/test-sockets.c (main): Silence compiler warning.
44379
44380 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
44381
44382         New modules nproc, pthread, contributed by Glen Lenker.
44383
44384         * MODULES.html.sh: Add pthread, nproc.
44385         * lib/nproc.c: New file.
44386         * lib/nproc.h: New file.
44387         * lib/pthread.in.h: New file.
44388         * m4/pthread.m4: New file.
44389         * modules/nproc: New file.
44390         * modules/pthread: New file.
44391
44392 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44393
44394         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
44395         New variable.
44396
44397 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
44398
44399         filevercmp: handle simple~ and numbered.~3~ backup suffixes
44400         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
44401         * tests/test-filevercmp.c: Add tests for backup suffixes.
44402
44403 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44404
44405         * modules/stdlib (Depends-on): Add stdint, needed when defining
44406         struct random_data on, for example, HP-UX 10.20.  Reported by
44407         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44408
44409 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44410
44411         * lib/readline.c (readline): Call fflush on stdout after printing
44412         prompt.
44413
44414 2009-03-20  Bruno Haible  <bruno@clisp.org>
44415
44416         Remove dependency from 'close' module to -lws2_32 on native Windows.
44417         * lib/close-hook.h: New file.
44418         * lib/close-hook.c: New file.
44419         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
44420         w32sock.h.
44421         (_gl_close_fd_maybe_socket): Remove function.
44422         (rpl_close): Invoke execute_all_close_hooks instead of
44423         _gl_close_fd_maybe_socket.
44424         * lib/sockets.c: Include close-hook.h, w32sock.h.
44425         (close_fd_maybe_socket): New function, essentially from lib/close.c.
44426         (close_sockets_hook): New variable.
44427         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
44428         (gl_sockets_cleanup): Unregister it.
44429         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
44430         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
44431         * modules/close-hook: New file.
44432         * modules/close (Files): Remove lib/w32sock.h.
44433         (Depends-on): Add close-hook.
44434         (Link): Remove section.
44435         * modules/sockets (Files): Add lib/w32sock.h.
44436         (Depends-on): Add close-hook.
44437         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
44438         invocation.
44439         * NEWS: Mention that LIB_CLOSE is gone.
44440
44441 2009-03-23  Eric Blake  <ebb9@byu.net>
44442
44443         signal-tests: test previous patch
44444         * tests/test-signal.c: New file.
44445         * modules/signal-tests: Likewise.
44446
44447         signal.h: always support 'volatile sig_atomic_t'
44448         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
44449         (gl_SIGNAL_H_DEFAULTS): Add a default.
44450         * modules/signal (Makefile.am): Substitute if needed.
44451         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
44452         users can blindly add volatile.
44453         * doc/posix-headers/signal.texi (signal.h): Document it.
44454         Reported by Matthew Woehlke.
44455
44456 2009-03-23  Jim Meyering  <meyering@redhat.com>
44457
44458         pathmax: PATH_MAX: use pathconf only when available
44459         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
44460         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
44461         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
44462         This avoids a link failure in a PSP cross-compilation environment
44463         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
44464
44465         * lib/vasnprintf.c (divide): Fix typo in comment.
44466
44467 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44468
44469         * gnulib-tool (func_filter_filelist): Fix comment.
44470
44471 2009-03-20  Bruno Haible  <bruno@clisp.org>
44472
44473         Make sockets.h self-contained.
44474         * lib/sockets.c: Include sockets.h first.
44475         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
44476
44477 2009-03-19  Eric Blake  <ebb9@byu.net>
44478
44479         doc: mention more functions added in cygwin 1.7.0
44480         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
44481         addition.
44482         * doc/posix-functions/log2f.texi: Likewise.
44483
44484 2009-03-19  Jim Meyering  <meyering@redhat.com>
44485
44486         fsusage: avoid syntax error due to statement-before-declaration
44487         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
44488         after all declarations.  Reported by Matthew Woehlke in
44489         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
44490
44491 2009-03-18  Eric Blake  <ebb9@byu.net>
44492
44493         build-aux/compile: sync from automake
44494         * build-aux/compile: New file, from automake.
44495         * config/srclist.txt: Mention build-aux/compile.
44496
44497 2009-03-17  Bruno Haible  <bruno@clisp.org>
44498
44499         * lib/git-merge-changelog.c: Fix typo in comment.
44500         Reported by Reuben Thomas <rrt@sc3d.org>.
44501
44502 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
44503
44504         * m4/regex.m4: update and improve help for
44505         --without-included-regex.
44506
44507 2009-03-17  Simon Josefsson  <simon@josefsson.org>
44508
44509         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
44510         failure on missing include files.
44511
44512 2009-03-17  Eric Blake  <ebb9@byu.net>
44513
44514         doc: mention more functions added in cygwin 1.7.0
44515         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
44516         addition.
44517         * doc/posix-functions/fwscanf.texi: Likewise.
44518         * doc/posix-functions/swprintf.texi: Likewise.
44519         * doc/posix-functions/swscanf.texi: Likewise.
44520         * doc/posix-functions/vfwprintf.texi: Likewise.
44521         * doc/posix-functions/vfwscanf.texi: Likewise.
44522         * doc/posix-functions/vswprintf.texi: Likewise.
44523         * doc/posix-functions/vswscanf.texi: Likewise.
44524         * doc/posix-functions/vwprintf.texi: Likewise.
44525         * doc/posix-functions/vwscanf.texi: Likewise.
44526         * doc/posix-functions/wcscasecmp.texi: Likewise.
44527         * doc/posix-functions/wcsdup.texi: Likewise.
44528         * doc/posix-functions/wcsftime.texi: Likewise.
44529         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44530         * doc/posix-functions/wprintf.texi: Likewise.
44531         * doc/posix-functions/wscanf.texi: Likewise.
44532         * doc/glibc-functions/gethostbyname2.texi: Likewise.
44533
44534 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44535
44536         maint.mk: really add $(AM_MAKEFLAGS)
44537         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
44538         was inadvertently omitted in the last commit.
44539         Spotted by Bruno Haible.
44540
44541         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
44542         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
44543         $(AM_MAKEFLAGS)' rather than plain `make'.
44544
44545         gnulib-tool: execute $MAKE not make
44546         * gnulib-tool: Default $MAKE to 'make'.
44547         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
44548         than make.  Initialize $MAKE in the do-autobuild script.
44549
44550         gnulib-tool: use $MAKE not make in generated files
44551         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
44552         make, in generated files.  Initialize $MAKE in the do-autobuild
44553         script.
44554
44555         * top/GNUmakefile (_have-git-version-gen): Fix typo.
44556
44557         GNUmakefile: disable parallelism only for multiple, recursive targets
44558         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
44559         additions in the Makefile.
44560         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
44561         by Automake.
44562         (.NOTPARALLEL): Only disable parallel builds if multiple targets
44563         are listed on the command line and at least one of them is
44564         listed in $(ALL_RECURSIVE_TARGETS).
44565
44566 2009-03-14  Bruno Haible  <bruno@clisp.org>
44567
44568         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
44569         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
44570         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
44571         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
44572         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
44573         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
44574         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
44575         unistr/u8-uctomb.
44576         * modules/unistr/u8-strchr (Depends-on): Likewise.
44577         * modules/unistr/u8-strrchr (Depends-on): Likewise.
44578         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
44579         unistr/u16-uctomb.
44580         * modules/unistr/u16-strchr (Depends-on): Likewise.
44581         * modules/unistr/u16-strrchr (Depends-on): Likewise.
44582
44583 2009-03-12  Bruno Haible  <bruno@clisp.org>
44584
44585         Work around select() bug on Interix 3.5.
44586         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
44587         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
44588         * m4/select.m4: New file.
44589         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
44590         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
44591         * modules/select (Files): Add m4/select.m4.
44592         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
44593         * modules/nanosleep (Depends-on): Add select.
44594         * modules/poll (Depends-on): Likewise.
44595         * doc/posix-functions/select.texi: Mention the Interix bug.
44596         Reported by Markus Duft <mduft@gentoo.org>.
44597
44598         * lib/select.c: Renamed from lib/winsock-select.c.
44599         * modules/select (Files): Add lib/select.c, remove
44600         lib/winsock-select.c.
44601         (configure.ac): Update.
44602
44603 2009-03-12  Jim Meyering  <meyering@redhat.com>
44604
44605         avoid gcc warnings about unused macro definitions
44606         * lib/readtokens.c (STREQ): Remove unused definition.
44607         * lib/xmalloc.c (SIZE_MAX): Likewise.
44608         * lib/openat-die.c (N_): Likewise.
44609         * lib/mountlist.c (SIZE_MAX): Remove definition.
44610         Instead, include <stdint.h>.
44611         * lib/readutmp.c: Likewise.
44612         * modules/readutmp (Depends-on): Add stdint.
44613         * modules/mountlist (Depends-on): Add stdint.
44614         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
44615
44616 2009-03-10  Bruno Haible  <bruno@clisp.org>
44617
44618         Tests for module 'mbmemcasecoll'.
44619         * modules/mbmemcasecoll-tests: New file.
44620         * tests/test-mbmemcasecoll1.sh: New file.
44621         * tests/test-mbmemcasecoll2.sh: New file.
44622         * tests/test-mbmemcasecoll3.sh: New file.
44623         * tests/test-mbmemcasecoll.c: New file.
44624
44625         New module 'mbmemcasecoll'.
44626         * lib/mbmemcasecoll.h: New file.
44627         * lib/mbmemcasecoll.c: New file.
44628         * modules/mbmemcasecoll: New file.
44629
44630         * tests/test-mbmemcasecmp.h: New file, extracted from
44631         tests/test-mbmemcasecmp.c.
44632         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
44633         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
44634         (main): Update.
44635         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
44636
44637 2009-03-09  Bruno Haible  <bruno@clisp.org>
44638
44639         Tests for module 'mbmemcasecmp'.
44640         * modules/mbmemcasecmp-tests: New file.
44641         * tests/test-mbmemcasecmp1.sh: New file.
44642         * tests/test-mbmemcasecmp2.sh: New file.
44643         * tests/test-mbmemcasecmp3.sh: New file.
44644         * tests/test-mbmemcasecmp.c: New file.
44645
44646         New module 'mbmemcasecmp'.
44647         * lib/mbmemcasecmp.h: New file.
44648         * lib/mbmemcasecmp.c: New file.
44649         * modules/mbmemcasecmp: New file.
44650
44651 2009-03-09  Bruno Haible  <bruno@clisp.org>
44652
44653         Tests for module 'unicase/ulc-casecoll'.
44654         * modules/unicase/ulc-casecoll-tests: New file.
44655         * tests/unicase/test-ulc-casecoll1.sh: New file.
44656         * tests/unicase/test-ulc-casecoll2.sh: New file.
44657         * tests/unicase/test-ulc-casecoll.c: New file.
44658
44659         New module 'unicase/ulc-casecoll'.
44660         * lib/unicase.h (ulc_casecoll): New declaration.
44661         * lib/unicase/ulc-casecoll.c: New file.
44662         * modules/unicase/ulc-casecoll: New file.
44663
44664         New module 'unicase/ulc-casexfrm'.
44665         * lib/unicase.h (ulc_casexfrm): New declaration.
44666         * lib/unicase/ulc-casexfrm.c: New file.
44667         * modules/unicase/ulc-casexfrm: New file.
44668
44669 2009-03-09  Bruno Haible  <bruno@clisp.org>
44670
44671         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
44672         invocations.
44673
44674         * m4/mbscasecmp.m4: Remove file.
44675         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
44676         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
44677
44678         * m4/mbscasestr.m4: Remove file.
44679         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
44680         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
44681
44682         * m4/mbschr.m4: Remove file.
44683         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
44684         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
44685
44686         * m4/mbscspn.m4: Remove file.
44687         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
44688         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
44689
44690         * m4/mbslen.m4: Remove file.
44691         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
44692         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
44693
44694         * m4/mbsncasecmp.m4: Remove file.
44695         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
44696         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
44697
44698         * m4/mbsnlen.m4: Remove file.
44699         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
44700         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
44701
44702         * m4/mbspbrk.m4: Remove file.
44703         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
44704         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
44705
44706         * m4/mbspcasecmp.m4: Remove file.
44707         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
44708         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
44709
44710         * m4/mbsrchr.m4: Remove file.
44711         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
44712         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
44713
44714         * m4/mbssep.m4: Remove file.
44715         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
44716         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
44717
44718         * m4/mbsspn.m4: Remove file.
44719         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
44720         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
44721
44722         * m4/mbsstr.m4: Remove file.
44723         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
44724         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
44725
44726         * m4/mbstok_r.m4: Remove file.
44727         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
44728         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
44729
44730         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
44731
44732         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
44733         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
44734
44735         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
44736
44737 2009-03-08  Bruno Haible  <bruno@clisp.org>
44738
44739         Tests for module 'unicase/ulc-casecmp'.
44740         * modules/unicase/ulc-casecmp-tests: New file.
44741         * tests/unicase/test-ulc-casecmp1.sh: New file.
44742         * tests/unicase/test-ulc-casecmp2.sh: New file.
44743         * tests/unicase/test-ulc-casecmp.c: New file.
44744
44745         New module 'unicase/ulc-casecmp'.
44746         * lib/unicase.h (ulc_casecmp): New declaration.
44747         * lib/unicase/ulc-casecmp.c: New file.
44748         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
44749         'const SRC_UNIT *'.
44750         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
44751         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
44752         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
44753         * modules/unicase/ulc-casecmp: New file.
44754
44755         Tests for module 'unicase/u32-is-cased'.
44756         * modules/unicase/u32-is-cased-tests: New file.
44757         * tests/unicase/test-u32-is-cased.c: New file.
44758
44759         Tests for module 'unicase/u16-is-cased'.
44760         * modules/unicase/u16-is-cased-tests: New file.
44761         * tests/unicase/test-u16-is-cased.c: New file.
44762
44763         Tests for module 'unicase/u8-is-cased'.
44764         * modules/unicase/u8-is-cased-tests: New file.
44765         * tests/unicase/test-u8-is-cased.c: New file.
44766         * tests/unicase/test-is-cased.h: New file.
44767
44768         New module 'unicase/u32-is-cased'.
44769         * lib/unicase/u32-is-cased.c: New file.
44770         * modules/unicase/u32-is-cased: New file.
44771
44772         New module 'unicase/u16-is-cased'.
44773         * lib/unicase/u16-is-cased.c: New file.
44774         * modules/unicase/u16-is-cased: New file.
44775
44776         New module 'unicase/u8-is-cased'.
44777         * lib/unicase/u8-is-cased.c: New file.
44778         * lib/unicase/u-is-cased.h: New file.
44779         * modules/unicase/u8-is-cased: New file.
44780
44781         Tests for module 'unicase/u32-is-casefolded'.
44782         * modules/unicase/u32-is-casefolded-tests: New file.
44783         * tests/unicase/test-u32-is-casefolded.c: New file.
44784
44785         Tests for module 'unicase/u16-is-casefolded'.
44786         * modules/unicase/u16-is-casefolded-tests: New file.
44787         * tests/unicase/test-u16-is-casefolded.c: New file.
44788
44789         Tests for module 'unicase/u8-is-casefolded'.
44790         * modules/unicase/u8-is-casefolded-tests: New file.
44791         * tests/unicase/test-u8-is-casefolded.c: New file.
44792         * tests/unicase/test-is-casefolded.h: New file.
44793
44794         New module 'unicase/u32-is-casefolded'.
44795         * lib/unicase/u32-is-casefolded.c: New file.
44796         * modules/unicase/u32-is-casefolded: New file.
44797
44798         New module 'unicase/u16-is-casefolded'.
44799         * lib/unicase/u16-is-casefolded.c: New file.
44800         * modules/unicase/u16-is-casefolded: New file.
44801
44802         New module 'unicase/u8-is-casefolded'.
44803         * lib/unicase/u8-is-casefolded.c: New file.
44804         * modules/unicase/u8-is-casefolded: New file.
44805
44806         Tests for module 'unicase/u32-is-titlecase'.
44807         * modules/unicase/u32-is-titlecase-tests: New file.
44808         * tests/unicase/test-u32-is-titlecase.c: New file.
44809
44810         Tests for module 'unicase/u16-is-titlecase'.
44811         * modules/unicase/u16-is-titlecase-tests: New file.
44812         * tests/unicase/test-u16-is-titlecase.c: New file.
44813
44814         Tests for module 'unicase/u8-is-titlecase'.
44815         * modules/unicase/u8-is-titlecase-tests: New file.
44816         * tests/unicase/test-u8-is-titlecase.c: New file.
44817         * tests/unicase/test-is-titlecase.h: New file.
44818
44819         New module 'unicase/u32-is-titlecase'.
44820         * lib/unicase/u32-is-titlecase.c: New file.
44821         * modules/unicase/u32-is-titlecase: New file.
44822
44823         New module 'unicase/u16-is-titlecase'.
44824         * lib/unicase/u16-is-titlecase.c: New file.
44825         * modules/unicase/u16-is-titlecase: New file.
44826
44827         New module 'unicase/u8-is-titlecase'.
44828         * lib/unicase/u8-is-titlecase.c: New file.
44829         * modules/unicase/u8-is-titlecase: New file.
44830
44831         Tests for module 'unicase/u32-is-lowercase'.
44832         * modules/unicase/u32-is-lowercase-tests: New file.
44833         * tests/unicase/test-u32-is-lowercase.c: New file.
44834
44835         Tests for module 'unicase/u16-is-lowercase'.
44836         * modules/unicase/u16-is-lowercase-tests: New file.
44837         * tests/unicase/test-u16-is-lowercase.c: New file.
44838
44839         Tests for module 'unicase/u8-is-lowercase'.
44840         * modules/unicase/u8-is-lowercase-tests: New file.
44841         * tests/unicase/test-u8-is-lowercase.c: New file.
44842         * tests/unicase/test-is-lowercase.h: New file.
44843
44844         New module 'unicase/u32-is-lowercase'.
44845         * lib/unicase/u32-is-lowercase.c: New file.
44846         * modules/unicase/u32-is-lowercase: New file.
44847
44848         New module 'unicase/u16-is-lowercase'.
44849         * lib/unicase/u16-is-lowercase.c: New file.
44850         * modules/unicase/u16-is-lowercase: New file.
44851
44852         New module 'unicase/u8-is-lowercase'.
44853         * lib/unicase/u8-is-lowercase.c: New file.
44854         * modules/unicase/u8-is-lowercase: New file.
44855
44856         Tests for module 'unicase/u32-is-uppercase'.
44857         * modules/unicase/u32-is-uppercase-tests: New file.
44858         * tests/unicase/test-u32-is-uppercase.c: New file.
44859
44860         Tests for module 'unicase/u16-is-uppercase'.
44861         * modules/unicase/u16-is-uppercase-tests: New file.
44862         * tests/unicase/test-u16-is-uppercase.c: New file.
44863
44864         Tests for module 'unicase/u8-is-uppercase'.
44865         * modules/unicase/u8-is-uppercase-tests: New file.
44866         * tests/unicase/test-u8-is-uppercase.c: New file.
44867         * tests/unicase/test-is-uppercase.h: New file.
44868
44869         New module 'unicase/u32-is-uppercase'.
44870         * lib/unicase/u32-is-uppercase.c: New file.
44871         * modules/unicase/u32-is-uppercase: New file.
44872
44873         New module 'unicase/u16-is-uppercase'.
44874         * lib/unicase/u16-is-uppercase.c: New file.
44875         * modules/unicase/u16-is-uppercase: New file.
44876
44877         New module 'unicase/u8-is-uppercase'.
44878         * lib/unicase/u8-is-uppercase.c: New file.
44879         * modules/unicase/u8-is-uppercase: New file.
44880
44881         New module 'unicase/u32-is-invariant'.
44882         * lib/unicase/u32-is-invariant.c: New file.
44883         * modules/unicase/u32-is-invariant: New file.
44884
44885         New module 'unicase/u16-is-invariant'.
44886         * lib/unicase/u16-is-invariant.c: New file.
44887         * modules/unicase/u16-is-invariant: New file.
44888
44889         New module 'unicase/u8-is-invariant'.
44890         * lib/unicase/u8-is-invariant.c: New file.
44891         * lib/unicase/invariant.h: New file.
44892         * lib/unicase/u-is-invariant.h: New file.
44893         * modules/unicase/u8-is-invariant: New file.
44894
44895         Tests for module 'unicase/u32-casecoll'.
44896         * modules/unicase/u32-casecoll-tests: New file.
44897         * tests/unicase/test-u32-casecoll.c: New file.
44898
44899         Tests for module 'unicase/u16-casecoll'.
44900         * modules/unicase/u16-casecoll-tests: New file.
44901         * tests/unicase/test-u16-casecoll.c: New file.
44902
44903         Tests for module 'unicase/u8-casecoll'.
44904         * modules/unicase/u8-casecoll-tests: New file.
44905         * tests/unicase/test-u8-casecoll.c: New file.
44906
44907         New module 'unicase/u32-casecoll'.
44908         * lib/unicase/u32-casecoll.c: New file.
44909         * modules/unicase/u32-casecoll: New file.
44910
44911         New module 'unicase/u16-casecoll'.
44912         * lib/unicase/u16-casecoll.c: New file.
44913         * modules/unicase/u16-casecoll: New file.
44914
44915         New module 'unicase/u8-casecoll'.
44916         * lib/unicase/u8-casecoll.c: New file.
44917         * lib/unicase/u-casecoll.h: New file.
44918         * modules/unicase/u8-casecoll: New file.
44919
44920         New module 'unicase/u32-casexfrm'.
44921         * lib/unicase/u32-casexfrm.c: New file.
44922         * modules/unicase/u32-casexfrm: New file.
44923
44924         New module 'unicase/u16-casexfrm'.
44925         * lib/unicase/u16-casexfrm.c: New file.
44926         * modules/unicase/u16-casexfrm: New file.
44927
44928         New module 'unicase/u8-casexfrm'.
44929         * lib/unicase/u8-casexfrm.c: New file.
44930         * lib/unicase/u-casexfrm.h: New file.
44931         * modules/unicase/u8-casexfrm: New file.
44932
44933         Tests for module 'unicase/u32-casecmp'.
44934         * modules/unicase/u32-casecmp-tests: New file.
44935         * tests/unicase/test-u32-casecmp.c: New file.
44936
44937         Tests for module 'unicase/u16-casecmp'.
44938         * modules/unicase/u16-casecmp-tests: New file.
44939         * tests/unicase/test-u16-casecmp.c: New file.
44940
44941         Tests for module 'unicase/u8-casecmp'.
44942         * modules/unicase/u8-casecmp-tests: New file.
44943         * tests/unicase/test-u8-casecmp.c: New file.
44944         * tests/unicase/test-casecmp.h: New file.
44945
44946         New module 'unicase/u32-casecmp'.
44947         * lib/unicase/u32-casecmp.c: New file.
44948         * modules/unicase/u32-casecmp: New file.
44949
44950         New module 'unicase/u16-casecmp'.
44951         * lib/unicase/u16-casecmp.c: New file.
44952         * modules/unicase/u16-casecmp: New file.
44953
44954         New module 'unicase/u8-casecmp'.
44955         * lib/unicase/u8-casecmp.c: New file.
44956         * lib/unicase/u-casecmp.h: New file.
44957         * modules/unicase/u8-casecmp: New file.
44958
44959         Tests for module 'unicase/u32-casefold'.
44960         * modules/unicase/u32-casefold-tests: New file.
44961         * tests/unicase/test-u32-casefold.c: New file.
44962
44963         Tests for module 'unicase/u16-casefold'.
44964         * modules/unicase/u16-casefold-tests: New file.
44965         * tests/unicase/test-u16-casefold.c: New file.
44966
44967         Tests for module 'unicase/u8-casefold'.
44968         * modules/unicase/u8-casefold-tests: New file.
44969         * tests/unicase/test-u8-casefold.c: New file.
44970
44971         New module 'unicase/u32-casefold'.
44972         * lib/unicase/u32-casefold.c: New file.
44973         * modules/unicase/u32-casefold: New file.
44974
44975         New module 'unicase/u16-casefold'.
44976         * lib/unicase/u16-casefold.c: New file.
44977         * modules/unicase/u16-casefold: New file.
44978
44979         New module 'unicase/u8-casefold'.
44980         * lib/unicase/u8-casefold.c: New file.
44981         * lib/unicase/u-casefold.h: New file.
44982         * modules/unicase/u8-casefold: New file.
44983
44984         New module 'unicase/tocasefold'.
44985         * lib/unicase/casefold.h: New file.
44986         * lib/unicase/tocasefold.c: New file.
44987         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
44988         * modules/unicase/tocasefold: New file.
44989
44990         Tests for module 'unicase/u32-totitle'.
44991         * modules/unicase/u32-totitle-tests: New file.
44992         * tests/unicase/test-u32-totitle.c: New file.
44993
44994         Tests for module 'unicase/u16-totitle'.
44995         * modules/unicase/u16-totitle-tests: New file.
44996         * tests/unicase/test-u16-totitle.c: New file.
44997
44998         Tests for module 'unicase/u8-totitle'.
44999         * modules/unicase/u8-totitle-tests: New file.
45000         * tests/unicase/test-u8-totitle.c: New file.
45001
45002         New module 'unicase/u32-totitle'.
45003         * lib/unicase/u32-totitle.c: New file.
45004         * modules/unicase/u32-totitle: New file.
45005
45006         New module 'unicase/u16-totitle'.
45007         * lib/unicase/u16-totitle.c: New file.
45008         * modules/unicase/u16-totitle: New file.
45009
45010         New module 'unicase/u8-totitle'.
45011         * lib/unicase/u8-totitle.c: New file.
45012         * lib/unicase/u-totitle.h: New file.
45013         * modules/unicase/u8-totitle: New file.
45014
45015         Tests for module 'unicase/u32-tolower'.
45016         * modules/unicase/u32-tolower-tests: New file.
45017         * tests/unicase/test-u32-tolower.c: New file.
45018
45019         Tests for module 'unicase/u16-tolower'.
45020         * modules/unicase/u16-tolower-tests: New file.
45021         * tests/unicase/test-u16-tolower.c: New file.
45022
45023         Tests for module 'unicase/u8-tolower'.
45024         * modules/unicase/u8-tolower-tests: New file.
45025         * tests/unicase/test-u8-tolower.c: New file.
45026
45027         New module 'unicase/u32-tolower'.
45028         * lib/unicase/u32-tolower.c: New file.
45029         * modules/unicase/u32-tolower: New file.
45030
45031         New module 'unicase/u16-tolower'.
45032         * lib/unicase/u16-tolower.c: New file.
45033         * modules/unicase/u16-tolower: New file.
45034
45035         New module 'unicase/u8-tolower'.
45036         * lib/unicase/u8-tolower.c: New file.
45037         * modules/unicase/u8-tolower: New file.
45038
45039         Tests for module 'unicase/u32-toupper'.
45040         * modules/unicase/u32-toupper-tests: New file.
45041         * tests/unicase/test-u32-toupper.c: New file.
45042
45043         Tests for module 'unicase/u16-toupper'.
45044         * modules/unicase/u16-toupper-tests: New file.
45045         * tests/unicase/test-u16-toupper.c: New file.
45046
45047         Tests for module 'unicase/u8-toupper'.
45048         * modules/unicase/u8-toupper-tests: New file.
45049         * tests/unicase/test-u8-toupper.c: New file.
45050
45051         New module 'unicase/u32-toupper'.
45052         * lib/unicase/u32-toupper.c: New file.
45053         * modules/unicase/u32-toupper: New file.
45054
45055         New module 'unicase/u16-toupper'.
45056         * lib/unicase/u16-toupper.c: New file.
45057         * modules/unicase/u16-toupper: New file.
45058
45059         New module 'unicase/u8-toupper'.
45060         * lib/unicase/u8-toupper.c: New file.
45061         * modules/unicase/u8-toupper: New file.
45062
45063         New module 'unicase/u32-casemap'.
45064         * lib/unicase/u32-casemap.c: New file.
45065         * modules/unicase/u32-casemap: New file.
45066
45067         New module 'unicase/u16-casemap'.
45068         * lib/unicase/u16-casemap.c: New file.
45069         * modules/unicase/u16-casemap: New file.
45070
45071         New module 'unicase/u8-casemap'.
45072         * lib/unicase/unicasemap.h: New file.
45073         * lib/unicase/u8-casemap.c: New file.
45074         * lib/unicase/u-casemap.h: New file.
45075         * modules/unicase/u8-casemap: New file.
45076
45077         New module 'unicase/special-casing'.
45078         * lib/unicase/special-casing.h: New file.
45079         * lib/unicase/special-casing.c: New file.
45080         * lib/unicase/special-casing-table.gperf: New file, generated by
45081         gen-uni-tables.c.
45082         * modules/unicase/special-casing: New file.
45083
45084         Tests for module 'unicase/locale-language'.
45085         * modules/unicase/locale-language-tests: New file.
45086         * tests/unicase/test-locale-language.sh: New file.
45087         * tests/unicase/test-locale-language.c: New file.
45088
45089         New module 'unicase/locale-language'.
45090         * lib/unicase/locale-language.c: New file.
45091         * lib/unicase/locale-languages.gperf: New file.
45092         * modules/unicase/locale-language: New file.
45093
45094         Generate more tables for case conversion and case folding.
45095         * lib/gen-uni-tables.c (SCC_*): New enum items.
45096         (struct special_casing_rule): New type.
45097         (casing_rules, num_casing_rules, allocated_casing_rules): New
45098         variables.
45099         (add_casing_rule, fill_casing_rules): New functions.
45100         (struct casefold_rule): New type.
45101         (casefolding_rules, num_casefolding_rules,
45102         allocated_casefolding_rules): New variables.
45103         (fill_casefolding_rules): New function.
45104         (unicode_casefold): New variable.
45105         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
45106         sort_casing_rules, output_casing_rules): New functions.
45107         (main): Accept to more arguments: SpecialCasing.txt and
45108         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
45109         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
45110         Output mapping for casefolding.
45111
45112         * lib/unicase.h: Include stdbool.h, uninorm.h.
45113         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
45114         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
45115         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
45116         arguments.
45117         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
45118         resultp arguments.
45119         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
45120         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
45121         resultp arguments.
45122         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
45123         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
45124         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
45125         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
45126         declarations.
45127         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
45128
45129 2009-03-08  Bruno Haible  <bruno@clisp.org>
45130
45131         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45132         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
45133         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
45134         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45135
45136 2009-03-07  Bruno Haible  <bruno@clisp.org>
45137
45138         Adjust u*_normcmp, u*_normcoll API.
45139         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45140         u16_normcoll, u32_normcoll): Change failure conventions.
45141         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
45142         errno and return -1.
45143         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45144
45145 2009-03-07  Bruno Haible  <bruno@clisp.org>
45146
45147         Tests for module 'uninorm/u32-normcoll'.
45148         * modules/uninorm/u32-normcoll-tests: New file.
45149         * tests/uninorm/test-u32-normcoll.c: New file.
45150
45151         Tests for module 'uninorm/u16-normcoll'.
45152         * modules/uninorm/u16-normcoll-tests: New file.
45153         * tests/uninorm/test-u16-normcoll.c: New file.
45154
45155         Tests for module 'uninorm/u8-normcoll'.
45156         * modules/uninorm/u8-normcoll-tests: New file.
45157         * tests/uninorm/test-u8-normcoll.c: New file.
45158
45159 2009-03-07  Bruno Haible  <bruno@clisp.org>
45160
45161         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
45162         tests/uninorm/test-u32-normcmp.c.
45163         * tests/uninorm/test-u32-normcmp.c: Include it.
45164         (test_nonascii): New function, extracted from main. Add some more
45165         tests.
45166         (main): Invoke test_ascii and test_nonascii.
45167         * modules/uninorm/u32-normcmp-tests (Files): Add
45168         tests/uninorm/test-u32-normcmp.h.
45169         (Depends-on): Remove uninorm/u32-normcmp.
45170
45171         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
45172         tests/uninorm/test-u16-normcmp.c.
45173         * tests/uninorm/test-u16-normcmp.c: Include it.
45174         (test_nonascii): New function, extracted from main. Add some more
45175         tests.
45176         (main): Invoke test_ascii and test_nonascii.
45177         * modules/uninorm/u16-normcmp-tests (Files): Add
45178         tests/uninorm/test-u16-normcmp.h.
45179         (Depends-on): Remove uninorm/u16-normcmp.
45180
45181         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
45182         tests/uninorm/test-u8-normcmp.c.
45183         * tests/uninorm/test-u8-normcmp.c: Include it.
45184         (test_nonascii): New function, extracted from main. Add some more
45185         tests.
45186         (main): Invoke test_ascii and test_nonascii.
45187         * modules/uninorm/u8-normcmp-tests (Files): Add
45188         tests/uninorm/test-u8-normcmp.h.
45189         (Depends-on): Remove uninorm/u8-normcmp.
45190
45191 2009-03-07  Bruno Haible  <bruno@clisp.org>
45192
45193         New module 'uninorm/u32-normcoll'.
45194         * lib/uninorm/u32-normcoll.c: New file.
45195         * modules/uninorm/u32-normcoll: New file.
45196
45197         New module 'uninorm/u16-normcoll'.
45198         * lib/uninorm/u16-normcoll.c: New file.
45199         * modules/uninorm/u16-normcoll: New file.
45200
45201         New module 'uninorm/u8-normcoll'.
45202         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
45203         declarations.
45204         * lib/uninorm/u8-normcoll.c: New file.
45205         * lib/uninorm/u-normcoll.h: New file.
45206         * modules/uninorm/u8-normcoll: New file.
45207
45208         New module 'uninorm/u32-normxfrm'.
45209         * lib/uninorm/u32-normxfrm.c: New file.
45210         * modules/uninorm/u32-normxfrm: New file.
45211
45212         New module 'uninorm/u16-normxfrm'.
45213         * lib/uninorm/u16-normxfrm.c: New file.
45214         * modules/uninorm/u16-normxfrm: New file.
45215
45216         New module 'uninorm/u8-normxfrm'.
45217         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
45218         declarations.
45219         * lib/uninorm/u8-normxfrm.c: New file.
45220         * lib/uninorm/u-normxfrm.h: New file.
45221         * modules/uninorm/u8-normxfrm: New file.
45222
45223 2009-03-07  Bruno Haible  <bruno@clisp.org>
45224
45225         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
45226         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
45227         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
45228
45229 2009-03-07  Bruno Haible  <bruno@clisp.org>
45230
45231         New module 'memxfrm'.
45232         * lib/memxfrm.h: New file.
45233         * lib/memxfrm.c: New file.
45234         * modules/memxfrm: New file.
45235
45236 2009-03-07  Bruno Haible  <bruno@clisp.org>
45237
45238         New module 'memcmp2'.
45239         * lib/memcmp2.h: New file.
45240         * lib/memcmp2.c: New file.
45241         * modules/memcmp2: New file.
45242
45243 2009-03-07  Bruno Haible  <bruno@clisp.org>
45244
45245         Tests for module 'uninorm/decomposing-form'.
45246         * modules/uninorm/decomposing-form-tests: New file.
45247         * tests/uninorm/test-decomposing-form.c: New file.
45248
45249         New module 'uninorm/decomposing-form'.
45250         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
45251         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
45252         Add 'decomposing_variant' field.
45253         * lib/uninorm/decomposing-form.c: New file.
45254         * lib/uninorm/nfc.c (uninorm_nfc): Update.
45255         * lib/uninorm/nfd.c (uninorm_nfd): Update.
45256         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
45257         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
45258         * modules/uninorm/decomposing-form: New file.
45259         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
45260         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
45261
45262 2009-03-07  Bruno Haible  <bruno@clisp.org>
45263
45264         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
45265         strings.
45266
45267 2009-03-06  Bruno Haible  <bruno@clisp.org>
45268
45269         Tests for module 'uninorm/u32-normcmp'.
45270         * tests/uninorm/test-u32-normcmp.c: New file.
45271         * modules/uninorm/u32-normcmp-tests: New file.
45272
45273         Tests for module 'uninorm/u16-normcmp'.
45274         * tests/uninorm/test-u16-normcmp.c: New file.
45275         * modules/uninorm/u16-normcmp-tests: New file.
45276
45277         Tests for module 'uninorm/u8-normcmp'.
45278         * tests/uninorm/test-u8-normcmp.c: New file.
45279         * modules/uninorm/u8-normcmp-tests: New file.
45280
45281         New module 'uninorm/u32-normcmp'.
45282         * lib/uninorm/u32-normcmp.c: New file.
45283         * modules/uninorm/u32-normcmp: New file.
45284
45285         New module 'uninorm/u16-normcmp'.
45286         * lib/uninorm/u16-normcmp.c: New file.
45287         * modules/uninorm/u16-normcmp: New file.
45288
45289         New module 'uninorm/u8-normcmp'.
45290         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
45291         declarations.
45292         * lib/uninorm/u8-normcmp.c: New file.
45293         * lib/uninorm/u-normcmp.h: New file.
45294         * modules/uninorm/u8-normcmp: New file.
45295
45296 2009-03-06  Bruno Haible  <bruno@clisp.org>
45297
45298         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
45299         Reported by Eric Blake.
45300
45301 2009-03-06  Eric Blake  <ebb9@byu.net>
45302             Bruno Haible  <bruno@clisp.org>
45303
45304         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
45305         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
45306         condition.
45307         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45308         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
45309         condition.
45310         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45311
45312 2009-03-06  Eric Blake  <ebb9@byu.net>
45313
45314         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
45315         to avoid compiler warnings.
45316         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
45317
45318 2009-03-05  Bruno Haible  <bruno@clisp.org>
45319
45320         * tests/test-ftell.c (main): Disable test beyond end of file on
45321         FreeMiNT.
45322         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45323
45324 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
45325
45326         * lib/filevercmp.c: Move hidden files up in ordering.
45327         * tests/test-filevercmp.c: Add tests for hidden files.
45328
45329 2009-03-04  Bruno Haible  <bruno@clisp.org>
45330
45331         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
45332         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
45333         AM_CFLAGS.
45334         Reported by Simon Josefsson.
45335
45336 2009-03-03  Bruno Haible  <bruno@clisp.org>
45337
45338         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
45339         Reported by Simon Josefsson.
45340
45341         * doc/ld-version-script.texi: Update node reference.
45342
45343 2009-03-03  Bruno Haible  <bruno@clisp.org>
45344
45345         * modules/visibility (License): Change to 'unlimited'.
45346         Suggested by Simon Josefsson.
45347
45348 2009-03-03  Jim Meyering  <meyering@redhat.com>
45349
45350         unlinkdir: cannot_unlink_dir may modify process state
45351         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
45352         it's neither thread-safe nor appropriate for use in a library.
45353
45354 2009-03-03  Eric Blake  <ebb9@byu.net>
45355
45356         test-closein: silence test under Darwin
45357         * tests/test-closein.sh: Ignore stderr from cat, since we don't
45358         care if it dies from EPIPE or EBADF.
45359
45360 2009-03-03  Bruno Haible  <bruno@clisp.org>
45361
45362         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
45363         earlier.
45364         * doc/visibility.texi: Fix @node and @section.
45365
45366 2009-03-03  Simon Josefsson  <simon@josefsson.org>
45367
45368         * doc/gnulib.texi: Link to sections for ld version script and
45369         visibility.
45370         * doc/visibility.texi: Add @node and @section.
45371         * modules/ld-version-script: New module.
45372         * m4/ld-version-script.m4: New file.
45373         * doc/ld-version-script.texi: New file.
45374
45375 2009-03-02  David Lutterkort  <lutter@redhat.com>
45376
45377         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
45378         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45379
45380 2009-03-02  Bruno Haible  <bruno@clisp.org>
45381
45382         * doc/visibility.texi: Mention libtool's -export-symbols option.
45383
45384 2009-03-02  Jim Meyering  <meyering@redhat.com>
45385
45386         announce-gen: new option: --no-print-checksums
45387         * build-aux/announce-gen (usage): Describe it.
45388         (print_checksums): Print a newline here, not in the [*] footnote.
45389         (main): Honor it.
45390
45391 2009-03-01  Bruno Haible  <bruno@clisp.org>
45392
45393         Use socklen_t in the native Windows replacements prototypes.
45394         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
45395         instead of 'int'.
45396         * lib/getsockopt.c (rpl_getsockopt): Likewise.
45397         * lib/setsockopt.c (rpl_setsockopt): Likewise.
45398         * modules/getsockopt (Depends-on): Add socklen.
45399         * modules/setsockopt (Depends-on): Add socklen.
45400
45401 2009-03-01  Bruno Haible  <bruno@clisp.org>
45402
45403         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
45404         least 4.2.
45405
45406 2009-03-01  Eric Blake  <ebb9@byu.net>
45407             Bruno Haible  <bruno@clisp.org>
45408
45409         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
45410         error messages.
45411         * lib/wait-process.c (wait_subprocess): Omit error message about
45412         deadly signal sent to the child of termsigp != NULL.
45413
45414 2009-03-01  Eric Blake  <ebb9@byu.net>
45415
45416         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
45417
45418 2009-03-01  Bruno Haible  <bruno@clisp.org>
45419
45420         Avoid a gcc warning.
45421         * tests/test-sched.c (b): Make global.
45422         Reported by Eric Blake.
45423
45424 2009-01-19  Martin Lambers  <marlam@marlam.de>
45425
45426         Provide POSIX semantics for socket timeout options on W32.
45427         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
45428         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
45429         * modules/setsockopt: Depend on sys_time module for struct timeval.
45430         * modules/getsockopt: Depend on sys_time module for struct timeval.
45431
45432 2009-03-01  Simon Josefsson  <simon@josefsson.org>
45433
45434         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
45435         __USE_GNU, for consistency with netdb.in.h.
45436         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45437
45438 2009-03-01  Bruno Haible  <bruno@clisp.org>
45439
45440         More support for FreeMiNT.
45441         * lib/fseeko.c (rpl_fseeko): Complete last commit.
45442         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45443
45444 2009-03-01  Bruno Haible  <bruno@clisp.org>
45445
45446         More support for FreeMiNT.
45447         * lib/fpurge.c (fpurge): Correct last commit.
45448         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45449
45450 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45451
45452         Fix unportable awk script in vc-list-files.
45453         * build-aux/vc-list-files: In the replacement awk script, use
45454         substr with a second argument of 1, not zero.
45455         Report by Simon Josefsson.
45456
45457 2009-02-28  Bruno Haible  <bruno@clisp.org>
45458
45459         More support for FreeMiNT.
45460         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
45461         to FreeMiNT today.
45462         * lib/fwriting.c (fwriting): Likewise.
45463         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
45464
45465 2009-02-28  Bruno Haible  <bruno@clisp.org>
45466
45467         * tests/test-freadseek.c (main): Disable test beyond end of file on
45468         FreeMiNT.
45469         * tests/test-ftello.c (main): Likewise.
45470         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45471
45472 2009-02-28  Bruno Haible  <bruno@clisp.org>
45473
45474         Add tentative support for FreeMiNT.
45475         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
45476         * lib/fpurge.c (fpurge): Likewise.
45477         * lib/freadable.c (freadable): Likewise.
45478         * lib/freading.c (freading): Likewise.
45479         * lib/freadptr.c (freadptr): Likewise.
45480         * lib/freadseek.c (freadptrinc): Likewise.
45481         * lib/fseeko.c (rpl_fseeko): Likewise.
45482         * lib/fseterr.c (fseterr): Likewise.
45483         * lib/fwritable.c (fwritable): Likewise.
45484         * lib/fwriting.c (fwriting): Likewise.
45485         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
45486         Hourihane.
45487         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45488
45489 2009-02-28  Bruno Haible  <bruno@clisp.org>
45490
45491         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
45492         SIGCHLD.
45493         Reported by Jim Meyering.
45494
45495 2009-02-28  Bruno Haible  <bruno@clisp.org>
45496
45497         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
45498         Mention the results of these tests on various platforms.
45499         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
45500         order.
45501         * doc/posix-functions/printf.texi: Likewise.
45502         * doc/posix-functions/snprintf.texi: Likewise.
45503         * doc/posix-functions/sprintf.texi: Likewise.
45504         * doc/posix-functions/vfprintf.texi: Likewise.
45505         * doc/posix-functions/vprintf.texi: Likewise.
45506         * doc/posix-functions/vsnprintf.texi: Likewise.
45507         * doc/posix-functions/vsprintf.texi: Likewise.
45508         * doc/glibc-functions/obstack_printf.texi: Likewise.
45509         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
45510
45511 2009-02-28  Bruno Haible  <bruno@clisp.org>
45512
45513         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
45514         Reported by Loïc Minier <lool@dooz.org>.
45515
45516 2009-02-27  Bruno Haible  <bruno@clisp.org>
45517
45518         * gnulib-tool (func_import): Make the sed expression used to create the
45519         sed script for updating the .gitignore file POSIX compliant.
45520         Reported by Eric Blake.
45521
45522 2009-02-27  Bruno Haible  <bruno@clisp.org>
45523
45524         * gnulib-tool (sed): Don't alias as "sed --posix".
45525         Reported by Eric Blake.
45526
45527 2009-02-27  Bruno Haible  <bruno@clisp.org>
45528
45529         Avoid test link errors.
45530         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
45531         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
45532         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
45533         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
45534         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45535
45536 2009-02-27  Bruno Haible  <bruno@clisp.org>
45537
45538         Avoid spurious "(cached)" in configure output.
45539         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
45540         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
45541         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45542         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45543         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45544         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
45545         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45546         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
45547         Reported by Eric Blake.
45548
45549 2009-02-27  Eric Blake  <ebb9@byu.net>
45550
45551         printf: fix regression in previous patch
45552         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
45553
45554 2009-02-27  Bruno Haible  <bruno@clisp.org>
45555
45556         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
45557         value.
45558         * lib/stdint.in.h: Likewise.
45559         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
45560
45561 2009-02-27  Eric Blake  <ebb9@byu.net>
45562
45563         doc: mention more functions added in cygwin 1.7.0
45564         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
45565         addition.
45566         * doc/posix-functions/open_wmemstream.texi: Likewise.
45567         * doc/posix-functions/wcsnlen.texi: Likewise.
45568         * doc/posix-functions/wcsnrtombs.texi: Likewise.
45569         * doc/posix-functions/wcstod.texi: Likewise.
45570         * doc/posix-functions/wcstof.texi: Likewise.
45571         * doc/posix-functions/wcstoimax.texi: Likewise.
45572         * doc/posix-functions/wcstok.texi: Likewise.
45573         * doc/posix-functions/wcstoumax.texi: Likewise.
45574
45575         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
45576         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
45577         * doc/posix-functions/fprintf.texi: Update.
45578         * doc/posix-functions/printf.texi: Update.
45579         * doc/posix-functions/snprintf.texi: Update.
45580         * doc/posix-functions/sprintf.texi: Update.
45581         * doc/posix-functions/vfprintf.texi: Update.
45582         * doc/posix-functions/vprintf.texi: Update.
45583         * doc/posix-functions/vsnprintf.texi: Update.
45584         * doc/posix-functions/vsprintf.texi: Update.
45585         * doc/glibc-functions/obstack_printf.texi: Update.
45586         * doc/glibc-functions/obstack_vprintf.texi: Update.
45587
45588 2009-02-26  Eric Blake  <ebb9@byu.net>
45589
45590         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
45591         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
45592         compilation bug by using runtime conversion.
45593         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
45594         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
45595         * modules/ceill-tests (Files): Use nan.h.
45596         * modules/floorl-tests (Files): Likewise.
45597         * modules/frexpl-tests (Files): Likewise.
45598         * modules/isnanl-tests (Files): Likewise.
45599         * modules/ldexpl-tests (Files): Likewise.
45600         * modules/roundl-tests (Files): Likewise.
45601         * modules/truncl-tests (Files): Likewise.
45602         * tests/test-ceill.c (main): Use a working NaN.
45603         * tests/test-floorl.c (main): Likewise.
45604         * tests/test-frexpl.c (main): Likewise.
45605         * tests/test-isnan.c (test_long_double): Likewise.
45606         * tests/test-isnanl.h (main): Likewise.
45607         * tests/test-ldexpl.h (main): Likewise.
45608         * tests/test-roundl.h (main): Likewise.
45609         * tests/test-truncl.h (main): Likewise.
45610         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
45611
45612 2009-02-26  Eric Blake  <ebb9@byu.net>
45613             Bruno Haible  <bruno@clisp.org>
45614
45615         Work around a *printf bug with %ls on Solaris.
45616         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
45617         precision is specified, sprintf stops converting the wide string
45618         argument when the number of bytes that have been produced by this
45619         conversion equals or exceeds the precision.
45620         * doc/posix-functions/fprintf.texi: Update.
45621         * doc/posix-functions/printf.texi: Update.
45622         * doc/posix-functions/snprintf.texi: Update.
45623         * doc/posix-functions/sprintf.texi: Update.
45624         * doc/posix-functions/vfprintf.texi: Update.
45625         * doc/posix-functions/vprintf.texi: Update.
45626         * doc/posix-functions/vsnprintf.texi: Update.
45627         * doc/posix-functions/vsprintf.texi: Update.
45628         * doc/glibc-functions/obstack_printf.texi: Update.
45629         * doc/glibc-functions/obstack_vprintf.texi: Update.
45630
45631 2009-02-26  Eric Blake  <ebb9@byu.net>
45632
45633         stdlib: favor compiler check of random.h
45634         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
45635         to avoid an ObjC random.h installed by Swarm.
45636
45637 2009-02-26  Bruno Haible  <bruno@clisp.org>
45638
45639         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
45640         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
45641         Reported by Gary V. Vaughan <gary@gnu.org>.
45642
45643 2009-02-26  Bruno Haible  <bruno@clisp.org>
45644
45645         Fix *printf behaviour regarding the %ls directive.
45646         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
45647         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
45648         NEED_PRINTF_DIRECTIVE_LS.
45649         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
45650         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45651         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45652         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
45653         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
45654         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
45655         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
45656         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45657         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45658         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45659         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45660         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
45661         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45662         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45663         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45664         * doc/posix-functions/fprintf.texi: Update.
45665         * doc/posix-functions/printf.texi: Update.
45666         * doc/posix-functions/snprintf.texi: Update.
45667         * doc/posix-functions/sprintf.texi: Update.
45668         * doc/posix-functions/vfprintf.texi: Update.
45669         * doc/posix-functions/vprintf.texi: Update.
45670         * doc/posix-functions/vsnprintf.texi: Update.
45671         * doc/posix-functions/vsprintf.texi: Update.
45672         * doc/glibc-functions/obstack_printf.texi: Update.
45673         * doc/glibc-functions/obstack_vprintf.texi: Update.
45674         Reported by Eric Blake.
45675
45676 2009-02-25  Bruno Haible  <bruno@clisp.org>
45677
45678         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
45679         with known value.
45680         Reported by Gary V. Vaughan <gary@gnu.org>.
45681
45682 2009-02-25  Bruno Haible  <bruno@clisp.org>
45683
45684         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
45685         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
45686         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
45687         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
45688         Reported by Gary V. Vaughan <gary@gnu.org>.
45689
45690 2009-02-25  Bruno Haible  <bruno@clisp.org>
45691
45692         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
45693         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
45694         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
45695         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
45696         Reported by Gary V. Vaughan <gary@gnu.org>.
45697
45698 2009-02-25  Eric Blake  <ebb9@byu.net>
45699
45700         tests: skip fseek/ftell tests if ungetc is broken
45701         * m4/ungetc.m4: New file.
45702         * modules/fseek-tests: Split test, so ungetc dependency is
45703         separate from rest of test.
45704         * modules/fseeko-tests: Likewise.
45705         * modules/ftell-tests: Likewise.
45706         * modules/ftello-tests: Likewise.
45707         * tests/test-fseek.c (main): Isolate ungetc dependency.
45708         * tests/test-fseeko.c (main): Likewise.
45709         * tests/test-ftell.c (main): Likewise.
45710         * tests/test-ftello.c (main): Likewise.
45711         * tests/test-fseek2.sh: New file.
45712         * tests/test-fseeko2.sh: Likewise.
45713         * tests/test-ftell2.sh: Likewise.
45714         * tests/test-ftello2.sh: Likewise.
45715
45716 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
45717
45718         test-getaddrinfo: fix usage of skip return code 77
45719         * tests/test-gettaddrinfo.c: Return skip code 77 only
45720         for first occurance of skip (4x77 is not 77)
45721
45722 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
45723
45724         strtod: avoid C99 decl-after-statement
45725         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
45726
45727 2009-02-24  Eric Blake  <ebb9@byu.net>
45728
45729         strtod: detect HP-UX 11.31 bug
45730         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
45731         Reported by Gary V. Vaughan.
45732
45733 2009-02-23  Bruno Haible  <bruno@clisp.org>
45734
45735         Fix invalid read past end of memory block.
45736         * lib/vasnprintf.c (DCHAR_SET): Define.
45737         (local_wcslen): Define only when needed.
45738         (local_strnlen, local_wcsnlen): New functions.
45739         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
45740         directives that involve a conversion ourselves.
45741         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
45742         wcsnlen, mbrtowc, wcrtomb.
45743         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
45744         * tests/test-vasprintf-posix.c (test_function): Likewise.
45745         * tests/test-snprintf-posix.h (test_function): Likewise.
45746         * tests/test-sprintf-posix.h (test_function): Likewise.
45747         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45748
45749 2009-02-22  Bruno Haible  <bruno@clisp.org>
45750
45751         Implement new clarified decomposition of Hangul syllables.
45752         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
45753         of type LTV, return only a pairwise decomposition.
45754         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
45755         Likewise.
45756         * tests/uninorm/test-decomposition.c (main): Updated expected result.
45757         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
45758         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
45759
45760 2009-02-22  Bruno Haible  <bruno@clisp.org>
45761
45762         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
45763         zero-length results and shrink excess allocated memory.
45764         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
45765         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
45766         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
45767         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
45768         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
45769         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
45770         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
45771         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
45772         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
45773         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
45774         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
45775         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
45776
45777 2009-02-21  Bruno Haible  <bruno@clisp.org>
45778
45779         * doc/gnulib.texi: Include safe-alloc.texi earlier.
45780         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
45781         spaces after a period. Put a space between a macro name and its
45782         argument list. Trivial rewordings.
45783         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
45784         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
45785         (main): Return 0 explicitly.
45786
45787 2009-02-21  Bruno Haible  <bruno@clisp.org>
45788
45789         Tests for module 'uninorm/filter'.
45790         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
45791         * modules/uninorm/filter-tests: New file.
45792
45793         New module 'uninorm/filter'.
45794         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
45795         uninorm_filter_flush, uninorm_filter_free): New declarations.
45796         * lib/uninorm/uninorm-filter.c: New file.
45797         * modules/uninorm/filter: New file.
45798
45799 2009-02-21  Bruno Haible  <bruno@clisp.org>
45800
45801         Tests for module 'uninorm/nfkc'.
45802         * tests/uninorm/test-nfkc.c: New file.
45803         * tests/uninorm/test-u8-nfkc.c: New file.
45804         * tests/uninorm/test-u16-nfkc.c: New file.
45805         * tests/uninorm/test-u32-nfkc.c: New file.
45806         * tests/uninorm/test-u32-nfkc-big.sh: New file.
45807         * tests/uninorm/test-u32-nfkc-big.c: New file.
45808         * modules/uninorm/nfkc-tests: New file.
45809
45810         New module 'uninorm/nfkc'.
45811         * lib/uninorm/nfkc.c: New file.
45812         * modules/uninorm/nfkc: New file.
45813
45814         Tests for module 'uninorm/nfkd'.
45815         * tests/uninorm/test-nfkd.c: New file.
45816         * tests/uninorm/test-u8-nfkd.c: New file.
45817         * tests/uninorm/test-u16-nfkd.c: New file.
45818         * tests/uninorm/test-u32-nfkd.c: New file.
45819         * tests/uninorm/test-u32-nfkd-big.sh: New file.
45820         * tests/uninorm/test-u32-nfkd-big.c: New file.
45821         * modules/uninorm/nfkd-tests: New file.
45822
45823         New module 'uninorm/nfkd'.
45824         * lib/uninorm/nfkd.c: New file.
45825         * modules/uninorm/nfkd: New file.
45826
45827         Tests for module 'uninorm/nfc'.
45828         * tests/uninorm/test-nfc.c: New file.
45829         * tests/uninorm/test-u8-nfc.c: New file.
45830         * tests/uninorm/test-u16-nfc.c: New file.
45831         * tests/uninorm/test-u32-nfc.c: New file.
45832         * tests/uninorm/test-u32-nfc-big.sh: New file.
45833         * tests/uninorm/test-u32-nfc-big.c: New file.
45834         * modules/uninorm/nfc-tests: New file.
45835
45836         New module 'uninorm/nfc'.
45837         * lib/uninorm/nfc.c: New file.
45838         * modules/uninorm/nfc: New file.
45839
45840         Tests for module 'uninorm/nfd'.
45841         * tests/uninorm/test-nfd.c: New file.
45842         * tests/uninorm/test-u8-nfd.c: New file.
45843         * tests/uninorm/test-u16-nfd.c: New file.
45844         * tests/uninorm/test-u32-nfd.c: New file.
45845         * tests/uninorm/test-u32-nfd-big.sh: New file.
45846         * tests/uninorm/test-u32-nfd-big.c: New file.
45847         * tests/uninorm/test-u32-normalize-big.h: New file.
45848         * tests/uninorm/test-u32-normalize-big.c: New file.
45849         * tests/uninorm/NormalizationTest.txt: New file, created from
45850         Unicode 5.1.0 NormalizationTest.txt.
45851         * modules/uninorm/nfd-tests: New file.
45852
45853         New module 'uninorm/nfd'.
45854         * lib/uninorm/nfd.c: New file.
45855         * modules/uninorm/nfd: New file.
45856
45857         New module 'uninorm/u32-normalize'.
45858         * lib/uninorm/u32-normalize.c: New file.
45859         * modules/uninorm/u32-normalize: New file.
45860
45861         New module 'uninorm/u16-normalize'.
45862         * lib/uninorm/u16-normalize.c: New file.
45863         * modules/uninorm/u16-normalize: New file.
45864
45865         New module 'uninorm/u8-normalize'.
45866         * lib/uninorm/u8-normalize.c: New file.
45867         * lib/uninorm/normalize-internal.h: New file.
45868         * lib/uninorm/u-normalize-internal.h: New file.
45869         * modules/uninorm/u8-normalize: New file.
45870
45871         New module 'uninorm/decompose-internal'.
45872         * lib/uninorm/decompose-internal.c: New file.
45873         * modules/uninorm/decompose-internal: New file.
45874
45875         Tests for module 'uninorm/composition'.
45876         * tests/uninorm/test-composition.c: New file.
45877         * modules/uninorm/composition-tests: New file.
45878
45879         New module 'uninorm/composition'.
45880         * lib/uninorm/composition.c: New file.
45881         * lib/uninorm/composition-table.gperf: New file, generated by
45882         gen-uni-tables.
45883         * modules/uninorm/composition: New file.
45884
45885         Tests for module 'uninorm/compat-decomposition'.
45886         * tests/uninorm/test-compat-decomposition.c: New file.
45887         * modules/uninorm/compat-decomposition-tests: New file.
45888
45889         New module 'uninorm/compat-decomposition'.
45890         * lib/uninorm/decompose-internal.h: New file.
45891         * lib/uninorm/compat-decomposition.c: New file.
45892         * modules/uninorm/compat-decomposition: New file.
45893
45894         Tests for module 'uninorm/canonical-decomposition'.
45895         * tests/uninorm/test-canonical-decomposition.c: New file.
45896         * modules/uninorm/canonical-decomposition-tests: New file.
45897
45898         New module 'uninorm/canonical-decomposition'.
45899         * lib/uninorm/canonical-decomposition.c: New file.
45900         * modules/uninorm/canonical-decomposition: New file.
45901
45902         Tests for module 'uninorm/decomposition'.
45903         * tests/uninorm/test-decomposition.c: New file.
45904         * modules/uninorm/decomposition-tests: New file.
45905
45906         New module 'uninorm/decomposition'.
45907         * lib/uninorm/decomposition.c: New file.
45908         * modules/uninorm/decomposition: New file.
45909
45910         New module 'uninorm/decomposition-table'.
45911         * lib/uninorm/decomposition-table.h: New file.
45912         * lib/uninorm/decomposition-table.c: New file.
45913         * lib/uninorm/decomposition-table1.h: New file, generated by
45914         gen-uni-tables.
45915         * lib/uninorm/decomposition-table2.h: New file, generated by
45916         gen-uni-tables.
45917         * modules/uninorm/decomposition-table: New file.
45918
45919         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
45920         (UC_DECOMP_*): New enumeration items.
45921         (get_decomposition): New function.
45922         (struct decomp_table): New type.
45923         (output_decomposition, output_decomposition_tables): New functions.
45924         (unicode_composition_exclusions): New variable.
45925         (fill_composition_exclusions, debug_output_composition_tables): New
45926         functions.
45927         (main): Accept one more argument. Invoke fill_composition_exclusions.
45928         Output decomposition and composition tables.
45929
45930         New module 'uninorm/base'.
45931         * lib/uninorm.h: New file.
45932         * lib/unictype.h: Update comment.
45933         * modules/uninorm/base: New file.
45934
45935 2009-02-21  David Lutterkort  <lutter@redhat.com>
45936
45937         Tests for module 'safe-alloc'.
45938         * tests/test-safe-alloc.c: New file.
45939         * modules/safe-alloc-tests: New file.
45940
45941         New module 'safe-alloc'.
45942         * lib/safe-alloc.h: New file.
45943         * lib/safe-alloc.c: New file.
45944         * m4/safe-alloc.m4: New file.
45945         * modules/safe-alloc: New file.
45946         * doc/safe-alloc.texi: New file.
45947         * doc/gnulib.texi: Include it.
45948         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
45949         safe-alloc.
45950
45951 2009-02-18  Bruno Haible  <bruno@clisp.org>
45952
45953         Fix link error on non-glibc systems.
45954         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
45955         variable.
45956         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45957
45958 2009-02-18  Jim Meyering  <meyering@redhat.com>
45959
45960         fts: avoid used-uninitialized error due to recent change
45961         * lib/fts.c (fts_read): Guard uses of the new member,
45962         parent->fts_n_dirs_remaining, since it's not relevant for
45963         the parent of a directory specified on the command-line.
45964
45965 2009-02-17  James Youngman  <jay@gnu.org>
45966             Bruno Haible  <bruno@clisp.org>
45967
45968         * m4/include_next.m4: Reformulate comment.
45969
45970 2009-02-16  Jim Meyering  <meyering@redhat.com>
45971
45972         fts: add #if guards so that the fts_lgpl module still builds
45973         * lib/fts.c: Guard just-added hash-table-using parts with
45974         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
45975         Reported by Simon Josefsson.
45976
45977 2009-02-15  Bruno Haible  <bruno@clisp.org>
45978
45979         * modules/array-mergesort-tests: New file.
45980         * tests/test-array-mergesort.c: New file.
45981
45982         New module 'array-mergesort'.
45983         * modules/array-mergesort: New file.
45984         * lib/array-mergesort.h: New file.
45985
45986 2009-02-15  Bruno Haible  <bruno@clisp.org>
45987
45988         Fix 2009-02-07 commit.
45989         * lib/gen-uni-tables.c (output_predicate, output_category,
45990         output_combclass, output_bidi_category, output_decimal_digit,
45991         output_digit, output_numeric, output_mirror, output_scripts,
45992         output_ident_category, output_simple_mapping): Fix format directives.
45993         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
45994
45995 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
45996
45997         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
45998         fixes are available from IBM.
45999
46000 2009-02-13  Jim Meyering  <meyering@redhat.com>
46001
46002         fts: arrange not to stat non-directories in more cases
46003         This makes GNU find (when it doesn't need to stat each file)
46004         *much* more efficient at traversing reiserfs file systems.
46005         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
46006         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
46007         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
46008         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
46009         (leaf_optimization_applies): New function.
46010         (LCO_hash, LCO_compare): New helper functions.
46011         (link_count_optimize_ok): New function.
46012         (fts_stat): Initialize new member (if dir).
46013         (fts_read): Decrement parent's fts_n_dirs_remaining count if
46014         we've just stat'ed a directory.  Skip the stat call when possible.
46015         ---
46016         Note this AFS-related exchange:
46017         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
46018         and note find's pioctl call in find/fstype.c.
46019         But that is necessary only if you want to enable the
46020         optimization for AFS, and for now, I don't.
46021
46022         fts: move a function definition "up" (no semantic change)
46023         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
46024         "up" to precede upcoming use of a related function.
46025
46026 2009-02-11  Jim Meyering  <meyering@redhat.com>
46027
46028         fts: correct internal computation of nlinks (optimization-related)
46029         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
46030         whether the current entry is a directory, so don't test it.
46031
46032 2009-02-10  Bruno Haible  <bruno@clisp.org>
46033
46034         Tests for module 'uniwbrk/ulc-wordbreaks'.
46035         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
46036         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
46037         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
46038
46039         Tests for module 'uniwbrk/u32-wordbreaks'.
46040         * modules/uniwbrk/u32-wordbreaks-tests: New file.
46041         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
46042
46043         Tests for module 'uniwbrk/u16-wordbreaks'.
46044         * modules/uniwbrk/u16-wordbreaks-tests: New file.
46045         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
46046
46047         Tests for module 'uniwbrk/u8-wordbreaks'.
46048         * modules/uniwbrk/u8-wordbreaks-tests: New file.
46049         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
46050
46051 2009-02-10  Bruno Haible  <bruno@clisp.org>
46052
46053         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
46054         property.
46055         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
46056         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
46057         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
46058
46059 2009-02-10  Simon Josefsson  <simon@josefsson.org>
46060
46061         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
46062         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
46063
46064 2009-02-10  Bruno Haible  <bruno@clisp.org>
46065
46066         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
46067         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
46068         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
46069         * lib/unilbrk/u8-possible-linebreaks.c: Update.
46070         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
46071         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
46072
46073 2009-02-09  Simon Josefsson  <simon@josefsson.org>
46074
46075         * lib/sockets.h (gl_fd_to_handle): New function.
46076
46077         * tests/test-sockets.c: Call gl_fd_to_handle.
46078
46079 2009-02-09  Bruno Haible  <bruno@clisp.org>
46080
46081         * doc/havelib.texi: Document the conventions on bi-arch systems.
46082
46083 2009-02-08  Bruno Haible  <bruno@clisp.org>
46084
46085         Document the AC_LIB_LINKFLAGS macro.
46086         * doc/havelib.texi: New file, mostly written on 2005-05-24.
46087         * doc/gnulib.texi: Include it.
46088
46089 2009-02-08  Bruno Haible  <bruno@clisp.org>
46090
46091         Fix wrong order of sections, compared to TOC.
46092         * doc/gnulib.texi: Include relocatable-maint.texi after the
46093         "Regular expressions" node, not before.
46094
46095 2009-02-08  Bruno Haible  <bruno@clisp.org>
46096
46097         Tests for module 'unicase/totitle'.
46098         * modules/unicase/totitle-tests: New file.
46099
46100         Tests for module 'unicase/tolower'.
46101         * modules/unicase/tolower-tests: New file.
46102
46103         Tests for module 'unicase/toupper'.
46104         * modules/unicase/toupper-tests: New file.
46105         * tests/unicase/test-mapping-part1.h: New file.
46106         * tests/unicase/test-mapping-part2.h: New file.
46107
46108         New module 'unicase/totitle'.
46109         * modules/unicase/totitle: New file.
46110         * lib/unicase/totitle.c: New file.
46111
46112         New module 'unicase/tolower'.
46113         * modules/unicase/tolower: New file.
46114         * lib/unicase/tolower.c: New file.
46115
46116         New module 'unicase/toupper'.
46117         * modules/unicase/toupper: New file.
46118         * lib/unicase/toupper.c: New file.
46119         * lib/unicase/simple-mapping.h: New file.
46120
46121         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
46122         (mapping_table): New structure.
46123         (output_simple_mapping): New function.
46124         (main): Invoke output_simple_mapping_test and output_simple_mapping.
46125         * modules/gen-uni-tables (Description): Update.
46126         * lib/unicase/toupper.h: New file, automatically generated by
46127         gen-uni-tables.
46128         * lib/unicase/tolower.h: New file, automatically generated by
46129         gen-uni-tables.
46130         * lib/unicase/totitle.h: New file, automatically generated by
46131         gen-uni-tables.
46132         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
46133         gen-uni-tables.
46134         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
46135         gen-uni-tables.
46136         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
46137         gen-uni-tables.
46138
46139         New module 'unicase/base'.
46140         * modules/unicase/base: New file.
46141         * lib/unicase.h: New file.
46142
46143 2009-02-08  Bruno Haible  <bruno@clisp.org>
46144
46145         New module 'uniwbrk/ulc-wordbreaks'.
46146         * modules/uniwbrk/ulc-wordbreaks: New file.
46147         * lib/uniwbrk/ulc-wordbreaks.c: New file.
46148
46149         New module 'uniwbrk/u32-wordbreaks'.
46150         * modules/uniwbrk/u32-wordbreaks: New file.
46151         * lib/uniwbrk/u32-wordbreaks.c: New file.
46152
46153         New module 'uniwbrk/u16-wordbreaks'.
46154         * modules/uniwbrk/u16-wordbreaks: New file.
46155         * lib/uniwbrk/u16-wordbreaks.c: New file.
46156
46157         New module 'uniwbrk/u8-wordbreaks'.
46158         * modules/uniwbrk/u8-wordbreaks: New file.
46159         * lib/uniwbrk/u8-wordbreaks.c: New file.
46160         * lib/uniwbrk/u-wordbreaks.h: New file.
46161
46162         New module 'uniwbrk/table'.
46163         * modules/uniwbrk/table: New file.
46164         * lib/uniwbrk/wbrktable.h: New file.
46165         * lib/uniwbrk/wbrktable.c: New file.
46166
46167         New module 'uniwbrk/wordbreak-property'.
46168         * modules/uniwbrk/wordbreak-property: New file.
46169         * lib/uniwbrk/wordbreak-property.c: New file.
46170
46171         * lib/gen-uni-tables.c (WBP_*): New enum items.
46172         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
46173         (unicode_org_wbp): New variable.
46174         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
46175         New functions.
46176         (wbp_table): New structure.
46177         (output_wbp, output_wbrk_tables): New functions.
46178         (main): Accept additional argument. Invoke fill_org_wbp,
46179         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
46180         output_wbrk_tables.
46181         * modules/gen-uni-tables (Description): Update.
46182         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
46183         gen-uni-tables.
46184
46185         New module 'uniwbrk/base'.
46186         * modules/uniwbrk/base: New file.
46187         * lib/uniwbrk.h: New file.
46188
46189 2009-02-08  Bruno Haible  <bruno@clisp.org>
46190
46191         Update to Unicode 5.1.0.
46192         * lib/gen-uni-tables.c (is_property_alphabetic): Include
46193         U+2185..U+2188.
46194         (is_property_default_ignorable_code_point): Don't include characters
46195         of category Cc or Cs and not-a-characters.
46196         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
46197         U+0D79, U+109E, U+109F, U+A60C.
46198         * lib/unictype/bidi_of.h: Regenerated.
46199         * lib/unictype/blocks.h: Regenerated.
46200         * lib/unictype/categ_C.h: Regenerated.
46201         * lib/unictype/categ_Cf.h: Regenerated.
46202         * lib/unictype/categ_Cn.h: Regenerated.
46203         * lib/unictype/categ_L.h: Regenerated.
46204         * lib/unictype/categ_Ll.h: Regenerated.
46205         * lib/unictype/categ_Lm.h: Regenerated.
46206         * lib/unictype/categ_Lo.h: Regenerated.
46207         * lib/unictype/categ_Lu.h: Regenerated.
46208         * lib/unictype/categ_M.h: Regenerated.
46209         * lib/unictype/categ_Mc.h: Regenerated.
46210         * lib/unictype/categ_Me.h: Regenerated.
46211         * lib/unictype/categ_Mn.h: Regenerated.
46212         * lib/unictype/categ_N.h: Regenerated.
46213         * lib/unictype/categ_Nd.h: Regenerated.
46214         * lib/unictype/categ_Nl.h: Regenerated.
46215         * lib/unictype/categ_No.h: Regenerated.
46216         * lib/unictype/categ_P.h: Regenerated.
46217         * lib/unictype/categ_Pd.h: Regenerated.
46218         * lib/unictype/categ_Pe.h: Regenerated.
46219         * lib/unictype/categ_Pf.h: Regenerated.
46220         * lib/unictype/categ_Pi.h: Regenerated.
46221         * lib/unictype/categ_Po.h: Regenerated.
46222         * lib/unictype/categ_Ps.h: Regenerated.
46223         * lib/unictype/categ_S.h: Regenerated.
46224         * lib/unictype/categ_Sk.h: Regenerated.
46225         * lib/unictype/categ_Sm.h: Regenerated.
46226         * lib/unictype/categ_So.h: Regenerated.
46227         * lib/unictype/categ_of.h: Regenerated.
46228         * lib/unictype/combining.h: Regenerated.
46229         * lib/unictype/ctype_alnum.h: Regenerated.
46230         * lib/unictype/ctype_alpha.h: Regenerated.
46231         * lib/unictype/ctype_graph.h: Regenerated.
46232         * lib/unictype/ctype_lower.h: Regenerated.
46233         * lib/unictype/ctype_print.h: Regenerated.
46234         * lib/unictype/ctype_punct.h: Regenerated.
46235         * lib/unictype/ctype_upper.h: Regenerated.
46236         * lib/unictype/decdigit.h: Regenerated.
46237         * lib/unictype/digit.h: Regenerated.
46238         * lib/unictype/mirror.h: Regenerated.
46239         * lib/unictype/numeric.h: Regenerated.
46240         * lib/unictype/pr_alphabetic.h: Regenerated.
46241         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
46242         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
46243         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
46244         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
46245         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
46246         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
46247         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
46248         * lib/unictype/pr_combining.h: Regenerated.
46249         * lib/unictype/pr_dash.h: Regenerated.
46250         * lib/unictype/pr_decimal_digit.h: Regenerated.
46251         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
46252         * lib/unictype/pr_deprecated.h: Regenerated.
46253         * lib/unictype/pr_diacritic.h: Regenerated.
46254         * lib/unictype/pr_extender.h: Regenerated.
46255         * lib/unictype/pr_format_control.h: Regenerated.
46256         * lib/unictype/pr_grapheme_base.h: Regenerated.
46257         * lib/unictype/pr_grapheme_extend.h: Regenerated.
46258         * lib/unictype/pr_grapheme_link.h: Regenerated.
46259         * lib/unictype/pr_id_continue.h: Regenerated.
46260         * lib/unictype/pr_id_start.h: Regenerated.
46261         * lib/unictype/pr_ideographic.h: Regenerated.
46262         * lib/unictype/pr_ignorable_control.h: Regenerated.
46263         * lib/unictype/pr_lowercase.h: Regenerated.
46264         * lib/unictype/pr_math.h: Regenerated.
46265         * lib/unictype/pr_numeric.h: Regenerated.
46266         * lib/unictype/pr_other_alphabetic.h: Regenerated.
46267         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
46268         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
46269         * lib/unictype/pr_other_id_continue.h: Regenerated.
46270         * lib/unictype/pr_other_lowercase.h: Regenerated.
46271         * lib/unictype/pr_other_math.h: Regenerated.
46272         * lib/unictype/pr_punctuation.h: Regenerated.
46273         * lib/unictype/pr_sentence_terminal.h: Regenerated.
46274         * lib/unictype/pr_soft_dotted.h: Regenerated.
46275         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
46276         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
46277         * lib/unictype/pr_unified_ideograph.h: Regenerated.
46278         * lib/unictype/pr_uppercase.h: Regenerated.
46279         * lib/unictype/pr_xid_continue.h: Regenerated.
46280         * lib/unictype/pr_xid_start.h: Regenerated.
46281         * lib/unictype/pr_zero_width.h: Regenerated.
46282         * lib/unictype/scripts.h: Regenerated.
46283         * lib/unictype/scripts_byname.gperf: Regenerated.
46284         * lib/unictype/sy_java_ident.h: Regenerated.
46285         * lib/unilbrk/lbrkprop1.h: Regenerated.
46286         * lib/unilbrk/lbrkprop2.h: Regenerated.
46287         * tests/unictype/test-categ_C.c: Regenerated.
46288         * tests/unictype/test-categ_Cf.c: Regenerated.
46289         * tests/unictype/test-categ_Cn.c: Regenerated.
46290         * tests/unictype/test-categ_L.c: Regenerated.
46291         * tests/unictype/test-categ_Ll.c: Regenerated.
46292         * tests/unictype/test-categ_Lm.c: Regenerated.
46293         * tests/unictype/test-categ_Lo.c: Regenerated.
46294         * tests/unictype/test-categ_Lu.c: Regenerated.
46295         * tests/unictype/test-categ_M.c: Regenerated.
46296         * tests/unictype/test-categ_Mc.c: Regenerated.
46297         * tests/unictype/test-categ_Me.c: Regenerated.
46298         * tests/unictype/test-categ_Mn.c: Regenerated.
46299         * tests/unictype/test-categ_N.c: Regenerated.
46300         * tests/unictype/test-categ_Nd.c: Regenerated.
46301         * tests/unictype/test-categ_Nl.c: Regenerated.
46302         * tests/unictype/test-categ_No.c: Regenerated.
46303         * tests/unictype/test-categ_P.c: Regenerated.
46304         * tests/unictype/test-categ_Pd.c: Regenerated.
46305         * tests/unictype/test-categ_Pe.c: Regenerated.
46306         * tests/unictype/test-categ_Pf.c: Regenerated.
46307         * tests/unictype/test-categ_Pi.c: Regenerated.
46308         * tests/unictype/test-categ_Po.c: Regenerated.
46309         * tests/unictype/test-categ_Ps.c: Regenerated.
46310         * tests/unictype/test-categ_S.c: Regenerated.
46311         * tests/unictype/test-categ_Sk.c: Regenerated.
46312         * tests/unictype/test-categ_Sm.c: Regenerated.
46313         * tests/unictype/test-categ_So.c: Regenerated.
46314         * tests/unictype/test-ctype_alnum.c: Regenerated.
46315         * tests/unictype/test-ctype_alpha.c: Regenerated.
46316         * tests/unictype/test-ctype_graph.c: Regenerated.
46317         * tests/unictype/test-ctype_lower.c: Regenerated.
46318         * tests/unictype/test-ctype_print.c: Regenerated.
46319         * tests/unictype/test-ctype_punct.c: Regenerated.
46320         * tests/unictype/test-ctype_upper.c: Regenerated.
46321         * tests/unictype/test-decdigit.h: Regenerated.
46322         * tests/unictype/test-digit.h: Regenerated.
46323         * tests/unictype/test-numeric.h: Regenerated.
46324         * tests/unictype/test-pr_alphabetic.c: Regenerated.
46325         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
46326         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
46327         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
46328         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
46329         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
46330         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
46331         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
46332         * tests/unictype/test-pr_combining.c: Regenerated.
46333         * tests/unictype/test-pr_dash.c: Regenerated.
46334         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
46335         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
46336         * tests/unictype/test-pr_deprecated.c: Regenerated.
46337         * tests/unictype/test-pr_diacritic.c: Regenerated.
46338         * tests/unictype/test-pr_extender.c: Regenerated.
46339         * tests/unictype/test-pr_format_control.c: Regenerated.
46340         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
46341         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
46342         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
46343         * tests/unictype/test-pr_id_continue.c: Regenerated.
46344         * tests/unictype/test-pr_id_start.c: Regenerated.
46345         * tests/unictype/test-pr_ideographic.c: Regenerated.
46346         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
46347         * tests/unictype/test-pr_lowercase.c: Regenerated.
46348         * tests/unictype/test-pr_math.c: Regenerated.
46349         * tests/unictype/test-pr_numeric.c: Regenerated.
46350         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
46351         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
46352         Regenerated.
46353         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
46354         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
46355         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
46356         * tests/unictype/test-pr_other_math.c: Regenerated.
46357         * tests/unictype/test-pr_punctuation.c: Regenerated.
46358         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
46359         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
46360         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
46361         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
46362         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
46363         * tests/unictype/test-pr_uppercase.c: Regenerated.
46364         * tests/unictype/test-pr_xid_continue.c: Regenerated.
46365         * tests/unictype/test-pr_xid_start.c: Regenerated.
46366         * tests/unictype/test-pr_zero_width.c: Regenerated.
46367
46368         Update to Unicode 5.1.0.
46369         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
46370         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
46371         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
46372         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
46373         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
46374         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
46375         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
46376         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
46377         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
46378         (nonspacing_table_ind): Update.
46379         * tests/uniwidth/test-uc_width2.sh: Update expected result.
46380
46381         Update to Unicode 5.1.0.
46382         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
46383         code transform.
46384         * lib/uniname/uniname.c (unicode_character_name,
46385         unicode_name_character): Add the range 0x1Fxxx to the code transform.
46386         * lib/uniname/uninames.h: Regenerated.
46387         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
46388
46389 2009-02-07  Bruno Haible  <bruno@clisp.org>
46390
46391         Merge gen-ctype and gen-lbrk into a single program.
46392         * lib/gen-uni-tables.c: New file, incorporating
46393         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
46394         Add directory prefixes to the names of the generated files.
46395         * lib/unictype/gen-ctype.c: Remove file.
46396         * lib/unilbrk/gen-lbrk.c: Remove file.
46397         * modules/gen-uni-tables: New file.
46398         * modules/unictype/gen-ctype: Remove file.
46399         * modules/unilbrk/gen-lbrk: Remove file.
46400
46401 2009-02-07  Bruno Haible  <bruno@clisp.org>
46402
46403         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
46404
46405         New module 'unistr/u32-strcoll'.
46406         * modules/unistr/u32-strcoll: New file.
46407         * lib/unistr/u32-strcoll.c: New file.
46408
46409         New module 'unistr/u16-strcoll'.
46410         * modules/unistr/u16-strcoll: New file.
46411         * lib/unistr/u16-strcoll.c: New file.
46412
46413         New module 'unistr/u8-strcoll'.
46414         * modules/unistr/u8-strcoll: New file.
46415         * lib/unistr/u8-strcoll.c: New file.
46416         * lib/unistr/u-strcoll.h: New file.
46417
46418 2009-02-07  Bruno Haible  <bruno@clisp.org>
46419
46420         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
46421         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46422         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46423         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
46424         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
46425         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
46426
46427 2009-02-07  Bruno Haible  <bruno@clisp.org>
46428
46429         Make 64-bit clean.
46430         * lib/unictype/gen-ctype.c (output_predicate, output_category,
46431         output_combclass, output_bidi_category, output_decimal_digit,
46432         output_digit, output_numeric, output_mirror, output_scripts,
46433         output_ident_category): Use proper width specifier in format strings.
46434
46435 2009-02-07  Bruno Haible  <bruno@clisp.org>
46436
46437         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
46438         failure behaviour.
46439
46440 2009-02-07  Jim Meyering  <meyering@redhat.com>
46441
46442         regex: avoid compilation failure with upcoming gcc-4.4
46443         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
46444         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
46445         "... error: integer overflow in preprocessor expression".
46446
46447 2009-02-05  Ben Pfaff  <blp@gnu.org>
46448
46449         Fix link errors on Windows when close module is used.
46450         * modules/close: Add $(LIB_CLOSE) to Link section.
46451         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
46452         $(LIB_CLOSE) on Windows.
46453
46454 2009-02-05  Jim Meyering  <meyering@redhat.com>
46455
46456         still avoid unused-parameter warnings, but do it cleanly
46457         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
46458         (get_fs_usage): Cast to void instead.
46459         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
46460         (dev_from_mount_options, read_file_system_list): Cast to void.
46461         Prompted by Bruno Haible.
46462
46463 2009-02-04  Jim Meyering  <meyering@redhat.com>
46464
46465         fsusage.c: correct copyright year
46466         * lib/fsusage.c: Reflect year in which the change is pushed into
46467
46468         avoid misc. warnings
46469         * lib/fsusage.c (UNUSED_PARAM): Define.
46470         (get_fs_usage): Mark parameter "disk" as unused.
46471         * lib/getugroups.c (getgrent): Use "void" in prototype.
46472         * lib/mountlist.c: Mark unused parameters.
46473         (read_file_system_list): Declare a local with "const".
46474         * lib/nanosleep.c (getnow): Declare static.
46475         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
46476
46477         dirfd: set errno upon failure
46478         * lib/dirfd.c: Include <errno.h>.
46479         Set errno to ENOTSUP when returning -1.
46480         * modules/dirfd (Depends-on): Add errno.
46481         Suggested by John Kodis <kodis@comcast.net>.
46482
46483 2009-02-01  Bruno Haible  <bruno@clisp.org>
46484
46485         Don't assume sizeof (long) >= sizeof (void *).
46486         * lib/memcmp.c: Include stdint.h.
46487         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
46488         srcp2 to 'const byte *'.
46489         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
46490         types to uintptr_t.
46491         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
46492         * modules/memcmp (Depends-on): Add stdint.
46493         Reported by Ozkan Sezer <sezeroz@gmail.com>.
46494
46495 2009-01-30  Eric Blake  <ebb9@byu.net>
46496
46497         fix more require-before-expand issues
46498         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
46499         expand, AC_PROG_AWK.
46500         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
46501
46502 2009-01-28  Eric Blake  <ebb9@byu.net>
46503
46504         version-etc: use consistent URL formatting
46505         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
46506         Improve formatting.  Use fputs for string without %.
46507
46508 2009-01-28  Jim Meyering  <meyering@redhat.com>
46509
46510         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
46511         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
46512         "underquoted definition of NAME" from autoconf-2.59.
46513
46514 2009-01-28  Bruno Haible  <bruno@clisp.org>
46515
46516         * doc/gnulib.texi: Add "Obsolete modules" to index.
46517
46518 2009-01-28  Jim Meyering  <meyering@redhat.com>
46519
46520         useless-if-before-free: recognize more variants
46521         * build-aux/useless-if-before-free: Also recognize e.g.,
46522         if (NULL != p) free (p);
46523
46524 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
46525
46526         test-getaddrinfo: skip (don't fail) this test when there's no network
46527         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
46528         on the presumption that it means you lack network access.
46529
46530 2009-01-26  Jim Meyering  <meyering@redhat.com>
46531
46532         fflush: avoid warnings on modern systems
46533         * lib/fflush.c (rpl_fflush): Move declarations of locals,
46534         pos and result, into scopes where they're used.
46535
46536 2009-01-26  Eric Blake  <ebb9@byu.net>
46537
46538         Silence warning reintroduced by recent extensions patch.
46539         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
46540         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
46541         autoconf.
46542
46543         Backport improved autoconf semantics of AC_DEFUN_ONCE.
46544         * m4/00gnulib.m4: New file.
46545         * gnulib-tool (func_get_filelist): Always use it.
46546         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
46547         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
46548
46549 2009-01-25  Bruno Haible  <bruno@clisp.org>
46550
46551         Make test-quotearg work on MacOS X and AIX.
46552         * tests/test-quotearg.sh: New file.
46553         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
46554         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
46555         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
46556         include <libintl.h>.
46557         (fake_locale): Remove variable.
46558         (gettext, dgettext, dcgettext): Remove functions.
46559         (main): Instead of setting a fake locale, set a real locale. Call
46560         textdomain and bindtextdomain.
46561         * modules/quotearg-tests (Files): Add the new files.
46562         (Depends-on): Add gettext, setenv, unsetenv.
46563         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
46564         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
46565         Augment TESTS_ENVIRONMENT.
46566
46567 2009-01-25  Bruno Haible  <bruno@clisp.org>
46568
46569         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
46570         fr_FR.ISO8859-1 locale on MacOS X.
46571         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
46572         ja_JP.eucJP locale on MacOS X.
46573         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
46574         zh_CN.GB18030 locale on MacOS X.
46575
46576 2009-01-25  Bruno Haible  <bruno@clisp.org>
46577
46578         Avoid link errors on MacOS X 10.3.
46579         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
46580         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
46581
46582 2009-01-25  Bruno Haible  <bruno@clisp.org>
46583
46584         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46585         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
46586         * modules/pipe (Files): Remove m4/posix_spawn.m4.
46587         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46588         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
46589         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46590         posix_spawnattr_init, posix_spawnattr_setsigmask,
46591         posix_spawnattr_setflags, posix_spawnattr_destroy.
46592
46593         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46594         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
46595         * modules/execute (Files): Remove m4/posix_spawn.m4.
46596         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46597         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46598         posix_spawnattr_init, posix_spawnattr_setsigmask,
46599         posix_spawnattr_setflags, posix_spawnattr_destroy.
46600
46601 2009-01-25  Bruno Haible  <bruno@clisp.org>
46602
46603         * lib/glthread/threadlib.c: Include <stdlib.h>.
46604
46605 2009-01-25  Bruno Haible  <bruno@clisp.org>
46606
46607         * lib/glthread/threadlib.c (dummy): New declaration.
46608
46609 2009-01-25  Bruno Haible  <bruno@clisp.org>
46610
46611         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
46612         multibyte characters also for the GB18030 encoding. Don't crash when
46613         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
46614
46615 2009-01-25  Bruno Haible  <bruno@clisp.org>
46616
46617         Avoid redefining 'struct random_data' on OSF/1 5.1.
46618         * lib/stdlib.in.h: Include <random.h> if it exists.
46619         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
46620         HAVE_RANDOM_H. Include <random.h> when testing whether
46621         'struct random_data' exists.
46622         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
46623
46624 2009-01-25  Bruno Haible  <bruno@clisp.org>
46625
46626         Don't install charset.alias on MacOS X >= 10.3.
46627         * lib/localcharset.c (DARWIN7): New macro.
46628         (get_charset_aliases): Hardcode the result for Darwin7.
46629         * modules/localcharset (install-exec-local): Don't install
46630         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
46631
46632 2009-01-25  Bruno Haible  <bruno@clisp.org>
46633
46634         Don't install charset.alias on mingw and Cygwin.
46635         * modules/localcharset (install-exec-local): Don't install
46636         charset.alias on mingw and Cygwin, if the file does not yet exist.
46637         The result for these platforms is hardcoded in localcharset.c.
46638
46639 2009-01-25  Bruno Haible  <bruno@clisp.org>
46640
46641         Make it possible again to use AC_GNU_SOURCE together with gnulib.
46642         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
46643         before requiring AC_USE_SYSTEM_EXTENSIONS.
46644
46645 2009-01-25  Jim Meyering  <meyering@redhat.com>
46646
46647         c-strtod: avoid warnings
46648         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
46649         "assignment discards qualifiers from pointer target type" warnings.
46650
46651 2009-01-24  Bruno Haible  <bruno@clisp.org>
46652
46653         Add support for non-UTF-8 locales on MacOS X.
46654         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
46655         canonical encodings. For Darwin 7 and newer, don't map traditional
46656         encodings to UTF-8.
46657         Reported by Vincent Lefevre <vincent@vinc17.org>
46658         at <http://savannah.gnu.org/bugs/?25235>.
46659
46660 2009-01-24  Bruno Haible  <bruno@clisp.org>
46661
46662         * doc/gnulib.texi (Obsolete modules): New section.
46663         Reported by Mike Frysinger <vapier@gentoo.org>.
46664
46665 2009-01-24  Bruno Haible  <bruno@clisp.org>
46666
46667         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
46668         (%.dvi): New rule.
46669
46670 2009-01-24  Bruno Haible  <bruno@clisp.org>
46671
46672         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
46673         Reported by Eric Blake.
46674
46675 2009-01-24  Bruno Haible  <bruno@clisp.org>
46676
46677         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
46678         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
46679         Reported by Gary V. Vaughan <gary@gnu.org>.
46680
46681 2009-01-24  Bruno Haible  <bruno@clisp.org>
46682
46683         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
46684
46685 2009-01-23  Bruno Haible  <bruno@clisp.org>
46686
46687         Make c-strtod, c-strtold usable in libraries.
46688         * lib/c-strtod.c: Include string.h instead of xalloc.h.
46689         (C_STRTOD): Call strdup instead of xstrdup.
46690         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
46691         * modules/c-strtold (Depends-on): Likewise.
46692         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
46693         * NEWS: Mention the change.
46694         Reported by Michael Gold <mgold@ncf.ca>.
46695
46696 2009-01-23  Jim Meyering  <meyering@redhat.com>
46697
46698         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
46699         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
46700         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
46701
46702 2009-01-23  Simon Josefsson  <simon@josefsson.org>
46703
46704         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
46705         GNU CoreUtils.
46706         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
46707         * modules/version-etc (Description): Update.
46708
46709 2009-01-22  Bruno Haible  <bruno@clisp.org>
46710
46711         Cache the C locale object.
46712         * lib/c-strtod.c (c_locale_cache): New variable.
46713         (c_locale): New function.
46714         (C_STRTOD): Use it, and don't call freelocale.
46715         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
46716         Suggested by Paolo Bonzini.
46717
46718 2009-01-21  Bruno Haible  <bruno@clisp.org>
46719
46720         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
46721         conditions other than overflow.
46722
46723 2009-01-21  Bruno Haible  <bruno@clisp.org>
46724
46725         * lib/c-strtod.c: Include errno.h.
46726         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
46727         value from STRTOD_L and STRTOD.
46728
46729 2009-01-21  Bruno Haible  <bruno@clisp.org>
46730         and Jim Meyering  <meyering@redhat.com>
46731
46732         nanosleep: skip configure test (fail it) for apple universal builds
46733         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
46734         universal builds, assume that nanosleep does not work.
46735         * modules/nanosleep (Depends-on): Add multiarch.
46736
46737         mktime: skip configure test (fail it) for apple universal builds
46738         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
46739         universal builds, assume that mktime does not work.
46740         * modules/mktime (Depends-on): Add multiarch.
46741
46742 2009-01-21  Eric Blake  <ebb9@byu.net>
46743
46744         multiarch: avoid expand-before-require warning
46745         * modules/multiarch (configure.ac): Require, rather than expand,
46746         gl_MULTIARCH.
46747         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
46748         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
46749         enforce that all clients require it.  Partial reversion of
46750         2008-12-29 patch.
46751
46752         error: avoid expand-before-require warning
46753         * modules/errno (configure.ac): Require, rather than expand,
46754         gl_HEADER_ERRNO_H.
46755         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
46756         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
46757         enforce that all clients require it.
46758
46759         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
46760         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
46761         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
46762         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
46763
46764 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
46765
46766         Revert:
46767         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
46768
46769         regex: do not depend on obsolete modules.
46770         * modules/regex: Remove memcmp and memmove.
46771
46772 2009-01-20  Bruno Haible  <bruno@clisp.org>
46773
46774         Make the 'link' module link on Windows NT 4.
46775         * lib/link.c (_WIN32_WINNT): Don't define.
46776         (CreateHardLinkFuncType): New type.
46777         (CreateHardLinkFunc, initialized): New variables.
46778         (initialize): New function.
46779         (link): Invoke CreateHardLink indirectly through the function pointer.
46780
46781 2009-01-20  Bruno Haible  <bruno@clisp.org>
46782
46783         Fix compilation failure on mingw.
46784         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
46785
46786 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
46787
46788         * doc/c-strtod.texi: Mention a couple of restrictions.
46789
46790 2009-01-20  Jim Meyering  <meyering@redhat.com>
46791
46792         gettimeofday: move more declarations out of functions
46793         * lib/gettimeofday.c: Move extern declarations of tzset and
46794         gmtime out of containing functions.  Prompted by Bruno Haible.
46795
46796 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
46797
46798         regex: do not depend on obsolete modules.
46799         * modules/regex: Remove memcmp and memmove.
46800
46801 2009-01-19  Bruno Haible  <bruno@clisp.org>
46802
46803         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
46804         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
46805         gl_BIGENDIAN, not AC_C_BIGENDIAN.
46806         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
46807         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
46808
46809 2009-01-19  Bruno Haible  <bruno@clisp.org>
46810
46811         * tests/test-link.c: Include <errno.h>.
46812         (main): Exit with code 77 when a hard link cannot be created due to
46813         the file system.
46814         * tests/test-link.sh: Skip test when a hard link cannot be created due
46815         to the file system.
46816         Suggested by Eric Blake.
46817
46818 2009-01-19  Martin Lambers  <marlam@marlam.de>
46819
46820         * modules/link-tests: New file.
46821         * tests/test-link.sh: New file.
46822         * tests/test-link.c: New file.
46823
46824 2009-01-19  Eric Blake  <ebb9@byu.net>
46825
46826         doc: mention another function added in cygwin 1.7.0
46827         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
46828         Another new function in cygwin 1.7.
46829
46830 2009-01-19  Bruno Haible  <bruno@clisp.org>
46831
46832         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
46833         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
46834         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
46835         gl_BIGENDIAN, not AC_C_BIGENDIAN.
46836         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
46837         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
46838         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
46839         * m4/md4.m4 (gl_MD4): Likewise.
46840         * m4/md5.m4 (gl_MD5): Likewise.
46841         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
46842         * m4/sha1.m4 (gl_SHA1): Likewise.
46843         * m4/sha256.m4 (gl_SHA256): Likewise.
46844         * m4/sha512.m4 (gl_SHA512): Likewise.
46845
46846 2009-01-19  Bruno Haible  <bruno@clisp.org>
46847
46848         * modules/uniname/uniname-tests (Depends-on): Add progname.
46849         * tests/uniname/test-uninames.c: Include progname.h.
46850         (main): Call set_program_name.
46851
46852         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
46853         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
46854         (main): Call set_program_name.
46855
46856         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
46857         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
46858         (main): Call set_program_name.
46859
46860         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
46861         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
46862         (main): Call set_program_name.
46863
46864         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
46865         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
46866         (main): Call set_program_name.
46867
46868         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
46869         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
46870         (main): Call set_program_name.
46871
46872         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
46873         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
46874         (main): Call set_program_name.
46875
46876         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
46877         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
46878         (main): Call set_program_name.
46879
46880         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
46881         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
46882         (main): Call set_program_name.
46883
46884 2009-01-19  Eric Blake  <ebb9@byu.net>
46885
46886         test-unistd: test previous patch
46887         * tests/test-unistd.c: Test *_FILENO macros.
46888
46889         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
46890         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
46891         Guarantee a definition.
46892         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
46893         * modules/unistd-safer (Depends-on): Add dependency on unistd.
46894         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
46895         * lib/dup-safer.c (STDERR_FILENO): Likewise.
46896         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
46897         Likewise.
46898         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
46899         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
46900         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
46901         Likewise.
46902         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
46903         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
46904         (STDERR_FILENO): Likewise.
46905         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
46906         (STDERR_FILENO): Likewise.
46907         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
46908         (STDERR_FILENO): Likewise.
46909         Reported by Elbert Pol.
46910
46911 2009-01-19  Eric Blake  <ebb9@byu.net>
46912
46913         doc: mention more functions added in cygwin 1.7.0
46914         * doc/posix-functions/abort.texi (abort): Update wording related
46915         to cygwin.
46916         * doc/posix-functions/daylight.texi (daylight): Likewise.
46917         * doc/posix-functions/optarg.texi (optarg): Likewise.
46918         * doc/posix-functions/optarg.texi (opterr): Likewise.
46919         * doc/posix-functions/optarg.texi (optind): Likewise.
46920         * doc/posix-functions/optarg.texi (optopt): Likewise.
46921         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
46922         worked in 1.5.x, and was withdrawn in 1.7.
46923         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
46924         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
46925         cygwin versions.
46926         * doc/posix-functions/perror.texi (perror): Likewise.
46927         * doc/posix-functions/printf.texi (printf): Likewise.
46928         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
46929         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
46930         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
46931         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
46932         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
46933         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
46934         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
46935         Likewise.
46936         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
46937         Likewise.
46938         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
46939         this function.
46940         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
46941         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
46942         Likewise.
46943         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
46944         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
46945         * doc/posix-functions/confstr.texi (confstr): Likewise.
46946         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
46947         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
46948         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
46949         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
46950         * doc/posix-functions/fputws.texi (fputws): Likewise.
46951         * doc/posix-functions/fwide.texi (fwide): Likewise.
46952         * doc/posix-functions/getwc.texi (getwc): Likewise.
46953         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
46954         * doc/posix-functions/putwc.texi (putwc): Likewise.
46955         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
46956         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
46957         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
46958         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
46959         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
46960         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
46961         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
46962         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
46963         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
46964         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
46965         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
46966
46967 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
46968
46969         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
46970         * lib/ioctl.c: Include <sys/ioctl.h>.
46971
46972 2009-01-19  Simon Josefsson  <simon@josefsson.org>
46973
46974         * modules/getdate-tests (Depends-on): Add progname.
46975         * tests/test-getdate.c: Use progname module, to avoid link errors
46976         on non-glibc systems.
46977
46978 2009-01-18  Simon Josefsson  <simon@josefsson.org>
46979
46980         * modules/filenamecat-tests (Depends-on): Add progname.
46981         * modules/fstrcmp-tests (Depends-on): Likewise.
46982
46983         * tests/test-filenamecat.c: Use progname module, to avoid link
46984         errors on non-glibc systems.
46985         * tests/test-fstrcmp.c: Likewise.
46986
46987 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
46988
46989         gettimeofday: avoid warning: nested extern declaration of 'localtime'
46990         * lib/gettimeofday.c: Move extern declaration out of function.
46991
46992 2009-01-18  Bruno Haible  <bruno@clisp.org>
46993
46994         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
46995         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
46996         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
46997
46998 2009-01-18  Bruno Haible  <bruno@clisp.org>
46999
47000         * lib/strftime.c (MEMPCPY): Remove unused macro.
47001         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
47002
47003 2009-01-18  Martin Lambers  <marlam@marlam.de>
47004
47005         New module 'link'.
47006         * lib/unistd.in.h (link): New declaration.
47007         * lib/link.c: New file.
47008         * m4/link.m4: New file.
47009         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
47010         HAVE_LINK.
47011         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
47012         * modules/link: New file.
47013         * doc/posix-functions/link.texi: Mention the new module.
47014
47015 2009-01-18  Bruno Haible  <bruno@clisp.org>
47016
47017         * tests/test-avltree_list.c (main): Call set_program_name.
47018         * tests/test-avltree_oset.c (main): Likewise.
47019         * tests/test-obstack-printf.c: Include progname.h.
47020         (main): Call set_program_name.
47021         * tests/test-quotearg.c: Include progname.h.
47022         (main): Call set_program_name.
47023         * tests/test-xmemdup0.c: Include progname.h.
47024         (main): Call set_program_name.
47025
47026 2009-01-18  Bruno Haible  <bruno@clisp.org>
47027
47028         New module 'alphasort'.
47029         * lib/dirent.in.h (alphasort): New declaration.
47030         * lib/alphasort.c: New file, from glibc with modifications.
47031         * m4/alphasort.m4: New file.
47032         * modules/alphasort: New file.
47033         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
47034         HAVE_ALPHASORT.
47035         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
47036         HAVE_ALPHASORT.
47037         * doc/posix-functions/alphasort.texi: Mention the new module and the
47038         portability problems.
47039
47040 2009-01-18  Bruno Haible  <bruno@clisp.org>
47041
47042         New module 'scandir'.
47043         * lib/dirent.in.h (scandir): New declaration.
47044         * lib/scandir.c: New file, from glibc with modifications.
47045         * m4/scandir.m4: New file.
47046         * modules/scandir: New file.
47047         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
47048         HAVE_SCANDIR.
47049         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
47050         HAVE_SCANDIR.
47051         * doc/posix-functions/scandir.texi: Mention the new module and the
47052         portability problems.
47053
47054 2009-01-17  Bruno Haible  <bruno@clisp.org>
47055
47056         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
47057         Update documentation.
47058         (func_remove_suffix): Escape all dots in the suffix. Update
47059         documentation.
47060         (func_filter_filelist): Update documentation.
47061         Reported by Ralf Wildenhues.
47062
47063 2009-01-17  Bruno Haible  <bruno@clisp.org>
47064
47065         * modules/dprintf-posix-tests: New file.
47066         * tests/test-dprintf-posix.sh: New file.
47067         * tests/test-dprintf-posix.c: New file.
47068
47069         New modules 'dprintf', 'dprintf-posix'.
47070         * lib/stdio.in.h (dprintf): New declaration.
47071         * lib/dprintf.c: New file.
47072         * m4/dprintf.m4: New file.
47073         * m4/dprintf-posix.m4: New file.
47074         * modules/dprintf: New file.
47075         * modules/dprintf-posix: New file.
47076         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
47077         HAVE_DPRINTF, REPLACE_DPRINTF.
47078         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
47079         HAVE_DPRINTF, REPLACE_DPRINTF.
47080         * doc/posix-functions/dprintf.texi: Mention the new modules.
47081
47082 2009-01-17  Bruno Haible  <bruno@clisp.org>
47083
47084         * modules/vdprintf-posix-tests: New file.
47085         * tests/test-vdprintf-posix.sh: New file.
47086         * tests/test-vdprintf-posix.c: New file.
47087
47088         New modules 'vdprintf', 'vdprintf-posix'.
47089         * lib/stdio.in.h (vdprintf): New declaration.
47090         * lib/vdprintf.c: New file.
47091         * m4/vdprintf.m4: New file.
47092         * m4/vdprintf-posix.m4: New file.
47093         * modules/vdprintf: New file.
47094         * modules/vdprintf-posix: New file.
47095         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
47096         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47097         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
47098         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47099         * doc/posix-functions/vdprintf.texi: Mention the new modules.
47100
47101 2009-01-17  Bruno Haible  <bruno@clisp.org>
47102
47103         Fix replacement of fopen on mingw.
47104         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
47105         mingw.
47106
47107 2009-01-17  Bruno Haible  <bruno@clisp.org>
47108
47109         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
47110         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
47111
47112 2009-01-17  Bruno Haible  <bruno@clisp.org>
47113
47114         Avoid test-fflush2.sh failure on mingw.
47115         * tests/test-fflush2.c: Include binary-io.h.
47116         (main): Put standard input into binary mode.
47117         * modules/fflush-tests (Depends-on): Add binary-io.
47118
47119 2009-01-17  Bruno Haible  <bruno@clisp.org>
47120
47121         * lib/wchar.in.h: In another particular situation, include only the
47122         system's <wchar.h> file.
47123         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
47124         Reported by Albert Chin-A-Young <china@thewrittenword.com>
47125         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
47126
47127 2009-01-17  Bruno Haible  <bruno@clisp.org>
47128
47129         Support for stripping executables in --enable-relocatable.
47130         * build-aux/install-reloc: Expect one more argument, or an environment
47131         variable RELOC_STRIP_PROG. If set, strip the destination program and
47132         its wrapper.
47133         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
47134         RELOC_STRIP_PROG.
47135         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
47136         to set RELOCATABLE_STRIP.
47137         * NEWS: Mention the new Makefile requirement.
47138
47139 2009-01-17  Bruno Haible  <bruno@clisp.org>
47140
47141         * build-aux/install-reloc: Remove debugging information left over by
47142         C compiler on MacOS X.
47143
47144 2009-01-17  Bruno Haible  <bruno@clisp.org>
47145
47146         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
47147         * lib/progreloc.c (find_executable): Fix type of pointer passed to
47148         _NSGetExecutablePath.
47149
47150 2009-01-16  Jim Meyering  <meyering@redhat.com>
47151
47152         strerror: avoid warnings about discarding "const"
47153         * lib/strerror.c (rpl_strerror): Instead of returning a const
47154         string from each and every "case", use a variable, and add a single
47155         cast after the switch.
47156
47157 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
47158
47159         * lib/arpa_inet.in.h: Add extern "C" block for C++.
47160
47161 2009-01-16  Bruno Haible  <bruno@clisp.org>
47162
47163         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
47164         array initializer syntax that also works in C++ mode.
47165         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47166
47167 2009-01-16  Jim Meyering  <meyering@redhat.com>
47168
47169         poll: suppress a warning
47170         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
47171         to ignore "...unsigned expression < 0 is always false" warnings.
47172
47173 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
47174
47175         poll: remove declarations of unused variables
47176         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
47177         sockbuf and optlen.
47178
47179 2009-01-15  Bruno Haible  <bruno@clisp.org>
47180
47181         Make fflush-after-ungetc POSIX compliant on BSD systems.
47182         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
47183         (clear_ungetc_buffer): Implement also for other systems.
47184         (rpl_fflush): On glibc systems, invoke
47185         clear_ungetc_buffer_preserving_position. Otherwise, invoke
47186         clear_ungetc_buffer after fetching the stream's position, not before.
47187
47188 2009-01-15  Bruno Haible  <bruno@clisp.org>
47189
47190         Make fflush-after-ungetc POSIX compliant on glibc systems.
47191         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
47192         after ungetc.
47193         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
47194         (rpl_fflush): On glibc systems, simply call the system's fflush
47195         function after clearing the ungetc buffer.
47196         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
47197         Instead, lseek only to the end of file, then use the system's fseeko
47198         for the rest. On glibc systems, reset the EOF indicator bit.
47199
47200 2009-01-15  Jim Meyering  <meyering@redhat.com>
47201
47202         openmp.m4: revert quote-adding change, for portability to older autoconf
47203         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
47204         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
47205         Simon Josefsson noticed the problem when using autoconf-2.61.
47206
47207 2009-01-15  Bruno Haible  <bruno@clisp.org>
47208
47209         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
47210         * tests/test-fflush2.c (ASSERT): Always fail.
47211         (main): Add two tests for fflush() after ungetc(), taking into account
47212         the Austin Group's clarification.
47213         Suggested by Eric Blake.
47214
47215 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
47216
47217         mktime.m4: remove K&R-style function prototypes
47218         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
47219         for the Sun C++ compiler.
47220
47221 2009-01-14  Bruno Haible  <bruno@clisp.org>
47222
47223         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
47224         while including <wchar.h>.
47225         * lib/wchar.in.h: In two particular situations on HP-UX, include only
47226         the system's <wchar.h> file.
47227         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47228
47229 2009-01-14  Bruno Haible  <bruno@clisp.org>
47230
47231         * m4/csharp.m4: Don't mention gettext on the serial number line.
47232         * m4/csharpexec.m4: Likewise.
47233         * m4/eaccess.m4: Likewise.
47234         * m4/javaexec.m4: Likewise.
47235         * m4/sig_atomic_t.m4: Likewise.
47236         * m4/tmpdir.m4: Likewise.
47237         * m4/intldir.m4: Bump gettext version.
47238         * m4/lib-ld.m4: Likewise.
47239
47240 2009-01-14  Bruno Haible  <bruno@clisp.org>
47241
47242         * lib/progname.c (set_program_name): Add more comments.
47243         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
47244
47245 2009-01-14  Simon Josefsson  <simon@josefsson.org>
47246
47247         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
47248         were sys/stat.h does not define it.
47249
47250 2009-01-14  Jim Meyering  <meyering@redhat.com>
47251
47252         many *.m4 files: improve m4 quoting
47253         99% of this change was performed by running the following commands:
47254         git ls-files | grep '\.m4$' | xargs perl -pi \
47255           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
47256           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47257           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47258           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
47259         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
47260         The remainder were to add Copyright dates, increment serial numbers,
47261         undo some changes in comments, exclude m4/intl.m4, and add quotes
47262         around the "1" in ",1" where the unusual spacing prohibited the
47263         above regexps from doing the job.  For more details, see
47264         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
47265         * m4/acl.m4: Modified.
47266         * m4/afs.m4: Likewise.
47267         * m4/alloca.m4: Likewise.
47268         * m4/argp.m4: Likewise.
47269         * m4/argz.m4: Likewise.
47270         * m4/atexit.m4: Likewise.
47271         * m4/bison-i18n.m4: Likewise.
47272         * m4/bison.m4: Likewise.
47273         * m4/byteswap.m4: Likewise.
47274         * m4/c-stack.m4: Likewise.
47275         * m4/c-strtod.m4: Likewise.
47276         * m4/calloc.m4: Likewise.
47277         * m4/canonicalize-lgpl.m4: Likewise.
47278         * m4/chown.m4: Likewise.
47279         * m4/clock_time.m4: Likewise.
47280         * m4/codeset.m4: Likewise.
47281         * m4/copy-file.m4: Likewise.
47282         * m4/csharp.m4: Likewise.
47283         * m4/csharpcomp.m4: Likewise.
47284         * m4/csharpexec.m4: Likewise.
47285         * m4/d-ino.m4: Likewise.
47286         * m4/d-type.m4: Likewise.
47287         * m4/dirfd.m4: Likewise.
47288         * m4/double-slash-root.m4: Likewise.
47289         * m4/eaccess.m4: Likewise.
47290         * m4/eealloc.m4: Likewise.
47291         * m4/environ.m4: Likewise.
47292         * m4/errno_h.m4: Likewise.
47293         * m4/euidaccess.m4: Likewise.
47294         * m4/execute.m4: Likewise.
47295         * m4/fatal-signal.m4: Likewise.
47296         * m4/fchdir.m4: Likewise.
47297         * m4/fcntl_h.m4: Likewise.
47298         * m4/fileblocks.m4: Likewise.
47299         * m4/filenamecat.m4: Likewise.
47300         * m4/findprog.m4: Likewise.
47301         * m4/flexmember.m4: Likewise.
47302         * m4/fnmatch.m4: Likewise.
47303         * m4/fopen.m4: Likewise.
47304         * m4/fpending.m4: Likewise.
47305         * m4/fprintf-posix.m4: Likewise.
47306         * m4/free.m4: Likewise.
47307         * m4/frexp.m4: Likewise.
47308         * m4/frexpl.m4: Likewise.
47309         * m4/fsusage.m4: Likewise.
47310         * m4/ftruncate.m4: Likewise.
47311         * m4/gc-camellia.m4: Likewise.
47312         * m4/gc-random.m4: Likewise.
47313         * m4/gc.m4: Likewise.
47314         * m4/getaddrinfo.m4: Likewise.
47315         * m4/getcwd-abort-bug.m4: Likewise.
47316         * m4/getcwd-path-max.m4: Likewise.
47317         * m4/getdate.m4: Likewise.
47318         * m4/getdomainname.m4: Likewise.
47319         * m4/getgroups.m4: Likewise.
47320         * m4/gethostname.m4: Likewise.
47321         * m4/gethrxtime.m4: Likewise.
47322         * m4/getline.m4: Likewise.
47323         * m4/getloadavg.m4: Likewise.
47324         * m4/getndelim2.m4: Likewise.
47325         * m4/getpass.m4: Likewise.
47326         * m4/gettext.m4: Likewise.
47327         * m4/gettime.m4: Likewise.
47328         * m4/gettimeofday.m4: Likewise.
47329         * m4/gnulib-common.m4: Likewise.
47330         * m4/group-member.m4: Likewise.
47331         * m4/host-os.m4: Likewise.
47332         * m4/iconv.m4: Likewise.
47333         * m4/iconv_open.m4: Likewise.
47334         * m4/inet_ntop.m4: Likewise.
47335         * m4/inet_pton.m4: Likewise.
47336         * m4/inline.m4: Likewise.
47337         * m4/intldir.m4: Likewise.
47338         * m4/intlmacosx.m4: Likewise.
47339         * m4/intmax.m4: Likewise.
47340         * m4/intmax_t.m4: Likewise.
47341         * m4/inttypes.m4: Likewise.
47342         * m4/inttypes_h.m4: Likewise.
47343         * m4/inttypes-pri.m4: Likewise.
47344         * m4/isapipe.m4: Likewise.
47345         * m4/isnand.m4: Likewise.
47346         * m4/isnanf.m4: Likewise.
47347         * m4/isnanl.m4: Likewise.
47348         * m4/javacomp.m4: Likewise.
47349         * m4/javaexec.m4: Likewise.
47350         * m4/jm-winsz1.m4: Likewise.
47351         * m4/jm-winsz2.m4: Likewise.
47352         * m4/lchown.m4: Likewise.
47353         * m4/lcmessage.m4: Likewise.
47354         * m4/ldexpl.m4: Likewise.
47355         * m4/lib-ld.m4: Likewise.
47356         * m4/lib-link.m4: Likewise.
47357         * m4/libsigsegv.m4: Likewise.
47358         * m4/link-follow.m4: Likewise.
47359         * m4/localcharset.m4: Likewise.
47360         * m4/locale-fr.m4: Likewise.
47361         * m4/locale-ja.m4: Likewise.
47362         * m4/locale-tr.m4: Likewise.
47363         * m4/locale-zh.m4: Likewise.
47364         * m4/lock.m4: Likewise.
47365         * m4/longlong.m4: Likewise.
47366         * m4/ls-mntd-fs.m4: Likewise.
47367         * m4/lstat.m4: Likewise.
47368         * m4/malloc.m4: Likewise.
47369         * m4/mathl.m4: Likewise.
47370         * m4/mbrtowc.m4: Likewise.
47371         * m4/mbstate_t.m4: Likewise.
47372         * m4/mbswidth.m4: Likewise.
47373         * m4/memchr.m4: Likewise.
47374         * m4/memcmp.m4: Likewise.
47375         * m4/memcpy.m4: Likewise.
47376         * m4/memmem.m4: Likewise.
47377         * m4/memmove.m4: Likewise.
47378         * m4/mempcpy.m4: Likewise.
47379         * m4/memrchr.m4: Likewise.
47380         * m4/memset.m4: Likewise.
47381         * m4/minmax.m4: Likewise.
47382         * m4/mkdir-slash.m4: Likewise.
47383         * m4/mkdtemp.m4: Likewise.
47384         * m4/mktime.m4: Likewise.
47385         * m4/mmap-anon.m4: Likewise.
47386         * m4/mountlist.m4: Likewise.
47387         * m4/nanosleep.m4: Likewise.
47388         * m4/nls.m4: Likewise.
47389         * m4/nocrash.m4: Likewise.
47390         * m4/open.m4: Likewise.
47391         * m4/openat.m4: Likewise.
47392         * m4/openmp.m4: Likewise.
47393         * m4/pathmax.m4: Likewise.
47394         * m4/perl.m4: Likewise.
47395         * m4/physmem.m4: Likewise.
47396         * m4/pipe.m4: Likewise.
47397         * m4/po.m4: Likewise.
47398         * m4/poll.m4: Likewise.
47399         * m4/posixtm.m4: Likewise.
47400         * m4/posixver.m4: Likewise.
47401         * m4/printf-frexp.m4: Likewise.
47402         * m4/printf-frexpl.m4: Likewise.
47403         * m4/printf-posix.m4: Likewise.
47404         * m4/printf-posix-rpl.m4: Likewise.
47405         * m4/printf.m4: Likewise.
47406         * m4/progtest.m4: Likewise.
47407         * m4/putenv.m4: Likewise.
47408         * m4/readline.m4: Likewise.
47409         * m4/readlink.m4: Likewise.
47410         * m4/readutmp.m4: Likewise.
47411         * m4/realloc.m4: Likewise.
47412         * m4/regex.m4: Likewise.
47413         * m4/relocatable.m4: Likewise.
47414         * m4/relocatable-lib.m4: Likewise.
47415         * m4/rename-dest-slash.m4: Likewise.
47416         * m4/rename.m4: Likewise.
47417         * m4/rmdir-errno.m4: Likewise.
47418         * m4/rmdir.m4: Likewise.
47419         * m4/roundf.m4: Likewise.
47420         * m4/roundl.m4: Likewise.
47421         * m4/rpmatch.m4: Likewise.
47422         * m4/save-cwd.m4: Likewise.
47423         * m4/selinux-selinux-h.m4: Likewise.
47424         * m4/setenv.m4: Likewise.
47425         * m4/settime.m4: Likewise.
47426         * m4/sig2str.m4: Likewise.
47427         * m4/sig_atomic_t.m4: Likewise.
47428         * m4/signalblocking.m4: Likewise.
47429         * m4/signbit.m4: Likewise.
47430         * m4/sigpipe.m4: Likewise.
47431         * m4/sockets.m4: Likewise.
47432         * m4/sockpfaf.m4: Likewise.
47433         * m4/st_dm_mode.m4: Likewise.
47434         * m4/stat-time.m4: Likewise.
47435         * m4/stdbool.m4: Likewise.
47436         * m4/stdint.m4: Likewise.
47437         * m4/stdint_h.m4: Likewise.
47438         * m4/stpcpy.m4: Likewise.
47439         * m4/stpncpy.m4: Likewise.
47440         * m4/strcase.m4: Likewise.
47441         * m4/strchrnul.m4: Likewise.
47442         * m4/strcspn.m4: Likewise.
47443         * m4/strdup.m4: Likewise.
47444         * m4/strftime.m4: Likewise.
47445         * m4/strndup.m4: Likewise.
47446         * m4/strnlen.m4: Likewise.
47447         * m4/strpbrk.m4: Likewise.
47448         * m4/strptime.m4: Likewise.
47449         * m4/strsep.m4: Likewise.
47450         * m4/strtod.m4: Likewise.
47451         * m4/strtoimax.m4: Likewise.
47452         * m4/strtok_r.m4: Likewise.
47453         * m4/strtol.m4: Likewise.
47454         * m4/strtoll.m4: Likewise.
47455         * m4/strtoul.m4: Likewise.
47456         * m4/strtoull.m4: Likewise.
47457         * m4/strtoumax.m4: Likewise.
47458         * m4/strverscmp.m4: Likewise.
47459         * m4/threadlib.m4: Likewise.
47460         * m4/timegm.m4: Likewise.
47461         * m4/tm_gmtoff.m4: Likewise.
47462         * m4/tmpdir.m4: Likewise.
47463         * m4/tmpfile.m4: Likewise.
47464         * m4/tzset.m4: Likewise.
47465         * m4/uintmax_t.m4: Likewise.
47466         * m4/unlinkdir.m4: Likewise.
47467         * m4/unlocked-io.m4: Likewise.
47468         * m4/uptime.m4: Likewise.
47469         * m4/userspec.m4: Likewise.
47470         * m4/utimbuf.m4: Likewise.
47471         * m4/utime.m4: Likewise.
47472         * m4/utimes-null.m4: Likewise.
47473         * m4/utimes.m4: Likewise.
47474         * m4/vararrays.m4: Likewise.
47475         * m4/vasnprintf.m4: Likewise.
47476         * m4/vfprintf-posix.m4: Likewise.
47477         * m4/vprintf-posix.m4: Likewise.
47478         * m4/wait-process.m4: Likewise.
47479         * m4/wchar_t.m4: Likewise.
47480         * m4/wint_t.m4: Likewise.
47481         * m4/write-any-file.m4: Likewise.
47482         * m4/yield.m4: Likewise.
47483
47484 2009-01-13  Bruno Haible  <bruno@clisp.org>
47485
47486         Avoid test-copy-file.sh failures when ACL support insufficient.
47487         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
47488         TESTS_ENVIRONMENT.
47489         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
47490         Reported by Jim Meyering.
47491
47492 2009-01-13  Bruno Haible  <bruno@clisp.org>
47493
47494         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
47495         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
47496         * modules/unistdio/u8-printf-parse (Files): Likewise.
47497         * modules/unistdio/u32-printf-parse (Files): Likewise.
47498         * modules/unistdio/ulc-printf-parse (Files): Likewise.
47499
47500 2009-01-13  Simon Josefsson  <simon@josefsson.org>
47501
47502         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
47503         and m4/inttypes_h.m4 too.
47504
47505 2009-01-12  Eric Blake  <ebb9@byu.net>
47506
47507         tests: IRIX 6.2 cc can't compile -0.0 into .data
47508         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
47509         rather than at compile-time.
47510         * tests/test-floorl.c (minus_zero): Likewise.
47511         * tests/test-frexpl.c (minus_zero): Likewise.
47512         * tests/test-isnan.c (minus_zerol): Likewise.
47513         * tests/test-isnanl.h (minus_zero): Likewise.
47514         * tests/test-ldexpl.c (minus_zero): Likewise.
47515         * tests/test-roundl.c (minus_zero): Likewise.
47516         * tests/test-signbit.c (minus_zerol): Likewise.
47517         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
47518         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
47519         * tests/test-truncl.c (minus_zero): Likewise.
47520         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
47521         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
47522         Reported by Tom G. Christensen and Nelson H. F. Beebe.
47523
47524 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47525
47526         regex: fix glibc bug 9697
47527         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
47528         handling.
47529
47530 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47531
47532         regex: fix glibc bug 697
47533         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
47534         being NULL also if there are no backreferences.
47535
47536 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47537
47538         regex: merge glibc changes
47539         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
47540         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
47541         re_string_skip_chars, re_string_reconstruct): Likewise.
47542         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
47543
47544 2009-01-07  Jim Meyering  <meyering@redhat.com>
47545
47546         poll: filter through cppi
47547         * lib/poll.c: Indent cpp directives to reflect nesting.
47548
47549 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
47550
47551         poll: don't return uninitialized
47552         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
47553
47554 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
47555
47556         avoid compile failure on AIX 6.1
47557         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
47558         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
47559
47560 2009-01-04  Jim Meyering  <meyering@redhat.com>
47561
47562         remove duplicate inclusion of <stdio.h>
47563         * tests/test-fprintf-posix.c: Likewise.
47564         * tests/test-printf-posix.c: Likewise.
47565         * tests/test-snprintf-posix.c: Likewise.
47566         * tests/test-sprintf-posix.c: Likewise.
47567         * tests/test-vasprintf-posix.c: Likewise.
47568         * tests/test-vfprintf-posix.c: Likewise.
47569         * tests/test-vprintf-posix.c: Likewise.
47570         * tests/test-vsnprintf-posix.c: Likewise.
47571         * tests/test-vsprintf-posix.c: Likewise.
47572
47573 2009-01-03  Jim Meyering  <meyering@redhat.com>
47574
47575         gnulib-tool: fix sed-based filtering
47576         * gnulib-tool (func_filter_filelist): Remove extra backslash
47577         in sed_fff_filter definition.
47578
47579 2009-01-02  Jim Meyering  <meyering@redhat.com>
47580
47581         strftime: avoid compilation failure on Solaris 2.6
47582         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
47583         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
47584         Don't #define mbrlen or mbsinit, since now they're guaranteed to
47585         be available.  Reported by Tom G. Christensen.  Details in
47586         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
47587
47588 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47589             Bruno Haible  <bruno@clisp.org>
47590
47591         Speed up gnulib-tool by doing more string processing through shell
47592         built-ins.
47593         * gnulib-tool (fast_func_append): New variable.
47594         (func_remove_prefix, func_remove_suffix): New functions.
47595         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
47596         (func_filter_filelist): New function.
47597         (func_get_dependencies): Use func_remove_suffix instead of sed.
47598         (func_get_automake_snippet): Use func_filter_filelist instead of a
47599         subshell and sed invocation.
47600
47601 2009-01-01  Bruno Haible  <bruno@clisp.org>
47602
47603         Fix a security bug.
47604         * gnulib-tool (func_import, import, update): Don't allow the characters
47605         '"', '$', '`', '\' in macro arguments that become part of commands that
47606         are evaluated.
47607
47608 2009-01-01  Bruno Haible  <bruno@clisp.org>
47609
47610         * gnulib-tool (func_reset_sigpipe): Add more comments.
47611
47612 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47613
47614         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
47615         func_emit_tests_Makefile_am, func_import): Abort loops early if we
47616         already know the answer.
47617
47618 2009-01-01  Jim Meyering  <meyering@redhat.com>
47619
47620         * lib/version-etc.c (version_etc_va): Update copyright year.
47621
47622 2008-12-30  Bruno Haible  <bruno@clisp.org>
47623
47624         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
47625         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
47626         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
47627
47628 2008-12-29  Eric Blake  <ebb9@byu.net>
47629
47630         multiarch: avoid autoconf AC_REQUIRE bug
47631         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
47632         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
47633         2.63 and older.
47634         Reported by Bruno Haible, and analyzed in
47635         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
47636
47637 2008-12-29  Bruno Haible  <bruno@clisp.org>
47638
47639         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
47640         files in subdirectories correctly.
47641         Reported by Ralf Wildenhues.
47642
47643 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47644
47645         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
47646         rather than 'join FILE -', for Solaris join.
47647
47648 2008-12-29  Bruno Haible  <bruno@clisp.org>
47649
47650         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
47651         quoting.
47652         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
47653         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
47654         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
47655         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
47656         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
47657         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
47658         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
47659         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
47660         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
47661         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
47662         * m4/nls.m4 (AM_NLS): Likewise.
47663         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
47664         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
47665         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
47666         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
47667         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
47668         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
47669         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
47670         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
47671         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
47672         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
47673         * m4/xsize.m4 (gl_XSIZE): Likewise.
47674         Suggested by Jim Meyering.
47675
47676 2008-11-17  Bruce Korb  <bkorb@gnu.org>
47677
47678         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
47679         * lib/parse-duration.c: use a switch instead of cascading if's.
47680
47681 2008-12-29  Eric Blake  <ebb9@byu.net>
47682
47683         wchar.h: supply WEOF on Irix 5.3
47684         * lib/wchar.in.h (wint_t): Also supply WEOF.
47685         * lib/wctype.in.h (wint_t): Likewise.
47686         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
47687         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
47688         Reported by Tom G. Christensen.
47689
47690 2008-12-26  Bruno Haible  <bruno@clisp.org>
47691
47692         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
47693         i486, i586, i686.
47694
47695 2008-12-26  Bruno Haible  <bruno@clisp.org>
47696
47697         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
47698
47699 2008-12-26  Bruno Haible  <bruno@clisp.org>
47700
47701         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
47702         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
47703         not __STDC_CONSTANT_MACROS.
47704         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
47705
47706 2008-12-25  Bruno Haible  <bruno@clisp.org>
47707
47708         Add support for universal builds to vasnprintf.
47709         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
47710         universal builds, guess no.
47711         * modules/vasnprintf-posix (Depends-on): Add multiarch.
47712         * modules/vasprintf-posix (Depends-on): Likewise.
47713         * modules/fprintf-posix (Depends-on): Likewise.
47714         * modules/vfprintf-posix (Depends-on): Likewise.
47715         * modules/snprintf-posix (Depends-on): Likewise.
47716         * modules/vsnprintf-posix (Depends-on): Likewise.
47717         * modules/sprintf-posix (Depends-on): Likewise.
47718         * modules/vsprintf-posix (Depends-on): Likewise.
47719         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47720         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47721         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47722         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47723         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47724         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47725         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47726
47727         Add support for universal builds to <inttypes.h>.
47728         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
47729         _SCNu64_PREFIX): In Apple
47730         universal builds, define directly, using _LP64.
47731         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
47732         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
47733         * modules/inttypes (Depends-on): Add multiarch.
47734         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
47735
47736         Add support for universal builds to <stdint.h>.
47737         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
47738         universal builds, define directly, using _LP64.
47739         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
47740         Apple universal builds, don't test for the size and suffix of ptrdiff_t
47741         and size_t.
47742         * modules/stdint (Depends-on): Add multiarch.
47743         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
47744
47745         New module 'multiarch'.
47746         * modules/multiarch: New file.
47747         * m4/multiarch.m4: New file.
47748
47749 2008-12-25  Bruno Haible  <bruno@clisp.org>
47750
47751         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
47752
47753 2008-12-25  Bruno Haible  <bruno@clisp.org>
47754
47755         * modules/btowc (License): Relicense under LGPLv2+.
47756         * modules/mbsinit (License): Likewise.
47757         * modules/mbrtowc (License): Likewise.
47758         * modules/wcrtomb (License): Likewise.
47759         * modules/streq (License): Likewise.
47760         Reported by David Lutterkort <lutter@redhat.com>.
47761
47762 2008-12-23  Bruno Haible  <bruno@clisp.org>
47763
47764         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
47765
47766 2008-12-23  Bruno Haible  <bruno@clisp.org>
47767
47768         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
47769         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
47770         GETADDRINFO_LIB, not in LIBS.
47771         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
47772         * modules/canon-host (Link): Likewise.
47773         * NEWS: Mention the change.
47774         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
47775         GETADDRINFO_LIB.
47776
47777 2008-12-22  Bruno Haible  <bruno@clisp.org>
47778
47779         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
47780         * doc/posix-functions/iswalpha_l.texi: Likewise.
47781         * doc/posix-functions/iswblank_l.texi: Likewise.
47782         * doc/posix-functions/iswcntrl_l.texi: Likewise.
47783         * doc/posix-functions/iswctype_l.texi: Likewise.
47784         * doc/posix-functions/iswdigit_l.texi: Likewise.
47785         * doc/posix-functions/iswgraph_l.texi: Likewise.
47786         * doc/posix-functions/iswlower_l.texi: Likewise.
47787         * doc/posix-functions/iswprint_l.texi: Likewise.
47788         * doc/posix-functions/iswpunct_l.texi: Likewise.
47789         * doc/posix-functions/iswspace_l.texi: Likewise.
47790         * doc/posix-functions/iswupper_l.texi: Likewise.
47791         * doc/posix-functions/iswxdigit_l.texi: Likewise.
47792         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
47793         * doc/posix-functions/open_wmemstream.texi: Likewise.
47794         * doc/posix-functions/swscanf.texi: Likewise.
47795         * doc/posix-functions/towctrans_l.texi: Likewise.
47796         * doc/posix-functions/towlower.texi: Likewise.
47797         * doc/posix-functions/towlower_l.texi: Likewise.
47798         * doc/posix-functions/towupper.texi: Likewise.
47799         * doc/posix-functions/towupper_l.texi: Likewise.
47800         * doc/posix-functions/vfwprintf.texi: Likewise.
47801         * doc/posix-functions/vfwscanf.texi: Likewise.
47802         * doc/posix-functions/vswscanf.texi: Likewise.
47803         * doc/posix-functions/vwprintf.texi: Likewise.
47804         * doc/posix-functions/vwscanf.texi: Likewise.
47805         * doc/posix-functions/wcpcpy.texi: Likewise.
47806         * doc/posix-functions/wcpncpy.texi: Likewise.
47807         * doc/posix-functions/wcscasecmp.texi: Likewise.
47808         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
47809         * doc/posix-functions/wcscoll_l.texi: Likewise.
47810         * doc/posix-functions/wcsdup.texi: Likewise.
47811         * doc/posix-functions/wcsncasecmp.texi: Likewise.
47812         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
47813         * doc/posix-functions/wcsnlen.texi: Likewise.
47814         * doc/posix-functions/wcsnrtombs.texi: Likewise.
47815         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
47816         * doc/posix-functions/wctrans_l.texi: Likewise.
47817         * doc/posix-functions/wctype_l.texi: Likewise.
47818         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
47819         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
47820         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
47821         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
47822         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
47823         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
47824         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
47825         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
47826         * doc/glibc-functions/wcschrnul.texi: Likewise.
47827         * doc/glibc-functions/wcsftime_l.texi: Likewise.
47828         * doc/glibc-functions/wcstod_l.texi: Likewise.
47829         * doc/glibc-functions/wcstof_l.texi: Likewise.
47830         * doc/glibc-functions/wcstol_l.texi: Likewise.
47831         * doc/glibc-functions/wcstold_l.texi: Likewise.
47832         * doc/glibc-functions/wcstoll_l.texi: Likewise.
47833         * doc/glibc-functions/wcstoq.texi: Likewise.
47834         * doc/glibc-functions/wcstoul_l.texi: Likewise.
47835         * doc/glibc-functions/wcstoull_l.texi: Likewise.
47836         * doc/glibc-functions/wcstouq.texi: Likewise.
47837         * doc/glibc-functions/wmempcpy.texi: Likewise.
47838
47839 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
47840             Eric Blake  <ebb9@byu.net>
47841             Paolo Bonzini  <bonzini@gnu.org>
47842             Bruno Haible  <bruno@clisp.org>
47843
47844         Make c-stack work on Haiku.
47845         * lib/c-stack.c (SA_ONSTACK): Define fallback.
47846         (c_stack_action): Use SA_ONSTACK flag.
47847
47848 2008-12-22  Bruno Haible  <bruno@clisp.org>
47849
47850         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
47851
47852 2008-12-22  Bruno Haible  <bruno@clisp.org>
47853
47854         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
47855         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
47856         being overridden.
47857         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
47858         New macros.
47859         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
47860         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
47861         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
47862         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
47863
47864 2008-12-22  Bruno Haible  <bruno@clisp.org>
47865
47866         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
47867         from test code.
47868
47869 2008-12-22  Eric Blake  <ebb9@byu.net>
47870
47871         Avoid gcc warnings on cygwin.
47872         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
47873         Avoid unused variable.
47874         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
47875         Likewise.
47876
47877 2008-12-22  Bruno Haible  <bruno@clisp.org>
47878
47879         Remove HAVE_MBRTOWC conditionals.
47880         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
47881         (mbscasecmp): Assume mbrtowc function.
47882         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
47883         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
47884         * lib/mbschr.c: Include mbuiter.h unconditionally.
47885         (mbschr): Assume mbrtowc function.
47886         * lib/mbscspn.c: Include mbuiter.h unconditionally.
47887         (mbscspn): Assume mbrtowc function.
47888         * lib/mbslen.c: Include mbuiter.h unconditionally.
47889         (mbslen): Assume mbrtowc function.
47890         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
47891         (mbsncasecmp): Assume mbrtowc function.
47892         * lib/mbsnlen.c: Include mbiter.h unconditionally.
47893         (mbsnlen): Assume mbrtowc function.
47894         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
47895         (mbspbrk): Assume mbrtowc function.
47896         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
47897         (mbspcasecmp): Assume mbrtowc function.
47898         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
47899         (mbsrchr): Assume mbrtowc function.
47900         * lib/mbssep.c: Include mbuiter.h unconditionally.
47901         (mbssep): Assume mbrtowc function.
47902         * lib/mbsspn.c: Include mbuiter.h unconditionally.
47903         (mbsspn): Assume mbrtowc function.
47904         * lib/mbsstr.c: Include mbuiter.h unconditionally.
47905         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
47906         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
47907         (mbstok_r): Assume mbrtowc function.
47908         * lib/propername.c: Include mbuiter.h unconditionally.
47909         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
47910         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
47911         (trim2): Assume mbrtowc function.
47912         * lib/mbswidth.c (mbsinit): Remove fallback definition.
47913         (mbsnwidth): Assume mbrtowc function.
47914         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
47915         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
47916         fallback definitions.
47917         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
47918
47919 2008-12-22  Bruno Haible  <bruno@clisp.org>
47920
47921         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
47922
47923 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
47924
47925         * modules/regex: Request emulations for the mb*/wc* functions we need.
47926         * m4/regex.m4: Don't look for those functions here.
47927         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
47928
47929 2008-12-22  Bruno Haible  <bruno@clisp.org>
47930
47931         * modules/fnmatch (Depends-on): Remove duplicated dependency.
47932
47933 2008-12-21  Bruno Haible  <bruno@clisp.org>
47934
47935         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
47936         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
47937         (Include): Remove conditionalization.
47938         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
47939         (Include): Remove conditionalization.
47940         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
47941         (Include): Remove conditionalization.
47942         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
47943         * m4/mbfile.m4 (gl_MBFILE): Likewise.
47944         * NEWS: Mention the change.
47945         Reported by Alan Hourihane <alanh@fairlite.co.uk>
47946         via Sergey Poznyakoff <gray@gnu.org.ua>.
47947
47948 2008-12-21  Bruno Haible  <bruno@clisp.org>
47949
47950         * MODULES.html.sh (Extended multibyte and wide character utilities
47951         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
47952         wcrtomb, wcsrtombs.
47953         (Support for systems lacking POSIX:2008): Add accept, bind, close,
47954         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
47955         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
47956         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
47957
47958 2008-12-21  Bruno Haible  <bruno@clisp.org>
47959
47960         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
47961
47962 2008-12-21  Bruno Haible  <bruno@clisp.org>
47963
47964         * modules/wcsnrtombs-tests: New file.
47965         * tests/test-wcsnrtombs1.sh: New file.
47966         * tests/test-wcsnrtombs2.sh: New file.
47967         * tests/test-wcsnrtombs3.sh: New file.
47968         * tests/test-wcsnrtombs4.sh: New file.
47969         * tests/test-wcsnrtombs.c: New file.
47970
47971         New module 'wcsnrtombs'.
47972         * lib/wchar.in.h (wcsnrtombs): New declaration.
47973         * lib/wcsnrtombs.c: New file.
47974         * lib/wcsrtombs-state.c: New file.
47975         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
47976         (internal_state): Remove variable.
47977         * m4/wcsnrtombs.m4: New file.
47978         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
47979         compilation units.
47980         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
47981         HAVE_WCSNRTOMBS.
47982         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
47983         HAVE_WCSNRTOMBS.
47984         * modules/wcsnrtombs: New file.
47985         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
47986         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
47987
47988 2008-12-21  Bruno Haible  <bruno@clisp.org>
47989
47990         * modules/wcsrtombs-tests: New file.
47991         * tests/test-wcsrtombs1.sh: New file.
47992         * tests/test-wcsrtombs2.sh: New file.
47993         * tests/test-wcsrtombs3.sh: New file.
47994         * tests/test-wcsrtombs4.sh: New file.
47995         * tests/test-wcsrtombs.c: New file.
47996
47997         New module 'wcsrtombs'.
47998         * lib/wchar.in.h (wcsrtombs): New declaration.
47999         * lib/wcsrtombs.c: New file.
48000         * m4/wcsrtombs.m4: New file.
48001         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
48002         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48003         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
48004         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48005         * modules/wcsrtombs: New file.
48006         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
48007         bugs.
48008
48009 2008-12-21  Bruno Haible  <bruno@clisp.org>
48010
48011         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
48012         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
48013         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
48014         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
48015         if not correct.
48016         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
48017         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
48018         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48019         m4/locale-zh.m4, m4/codeset.m4.
48020         * doc/posix-functions/wcrtomb.texi: Document the bug.
48021
48022 2008-12-21  Bruno Haible  <bruno@clisp.org>
48023
48024         Work around a btowc() bug on IRIX 6.5.
48025         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
48026         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
48027         REPLACE_WTOBC if not.
48028         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
48029         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
48030         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
48031
48032 2008-12-21  Bruno Haible  <bruno@clisp.org>
48033
48034         * modules/wcrtomb-tests: New file.
48035         * tests/test-wcrtomb.sh: New file.
48036         * tests/test-wcrtomb.c: New file.
48037
48038         New module 'wcrtomb'.
48039         * lib/wchar.in.h (wcrtomb): New declaration.
48040         * lib/wcrtomb.c: New file.
48041         * m4/wcrtomb.m4: New file.
48042         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
48043         HAVE_WCRTOMB.
48044         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
48045         HAVE_WCRTOMB.
48046         * modules/wcrtomb: New file.
48047         * doc/posix-functions/wcrtomb.texi: Mention the new module.
48048
48049 2008-12-21  Bruno Haible  <bruno@clisp.org>
48050
48051         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
48052         * modules/mbsrtowcs (Files): Likewise.
48053         * modules/wctob (Files): Likewise.
48054         * modules/c-strcase-tests (Files): Likewise.
48055         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
48056         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
48057         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
48058         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
48059         * modules/vasnprintf-posix-tests (Files): Likewise.
48060
48061 2008-12-21  William Pursell  <bill.pursell@gmail.com>
48062
48063         gitlog-to-changelog: pass all command-line arguments to git-log
48064         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
48065         it is sometimes convenient to filter the commits in various ways.
48066         gitlog-to-changelog only allows --since to specify a start date,
48067         but git-log itself supports many other filtering mechanisms.
48068         At the moment, I want to filter by branch name.  Rather than
48069         adding a --branch option to gitlog-to-changelog, it seems more
48070         flexible to simply pass all options directly to git-log and let
48071         git do the work.  Notice that this effectively makes --since a
48072         redundant option for gitlog-to-changelog, but removing it would
48073         require current usage to change since calls would then require
48074         an additional '--'.
48075
48076 2008-12-21  Bruno Haible  <bruno@clisp.org>
48077
48078         * modules/mbsnrtowcs-tests: New file.
48079         * tests/test-mbsnrtowcs1.sh: New file.
48080         * tests/test-mbsnrtowcs2.sh: New file.
48081         * tests/test-mbsnrtowcs3.sh: New file.
48082         * tests/test-mbsnrtowcs4.sh: New file.
48083         * tests/test-mbsnrtowcs.c: New file.
48084
48085         New module 'mbsnrtowcs'.
48086         * lib/wchar.in.h (mbsnrtowcs): New declaration.
48087         * lib/mbsnrtowcs.c: New file.
48088         * lib/mbsrtowcs-state.c: New file.
48089         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
48090         (internal_state): Remove variable.
48091         * m4/mbsnrtowcs.m4: New file.
48092         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
48093         compilation units.
48094         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
48095         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48096         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
48097         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48098         * modules/mbsnrtowcs: New file.
48099         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
48100         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
48101         portability problem.
48102
48103 2008-12-21  Bruno Haible  <bruno@clisp.org>
48104
48105         Work around mbsrtowcs bug.
48106         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
48107         (gl_FUNC_MBSRTOWCS): Invoke it.
48108         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48109         m4/locale-zh.m4.
48110         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
48111
48112 2008-12-21  Bruno Haible  <bruno@clisp.org>
48113
48114         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
48115
48116 2008-12-21  Bruno Haible  <bruno@clisp.org>
48117
48118         Update doc for AIX.
48119         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
48120         16-bit wchar_t type.
48121         * doc/posix-functions/btowc.texi: Likewise.
48122         * doc/posix-functions/fgetwc.texi: Likewise.
48123         * doc/posix-functions/fgetws.texi: Likewise.
48124         * doc/posix-functions/fputwc.texi: Likewise.
48125         * doc/posix-functions/fputws.texi: Likewise.
48126         * doc/posix-functions/fwide.texi: Likewise.
48127         * doc/posix-functions/fwprintf.texi: Likewise.
48128         * doc/posix-functions/fwscanf.texi: Likewise.
48129         * doc/posix-functions/getwchar.texi: Likewise.
48130         * doc/posix-functions/getwc.texi: Likewise.
48131         * doc/posix-functions/iswalnum.texi: Likewise.
48132         * doc/posix-functions/iswalpha.texi: Likewise.
48133         * doc/posix-functions/iswblank.texi: Likewise.
48134         * doc/posix-functions/iswcntrl.texi: Likewise.
48135         * doc/posix-functions/iswctype.texi: Likewise.
48136         * doc/posix-functions/iswdigit.texi: Likewise.
48137         * doc/posix-functions/iswgraph.texi: Likewise.
48138         * doc/posix-functions/iswlower.texi: Likewise.
48139         * doc/posix-functions/iswprint.texi: Likewise.
48140         * doc/posix-functions/iswpunct.texi: Likewise.
48141         * doc/posix-functions/iswspace.texi: Likewise.
48142         * doc/posix-functions/iswupper.texi: Likewise.
48143         * doc/posix-functions/iswxdigit.texi: Likewise.
48144         * doc/posix-functions/mbrtowc.texi: Likewise.
48145         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48146         * doc/posix-functions/mbstowcs.texi: Likewise.
48147         * doc/posix-functions/mbtowc.texi: Likewise.
48148         * doc/posix-functions/putwchar.texi: Likewise.
48149         * doc/posix-functions/putwc.texi: Likewise.
48150         * doc/posix-functions/swprintf.texi: Likewise.
48151         * doc/posix-functions/tolower.texi: Likewise.
48152         * doc/posix-functions/toupper.texi: Likewise.
48153         * doc/posix-functions/towctrans.texi: Likewise.
48154         * doc/posix-functions/ungetwc.texi: Likewise.
48155         * doc/posix-functions/vswprintf.texi: Likewise.
48156         * doc/posix-functions/wcrtomb.texi: Likewise.
48157         * doc/posix-functions/wcscat.texi: Likewise.
48158         * doc/posix-functions/wcschr.texi: Likewise.
48159         * doc/posix-functions/wcscmp.texi: Likewise.
48160         * doc/posix-functions/wcscoll.texi: Likewise.
48161         * doc/posix-functions/wcscpy.texi: Likewise.
48162         * doc/posix-functions/wcscspn.texi: Likewise.
48163         * doc/posix-functions/wcsftime.texi: Likewise.
48164         * doc/posix-functions/wcslen.texi: Likewise.
48165         * doc/posix-functions/wcsncat.texi: Likewise.
48166         * doc/posix-functions/wcsncmp.texi: Likewise.
48167         * doc/posix-functions/wcsncpy.texi: Likewise.
48168         * doc/posix-functions/wcspbrk.texi: Likewise.
48169         * doc/posix-functions/wcsrchr.texi: Likewise.
48170         * doc/posix-functions/wcsrtombs.texi: Likewise.
48171         * doc/posix-functions/wcsspn.texi: Likewise.
48172         * doc/posix-functions/wcsstr.texi: Likewise.
48173         * doc/posix-functions/wcstod.texi: Likewise.
48174         * doc/posix-functions/wcstof.texi: Likewise.
48175         * doc/posix-functions/wcstoimax.texi: Likewise.
48176         * doc/posix-functions/wcstok.texi: Likewise.
48177         * doc/posix-functions/wcstold.texi: Likewise.
48178         * doc/posix-functions/wcstoll.texi: Likewise.
48179         * doc/posix-functions/wcstol.texi: Likewise.
48180         * doc/posix-functions/wcstombs.texi: Likewise.
48181         * doc/posix-functions/wcstoull.texi: Likewise.
48182         * doc/posix-functions/wcstoul.texi: Likewise.
48183         * doc/posix-functions/wcstoumax.texi: Likewise.
48184         * doc/posix-functions/wcswidth.texi: Likewise.
48185         * doc/posix-functions/wcsxfrm.texi: Likewise.
48186         * doc/posix-functions/wctob.texi: Likewise.
48187         * doc/posix-functions/wctomb.texi: Likewise.
48188         * doc/posix-functions/wctrans.texi: Likewise.
48189         * doc/posix-functions/wctype.texi: Likewise.
48190         * doc/posix-functions/wcwidth.texi: Likewise.
48191         * doc/posix-functions/wmemchr.texi: Likewise.
48192         * doc/posix-functions/wmemcmp.texi: Likewise.
48193         * doc/posix-functions/wmemcpy.texi: Likewise.
48194         * doc/posix-functions/wmemmove.texi: Likewise.
48195         * doc/posix-functions/wmemset.texi: Likewise.
48196         * doc/posix-functions/wprintf.texi: Likewise.
48197         * doc/posix-functions/wscanf.texi: Likewise.
48198
48199 2008-12-21  Bruno Haible  <bruno@clisp.org>
48200
48201         Update doc for HP-UX 11.11.
48202         * doc/posix-functions/btowc.texi: Clarify that the function is missing
48203         in HP-UX version 11.00, not in all versions of HP-UX 11.
48204         * doc/posix-functions/fwide.texi: Likewise.
48205         * doc/posix-functions/fwprintf.texi: Likewise.
48206         * doc/posix-functions/fwscanf.texi: Likewise.
48207         * doc/posix-functions/inet_ntop.texi: Likewise.
48208         * doc/posix-functions/inet_pton.texi: Likewise.
48209         * doc/posix-functions/mbrlen.texi: Likewise.
48210         * doc/posix-functions/mbrtowc.texi: Likewise.
48211         * doc/posix-functions/mbsinit.texi: Likewise.
48212         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48213         * doc/posix-functions/swprintf.texi: Likewise.
48214         * doc/posix-functions/swscanf.texi: Likewise.
48215         * doc/posix-functions/towctrans.texi: Likewise.
48216         * doc/posix-functions/vfwprintf.texi: Likewise.
48217         * doc/posix-functions/vswprintf.texi: Likewise.
48218         * doc/posix-functions/vwprintf.texi: Likewise.
48219         * doc/posix-functions/wcrtomb.texi: Likewise.
48220         * doc/posix-functions/wcsrtombs.texi: Likewise.
48221         * doc/posix-functions/wcsstr.texi: Likewise.
48222         * doc/posix-functions/wctob.texi: Likewise.
48223         * doc/posix-functions/wctrans.texi: Likewise.
48224         * doc/posix-functions/wmemchr.texi: Likewise.
48225         * doc/posix-functions/wmemcmp.texi: Likewise.
48226         * doc/posix-functions/wmemcpy.texi: Likewise.
48227         * doc/posix-functions/wmemmove.texi: Likewise.
48228         * doc/posix-functions/wmemset.texi: Likewise.
48229         * doc/posix-functions/wprintf.texi: Likewise.
48230         * doc/posix-functions/wscanf.texi: Likewise.
48231
48232 2008-12-21  Bruno Haible  <bruno@clisp.org>
48233
48234         Work around a portability problem.
48235         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
48236         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
48237
48238 2008-12-20  Bruno Haible  <bruno@clisp.org>
48239
48240         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
48241         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
48242         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
48243         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
48244         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
48245
48246         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
48247         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
48248         set.
48249         (GNULIB_defined_mbstate_t): New macro.
48250         (mbsinit): Redefine if REPLACE_MBSINIT is set.
48251         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
48252         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
48253         reuses the system's mbrtowc function but works around the bugs.
48254         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
48255         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
48256         macros.
48257         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
48258         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
48259         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
48260         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
48261         REPLACE_MBSINIT if mbsinit needs to be overridden.
48262         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
48263         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48264         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
48265         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48266         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48267         m4/locale-zh.m4.
48268         (Depends): Add mbsinit.
48269         * modules/mbsinit (Depends): Add mbrtowc.
48270         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
48271
48272 2008-12-20  Bruno Haible  <bruno@clisp.org>
48273
48274         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
48275         so that there are no conversion errors on AIX.
48276         * tests/test-mbsrtowcs.c (main): LIkewise.
48277
48278 2008-12-20  Bruno Haible  <bruno@clisp.org>
48279
48280         Work around wctob bug on Solaris <= 9.
48281         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
48282         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
48283         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
48284         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
48285         * modules/wctob (Files): Add m4/locale-fr.m4.
48286         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
48287
48288 2008-12-20  Bruno Haible  <bruno@clisp.org>
48289
48290         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
48291         /dev/null.
48292         * tests/test-select-in.sh: Likewise.
48293         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48294
48295 2008-12-20  Bruno Haible  <bruno@clisp.org>
48296
48297         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
48298         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
48299         Cygwin 1.5.x.
48300
48301 2008-12-20  Bruno Haible  <bruno@clisp.org>
48302
48303         Ensure mbstate_t is defined on HP-UX 11.11.
48304         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
48305         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
48306         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
48307         AC_USE_SYSTEM_EXTENSIONS.
48308         * modules/fnmatch (Depends-on): Add extensions.
48309         * modules/mbrlen (Depends-on): Likewise.
48310         * modules/mbrtowc (Depends-on): Likewise.
48311         * modules/mbsinit (Depends-on): Likewise.
48312         * modules/mbsrtowcs (Depends-on): Likewise.
48313         * modules/mbswidth (Depends-on): Likewise.
48314         * modules/quotearg (Depends-on): Likewise.
48315         * modules/strftime (Depends-on): Likewise.
48316
48317 2008-12-20  Bruno Haible  <bruno@clisp.org>
48318
48319         Ensure wctob is declared on IRIX 6.5.
48320         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
48321         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
48322         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
48323         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
48324         of HAVE_WCTOB.
48325         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
48326         HAVE_WCTOB.
48327         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
48328
48329 2008-12-19  Bruno Haible  <bruno@clisp.org>
48330
48331         * modules/mbsrtowcs-tests: New file.
48332         * tests/test-mbsrtowcs1.sh: New file.
48333         * tests/test-mbsrtowcs2.sh: New file.
48334         * tests/test-mbsrtowcs3.sh: New file.
48335         * tests/test-mbsrtowcs4.sh: New file.
48336         * tests/test-mbsrtowcs.c: New file.
48337
48338         New module 'mbsrtowcs'.
48339         * lib/wchar.in.h (mbsrtowcs): New declaration.
48340         * lib/mbsrtowcs.c: New file.
48341         * m4/mbsrtowcs.m4: New file.
48342         * modules/mbsrtowcs: New file.
48343         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
48344         HAVE_MBSRTOWCS.
48345         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
48346         HAVE_MBSRTOWCS.
48347         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
48348
48349 2008-12-19  Bruno Haible  <bruno@clisp.org>
48350
48351         New module 'mbrlen'.
48352         * lib/wchar.in.h (mbrlen): New declaration.
48353         * lib/mbrlen.c: New file.
48354         * m4/mbrlen.m4: New file.
48355         * modules/mbrlen: New file.
48356         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
48357         HAVE_MBRLEN.
48358         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
48359         HAVE_MBRLEN.
48360         * doc/posix-functions/mbrlen.texi: Document the new module.
48361
48362 2008-12-19  Bruno Haible  <bruno@clisp.org>
48363
48364         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
48365         * modules/mbrtowc (Depends-on): Add verify.
48366         Suggested by Paul Eggert.
48367
48368 2008-12-18  Bruno Haible  <bruno@clisp.org>
48369
48370         * modules/mbsinit-tests: New file.
48371         * tests/test-mbsinit.sh: New file.
48372         * tests/test-mbsinit.c: New file.
48373
48374 2008-12-18  Bruno Haible  <bruno@clisp.org>
48375
48376         * modules/mbrtowc-tests: New file.
48377         * tests/test-mbrtowc1.sh: New file.
48378         * tests/test-mbrtowc2.sh: New file.
48379         * tests/test-mbrtowc3.sh: New file.
48380         * tests/test-mbrtowc4.sh: New file.
48381         * tests/test-mbrtowc.c: New file.
48382
48383         New module 'mbrtowc'.
48384         * lib/wchar.in.h (mbstate_t): Override when the system does not have
48385         mbsinit and mbrtowc.
48386         (mbrtowc): New declaration.
48387         * lib/mbrtowc.c: New file.
48388         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
48389         * modules/mbrtowc: New file.
48390         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
48391         HAVE_MBRTOWC.
48392         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
48393         HAVE_MBRTOWC.
48394         * doc/posix-functions/mbrtowc.texi: Document the new module.
48395
48396 2008-12-18  Bruno Haible  <bruno@clisp.org>
48397
48398         New module 'wctob'.
48399         * lib/wchar.in.h (wctob): New declaration.
48400         * lib/wctob.c: New file.
48401         * m4/wctob.m4: New file.
48402         * modules/wctob: New file.
48403         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
48404         HAVE_WCTOB.
48405         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
48406         * doc/posix-functions/wctob.texi: Document the new module.
48407
48408 2008-12-18  Bruno Haible  <bruno@clisp.org>
48409
48410         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
48411         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
48412
48413 2008-12-18  Simon Josefsson  <simon@josefsson.org>
48414
48415         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
48416         G. Christensen" <tgc@jupiterrise.com>.
48417
48418         * lib/flock.c: Need to include errno.h.  Reported by "Tom
48419         G. Christensen" <tgc@jupiterrise.com>.
48420
48421         * lib/flock.c: Need to include string.h.  Reported by "Tom
48422         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
48423         <ebb9@byu.net>.
48424
48425 2008-12-18  Bruno Haible  <bruno@clisp.org>
48426
48427         * m4/locale-ja.m4: New file, from GNU gettext.
48428
48429 2008-12-17  Bruno Haible  <bruno@clisp.org>
48430
48431         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
48432         Suggested by Eric Blake.
48433
48434 2008-12-17  Bruno Haible  <bruno@clisp.org>
48435
48436         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
48437
48438 2008-12-17  Bruno Haible  <bruno@clisp.org>
48439
48440         * lib/mbsinit.c: Include verify.h. Verify an assumption.
48441         * modules/mbsinit (Depends-on): Add verify.
48442         Suggested by Paul Eggert.
48443
48444 2008-12-17  Bruno Haible  <bruno@clisp.org>
48445
48446         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
48447         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
48448         gl_FUNC_MBRTOWC.
48449         * m4/mbiter.m4 (gl_MBITER): LIkewise.
48450         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
48451         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
48452         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
48453         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
48454         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
48455         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
48456         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
48457         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
48458         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
48459         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
48460         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
48461         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
48462         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
48463         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
48464         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48465         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
48466         * modules/trim (configure.ac): Likewise.
48467
48468 2008-12-17  Bruno Haible  <bruno@clisp.org>
48469
48470         * modules/btowc-tests: New file.
48471         * tests/test-btowc1.sh: New file.
48472         * tests/test-btowc2.sh: New file.
48473         * tests/test-btowc.c: New file.
48474
48475         New module 'btowc'.
48476         * lib/wchar.in.h (btowc): New declaration.
48477         * lib/btowc.c: New file.
48478         * m4/btowc.m4: New file.
48479         * modules/btowc: New file.
48480         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
48481         HAVE_BTOWC.
48482         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
48483         * doc/posix-functions/btowc.texi: Document the new module.
48484
48485 2008-12-17  Bruno Haible  <bruno@clisp.org>
48486
48487         New module 'mbsinit'.
48488         * lib/wchar.in.h (mbsinit): New declaration.
48489         * lib/mbsinit.c: New file.
48490         * m4/mbsinit.m4: New file.
48491         * modules/mbsinit: New file.
48492         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
48493         HAVE_MBSINIT.
48494         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
48495         HAVE_MBSINIT.
48496         * doc/posix-functions/mbsinit.texi: Document the new module.
48497
48498 2008-12-16  Bruno Haible  <bruno@clisp.org>
48499
48500         * lib/unistd.in.h: Add comment.
48501         * tests/test-environ.c: Don't include <stdlib.h>.
48502
48503 2008-12-16  Bruno Haible  <bruno@clisp.org>
48504
48505         * lib/parse-duration.h (parse_duration): Document return value
48506         convention.
48507         * lib/parse-duration.c: Include specification header first. Add
48508         comments.
48509         (_): Remove macro.
48510         (parse_year_month_day, parse_hour_minute_second): Move side effects
48511         outside of strchr call.
48512         (parse_non_iso8601): Move side effects outside of isspace call.
48513         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
48514         call.
48515
48516 2008-12-16  Bruno Haible  <bruno@clisp.org>
48517
48518         * tests/test-parse-duration.sh: Produce no output when the test
48519         succeeds.
48520
48521 2008-12-16  Bruno Haible  <bruno@clisp.org>
48522
48523         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
48524         expressions.
48525
48526 2008-12-15  Bruno Haible  <bruno@clisp.org>
48527
48528         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
48529         * doc/glibc-functions/flistxattr.texi: Likewise.
48530         * doc/glibc-functions/fopencookie.texi: Likewise.
48531         * doc/glibc-functions/fremovexattr.texi: Likewise.
48532         * doc/glibc-functions/fsetxattr.texi: Likewise.
48533         * doc/glibc-functions/getxattr.texi: Likewise.
48534         * doc/glibc-functions/lgetxattr.texi: Likewise.
48535         * doc/glibc-functions/listxattr.texi: Likewise.
48536         * doc/glibc-functions/llistxattr.texi: Likewise.
48537         * doc/glibc-functions/lremovexattr.texi: Likewise.
48538         * doc/glibc-functions/lsetxattr.texi: Likewise.
48539         * doc/glibc-functions/removexattr.texi: Likewise.
48540         * doc/glibc-functions/setxattr.texi: Likewise.
48541         * doc/posix-functions/open_memstream.texi: Likewise.
48542
48543 2008-12-15  Eric Blake  <ebb9@byu.net>
48544
48545         Update doc for cygwin 1.7.
48546         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
48547         functions.
48548         * doc/posix-functions/fchmodat.texi: Likewise.
48549         * doc/posix-functions/fchownat.texi: Likewise.
48550         * doc/posix-functions/fdopendir.texi: Likewise.
48551         * doc/posix-functions/fmemopen.texi: Likewise.
48552         * doc/posix-functions/freeaddrinfo.texi: Likewise.
48553         * doc/posix-functions/fstatat.texi: Likewise.
48554         * doc/posix-functions/futimens.texi: Likewise.
48555         * doc/posix-functions/gai_strerror.texi: Likewise.
48556         * doc/posix-functions/getaddrinfo.texi: Likewise.
48557         * doc/posix-functions/getnameinfo.texi: Likewise.
48558         * doc/posix-functions/if_freenameindex.texi: Likewise.
48559         * doc/posix-functions/if_indextoname.texi: Likewise.
48560         * doc/posix-functions/if_nameindex.texi: Likewise.
48561         * doc/posix-functions/if_nametoindex.texi: Likewise.
48562         * doc/posix-functions/insque.texi: Likewise.
48563         * doc/posix-functions/linkat.texi: Likewise.
48564         * doc/posix-functions/llrint.texi: Likewise.
48565         * doc/posix-functions/llrintf.texi: Likewise.
48566         * doc/posix-functions/llrintl.texi: Likewise.
48567         * doc/posix-functions/lockf.texi: Likewise.
48568         * doc/posix-functions/lrintl.texi: Likewise.
48569         * doc/posix-functions/mkdirat.texi: Likewise.
48570         * doc/posix-functions/mkfifoat.texi: Likewise.
48571         * doc/posix-functions/mknodat.texi: Likewise.
48572         * doc/posix-functions/mq_close.texi: Likewise.
48573         * doc/posix-functions/mq_getattr.texi: Likewise.
48574         * doc/posix-functions/mq_notify.texi: Likewise.
48575         * doc/posix-functions/mq_open.texi: Likewise.
48576         * doc/posix-functions/mq_receive.texi: Likewise.
48577         * doc/posix-functions/mq_send.texi: Likewise.
48578         * doc/posix-functions/mq_setattr.texi: Likewise.
48579         * doc/posix-functions/mq_timedreceive.texi: Likewise.
48580         * doc/posix-functions/mq_timedsend.texi: Likewise.
48581         * doc/posix-functions/mq_unlink.texi: Likewise.
48582         * doc/posix-functions/open_memstream.texi: Likewise.
48583         * doc/posix-functions/openat.texi: Likewise.
48584         * doc/posix-functions/posix_fadvise.texi: Likewise.
48585         * doc/posix-functions/posix_fallocate.texi: Likewise.
48586         * doc/posix-functions/posix_madvise.texi: Likewise.
48587         * doc/posix-functions/posix_memalign.texi: Likewise.
48588         * doc/posix-functions/posix_openpt.texi: Likewise.
48589         * doc/posix-functions/readlinkat.texi: Likewise.
48590         * doc/posix-functions/remque.texi: Likewise.
48591         * doc/posix-functions/renameat.texi: Likewise.
48592         * doc/posix-functions/rintl.texi: Likewise.
48593         * doc/posix-functions/sem_unlink.texi: Likewise.
48594         * doc/posix-functions/shm_open.texi: Likewise.
48595         * doc/posix-functions/shm_unlink.texi: Likewise.
48596         * doc/posix-functions/signgam.texi: Likewise.
48597         * doc/posix-functions/sigset.texi: Likewise.
48598         * doc/posix-functions/stpcpy.texi: Likewise.
48599         * doc/posix-functions/stpncpy.texi: Likewise.
48600         * doc/posix-functions/strerror.texi: Likewise.
48601         * doc/posix-functions/strtod.texi: Likewise.
48602         * doc/posix-functions/symlinkat.texi: Likewise.
48603         * doc/posix-functions/unlinkat.texi: Likewise.
48604         * doc/posix-functions/utimensat.texi: Likewise.
48605         * doc/glibc-functions/bindresvport.texi: Likewise.
48606         * doc/glibc-functions/dn_expand.texi: Likewise.
48607         * doc/glibc-functions/exp10.texi: Likewise.
48608         * doc/glibc-functions/exp10f.texi: Likewise.
48609         * doc/glibc-functions/fgetxattr.texi: Likewise.
48610         * doc/glibc-functions/flistxattr.texi: Likewise.
48611         * doc/glibc-functions/fopencookie.texi: Likewise.
48612         * doc/glibc-functions/freeifaddrs.texi: Likewise.
48613         * doc/glibc-functions/fremovexattr.texi: Likewise.
48614         * doc/glibc-functions/fsetxattr.texi: Likewise.
48615         * doc/glibc-functions/getifaddrs.texi: Likewise.
48616         * doc/glibc-functions/getxattr.texi: Likewise.
48617         * doc/glibc-functions/lgetxattr.texi: Likewise.
48618         * doc/glibc-functions/listxattr.texi: Likewise.
48619         * doc/glibc-functions/llistxattr.texi: Likewise.
48620         * doc/glibc-functions/lremovexattr.texi: Likewise.
48621         * doc/glibc-functions/lsetxattr.texi: Likewise.
48622         * doc/glibc-functions/pow10.texi: Likewise.
48623         * doc/glibc-functions/pow10f.texi: Likewise.
48624         * doc/glibc-functions/rcmd_af.texi: Likewise.
48625         * doc/glibc-functions/removexattr.texi: Likewise.
48626         * doc/glibc-functions/res_init.texi: Likewise.
48627         * doc/glibc-functions/res_mkquery.texi: Likewise.
48628         * doc/glibc-functions/res_query.texi: Likewise.
48629         * doc/glibc-functions/res_querydomain.texi: Likewise.
48630         * doc/glibc-functions/res_send.texi: Likewise.
48631         * doc/glibc-functions/rresvport_af.texi: Likewise.
48632         * doc/glibc-functions/setxattr.texi: Likewise.
48633         * doc/glibc-functions/strcasestr.texi: Likewise.
48634
48635 2008-12-15  Bruno Haible  <bruno@clisp.org>
48636
48637         Fix compilation error on OSF/1 4.0.
48638         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
48639         <sys/time.h>, simply delegate to the system header.
48640         Reported by Daniel Richard G. <oss@teragram.com>.
48641
48642 2008-12-15  Bruno Haible  <bruno@clisp.org>
48643
48644         * doc/posix-functions/openat.texi: Mention the 'openat' module.
48645         * doc/posix-functions/fchmodat.texi: Likewise.
48646         * doc/posix-functions/fchownat.texi: Likewise.
48647         * doc/posix-functions/fdopendir.texi: Likewise.
48648         * doc/posix-functions/fstatat.texi: Likewise.
48649         * doc/posix-functions/mkdirat.texi: Likewise.
48650         * doc/posix-functions/unlinkat.texi: Likewise.
48651
48652 2008-12-14  Bruno Haible  <bruno@clisp.org>
48653
48654         Update doc for POSIX:2008.
48655         * doc/posix-functions/faccessat.texi: New file.
48656         * doc/posix-functions/fchmodat.texi: New file.
48657         * doc/posix-functions/fchownat.texi: New file.
48658         * doc/posix-functions/fdopendir.texi: New file.
48659         * doc/posix-functions/fstatat.texi: New file.
48660         * doc/posix-functions/futimens.texi: New file.
48661         * doc/posix-functions/linkat.texi: New file.
48662         * doc/posix-functions/mkdirat.texi: New file.
48663         * doc/posix-functions/mkfifoat.texi: New file.
48664         * doc/posix-functions/mknodat.texi: New file.
48665         * doc/posix-functions/open_wmemstream.texi: New file.
48666         * doc/posix-functions/openat.texi: New file.
48667         * doc/posix-functions/psiginfo.texi: New file.
48668         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
48669         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
48670         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
48671         * doc/posix-functions/readlinkat.texi: New file.
48672         * doc/posix-functions/renameat.texi: New file.
48673         * doc/posix-functions/strerror_l.texi: New file.
48674         * doc/posix-functions/symlinkat.texi: New file.
48675         * doc/posix-functions/unlinkat.texi: New file.
48676         * doc/posix-functions/utimensat.texi: New file.
48677         * doc/gnulib.texi (Function Substitutes): Add these subsections.
48678
48679 2008-12-14  Bruno Haible  <bruno@clisp.org>
48680
48681         Update doc for POSIX:2008.
48682         * doc/posix-functions/alphasort.texi: Renamed from
48683         doc/glibc-functions/alphasort.texi.
48684         * doc/posix-functions/dirfd.texi: Renamed from
48685         doc/glibc-functions/dirfd.texi.
48686         * doc/posix-functions/dprintf.texi: Renamed from
48687         doc/glibc-functions/dprintf.texi.
48688         * doc/posix-functions/duplocale.texi: Renamed from
48689         doc/glibc-functions/duplocale.texi.
48690         * doc/posix-functions/fexecve.texi: Renamed from
48691         doc/glibc-functions/fexecve.texi.
48692         * doc/posix-functions/fmemopen.texi: Renamed from
48693         doc/glibc-functions/fmemopen.texi.
48694         * doc/posix-functions/freelocale.texi: Renamed from
48695         doc/glibc-functions/freelocale.texi.
48696         * doc/posix-functions/getdate_err.texi: Renamed from
48697         doc/glibc-functions/getdate_err.texi.
48698         * doc/posix-functions/isalnum_l.texi: Renamed from
48699         doc/glibc-functions/isalnum_l.texi.
48700         * doc/posix-functions/isalpha_l.texi: Renamed from
48701         doc/glibc-functions/isalpha_l.texi.
48702         * doc/posix-functions/isblank_l.texi: Renamed from
48703         doc/glibc-functions/isblank_l.texi.
48704         * doc/posix-functions/iscntrl_l.texi: Renamed from
48705         doc/glibc-functions/iscntrl_l.texi.
48706         * doc/posix-functions/isdigit_l.texi: Renamed from
48707         doc/glibc-functions/isdigit_l.texi.
48708         * doc/posix-functions/isgraph_l.texi: Renamed from
48709         doc/glibc-functions/isgraph_l.texi.
48710         * doc/posix-functions/islower_l.texi: Renamed from
48711         doc/glibc-functions/islower_l.texi.
48712         * doc/posix-functions/isprint_l.texi: Renamed from
48713         doc/glibc-functions/isprint_l.texi.
48714         * doc/posix-functions/ispunct_l.texi: Renamed from
48715         doc/glibc-functions/ispunct_l.texi.
48716         * doc/posix-functions/isspace_l.texi: Renamed from
48717         doc/glibc-functions/isspace_l.texi.
48718         * doc/posix-functions/isupper_l.texi: Renamed from
48719         doc/glibc-functions/isupper_l.texi.
48720         * doc/posix-functions/iswalnum_l.texi: Renamed from
48721         doc/glibc-functions/iswalnum_l.texi.
48722         * doc/posix-functions/iswalpha_l.texi: Renamed from
48723         doc/glibc-functions/iswalpha_l.texi.
48724         * doc/posix-functions/iswblank_l.texi: Renamed from
48725         doc/glibc-functions/iswblank_l.texi.
48726         * doc/posix-functions/iswcntrl_l.texi: Renamed from
48727         doc/glibc-functions/iswcntrl_l.texi.
48728         * doc/posix-functions/iswctype_l.texi: Renamed from
48729         doc/glibc-functions/iswctype_l.texi.
48730         * doc/posix-functions/iswdigit_l.texi: Renamed from
48731         doc/glibc-functions/iswdigit_l.texi.
48732         * doc/posix-functions/iswgraph_l.texi: Renamed from
48733         doc/glibc-functions/iswgraph_l.texi.
48734         * doc/posix-functions/iswlower_l.texi: Renamed from
48735         doc/glibc-functions/iswlower_l.texi.
48736         * doc/posix-functions/iswprint_l.texi: Renamed from
48737         doc/glibc-functions/iswprint_l.texi.
48738         * doc/posix-functions/iswpunct_l.texi: Renamed from
48739         doc/glibc-functions/iswpunct_l.texi.
48740         * doc/posix-functions/iswspace_l.texi: Renamed from
48741         doc/glibc-functions/iswspace_l.texi.
48742         * doc/posix-functions/iswupper_l.texi: Renamed from
48743         doc/glibc-functions/iswupper_l.texi.
48744         * doc/posix-functions/iswxdigit_l.texi: Renamed from
48745         doc/glibc-functions/iswxdigit_l.texi.
48746         * doc/posix-functions/isxdigit_l.texi: Renamed from
48747         doc/glibc-functions/isxdigit_l.texi.
48748         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
48749         doc/glibc-functions/mbsnrtowcs.texi.
48750         * doc/posix-functions/mkdtemp.texi: Renamed from
48751         doc/glibc-functions/mkdtemp.texi.
48752         * doc/posix-functions/newlocale.texi: Renamed from
48753         doc/glibc-functions/newlocale.texi.
48754         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
48755         doc/glibc-functions/nl_langinfo_l.texi.
48756         * doc/posix-functions/open_memstream.texi: Renamed from
48757         doc/glibc-functions/open_memstream.texi.
48758         * doc/posix-functions/opterr.texi: Renamed from
48759         doc/glibc-functions/opterr.texi.
48760         * doc/posix-functions/optind.texi: Renamed from
48761         doc/glibc-functions/optind.texi.
48762         * doc/posix-functions/optopt.texi: Renamed from
48763         doc/glibc-functions/optopt.texi.
48764         * doc/posix-functions/psignal.texi: Renamed from
48765         doc/glibc-functions/psignal.texi.
48766         * doc/posix-functions/scandir.texi: Renamed from
48767         doc/glibc-functions/scandir.texi.
48768         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
48769         doc/glibc-functions/sched_get_priority_min.texi.
48770         * doc/posix-functions/signgam.texi: Renamed from
48771         doc/glibc-functions/signgam.texi.
48772         * doc/posix-functions/stpcpy.texi: Renamed from
48773         doc/glibc-functions/stpcpy.texi.
48774         * doc/posix-functions/stpncpy.texi: Renamed from
48775         doc/glibc-functions/stpncpy.texi.
48776         * doc/posix-functions/strcasecmp_l.texi: Renamed from
48777         doc/glibc-functions/strcasecmp_l.texi.
48778         * doc/posix-functions/strcoll_l.texi: Renamed from
48779         doc/glibc-functions/strcoll_l.texi.
48780         * doc/posix-functions/strfmon_l.texi: Renamed from
48781         doc/glibc-functions/strfmon_l.texi.
48782         * doc/posix-functions/strftime_l.texi: Renamed from
48783         doc/glibc-functions/strftime_l.texi.
48784         * doc/posix-functions/strncasecmp_l.texi: Renamed from
48785         doc/glibc-functions/strncasecmp_l.texi.
48786         * doc/posix-functions/strndup.texi: Renamed from
48787         doc/glibc-functions/strndup.texi.
48788         * doc/posix-functions/strnlen.texi: Renamed from
48789         doc/glibc-functions/strnlen.texi.
48790         * doc/posix-functions/strsignal.texi: Renamed from
48791         doc/glibc-functions/strsignal.texi.
48792         * doc/posix-functions/strxfrm_l.texi: Renamed from
48793         doc/glibc-functions/strxfrm_l.texi.
48794         * doc/posix-functions/timer_gettime.texi: Renamed from
48795         doc/glibc-functions/timer_gettime.texi.
48796         * doc/posix-functions/tolower_l.texi: Renamed from
48797         doc/glibc-functions/tolower_l.texi.
48798         * doc/posix-functions/toupper_l.texi: Renamed from
48799         doc/glibc-functions/toupper_l.texi.
48800         * doc/posix-functions/towctrans_l.texi: Renamed from
48801         doc/glibc-functions/towctrans_l.texi.
48802         * doc/posix-functions/towlower_l.texi: Renamed from
48803         doc/glibc-functions/towlower_l.texi.
48804         * doc/posix-functions/towupper_l.texi: Renamed from
48805         doc/glibc-functions/towupper_l.texi.
48806         * doc/posix-functions/uselocale.texi: Renamed from
48807         doc/glibc-functions/uselocale.texi.
48808         * doc/posix-functions/vdprintf.texi: Renamed from
48809         doc/glibc-functions/vdprintf.texi.
48810         * doc/posix-functions/wcpcpy.texi:
48811         Renamed from doc/glibc-functions/wcpcpy.texi.
48812         * doc/posix-functions/wcpncpy.texi: Renamed from
48813         doc/glibc-functions/wcpncpy.texi.
48814         * doc/posix-functions/wcscasecmp.texi: Renamed from
48815         doc/glibc-functions/wcscasecmp.texi.
48816         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
48817         doc/glibc-functions/wcscasecmp_l.texi.
48818         * doc/posix-functions/wcscoll_l.texi: Renamed from
48819         doc/glibc-functions/wcscoll_l.texi.
48820         * doc/posix-functions/wcsdup.texi: Renamed from
48821         doc/glibc-functions/wcsdup.texi.
48822         * doc/posix-functions/wcsncasecmp.texi: Renamed from
48823         doc/glibc-functions/wcsncasecmp.texi.
48824         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
48825         doc/glibc-functions/wcsncasecmp_l.texi.
48826         * doc/posix-functions/wcsnlen.texi: Renamed from
48827         doc/glibc-functions/wcsnlen.texi.
48828         * doc/posix-functions/wcsnrtombs.texi: Renamed from
48829         doc/glibc-functions/wcsnrtombs.texi.
48830         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
48831         doc/glibc-functions/wcsxfrm_l.texi.
48832         * doc/posix-functions/wctrans_l.texi: Renamed from
48833         doc/glibc-functions/wctrans_l.texi.
48834         * doc/posix-functions/wctype_l.texi: Renamed from
48835         doc/glibc-functions/wctype_l.texi.
48836         * doc/gnulib.texi (Function Substitutes): Add these subsections.
48837         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
48838         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
48839         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
48840         these subsections.
48841         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
48842         Remove sections.
48843
48844 2008-12-14  Bruno Haible  <bruno@clisp.org>
48845
48846         Update doc for POSIX:2008.
48847         * doc/posix-functions/*.texi: Update URL of POSIX specification.
48848
48849 2008-12-14  Bruno Haible  <bruno@clisp.org>
48850
48851         Update doc for POSIX:2008.
48852         * doc/pastposix-functions/bcmp.texi: Renamed from
48853         doc/posix-functions/bcmp.texi.
48854         * doc/pastposix-functions/bcopy.texi: Renamed from
48855         doc/posix-functions/bcopy.texi.
48856         * doc/pastposix-functions/bsd_signal.texi: Renamed from
48857         doc/posix-functions/bsd_signal.texi.
48858         * doc/pastposix-functions/bzero.texi: Renamed from
48859         doc/posix-functions/bzero.texi.
48860         * doc/pastposix-functions/ecvt.texi: Renamed from
48861         doc/posix-functions/ecvt.texi.
48862         * doc/pastposix-functions/fcvt.texi: Renamed from
48863         doc/posix-functions/fcvt.texi.
48864         * doc/pastposix-functions/ftime.texi: Renamed from
48865         doc/posix-functions/ftime.texi.
48866         * doc/pastposix-functions/gcvt.texi: Renamed from
48867         doc/posix-functions/gcvt.texi.
48868         * doc/pastposix-functions/getcontext.texi: Renamed from
48869         doc/posix-functions/getcontext.texi.
48870         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
48871         doc/posix-functions/gethostbyaddr.texi.
48872         * doc/pastposix-functions/gethostbyname.texi: Renamed from
48873         doc/posix-functions/gethostbyname.texi.
48874         * doc/pastposix-functions/getwd.texi: Renamed from
48875         doc/posix-functions/getwd.texi.
48876         * doc/pastposix-functions/h_errno.texi: Renamed from
48877         doc/posix-functions/h_errno.texi.
48878         * doc/pastposix-functions/index.texi: Renamed from
48879         doc/posix-functions/index.texi.
48880         * doc/pastposix-functions/makecontext.texi: Renamed from
48881         doc/posix-functions/makecontext.texi.
48882         * doc/pastposix-functions/mktemp.texi: Renamed from
48883         doc/posix-functions/mktemp.texi.
48884         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
48885         doc/posix-functions/pthread_attr_getstackaddr.texi.
48886         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
48887         doc/posix-functions/pthread_attr_setstackaddr.texi.
48888         * doc/pastposix-functions/rindex.texi: Renamed from
48889         doc/posix-functions/rindex.texi.
48890         * doc/pastposix-functions/scalb.texi: Renamed from
48891         doc/posix-functions/scalb.texi.
48892         * doc/pastposix-functions/setcontext.texi: Renamed from
48893         doc/posix-functions/setcontext.texi.
48894         * doc/pastposix-functions/swapcontext.texi: Renamed from
48895         doc/posix-functions/swapcontext.texi.
48896         * doc/pastposix-functions/ualarm.texi: Renamed from
48897         doc/posix-functions/ualarm.texi.
48898         * doc/pastposix-functions/usleep.texi: Renamed from
48899         doc/posix-functions/usleep.texi.
48900         * doc/pastposix-functions/vfork.texi: Renamed from
48901         doc/posix-functions/vfork.texi.
48902         * doc/pastposix-functions/wcswcs.texi: Renamed from
48903         doc/posix-functions/wcswcs.texi.
48904         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
48905         (Function Substitutes): Update.
48906
48907 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48908
48909         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
48910         m4/strerror.m4.
48911
48912 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48913             Bruno Haible  <bruno@clisp.org>
48914
48915         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
48916
48917 2008-12-13  Bruno Haible  <bruno@clisp.org>
48918
48919         * modules/strtoull (Depends-on): Remove unistd.
48920
48921 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48922
48923         * modules/strtoull (Depends-on): Add stdlib.
48924
48925 2008-12-11  Simon Josefsson  <simon@josefsson.org>
48926
48927         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
48928
48929 2008-12-10  Jim Meyering  <meyering@redhat.com>
48930
48931         gl_ASSERT: don't say assertions are disabled when they're not
48932         * m4/assert.m4 (gl_ASSERT): Do not make configure report
48933         "checking whether to enable assertions... no", when they are in
48934         fact enabled.  This is solely a bug in the output of configure.
48935         In spite of saying "no", NDEBUG was not defined in that case.
48936         Also, as noted by Eric Blake, leave assertions enabled upon
48937         --enable-assert=INVALID.
48938
48939 2008-12-10  Bruno Haible  <bruno@clisp.org>
48940
48941         Change MODULES.html to refer to POSIX:2008 where possible.
48942         * MODULES.html.sh (POSIX2008_URL): New variable.
48943         (posix_headers): Remove sys/timeb, ucontext.
48944         (posix2001_headers): New variable.
48945         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
48946         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
48947         index, makecontext, mktemp, pthread_attr_getstackaddr,
48948         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
48949         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
48950         (posix2001_functions): New variable.
48951         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
48952         otherwise.
48953
48954 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48955
48956         add missing include to parse-duration.c
48957         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
48958         * modules/parse-duration (Depends-on): Add xalloc.
48959
48960         fix sed script reading maint.mk
48961         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
48962         (syntax-check-rules): Use it.
48963
48964 2008-12-09  Bruno Haible  <bruno@clisp.org>
48965
48966         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
48967         MacOS X 10.4/PowerPC.
48968         Reported by Simon Josefsson.
48969
48970 2008-12-08  Jim Meyering  <meyering@redhat.com>
48971
48972         work around mingw's lack of some S_IF definitions
48973         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
48974         Reported by Simon Josefsson.
48975
48976 2008-12-08  Bruno Haible  <bruno@clisp.org>
48977
48978         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
48979         applied to variables. Needed on MacOS X 10.4/PowerPC.
48980         Reported by Simon Josefsson.
48981
48982 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
48983         and Eric Blake  <ebb9@byu.net>
48984
48985         assert: honor --enable-assert
48986         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
48987         order to honor --enable-assert, rather than treating it as a
48988         synonym for --disable-assert.
48989
48990 2008-12-08  Jim Meyering  <meyering@redhat.com>
48991
48992         * lib/posixtm.c: Remove now-useless declaration of mktime.
48993
48994         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
48995
48996 2008-12-07  Bruno Haible  <bruno@clisp.org>
48997
48998         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
48999         test_once): Mark functions as static.
49000         * tests/test-tls.c (test_tls): Likewise.
49001
49002 2008-12-07  Bruno Haible  <bruno@clisp.org>
49003
49004         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
49005         iconv_register_autodetect.
49006
49007 2008-12-07  Jim Meyering  <meyering@redhat.com>
49008
49009         posixtm.c: avoid a warning
49010         * lib/posixtm.c (posixtime): Don't initialize tm0.
49011         It's no longer needed to placate gcc4's -Wuninitialized,
49012         and the attempt to placate would elicit a new warning.
49013
49014         unicodeio.c: mark unused parameters
49015         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49016         (fallback_failure_callback): Likewise.
49017
49018 2008-12-07  Bruno Haible  <bruno@clisp.org>
49019
49020         * gnulib-tool (func_create_testdir): When building the tests
49021         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
49022         Reported by Simon Josefsson.
49023
49024 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49025
49026         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
49027
49028 2008-12-06  Bruno Haible  <bruno@clisp.org>
49029
49030         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
49031         Suggested by Eric Blake.
49032
49033 2008-12-06  Bruno Haible  <bruno@clisp.org>
49034
49035         Fix a c-stack test failure on MacOS X.
49036         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
49037         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
49038         handler for SIGBUS as well.
49039         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
49040         install a signal handler for SIGBUS as well.
49041         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
49042
49043 2008-12-06  Bruno Haible  <bruno@clisp.org>
49044
49045         Advocacy documentation.
49046         * doc/gnulib-intro.texi (Benefits): New section.
49047         * doc/gnulib.texi: Update.
49048
49049 2008-12-06  Bruno Haible  <bruno@clisp.org>
49050
49051         Document the 'manywarnings' module.
49052         * doc/manywarnings.texi: New file.
49053         * doc/gnulib.texi: Include it.
49054
49055 2008-12-05  Eric Blake  <ebb9@byu.net>
49056
49057         tests: silence some gcc warnings
49058         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
49059         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
49060         type mismatches.
49061
49062 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49063             Bruno Haible  <bruno@clisp.org>
49064
49065         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
49066
49067 2008-11-29  Jim Meyering  <meyering@redhat.com>
49068
49069         unicodeio.c: mark unused parameters
49070         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49071         (fallback_failure_callback): Likewise.
49072
49073         fts: fix a thinko
49074         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
49075         (set_stat_type): Return S_IF*-valued "type" directly.
49076         Prompted by James Youngman's spotting a related bug.
49077         Confirmed by further testing through find.
49078
49079         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
49080         * lib/fts.c (D_TYPE): Define.
49081         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
49082         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
49083         (s_ifmt_shift_bits): New function.
49084         (set_stat_type): New function.
49085         (fts_build): When not calling fts_stat, call set_stat_type
49086         to propagate dirent.d_type info to fts_read caller.
49087         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
49088         fts_statp->st_mode type information may be valid.
49089
49090 2008-11-28  Simon Josefsson  <simon@josefsson.org>
49091
49092         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
49093         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
49094         <sds@gnu.org>.
49095
49096 2008-11-20  Bruno Haible  <bruno@clisp.org>
49097
49098         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
49099         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
49100         INCLUDE_NEXT.
49101         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
49102         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
49103         * modules/math (Makefile.am): Substitute
49104         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
49105         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49106
49107 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
49108             Bruno Haible  <bruno@clisp.org>
49109
49110         * lib/stdint.in.h: Define all type macros so that their expansion is
49111         a single typedef'ed token. Fixes a compilation failure in Boost which
49112         does "using ::int8_t;".
49113
49114 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49115
49116         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
49117         gl_MANYWARN_ALL_GCC.
49118         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
49119         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
49120         * modules/manywarnings: New file.
49121         * MODULES.html.sh: Mention manywarnings module.
49122
49123 2008-11-18  Bruno Haible  <bruno@clisp.org>
49124
49125         * doc/gnulib-tool.texi (Unit tests): New section.
49126
49127 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49128
49129         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
49130         paths like 'lib/po/foo.po'.
49131
49132 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49133
49134         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
49135         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
49136
49137 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49138
49139         * m4/warnings.m4: Use CPPFLAGS to really check whether the
49140         parameter works.
49141
49142 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49143
49144         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
49145
49146 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49147
49148         * modules/parse-duration-tests: New file.
49149         * tests/test-parse-duration.sh: New file.
49150         * tests/test-parse-duration.c: New file.
49151
49152         New module 'parse-duration'.
49153         * lib/parse-duration.h: New file.
49154         * lib/parse-duration.c: New file.
49155         * modules/parse-duration: New file.
49156
49157 2008-11-17  Bruno Haible  <bruno@clisp.org>
49158
49159         * tests/test-select-out.sh: Comment out the first pipe test.
49160         Reported by Simon Josefsson.
49161
49162 2008-11-17  Bruno Haible  <bruno@clisp.org>
49163
49164         * modules/getaddrinfo (Depends-on): Add servent, hostent.
49165         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
49166         gl_HOSTENT.
49167
49168 2008-11-17  Bruno Haible  <bruno@clisp.org>
49169
49170         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
49171         -lnetwork and -lnet. Needed for Haiku and BeOS.
49172
49173 2008-11-16  Bruno Haible  <bruno@clisp.org>
49174
49175         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
49176
49177 2008-11-16  Bruno Haible  <bruno@clisp.org>
49178
49179         Avoid test failure on Haiku.
49180         * tests/test-fsync.c: Include <errno.h>.
49181         (main): Don't require that fsync (0) fails.
49182
49183 2008-11-15  Bruno Haible  <bruno@clisp.org>
49184
49185         New module 'hostent'.
49186         * modules/hostent: New file.
49187         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
49188
49189 2008-11-15  Bruno Haible  <bruno@clisp.org>
49190
49191         New module 'servent'.
49192         * modules/servent: New file.
49193         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
49194
49195 2008-11-15  Bruno Haible  <bruno@clisp.org>
49196
49197         Avoid generating same test program with two different rules.
49198         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
49199         test-frexp to test-frexp-nolibm.
49200         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
49201         test-frexpl to test-frexpl-nolibm.
49202
49203 2008-11-15  Bruno Haible  <bruno@clisp.org>
49204
49205         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
49206         $(FREXPL_LIBM).
49207
49208 2008-11-15  Bruno Haible  <bruno@clisp.org>
49209
49210         * lib/netdb.in.h: Activate the definitions also when the system's
49211         <netdb.h> has 'struct addrinfo'.
49212         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
49213         EAI_OVERFLOW or AI_NUMERICSERV.
49214         * doc/posix-headers/netdb.texi: Document the problem.
49215
49216 2008-11-15  Bruno Haible  <bruno@clisp.org>
49217
49218         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
49219
49220         Make the 'sched' module work on platforms where <sched.h> exists but
49221         is incomplete (such as Haiku).
49222         * lib/sched.in.h; Include the system's <sched.h> if it exists.
49223         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
49224         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
49225         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
49226         HAVE_STRUCT_SCHED_PARAM.
49227         * modules/sched (Depends-on): Add include_next.
49228         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
49229         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
49230         * doc/posix-headers/sched.texi: Document the issue.
49231
49232 2008-11-13  Jim Meyering  <meyering@redhat.com>
49233
49234         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
49235         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
49236         test would fail due to the difference in the Report bugs to ...
49237         line.  The expected address is empty, "<>", while the actual
49238         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
49239
49240 2008-11-12  Bruno Haible  <bruno@clisp.org>
49241
49242         lstat: don't compile lstat.c on systems lacking lstat
49243         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
49244         which don't have lstat; this is handled by lib/sys_stat.in.h already.
49245         Reported by Daniel P. Berrange via Jim Meyering.
49246
49247 2008-11-12  Jim Meyering  <meyering@redhat.com>
49248
49249         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
49250
49251 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49252
49253         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
49254         instead.
49255
49256 2008-11-12  Bruno Haible  <bruno@clisp.org>
49257
49258         * lib/unicodeio.c: Include unistr.h.
49259         (utf8_wctomb): Remove function.
49260         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
49261
49262 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49263
49264         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
49265         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
49266         <bruno@clisp.org>.
49267         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
49268
49269 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49270
49271         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
49272         * doc/gnulib.texi: Add section for warnings.
49273
49274 2008-11-11  Bruno Haible  <bruno@clisp.org>
49275
49276         * lib/sockets.h: Add a comment.
49277
49278 2008-11-11  Karl Berry  <karl@gnu.org>
49279
49280         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
49281
49282 2008-11-11  Eric Blake  <ebb9@byu.net>
49283
49284         fdl.texi: avoid git symlinks
49285         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
49286
49287 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49288
49289         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
49290
49291 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49292
49293         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
49294         (gl_WARN_ADD): Substitute $2 if literal.
49295
49296 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49297
49298         * m4/warning.m4: Remove.
49299
49300 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49301
49302         * m4/warnings.m4: Almost complete rewrite. :-)
49303
49304 2008-11-10  Simon Josefsson  <simon@josefsson.org>
49305
49306         * modules/warnings: New module.
49307         * m4/warnings.m4: New file.
49308         * MODULES.html.sh: Mention warnings module.
49309         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
49310         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49311
49312 2008-11-10  Eric Blake  <ebb9@byu.net>
49313
49314         fdl.texi: make a symlink to the latest version
49315         * doc/standards.texi: Revert today's earlier change.
49316         * doc/fdl-1.2.texi: Rename from old fdl.texi...
49317         * doc/fdl.texi: ...and replace this with a symlink to the newer
49318         fdl-1.3.texi.
49319
49320 2008-11-10  Bruno Haible  <bruno@clisp.org>
49321
49322         * tests/test-select-fd.c (main): Accept the result file name as fourth
49323         argument.
49324         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
49325         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
49326
49327 2008-11-10  Bruno Haible  <bruno@clisp.org>
49328
49329         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
49330         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
49331         as autoconf-substituted macros.
49332         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
49333         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
49334         gl_NETDB_H_DEFAULTS. Set these variables.
49335         * modules/netdb (Makefile.am): Substitute these variables.
49336
49337 2008-11-10  Eric Blake  <ebb9@byu.net>
49338
49339         standards.texi: include correct file for FDL 1.3
49340         * doc/standards.texi (GNU Free Documentation License): Change
49341         include file to pull in FDL 1.3, not 1.2.
49342
49343         fdl.texi: revert accidental change to license
49344         * doc/fdl.texi: This is FDL 1.2, not 1.3.
49345
49346 2008-11-10  Bruno Haible  <bruno@clisp.org>
49347
49348         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
49349         cross-compiling guesses also when the native compile gives no result.
49350
49351 2008-11-10  Bruno Haible  <bruno@clisp.org>
49352
49353         * lib/spawni.c (__spawni): Force variable into the stack.
49354
49355 2008-11-10  Bruno Haible  <bruno@clisp.org>
49356
49357         Add support for Haiku.
49358         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
49359         glibc and BeOS, but also on Haiku.
49360         * lib/fpurge.c (fpurge): Likewise.
49361         * lib/freadable.c (freadable): Likewise.
49362         * lib/freadahead.c (freadahead): Likewise.
49363         * lib/freading.c (freading): Likewise.
49364         * lib/freadptr.c (freadptr): Likewise.
49365         * lib/freadseek.c (freadptrinc): Likewise.
49366         * lib/fseeko.c (rpl_fseeko): Likewise.
49367         * lib/fseterr.c (fseterr): Likewise.
49368         * lib/fwritable.c (fwritable): Likewise.
49369         * lib/fwriting.c (fwriting): Likewise.
49370         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
49371
49372 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49373
49374         * lib/config.charset: Treat Haiku like BeOS.
49375
49376 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49377
49378         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
49379         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
49380
49381 2008-11-08  Bruno Haible  <bruno@clisp.org>
49382
49383         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
49384         AC_CACHE_CHECK.
49385
49386 2008-11-08  Bruno Haible  <bruno@clisp.org>
49387
49388         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
49389
49390 2008-11-08  Bruno Haible  <bruno@clisp.org>
49391
49392         * tests/test-select-fd.c: New file.
49393         * tests/test-select-in.sh: New file.
49394         * tests/test-select-out.sh: New file.
49395         * tests/test-select-stdin.c: New file.
49396         * modules/select-tests (Files): Add the new files.
49397         (Depends-on): Add gettimeofday.
49398         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
49399         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
49400         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
49401
49402 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
49403             Bruno Haible  <bruno@clisp.org>
49404
49405         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
49406
49407 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
49408
49409         * build-aux/pmccabe2html: Added support for C++ source files.
49410
49411 2008-11-05  Ben Pfaff  <blp@gnu.org>
49412
49413         Fix lib/close.c build on Windows.
49414         * modules/close (Files): Add lib/w32sock.h.
49415
49416 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
49417
49418         Accept Bison's NEWS format.
49419         * build-aux/announce-gen (print_news_deltas): Tweak
49420         $re_prefix.
49421
49422 2008-11-04  Bruno Haible  <bruno@clisp.org>
49423
49424         * modules/random_r (Maintainer): Add glibc.
49425
49426 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49427
49428         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
49429         by karl@freefriends.org (Karl Berry).
49430         * doc/alloca.texi: Likewise.
49431         * doc/c-ctype.texi: Likewise.
49432         * doc/c-strcase.texi: Likewise.
49433         * doc/c-strcaseeq.texi: Likewise.
49434         * doc/c-strcasestr.texi: Likewise.
49435         * doc/c-strstr.texi: Likewise.
49436         * doc/c-strtod.texi: Likewise.
49437         * doc/c-strtold.texi: Likewise.
49438         * doc/ctime.texi: Likewise.
49439         * doc/error.texi: Likewise.
49440         * doc/fdl.texi: Likewise.
49441         * doc/gcd.texi: Likewise.
49442         * doc/getdate.texi: Likewise.
49443         * doc/gnulib-intro.texi: Likewise.
49444         * doc/gnulib-tool.texi: Likewise.
49445         * doc/gnulib.texi: Likewise.
49446         * doc/inet_ntoa.texi: Likewise.
49447         * doc/maintain.texi: Likewise.
49448         * doc/make-stds.texi: Likewise.
49449         * doc/quote.texi: Likewise.
49450         * doc/regexprops-generic.texi: Likewise.
49451         * doc/standards.texi: Likewise.
49452         * doc/verify.texi: Likewise.
49453         * doc/visibility.texi: Likewise.
49454         * doc/gnulib.texi (GNU Free Documentation License): Include
49455         fdl-1.3.texi instead of fdl.texi.
49456
49457 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49458
49459         * doc/fdl-1.3.texi: New file, from
49460         <http://www.gnu.org/licenses/fdl-1.3.texi>.
49461         * modules/fdl-1.3: Add.
49462         * MODULES.html.sh: Add fdl-1.3.
49463
49464 2008-11-03  Bruno Haible  <bruno@clisp.org>
49465
49466         Make determination of absolute name of header file work with AIX xlc.
49467         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
49468         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
49469         preprocessing.
49470         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49471         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
49472
49473 2008-11-03  Simon Josefsson  <simon@josefsson.org>
49474
49475         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
49476         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
49477         <ludo@gnu.org>.
49478
49479 2008-11-02  Bruno Haible  <bruno@clisp.org>
49480
49481         Mark 'strpbrk' obsolete.
49482         * modules/strpbrk (Status, Notice): New sections.
49483         * modules/strtok_r (Depends-on): Add strpbrk.
49484
49485 2008-11-02  Bruno Haible  <bruno@clisp.org>
49486
49487         Mark 'strdup' obsolete.
49488         * modules/strdup (Status, Notice): New sections.
49489         * modules/findprog (Depends-on): Add strdup.
49490         * modules/getaddrinfo (Depends-on): Likewise.
49491         * modules/localename (Depends-on): Likewise.
49492         * modules/relocatable-lib (Depends-on): Likewise.
49493         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
49494         * modules/relocatable-prog (Depends-on): Likewise.
49495         * modules/trim (Depends-on): Likewise.
49496         * modules/unictype/gen-ctype (Depends-on): Likewise.
49497         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49498
49499 2008-11-02  Bruno Haible  <bruno@clisp.org>
49500
49501         Mark 'strcspn' obsolete.
49502         * modules/strcspn (Status, Notice): New sections.
49503
49504 2008-11-02  Bruno Haible  <bruno@clisp.org>
49505
49506         Mark 'rmdir' obsolete.
49507         * modules/rmdir (Status, Notice): New sections.
49508         * modules/clean-temp (Depends-on): Add rmdir.
49509         * modules/openat (Depends-on): Likewise.
49510
49511 2008-11-02  Bruno Haible  <bruno@clisp.org>
49512
49513         Mark 'raise' obsolete.
49514         * modules/raise (Status, Notice): New sections.
49515         (Include): Specify <signal.h>.
49516         * modules/stdio (Depends-on): Add raise.
49517         * modules/write (Depends-on): Likewise.
49518
49519 2008-11-02  Bruno Haible  <bruno@clisp.org>
49520
49521         Mark 'memset' obsolete.
49522         * modules/memset (Status, Notice): New sections.
49523
49524 2008-11-02  Bruno Haible  <bruno@clisp.org>
49525
49526         Mark 'memmove' obsolete.
49527         * modules/memmove (Status, Notice): New sections.
49528         * modules/argp (Depends-on): Add memmove.
49529         * modules/argz (Depends-on): Likewise.
49530         * modules/canonicalize (Depends-on): Likewise.
49531         * modules/canonicalize-lgpl (Depends-on): Likewise.
49532         * modules/fts (Depends-on): Likewise.
49533         * modules/getcwd (Depends-on): Likewise.
49534         * modules/human (Depends-on): Likewise.
49535         * modules/regex (Depends-on): Likewise.
49536         * modules/striconveh (Depends-on): Likewise.
49537         * modules/trim (Depends-on): Likewise.
49538         * modules/unistr/u8-move (Depends-on): Likewise.
49539         * modules/unistr/u16-move (Depends-on): Likewise.
49540         * modules/unistr/u32-move (Depends-on): Likewise.
49541
49542 2008-11-02  Bruno Haible  <bruno@clisp.org>
49543
49544         Mark 'memcpy' obsolete.
49545         * modules/memcpy (Status, Notice): New sections.
49546
49547 2008-11-02  Bruno Haible  <bruno@clisp.org>
49548
49549         Mark 'memcmp' obsolete.
49550         * modules/memcmp (Status, Notice): New sections.
49551         * modules/argmatch (Depends-on): Add memchr.
49552         * modules/backupfile (Depends-on): Likewise.
49553         * modules/c-strcasestr (Depends-on): Likewise.
49554         * modules/crypto/des (Depends-on): Likewise.
49555         * modules/csharpcomp (Depends-on): Likewise.
49556         * modules/fnmatch (Depends-on): Likewise.
49557         * modules/git-merge-changelog (Depends-on): Likewise.
49558         * modules/isnand (Depends-on): Likewise.
49559         * modules/isnand-nolibm (Depends-on): Likewise.
49560         * modules/isnanf (Depends-on): Likewise.
49561         * modules/isnanf-nolibm (Depends-on): Likewise.
49562         * modules/isnanl (Depends-on): Likewise.
49563         * modules/isnanl-nolibm (Depends-on): Likewise.
49564         * modules/mbchar (Depends-on): Likewise.
49565         * modules/memcoll (Depends-on): Likewise.
49566         * modules/quotearg (Depends-on): Likewise.
49567         * modules/regex (Depends-on): Likewise.
49568         * modules/relocatable-prog (Depends-on): Likewise.
49569         * modules/same (Depends-on): Likewise.
49570         * modules/signbit (Depends-on): Likewise.
49571         * modules/strcasestr-simple (Depends-on): Likewise.
49572         * modules/unictype/gen-ctype (Depends-on): Likewise.
49573         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49574         * modules/uniname/uniname (Depends-on): Likewise.
49575         * modules/unistr/u8-cmp (Depends-on): Likewise.
49576
49577 2008-11-02  Bruno Haible  <bruno@clisp.org>
49578
49579         Mark 'memchr' obsolete.
49580         * modules/memchr (Status, Notice): New sections.
49581         * modules/argp (Depends-on): Add memchr.
49582         * modules/base64 (Depends-on): Likewise.
49583         * modules/c-strcasestr (Depends-on): Likewise.
49584         * modules/chdir-long (Depends-on): Likewise.
49585         * modules/fnmatch (Depends-on): Likewise.
49586         * modules/getsubopt (Depends-on): Likewise.
49587         * modules/git-merge-changelog (Depends-on): Likewise.
49588         * modules/glob (Depends-on): Likewise.
49589         * modules/strcasestr-simple (Depends-on): Likewise.
49590         * modules/strnlen (Depends-on): Likewise.
49591
49592 2008-11-02  Bruno Haible  <bruno@clisp.org>
49593
49594         Mark 'atexit' obsolete.
49595         * modules/atexit (Status, Notice): New sections.
49596         * modules/chdir-long (Depends-on): Add atexit.
49597         * modules/wait-process (Depends-on): Likewise.
49598
49599 2008-11-02  Bruno Haible  <bruno@clisp.org>
49600
49601         * gnulib-tool: New option --with-obsolete.
49602         (func_usage): Document it.
49603         (func_modules_transitive_closure): Drop obsolete dependencies if
49604         incobsolete is not true.
49605         (func_import): Read and save the incobsolete variable to the cache.
49606
49607 2008-11-02  Bruno Haible  <bruno@clisp.org>
49608
49609         * modules/TEMPLATE-EXTENDED: New field 'Status'.
49610         * gnulib-tool: New option --extract-status.
49611         (func_usage): Document it.
49612         (sed_extract_prog): Recognize it.
49613         (func_get_status): New function.
49614
49615 2008-10-30  Simon Josefsson  <simon@josefsson.org>
49616
49617         * modules/sockets (License): Change from LGPL to LGPLv2+.
49618
49619 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49620
49621         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
49622
49623 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49624
49625         * MODULES.html.sh (Support for systems lacking POSIX:2001):
49626         Mention times and sys_times.
49627         * modules/sys_times, modules/sys_times-tests: New modules.
49628         * modules/times, modules/times-tests: Likewise
49629         * m4/sys_times_h.m4: New file.
49630         * lib/sys_times.in.h: Likewise
49631         * lib/times.c: Likewise.
49632         * tests/test-sys_times.c: Likewise.
49633         * tests/test-times.c: Likewise.
49634         * doc/posix-headers/sys_times.texi: Update.
49635         * doc/posix-functions/times.texi: Update.
49636
49637 2008-10-28  Jim Meyering  <meyering@redhat.com>
49638
49639         * modules/tempname (Depends-on): Add lstat.
49640
49641         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
49642
49643 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49644
49645         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
49646         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
49647         using idiom used elsewhere in gnulib.
49648
49649 2008-10-27  Jim Meyering  <meyering@redhat.com>
49650
49651         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
49652
49653 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49654
49655         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
49656         TESTS_ENVIRONMENT, for shell scripts that needs to call built
49657         programs.
49658         * tests/test-argp-2.sh: Use $EXEEXT when needed.
49659
49660 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49661
49662         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
49663
49664 2008-10-27  Bruno Haible  <bruno@clisp.org>
49665
49666         * tests/test-lstat.c: Include <stdio.h>.
49667
49668 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49669
49670         * modules/lstat-tests: New module.
49671         * tests/test-lstat.c: New file.
49672
49673 2008-10-26  Jim Meyering  <meyering@redhat.com>
49674
49675         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
49676
49677 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49678             Bruno Haible  <bruno@clisp.org>
49679
49680         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
49681         * modules/configmake (Include): Add a note that the include must come
49682         after all system headers.
49683         * lib/javaversion.c: Include configmake.h after all other includes.
49684
49685 2008-10-26  Bruno Haible  <bruno@clisp.org>
49686
49687         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
49688         HAVE_STRUCT_RANDOM_DATA to 1.
49689         (gl_STDLIB_H): Simplify.
49690
49691 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49692
49693         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
49694         substitute HAVE_STRUCT_RANDOM_DATA.
49695         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
49696         random_data.
49697         * modules/stdlib (Makefile.am): Substitute
49698         HAVE_STRUCT_RANDOM_DATA.
49699
49700 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49701
49702         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
49703         * doc/gnulib-intro.texi (Copyright): Likewise.
49704
49705 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49706
49707         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
49708         findings.
49709
49710 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
49711             Bruno Haible  <bruno@clisp.org>
49712
49713         * lib/unistd.in.h: Include <winsock2.h>.
49714         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
49715         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
49716         Provide dummy declarations.
49717         (gethostname): Override.
49718         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
49719         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
49720         gl_PREREQ_SYS_H_WINSOCK2.
49721         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
49722         * doc/posix-functions/gethostname.texi: More details.
49723
49724 2008-10-25  Bruno Haible  <bruno@clisp.org>
49725
49726         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
49727         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
49728         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
49729
49730         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
49731         here ...
49732         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
49733         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
49734         gl_UNISTD_H_DEFAULTS.
49735
49736 2008-10-25  Eric Blake  <ebb9@byu.net>
49737
49738         signbit: avoid spurious compiler failure
49739         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
49740         declarations inside function.
49741
49742 2008-10-24  Simon Josefsson  <simon@josefsson.org>
49743             Bruno Haible  <bruno@clisp.org>
49744
49745         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
49746         * modules/random_r (Depends-on): Add stdint.
49747
49748 2008-10-24  Bruno Haible  <bruno@clisp.org>
49749
49750         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
49751         Eggert.
49752         * modules/strerror (License): Likewise.
49753
49754 2008-10-24  Jim Meyering  <meyering@redhat.com>
49755
49756         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
49757         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
49758
49759 2008-10-24  Eric Blake  <ebb9@byu.net>
49760
49761         getgroups: fix compilation when getgroups is available
49762         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
49763         but with <config.h> override of getgroups disabled.
49764
49765 2008-10-24  Simon Josefsson  <simon@josefsson.org>
49766
49767         * doc/gnulib.texi (Header files): Add note about C++ problems.
49768         Explained by Bruno Haible <bruno@clisp.org>.
49769
49770 2008-10-23  Bruno Haible  <bruno@clisp.org>
49771
49772         Define a dummy SA_NODEFER macro on Interix.
49773         * lib/signal.in.h (SA_NODEFER): Define fallback.
49774         Reported by Aleksey Cheusov <cheusov@tut.by> via
49775         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
49776
49777 2008-10-23  Bruno Haible  <bruno@clisp.org>
49778
49779         * modules/freadahead (License): Change to LGPLv2+.
49780         Suggested by Simon Josefsson.
49781
49782 2008-10-23  Jim Meyering  <meyering@redhat.com>
49783
49784         random_r: new module
49785         * modules/random_r: New file.
49786         * m4/random_r.m4: New file.
49787         * lib/random_r.c: New file, from glibc.
49788         * modules/random_r-tests: New file.
49789         * tests/test-random_r.c: New file.
49790         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
49791          Declare.
49792         (RAND_MAX): Define.
49793         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
49794         * modules/stdlib: Substitute them, too.
49795         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
49796         * doc/glibc-functions/initstate_r.texi: Mention the new module.
49797         * doc/glibc-functions/random_r.texi: Likewise.
49798         * doc/glibc-functions/setstate_r.texi: Likewise.
49799         * doc/glibc-functions/srandom_r.texi: Likewise.
49800         * config/srclist.txt: Mention it.
49801
49802 2008-10-23  David Lutterkort  <lutter@redhat.com>
49803
49804         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
49805         link requirement
49806
49807 2008-10-23  Jim Meyering  <meyering@redhat.com>
49808
49809         selinux-h: mark parameters of stub functions as intentionally unused
49810         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
49811         * lib/se-context.in.h: Likewise.
49812
49813 2008-10-22  Simon Josefsson  <simon@josefsson.org>
49814
49815         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
49816
49817 2008-10-22  Simon Josefsson  <simon@josefsson.org>
49818
49819         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
49820
49821 2008-10-22  Eric Blake  <ebb9@byu.net>
49822
49823         glthread/thread: avoid compiler warning
49824         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
49825         Add unreachable abort to silence compiler.
49826
49827 2008-10-22  Eric Blake  <ebb9@byu.net>
49828
49829         netdb: also supply struct addrinfo for cygwin 1.5.x
49830         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
49831         older cygwin.
49832         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
49833         cygwin.
49834         * doc/posix-headers/netdb.texi (netdb.h): Document this.
49835
49836 2008-10-22  Bruno Haible  <bruno@clisp.org>
49837
49838         * users.txt: Update entry about pspp.
49839
49840 2008-10-21  Bruno Haible  <bruno@clisp.org>
49841
49842         Simplification.
49843         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
49844         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
49845
49846         Simplification.
49847         * lib/ioctl.c (ioctl): Don't undefine.
49848         * lib/socket.c (socket): Don't undefine.
49849
49850         Remove unused module indicator macros.
49851         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
49852         GNULIB_$1 as a C macro.
49853
49854         * doc/posix-functions/close.texi: Undo last change.
49855         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
49856         Windows platforms.
49857
49858 2008-10-21  Bruno Haible  <bruno@clisp.org>
49859
49860         Add gethostname() declaration to <unistd.h>.
49861         * lib/unistd.in.h (gethostname): New declaration.
49862         * lib/gethostname.c: Include <unistd.h>.
49863         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
49864         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
49865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
49866         and HAVE_GETHOSTNAME.
49867         * modules/gethostname (Depends-on): Add unistd.
49868         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49869         (Include): Specify <unistd.h>.
49870         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
49871         HAVE_GETHOSTNAME.
49872         * tests/test-gethostname.c: Include <unistd.h> first.
49873
49874 2008-10-21  Bruno Haible  <bruno@clisp.org>
49875
49876         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
49877         * modules/select-tests (Depends-on): Likewise.
49878         Reported by Simon Josefsson.
49879
49880 2008-10-21  Simon Josefsson  <simon@josefsson.org>
49881
49882         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
49883         * lib/accept.c: New file, based on winsock.c.
49884         * lib/bind.c: New file, based on winsock.c.
49885         * lib/connect.c: New file, based on winsock.c.
49886         * lib/getpeername.c: New file, based on winsock.c.
49887         * lib/getsockname.c: New file, based on winsock.c.
49888         * lib/getsockopt.c: New file, based on winsock.c.
49889         * lib/ioctl.c: New file, based on winsock.c.
49890         * lib/listen.c: New file, based on winsock.c.
49891         * lib/recv.c: New file, based on winsock.c.
49892         * lib/recvfrom.c: New file, based on winsock.c.
49893         * lib/send.c: New file, based on winsock.c.
49894         * lib/sendto.c: New file, based on winsock.c.
49895         * lib/setsockopt.c: New file, based on winsock.c.
49896         * lib/shutdown.c: New file, based on winsock.c.
49897         * lib/socket.c: New file, based on winsock.c.
49898         * lib/w32sock.h: New file, based on winsock.c.
49899         * lib/winsock.c: Remove file.
49900         * modules/accept: Likewise.
49901         * modules/bind: Likewise.
49902         * modules/connect: Likewise.
49903         * modules/getpeername: Likewise.
49904         * modules/getsockname: Likewise.
49905         * modules/getsockopt: Likewise.
49906         * modules/ioctl: Likewise.
49907         * modules/listen: Likewise.
49908         * modules/recv: Likewise.
49909         * modules/recvfrom: Likewise.
49910         * modules/send: Likewise.
49911         * modules/sendto: Likewise.
49912         * modules/setsockopt: Likewise.
49913         * modules/shutdown: Likewise.
49914         * modules/socket: Use socket.c instead of winsock.c.
49915         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
49916         * doc/posix-functions/accept.texi: Doc fix.
49917         * doc/posix-functions/bind.texi: Doc fix.
49918         * doc/posix-functions/close.texi: Doc fix.
49919         * doc/posix-functions/connect.texi: Doc fix.
49920         * doc/posix-functions/getpeername.texi: Doc fix.
49921         * doc/posix-functions/getsockname.texi: Doc fix.
49922         * doc/posix-functions/getsockopt.texi: Doc fix.
49923         * doc/posix-functions/ioctl.texi: Doc fix.
49924         * doc/posix-functions/listen.texi: Doc fix.
49925         * doc/posix-functions/recv.texi: Doc fix.
49926         * doc/posix-functions/recvfrom.texi: Doc fix.
49927         * doc/posix-functions/send.texi: Doc fix.
49928         * doc/posix-functions/sendto.texi: Doc fix.
49929         * doc/posix-functions/setsockopt.texi: Doc fix.
49930         * doc/posix-functions/shutdown.texi: Doc fix.
49931         * doc/posix-functions/socket.texi: Doc fix.
49932
49933 2008-10-20  Bruno Haible  <bruno@clisp.org>
49934
49935         Take into account the role of SIGABRT_COMPAT on Windows 2008.
49936         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
49937         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
49938         as an alias for SIGABRT.
49939         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
49940         (sigaction): Map it to SIGABRT.
49941         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
49942
49943 2008-10-20  Bruno Haible  <bruno@clisp.org>
49944
49945         * lib/fts.c: Don't include lstat.h.
49946         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
49947
49948         Move the lstat() declaration to <sys/stat.h>.
49949         * lib/lstat.h: Remove file.
49950         * lib/sys_stat.in.h: Add special invocation convention.
49951         (lstat): New declaration.
49952         * lib/lstat.c (orig_lstat): New function.
49953         (rpl_lstat): Use orig_lstat instead of lstat.
49954         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
49955         AC_C_INLINE. Set REPLACE_LSTAT.
49956         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
49957         and REPLACE_LSTAT.
49958         * modules/lstat (Files): Remove lib/lstat.h.
49959         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
49960         (Include): Specify <sys/stat.h> instead of lstat.h.
49961         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
49962         REPLACE_LSTAT.
49963         * NEWS: Mention the change.
49964
49965 2008-10-20  Bruno Haible  <bruno@clisp.org>
49966
49967         * modules/posix_spawn-tests: New file.
49968         * tests/test-posix_spawn3.c: New file.
49969
49970 2008-10-20  Bruno Haible  <bruno@clisp.org>
49971
49972         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
49973         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
49974         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
49975         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
49976         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
49977
49978 2008-10-20  Bruno Haible  <bruno@clisp.org>
49979
49980         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
49981         of posix_spawn on AIX 5.3.
49982
49983 2008-10-20  Bruno Haible  <bruno@clisp.org>
49984
49985         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
49986
49987 2008-10-20  Bruno Haible  <bruno@clisp.org>
49988
49989         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
49990         of AC_LANG_PROGRAM.
49991
49992 2008-10-20  Simon Josefsson  <simon@josefsson.org>
49993
49994         * lib/netdb.in.h: Don't define GNU specific constants until they
49995         are supported or needed.  Reported by Bruno Haible
49996         <bruno@clisp.org>.
49997
49998 2008-10-20  Simon Josefsson  <simon@josefsson.org>
49999
50000         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
50001
50002 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50003
50004         * lib/getaddrinfo.h: Remove file.
50005         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
50006         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
50007         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
50008         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
50009         * modules/netdb: Substitute GNULIB_GETADDRINFO.
50010         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
50011         * tests/test-getaddrinfo.c: Likewise.
50012         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
50013         * NEWS: Mention change.
50014
50015 2008-10-19  Bruno Haible  <bruno@clisp.org>
50016
50017         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
50018
50019 2008-10-19  Bruno Haible  <bruno@clisp.org>
50020
50021         * lib/wait-process.c: Include simply <sys/wait.h>.
50022         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
50023         WIFSTOPPED): Remove fallback definitions.
50024         * modules/wait-process (Depends-on): Add sys_wait.
50025
50026         New module 'sys_wait'.
50027         * modules/sys_wait: New file.
50028         * lib/sys_wait.in.h: New file, partially copied from
50029         lib/wait-process.c.
50030         * m4/sys_wait_h.m4: New file.
50031         * doc/posix-headers/sys_wait.texi: Mention the new module.
50032
50033 2008-10-19  Bruno Haible  <bruno@clisp.org>
50034
50035         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
50036
50037 2008-10-19  Bruno Haible  <bruno@clisp.org>
50038
50039         Assume that waitpid() fills an 'int' status, not a 'union wait'.
50040         * lib/wait-process.c (WAIT_T): Remove type.
50041         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
50042         (wait_subprocess): Update.
50043
50044 2008-10-19  Bruno Haible  <bruno@clisp.org>
50045
50046         New module 'atoll'.
50047         * modules/atoll: New file.
50048         * lib/stdlib.in.h (atoll): New declaration.
50049         * lib/atoll.c: New file, from glibc with modifications.
50050         * m4/atoll.m4: New file.
50051         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
50052         HAVE_ATOLL.
50053         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
50054         * doc/posix-functions/atoll.texi: Mention the new module.
50055
50056 2008-10-19  Bruno Haible  <bruno@clisp.org>
50057
50058         Add strtoull() declaration to <stdlib.h>.
50059         * lib/stdlib.in.h (strtoull): New declaration.
50060         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50061         Set HAVE_STRTOULL.
50062         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
50063         HAVE_STRTOULL.
50064         * modules/strtoull (Depends-on): Add stdlib.
50065         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50066         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
50067         HAVE_STRTOULL.
50068
50069 2008-10-19  Bruno Haible  <bruno@clisp.org>
50070
50071         Add strtoll() declaration to <stdlib.h>.
50072         * lib/stdlib.in.h (strtoll): New declaration.
50073         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50074         Set HAVE_STRTOLL.
50075         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
50076         HAVE_STRTOLL.
50077         * modules/strtoll (Depends-on): Add stdlib.
50078         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50079         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
50080
50081 2008-10-19  Bruno Haible  <bruno@clisp.org>
50082
50083         * modules/bcopy (Depends-on): Add strings.
50084         (Include): Specify <strings.h>.
50085
50086 2008-10-19  Bruno Haible  <bruno@clisp.org>
50087
50088         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
50089
50090 2008-10-19  Bruno Haible  <bruno@clisp.org>
50091
50092         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
50093         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
50094         mingw.
50095
50096 2008-10-19  Bruno Haible  <bruno@clisp.org>
50097
50098         * lib/atanl.c: Don't include isnanl.h.
50099         * lib/cosl.c: Likewise.
50100         * lib/ldexpl.c: Likewise.
50101         * lib/logl.c: Likewise.
50102         * lib/sinl.c: Likewise.
50103         * lib/sqrtl.c: Likewise.
50104         * lib/tanl.c: Likewise.
50105
50106         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
50107         * lib/isnanf.h: Remove file.
50108         * lib/isnand.h: Remove file.
50109         * lib/isnanl.h: Remove file.
50110         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
50111         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
50112         macros.
50113         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
50114         HAVE_ISNANF, don't define it as a C macro.
50115         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
50116         HAVE_ISNAND, don't define it as a C macro.
50117         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
50118         HAVE_ISNANL, don't define it as a C macro.
50119         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
50120         HAVE_ISNAN[FDL].
50121         * modules/isnanf (Files): Remove lib/isnanf.h.
50122         (Depends-on): Add math.
50123         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50124         (Include): Specify <math.h> instead of isnanf.h.
50125         * modules/isnand (Files): Remove lib/isnand.h.
50126         (Depends-on): Add math.
50127         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50128         (Include): Specify <math.h> instead of isnand.h.
50129         * modules/isnanl (Files): Remove lib/isnanl.h.
50130         (Depends-on): Add math.
50131         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50132         (Include): Specify <math.h> instead of isnanl.h.
50133         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
50134         HAVE_ISNAN[FDL].
50135         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
50136         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
50137         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
50138         * NEWS: Mention the change.
50139
50140 2008-10-18  Bruno Haible  <bruno@clisp.org>
50141
50142         Add getusershell(), setusershell(), endusershell() declarations to
50143         <unistd.h>.
50144         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
50145         declarations.
50146         * lib/getusershell.c: Include unistd.h.
50147         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
50148         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50149         HAVE_GETUSERSHELL.
50150         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
50151         and HAVE_GETUSERSHELL.
50152         * modules/getusershell (Depends-on): Add unistd, extensions.
50153         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50154         (Include): Specify <unistd.h>.
50155         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
50156         HAVE_GETUSERSHELL.
50157
50158 2008-10-18  Bruno Haible  <bruno@clisp.org>
50159
50160         Add a getloadavg() declaration to <stdlib.h>.
50161         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
50162         getloadavg declaration.
50163         (getloadavg): New declaration.
50164         * lib/getloadavg.c: Include <stdlib.h> first.
50165         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
50166         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
50167         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
50168         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
50169         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50170         * modules/getloadavg (Depends-on): Add stdlib, extensions.
50171         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50172         (Include): Specify <stdlib.h>.
50173         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
50174         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50175
50176 2008-10-18  Bruno Haible  <bruno@clisp.org>
50177
50178         * lib/dirchownmod.c: Don't include lchmod.h.
50179
50180         Move the lchmod() declaration to <sys/stat.h>.
50181         * lib/lchmod.h: Remove file.
50182         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
50183         (lchmod): New declaration, moved here from lib/lchown.h.
50184         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
50185         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
50186         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
50187         and HAVE_LCHMOD.
50188         * modules/lchmod (Files): Remove lib/lchmod.h.
50189         (Depends-on): Add sys_stat, extensions.
50190         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50191         (Include): Specify <sys/stat.h> instead of lchmod.h.
50192         * modules/sys_stat (Depends-on): Add link-warning.
50193         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
50194         definition of GL_LINK_WARNING.
50195         * NEWS: Mention the change.
50196
50197 2008-10-18  Bruno Haible  <bruno@clisp.org>
50198
50199         * lib/fchdir.c: Don't include dirfd.h.
50200         * lib/fts.c: Likewise.
50201         * lib/getcwd.c: Likewise.
50202         * lib/glob.c: Likewise.
50203
50204         Move the dirfd() declaration to <dirent.h>.
50205         * lib/dirfd.h: Remove file.
50206         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
50207         (dirfd): New declaration.
50208         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
50209         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
50210         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
50211         HAVE_DECL_DIRFD.
50212         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
50213         HAVE_DECL_DIRFD.
50214         * modules/dirfd (Files): Remove lib/dirfd.h.
50215         (Depends-on): Add dirent, extensions.
50216         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
50217         (Include): Specify <dirent.h> instead of dirfd.h.
50218         * modules/dirent (Depends-on): Add link-warning.
50219         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
50220         definition of GL_LINK_WARNING.
50221         * NEWS: Mention the change.
50222
50223 2008-10-18  Bruno Haible  <bruno@clisp.org>
50224
50225         Move the euidaccess() declaration to <unistd.h>.
50226         * lib/euidaccess.h: Remove file.
50227         * lib/unistd.in.h (euidaccess): New declaration.
50228         * lib/euidaccess.c: Don't include euidaccess.h.
50229         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
50230         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
50231         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
50232         and HAVE_EUIDACCESS.
50233         * modules/euidaccess (Files): Remove lib/euidaccess.h.
50234         (Depends-on): Add unistd.
50235         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50236         (Include): Specify <unistd.h> instead of euidaccess.h.
50237         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
50238         HAVE_EUIDACCESS.
50239         * NEWS: Mention the change.
50240
50241 2008-10-18  Bruno Haible  <bruno@clisp.org>
50242
50243         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
50244
50245         Move the getdomainname() declaration to <unistd.h>.
50246         * lib/getdomainname.h: Remove file.
50247         * lib/unistd.in.h (getdomainname): New declaration.
50248         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
50249         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
50250         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50251         HAVE_GETDOMAINNAME.
50252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50253         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
50254         * modules/getdomainname (Files): Remove lib/getdomainname.h.
50255         (Depends-on): Add unistd, extensions.
50256         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50257         (Includes): Specify <unistd.h> instead of getdomainname.h.
50258         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
50259         HAVE_GETDOMAINNAME.
50260         * NEWS: Mention the change.
50261
50262 2008-10-18  Bruno Haible  <bruno@clisp.org>
50263
50264         * modules/dirent: New file.
50265         * m4/dirent_h.m4: New file.
50266         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
50267         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
50268         * modules/fchdir (Files): Remove lib/dirent.in.h.
50269         (Depends-on): Add dirent.
50270         (Makefile.am): Move rules to modules/dirent.
50271         * doc/posix-headers/dirent.texi: Mention the new module.
50272
50273 2008-10-18  Bruno Haible  <bruno@clisp.org>
50274
50275         Avoid -Wunused-parameter warnings in public gnulib header files.
50276         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
50277         macro.
50278         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
50279
50280 2008-10-18  Bruno Haible  <bruno@clisp.org>
50281
50282         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
50283         * doc/glibc-functions/error.texi: Mention the module 'error'.
50284         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
50285         * doc/glibc-functions/getdomainname.texi: Mention the module
50286         'getdomainname'.
50287         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
50288         * doc/glibc-functions/getpagesize.texi: Mention the module
50289         'getpagesize'.
50290         * doc/glibc-functions/getusershell.texi: Mention the module
50291         'getusershell'.
50292         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
50293         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
50294         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
50295         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
50296         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
50297         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
50298         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
50299         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
50300         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
50301         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
50302         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
50303         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
50304         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
50305         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
50306
50307 2008-10-17  Bruno Haible  <bruno@clisp.org>
50308
50309         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
50310         HP-UX and IRIX, use -0.0L.
50311         * tests/test-ceill.c (minus_zero): Likewise.
50312         * tests/test-floorl.c (minus_zero): Likewise.
50313         * tests/test-frexpl.c (minus_zero): Likewise.
50314         * tests/test-isnan.c (minus_zerol): Likewise.
50315         * tests/test-isnanl.h (minus_zero): Likewise.
50316         * tests/test-ldexpl.c (minus_zero): Likewise.
50317         * tests/test-roundl.c (minus_zero): Likewise.
50318         * tests/test-signbit.c (minus_zerol): Likewise.
50319         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
50320         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
50321         * tests/test-truncl.c (minus_zero): Likewise.
50322         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
50323         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
50324         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
50325         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
50326
50327 2008-10-17  Bruno Haible  <bruno@clisp.org>
50328
50329         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
50330         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
50331         that it gets activated only for gcc >= 3.0.
50332         * lib/dirent.in.h: Likewise.
50333         * lib/errno.in.h: Likewise.
50334         * lib/fcntl.in.h: Likewise.
50335         * lib/float.in.h: Likewise.
50336         * lib/iconv.in.h: Likewise.
50337         * lib/inttypes.in.h: Likewise.
50338         * lib/locale.in.h: Likewise.
50339         * lib/math.in.h: Likewise.
50340         * lib/netdb.in.h: Likewise.
50341         * lib/netinet_in.in.h: Likewise.
50342         * lib/search.in.h: Likewise.
50343         * lib/signal.in.h: Likewise.
50344         * lib/spawn.in.h: Likewise.
50345         * lib/stdarg.in.h: Likewise.
50346         * lib/stdint.in.h: Likewise.
50347         * lib/stdio.in.h: Likewise.
50348         * lib/stdlib.in.h: Likewise.
50349         * lib/string.in.h: Likewise.
50350         * lib/strings.in.h: Likewise.
50351         * lib/sys_file.in.h: Likewise.
50352         * lib/sys_ioctl.in.h: Likewise.
50353         * lib/sys_select.in.h: Likewise.
50354         * lib/sys_socket.in.h: Likewise.
50355         * lib/sys_stat.in.h: Likewise.
50356         * lib/sys_time.in.h: Likewise.
50357         * lib/sysexits.in.h: Likewise.
50358         * lib/time.in.h: Likewise.
50359         * lib/unistd.in.h: Likewise.
50360         * lib/wchar.in.h: Likewise.
50361         * lib/wctype.in.h: Likewise.
50362         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50363
50364 2008-10-17  Jim Meyering  <meyering@redhat.com>
50365
50366         ignore-value: don't depend on inline module
50367         * modules/ignore-value (Depends-on): Remove 'inline'.
50368         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
50369         Suggestion from Bruno Haible.
50370
50371 2008-10-17  Bruno Haible  <bruno@clisp.org>
50372
50373         New implementation of condition variables for Win32.
50374         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
50375         (gl_linked_waitqueue_t): New type.
50376         (gl_cond_t): Use it.
50377         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
50378         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
50379         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
50380         (glthread_cond_init_func, glthread_cond_wait_func,
50381         glthread_cond_timedwait_func, glthread_cond_signal_func,
50382         glthread_cond_broadcast_func, glthread_cond_destroy_func):
50383         Reimplemented on the basis of gl_linked_waitqueue_t.
50384         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
50385         gl_waitqueue_t.
50386         (gl_rwlock_t): Update.
50387         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
50388
50389 2008-10-17  Simon Josefsson  <simon@josefsson.org>
50390
50391         * modules/recvfrom (Depends-on): Add dependency on getpeername.
50392         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50393
50394 2008-10-17  Jim Meyering  <meyering@redhat.com>
50395
50396         ignore-value: new module
50397         * modules/ignore-value: New file.
50398         * lib/ignore-value.h: New file.
50399         * MODULES.html.sh (Compiler warning management): New section,
50400         just for this module.  More to come.
50401
50402 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50403
50404         open-safer.c: avoid 'signed and unsigned in conditional...' warning
50405         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
50406         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
50407
50408 2008-10-16  Jim Meyering  <meyering@redhat.com>
50409
50410         openat-die.c: avoid 'no previous prototype' warning
50411         * lib/openat-die.c: Include "openat.h".
50412         Reported by Reuben Thomas <rrt@sc3d.org>.
50413
50414 2008-10-16  Simon Josefsson  <simon@josefsson.org>
50415
50416         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
50417         * lib/netdb.in.h: Fix typo.
50418         Reported by Bruno Haible  <bruno@clisp.org>
50419
50420         * lib/netdb.in.h: Include sys/socket.h for platforms without
50421         netdb.h, to get structures like hostent on MinGW.
50422         * modules/netdb (Depends-on): Add sys_socket.
50423
50424 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50425
50426         * modules/netdb, modules/netdb-tests: New file.
50427         * m4/netdb_h.m4: New file.
50428         * lib/netdb.in.h: Add, currently just an empty file pending
50429         definitions.
50430         * tests/test-netdb.c: New file.
50431         * doc/posix-headers/netdb.texi: Mention that we replace it if
50432         needed.
50433         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50434         netdb.
50435
50436 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50437
50438         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
50439         with code.
50440
50441 2008-10-13  Bruno Haible  <bruno@clisp.org>
50442
50443         * lib/glthread/cond.c (glthread_cond_wait_func,
50444         glthread_cond_timedwait_func): Add a comment.
50445
50446 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50447
50448         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
50449         * tests/test-select.c: Likewise,
50450
50451 2008-10-13  Bruno Haible  <bruno@clisp.org>
50452
50453         * lib/glthread/cond.c (glthread_cond_wait_func,
50454         glthread_cond_timedwait_func): Fix variable name.
50455         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50456
50457 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
50458
50459         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
50460         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
50461         struct sockaddr.sa_len.
50462         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
50463
50464 2008-10-13  Simon Josefsson  <simon@josefsson.org>
50465
50466         * build-aux/pmccabe2html: Add css and css_url parameters.
50467
50468 2008-10-12  Bruno Haible  <bruno@clisp.org>
50469
50470         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
50471         calling aclx_get.
50472         Reported by Rainer Tammer <tammer@tammer.net>.
50473
50474 2008-10-12  Bruno Haible  <bruno@clisp.org>
50475
50476         Use msvcrt aware primitives for creation/termination of Win32 threads.
50477         * lib/glthread/thread.c: Include <process.h>.
50478         (glthread_create_func): Use _beginthreadex instead of CreateThread.
50479         (wrapper_func): Update signature.
50480         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
50481
50482 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50483             Bruno Haible  <bruno@clisp.org>
50484
50485         Provide a Win32 implementation of the 'cond' module.
50486         * lib/glthread/cond.h [USE_WIN32]: New implementation.
50487         * lib/glthread/cond.c (glthread_cond_init_func,
50488         glthread_cond_wait_func, glthread_cond_timedwait_func,
50489         glthread_cond_signal_func, glthread_cond_broadcast_func,
50490         glthread_cond_destroy_func) [USE_WIN32]: New functions.
50491         * modules/cond (Dependencies): Add gettimeofday.
50492
50493 2008-10-11  Bruno Haible  <bruno@clisp.org>
50494
50495         Make sleep work on older versions of mingw.
50496         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
50497         only whether it exists.
50498         * doc/posix-functions/sleep.texi: Mention the problem with older
50499         versions of mingw.
50500
50501 2008-10-11  Bruno Haible  <bruno@clisp.org>
50502
50503         New module 'shutdown'.
50504         * modules/shutdown: New file.
50505         * lib/sys_socket.in.h (shutdown): New declaration.
50506         * lib/winsock.c (shutdown): New function.
50507         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
50508         GNULIB_SHUTDOWN.
50509         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
50510         * doc/posix-functions/shutdown.texi: Document the new module.
50511
50512 2008-10-11  Jim Meyering  <meyering@redhat.com>
50513
50514         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
50515
50516 2008-10-11  Bruno Haible  <bruno@clisp.org>
50517
50518         New module 'fclose'.
50519         * modules/fclose: New file.
50520         * lib/stdio.in.h (fclose): New declaration.
50521         * lib/fclose.c: New file.
50522         * m4/fclose.m4: New file.
50523         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
50524         REPLACE_FCLOSE.
50525         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
50526         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
50527         REPLACE_FCLOSE.
50528         * modules/close (Depends-on): fclose.
50529         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
50530
50531 2008-10-11  Bruno Haible  <bruno@clisp.org>
50532
50533         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
50534         set errno and don't call _close.
50535
50536 2008-10-10  Bruno Haible  <bruno@clisp.org>
50537
50538         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
50539         ACL, not afterwards. Fixes test failure on Cygwin.
50540
50541 2008-10-09  Ben Pfaff  <blp@gnu.org>
50542
50543         * build-aux/announce-gen: Fix gnulib version related part of usage
50544         message.  Die with a useful error message if no tarballs are
50545         found.
50546
50547 2008-10-10  Jim Meyering  <meyering@redhat.com>
50548
50549         bootstrap: use git's --depth=N option only if it's supported
50550         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
50551         recognize the --depth option.  Reported by Pádraig Brady.
50552
50553 2008-10-09  Bruno Haible  <bruno@clisp.org>
50554
50555         New module 'ioctl'.
50556         * modules/ioctl: New file.
50557         * lib/sys_socket.in.h (ioctl): Remove declaration.
50558         * lib/winsock.c: Include <sys/ioctl.h>.
50559         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
50560         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50561         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
50562         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
50563         * doc/posix-functions/ioctl.texi: Mention the new module.
50564
50565 2008-10-09  Bruno Haible  <bruno@clisp.org>
50566
50567         New module 'sys_ioctl'.
50568         * lib/sys_ioctl.in.h: New file.
50569         * m4/sys_ioctl_h.m4: New file.
50570         * modules/sys_ioctl: New file.
50571         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
50572
50573 2008-10-09  Bruno Haible  <bruno@clisp.org>
50574
50575         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
50576         * lib/winsock.c: Include <stdarg.h>.
50577         (rpl_ioctl): Change to second argument 'int' and then varargs.
50578
50579 2008-10-09  Bruno Haible  <bruno@clisp.org>
50580
50581         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
50582         when the sys_socket module is present and the system has <winsock2.h>.
50583
50584 2008-10-09  Bruno Haible  <bruno@clisp.org>
50585
50586         * doc/posix-functions/close.texi: Mention module 'close' instead of
50587         module 'sys_socket'.
50588
50589 2008-10-09  Bruno Haible  <bruno@clisp.org>
50590
50591         * doc/glibc-headers/sys_ioctl.texi: New file.
50592         * doc/gnulib.texi: Include it.
50593
50594 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50595             Bruno Haible  <bruno@clisp.org>
50596
50597         Combine the two replacements of 'close'.
50598         * lib/sys_socket.in.h (close): Define to a reminder to include
50599         <unistd.h>.
50600         (_gl_close_fd_maybe_socket): New declaration.
50601         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
50602         * lib/winsock.c (close): Remove undefinition.
50603         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
50604         needed for the gnulib module 'close'.
50605         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
50606         define to an error symbol or to a warning, if suitable.
50607         * lib/close.c: Include <sys/socket.h>.
50608         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
50609         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
50610         UNISTD_H_HAVE_WINSOCK2_H.
50611         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
50612         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50613         UNISTD_H_HAVE_WINSOCK2_H.
50614         * modules/sys_socket (Files): Add m4/unistd_h.m4.
50615         (configure.ac): Set a module indicator.
50616         (Makefile.am): Substitute GNULIB_CLOSE.
50617         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
50618         * modules/poll-tests (Depends-on): Add close.
50619         * modules/select-tests (Depends-on): Likewise.
50620
50621 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50622             Bruno Haible  <bruno@clisp.org>
50623
50624         New module 'close'.
50625         * modules/close: New file.
50626         * lib/unistd.in.h (close): Move declaration out of the
50627         FCHDIR_REPLACEMENT scope.
50628         (_gl_unregister_fd): New declaration.
50629         * lib/close.c: New file.
50630         * lib/fchdir.c (rpl_close): Remove function.
50631         * m4/close.m4: New file.
50632         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50633         close.
50634         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
50635         REPLACE_CLOSE.
50636         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
50637         REPLACE_CLOSE.
50638         * modules/fchdir (Depends-on): Add close.
50639
50640 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50641             Bruno Haible  <bruno@clisp.org>
50642
50643         * lib/fcntl.in.h (open): Simplify conditionals.
50644         (_gl_register_fd): New declaration.
50645         * lib/fchdir.c (rpl_open): Remove function.
50646         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
50647         also.
50648         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
50649         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50650         open.
50651
50652 2008-10-09  Jim Meyering  <meyering@redhat.com>
50653
50654         GNUmakefile: use the more name-space-friendly "_version"
50655         * top/GNUmakefile (_dummy): Update.
50656         (_version): Rename from "version".
50657
50658 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50659             Bruno Haible  <bruno@clisp.org>
50660
50661         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
50662         rpl_close.
50663         (_gl_register_fd): New function, extracted from rpl_open.
50664         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
50665         (rpl_open, rpl_opendir): Use _gl_register_fd.
50666
50667 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50668
50669         Fix organization of 'open' replacement.
50670         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
50671         (gl_FUNC_OPEN): Use it.
50672         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
50673
50674 2008-10-08  Bruno Haible  <bruno@clisp.org>
50675
50676         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
50677
50678 2008-10-08  Simon Josefsson  <simon@josefsson.org>
50679
50680         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
50681         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
50682         listen).
50683
50684 2008-10-08  Eric Blake  <ebb9@byu.net>
50685
50686         GNUmakefile: add 'make version' target
50687         * top/GNUmakefile (_curr-ver): Split version update rules...
50688         (version): ...into a target.
50689
50690 2008-10-07  Bruno Haible  <bruno@clisp.org>
50691
50692         Use a more portable replacement expression for -0.0L.
50693         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
50694         instead of -0.0L. Fix m4 quotation.
50695
50696         * tests/test-signbit.c: Include <float.h>.
50697         (minus_zero): New variable.
50698         (test_signbitl): Use minus_zero instead of -zero.
50699         * modules/signbit-tests (Depends-on): Add float.
50700
50701         * tests/test-ceill.c: Include <float.h>.
50702         (zero): Remove variable.
50703         (minus_zero): New variable.
50704         (main): Use minus_zero instead of -zero.
50705         * modules/ceill-tests (Depends-on): Add float.
50706
50707         * tests/test-floorl.c: Include <float.h>.
50708         (zero): Remove variable.
50709         (minus_zero): New variable.
50710         (main): Use minus_zero instead of -zero.
50711         * modules/floorl-tests (Depends-on): Add float.
50712
50713         * tests/test-roundl.c: Include <float.h>.
50714         (zero): Remove variable.
50715         (minus_zero): New variable.
50716         (main): Use minus_zero instead of -zero.
50717         * modules/roundl-tests (Depends-on): Add float.
50718
50719         * tests/test-truncl.c: Include <float.h>.
50720         (zero): Remove variable.
50721         (minus_zero): New variable.
50722         (main): Use minus_zero instead of -zero.
50723         * modules/truncl-tests (Depends-on): Add float.
50724
50725         * tests/test-frexpl.c (zero): Remove variable.
50726         (minus_zero): New variable.
50727         (main): Use minus_zero instead of -zero.
50728         * modules/frexpl-tests (Depends-on): Add float.
50729
50730         * tests/test-isnan.c (zerol): Remove variable.
50731         (minus_zerol): New variable.
50732         (test_long_double): Use minus_zerol instead of -zerol.
50733         * modules/isnan-tests (Depends-on): Add float.
50734
50735         * tests/test-isnanl.h (zero): Remove variable.
50736         (minus_zero): New variable.
50737         (main): Use minus_zero instead of -zero.
50738         * modules/isnanl-nolibm-tests (Depends-on): Add float.
50739         * modules/isnanl-tests (Depends-on): Add float.
50740
50741         * tests/test-ldexpl.c (zero): Remove variable.
50742         (minus_zero): New variable.
50743         (main): Use minus_zero instead of -zero.
50744         * modules/ldexpl-tests (Depends-on): Add float.
50745
50746         * tests/test-snprintf-posix.h (zerol): Remove variable.
50747         (minus_zerol): New variable.
50748         (test_function): Use minus_zerol instead of -zerol.
50749         * modules/snprintf-posix-tests (Depends-on): Add float.
50750         * modules/vsnprintf-posix-tests (Depends-on): Add float.
50751
50752         * tests/test-sprintf-posix.h (zerol): Remove variable.
50753         (minus_zerol): New variable.
50754         (test_function): Use minus_zerol instead of -zerol.
50755         * modules/sprintf-posix-tests (Depends-on): Add float.
50756         * modules/vsprintf-posix-tests (Depends-on): Add float.
50757
50758         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
50759         (minus_zerol): New variable.
50760         (test_function): Use minus_zerol instead of -zerol.
50761         * modules/vasnprintf-posix-tests (Depends-on): Add float.
50762
50763         * tests/test-vasprintf-posix.c (zerol): Remove variable.
50764         (minus_zerol): New variable.
50765         (test_function): Use minus_zerol instead of -zerol.
50766         * modules/vasprintf-posix-tests (Depends-on): Add float.
50767
50768 2008-10-07  Simon Josefsson  <simon@josefsson.org>
50769
50770         * MODULES.html.sh (Support for building documentation): Mention
50771         pmccabe2html.  Sort entries.
50772
50773         Add pmccabe2html module, from gnupdf.
50774         * build-aux/pmccabe.css: New file.
50775         * build-aux/pmccabe2html: New file.
50776         * m4/pmccabe2html.m4: New file.
50777         * modules/pmccabe2html: New file.
50778
50779 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
50780
50781         flock: new module
50782         * MODULES.html.sh: Add to list of modules.
50783         * lib/flock.c: flock implementation for Windows and Unix systems
50784         which have fcntl.
50785         * doc/glibc-functions/flock.texi: Update documentation.
50786         * lib/sys_file.in.h: <sys/file.h> header file.
50787         * m4/flock.m4: M4 macros.
50788         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
50789         * modules/flock: flock module.
50790         * modules/flock-tests: flock tests module.
50791         * modules/sys_file: sys/file.h module.
50792         * tests/test-flock.c: test suite for flock.
50793
50794 2008-10-06  Jim Meyering  <meyering@redhat.com>
50795
50796         bootstrap: check for LT_INIT more portably still ;-)
50797         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
50798         Spotted by Bruno Haible.
50799
50800 2008-10-06  Eric Blake  <ebb9@byu.net>
50801
50802         test-signbit: avoid tripping Irix cc bug on -0.0L
50803         * tests/test-signbit.c (minus_zerol): Delete, and replace with
50804         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
50805         entire testsuite consistent and avoids an Irix 6.2 bug.
50806
50807 2008-10-05  Bruno Haible  <bruno@clisp.org>
50808             Jim Meyering  <jim@meyering.net>
50809
50810         Add an option for ignoring EPIPE during close_stdout.
50811         * lib/closeout.h: Include <stdbool.h>.
50812         (close_stdout_set_ignore_EPIPE): New declaration.
50813         * lib/closeout.c: Include <stdbool.h>.
50814         (ignore_EPIPE): New variable.
50815         (close_stdout_set_ignore_EPIPE): New function.
50816         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
50817         * lib/close-stream.c (close_stream): Mention the possible EPIPE
50818         failure.
50819         * modules/closeout (Depends-on): Add stdbool.
50820
50821 2008-10-05  Bruno Haible  <bruno@clisp.org>
50822
50823         * modules/accept: New file.
50824         * modules/bind: New file.
50825         * modules/connect: New file.
50826         * modules/getpeername: New file.
50827         * modules/getsockname: New file.
50828         * modules/getsockopt: New file.
50829         * modules/listen: New file.
50830         * modules/recv: New file.
50831         * modules/recvfrom: New file.
50832         * modules/send: New file.
50833         * modules/sendto: New file.
50834         * modules/setsockopt: New file.
50835         * modules/socket: New file.
50836         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
50837         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
50838         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
50839         the particular module is requested. Add a link warning when the
50840         particular module is not requested.
50841         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
50842         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
50843         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
50844         the particular module is requested.
50845         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
50846         gl_SYS_SOCKET_H_DEFAULTS): New macros.
50847         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
50848         * modules/sys_socket (Depends-on): Add link-warning.
50849         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
50850         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
50851         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
50852         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
50853         GL_LINK_WARNING.
50854         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
50855         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
50856         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
50857         * doc/posix-functions/getpeername.texi: Mention the new module
50858         'getpeername'.
50859         * doc/posix-functions/getsockname.texi: Mention the new module
50860         'getsockname'.
50861         * doc/posix-functions/getsockopt.texi: Mention the new module
50862         'getsockopt'.
50863         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
50864         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
50865         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
50866         * doc/posix-functions/send.texi: Mention the new module 'send'.
50867         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
50868         * doc/posix-functions/setsockopt.texi: Mention the new module
50869         'setsockopt'.
50870         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
50871         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
50872         listen, connect, accept.
50873         * modules/select-tests (Depends-on): Likewise.
50874
50875 2008-10-05  Bruno Haible  <bruno@clisp.org>
50876
50877         * lib/winsock.c (strerror): Remove unused #undef.
50878         (rpl_close): Remove unused local variable.
50879
50880         * modules/sys_socket (Depends-on); Add errno.
50881
50882 2008-10-05  Bruno Haible  <bruno@clisp.org>
50883
50884         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
50885         (select): Add a link warning when the 'select' module is not used.
50886         * modules/sys_select (Depends-on): Add link-warning.
50887         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
50888         Suggested by Paolo Bonzini.
50889
50890 2008-10-05  Jim Meyering  <meyering@redhat.com>
50891
50892         bootstrap: check for LT_INIT more portably
50893         * build-aux/bootstrap: Avoid using grep -E, since it's not
50894         portable enough.  Suggestion from Bruno Haible.
50895
50896 2008-10-05  Bruno Haible  <bruno@clisp.org>
50897
50898         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
50899         as being fixed by gnulib.
50900
50901 2008-10-05  Bruno Haible  <bruno@clisp.org>
50902
50903         * modules/select-tests: New file, mostly copied from
50904         modules/sys_select-tests.
50905         * tests/test-select.c: New file, mostly copied from
50906         tests/test-sys_select.c.
50907         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
50908         * modules/sys_select-tests (Depends-on): Remove all dependencies.
50909         (Makefile.am): Remove test_sys_select_LDADD.
50910
50911         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
50912         to an undefined symbol, for an error message.
50913         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
50914         (gl_SYS_SELECT_H_DEFAULTS): New macro.
50915         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
50916         winsock-select.c here.
50917         * modules/sys_select (Files): Remove lib/winsock-select.c.
50918         (Depends-on): Remove alloca.
50919         (Makefile.am): Substitute GNULIB_SELECT.
50920         * modules/select: New file.
50921         * doc/posix-functions/select.texi: Update.
50922
50923 2008-10-05  Bruno Haible  <bruno@clisp.org>
50924
50925         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
50926         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
50927         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
50928         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
50929         getdtablesize.
50930         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
50931         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
50932
50933 2008-10-05  Bruno Haible  <bruno@clisp.org>
50934
50935         * modules/getdtablesize-tests: New file.
50936         * tests/test-getdtablesize.c: New file.
50937
50938         New module 'getdtablesize'.
50939         * lib/unistd.in.h (getdtablesize): New declaration.
50940         * lib/getdtablesize.c: New file.
50941         * m4/getdtablesize.m4: New file.
50942         * modules/getdtablesize: New file.
50943         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50944         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
50945         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
50946         HAVE_GETDTABLESIZE.
50947         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
50948
50949 2008-10-05  Bruno Haible  <bruno@clisp.org>
50950
50951         * modules/sched (Makefile.am): Fix typo.
50952         Reported by Simon Josefsson.
50953
50954 2008-10-05  Jim Meyering  <meyering@redhat.com>
50955
50956         bootstrap: check for LT_INIT, too
50957         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
50958         are deprecated.  Suggestion from Ralf Wildenhues.
50959
50960 2008-10-05  Bruno Haible  <bruno@clisp.org>
50961
50962         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
50963         overriding them by ours.
50964         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
50965
50966 2008-10-05  Jim Meyering  <meyering@redhat.com>
50967
50968         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
50969         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
50970         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
50971
50972 2008-10-04  Bruno Haible  <bruno@clisp.org>
50973
50974         * modules/dup2 (License): Change to LGPLv2+.
50975         * modules/sleep (License): Likewise.
50976         * modules/perror (License): Likewise.
50977         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
50978         Blake.
50979         * modules/signal (License): Likewise.
50980         * modules/sigprocmask (License): Likewise.
50981         * modules/raise (License): Change to LGPLv2+, with approval by Jim
50982         Meyering.
50983
50984 2008-10-04  Bruno Haible  <bruno@clisp.org>
50985
50986         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
50987         Reported by Rainer Tammer <tammer@tammer.net>.
50988
50989 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
50990             Bruno Haible  <bruno@clisp.org>
50991
50992         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
50993         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
50994         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
50995
50996 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
50997
50998         filevercmp: new module
50999         * lib/filevercmp.h: New function filevercmp comparing version strings.
51000         * lib/filevercmp.c: Implementation of filevercmp function.
51001         * modules/filevercmp: Module metadata.
51002         * tests/test-filevercmp.c: Unit test for new module.
51003         * modules/filevercmp-tests: Unit test metadata.
51004         * MODULES.html.sh: Add filevercmp module.
51005
51006 2008-10-03  Bruno Haible  <bruno@clisp.org>
51007
51008         * lib/c-ctype.h: Add comment.
51009         Reported by Jim Meyering.
51010
51011 2008-10-02  Bruno Haible  <bruno@clisp.org>
51012
51013         * modules/posix_spawn-internal (Depends-on): Add 'open'.
51014
51015 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51016
51017         * build-aux/bootstrap: Allow renaming bootstrap, and change the
51018         name of bootstrap.conf accordingly.
51019
51020 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51021
51022         * build-aux/bootstrap: Install git-merge-changelog configuration
51023         items into .gitconfig if needed.
51024
51025 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51026
51027         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
51028         git repository, and initialize/update it accordingly.
51029
51030 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
51031
51032         * modules/fsync-tests: New file.
51033         * tests/test-fsync.c: New file.
51034
51035         New module 'fsync'.
51036         * lib/fsync.c: New file.
51037         * m4/fsync.m4: New file.
51038         * modules/fsync: New file.
51039         * lib/unistd.in.h (fsync): New declaration.
51040         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
51041         GNULIB_FSYNC and HAVE_FSYNC.
51042         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
51043         * MODULES.html.sh (posix_functions): Add fsync.
51044         * doc/posix-functions/fsync.texi: Mention the new module.
51045
51046 2008-10-02  Jim Meyering  <meyering@redhat.com>
51047
51048         fts.c: sync with similar code from coreutils' remove.c
51049         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
51050         Guard also with "#if defined __linux__", since for now at least,
51051         this code is Linux-kernel-specific.
51052
51053 2008-10-02  Jim Meyering  <meyering@redhat.com>
51054
51055         fts: bug fixes
51056         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
51057         Include <sys/vfs.h>, not <sys/statfs.h>.
51058
51059         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
51060         Include <sys/vfs.h>, not <sys/statfs.h>.
51061
51062 2008-10-01  Bruno Haible  <bruno@clisp.org>
51063
51064         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
51065         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
51066         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
51067         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
51068         * doc/posix-functions/posix_spawnp.texi: Likewise.
51069         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
51070         whether posix_spawn actually works.
51071         * m4/pipe.m4 (gl_PIPE): Likewise.
51072         * modules/execute (Files): Add m4/posix_spawn.m4.
51073         * modules/pipe (Files): Add m4/posix_spawn.m4.
51074         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
51075
51076 2008-10-01  Jim Meyering  <meyering@redhat.com>
51077
51078         remove trailing spaces
51079         * NEWS: Likewise.
51080         * lib/poll.c (poll): Likewise.
51081         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
51082         * lib/winsock.c (rpl_close): Likewise.
51083         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
51084         * modules/yield: Likewise.
51085         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
51086         * tests/test-sys_select.c (connect_to_socket): Likewise.
51087
51088         fts.c: adjust a new interface to be more generally useful
51089         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
51090         (fts_build): Adjust caller.
51091
51092 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51093
51094         * modules/cond-tests: New file.
51095         * tests/test-cond.c: New file.
51096
51097 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51098             Bruno Haible  <bruno@clisp.org>
51099
51100         * modules/cond (Dependencies): Add errno, time.
51101         * lib/glthread/cond.h: Include <time.h>.
51102         (gl_cond_define, gl_cond_define_initialized): Use the same definition
51103         across platforms.
51104
51105 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51106             Bruno Haible  <bruno@clisp.org>
51107
51108         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
51109
51110 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51111             Bruno Haible  <bruno@clisp.org>
51112
51113         * modules/tls-tests (Depends-on): Add thread, yield.
51114         (configure.ac): Remove all checks.
51115         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
51116         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51117         gl_thread_self): Remove definitions. Include glthread/thread.h and
51118         glthread/yield.h instead.
51119         (test_tls): Pass an additional NULL argument to gl_thread_join.
51120
51121 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51122             Bruno Haible  <bruno@clisp.org>
51123
51124         * modules/lock-tests (Depends-on): Add thread, yield.
51125         (configure.ac): Remove all checks.
51126         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
51127         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51128         gl_thread_self): Remove definitions. Include glthread/thread.h and
51129         glthread/yield.h instead.
51130         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
51131         additional NULL argument to gl_thread_join.
51132
51133 2008-09-30  Bruno Haible  <bruno@clisp.org>
51134
51135         Fix the Win32 implementation of the 'thread' module.
51136         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
51137         pointer type.
51138         (gl_thread_self): Invoke gl_thread_self_func.
51139         (gl_thread_self_func): New declaration.
51140         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
51141         (do_init_self_key, init_self_key): New functions.
51142         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
51143         Remove some fields.
51144         (running_threads, running_lock): Remove variables.
51145         (get_current_thread_handle): New function.
51146         (gl_thread_self_func, wrapper_func, glthread_create_func,
51147         glthread_join_func, gl_thread_exit_func): Largely rewritten and
51148         simplified.
51149
51150 2008-09-30  Bruno Haible  <bruno@clisp.org>
51151
51152         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
51153         files.
51154
51155 2008-09-30  Jim Meyering  <meyering@redhat.com>
51156
51157         fts.m4: correct the test for statfs.f_type
51158         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
51159         when checking for statfs.f_type.
51160
51161 2008-09-15  Simon Josefsson  <simon@josefsson.org>
51162
51163         tests: avoid some compiler warnings
51164         * tests/test-memchr.c (main): Pass NULL indirectly.
51165         * tests/test-getdate.c (main): Remove unused variable 'ret'.
51166
51167 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
51168
51169         getdate.y: disallow countable dayshifts like "4 yesterday ago"
51170         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
51171         exactly specified dayshifts.
51172         (dayshift): New rule.
51173         (rel): Add dayshift.
51174         (relative_time_table) [tomorrow, yesterday, today, now]:
51175         Use tDAY_SHIFT in place of tDAY_UNIT.
51176         * tests/test-getdate.c: Add tests for now-disallowed countable
51177         dayshifts, e.g., "4 yesterday ago".
51178
51179 2008-09-29  Bruno Haible  <bruno@clisp.org>
51180
51181         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
51182         * tests/test-posix_spawn1.in.sh: Renamed from
51183         tests/test-posix_spawn.in.sh.
51184         * tests/test-posix_spawn2.c: New file.
51185         * tests/test-posix_spawn2.in.sh: New file.
51186         * modules/posix_spawnp-tests (Files): Update.
51187         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
51188
51189 2008-09-29  Bruno Haible  <bruno@clisp.org>
51190
51191         Propagate effects of putenv/setenv/unsetenv to child processes.
51192         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
51193         * lib/pipe.c (create_pipe): Likewise.
51194
51195 2008-09-29  Bruno Haible  <bruno@clisp.org>
51196
51197         Enable use of shell scripts as executables in mingw.
51198         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
51199         run the program as a shell script.
51200         * lib/pipe.c (create_pipe): Likewise.
51201         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
51202         resulting array.
51203
51204 2008-09-29  Eric Blake  <ebb9@byu.net>
51205
51206         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
51207
51208 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
51209
51210         * doc/posix-functions/accept.texi: Update mingw problems.
51211         * doc/posix-functions/bind.texi: Update mingw problems.
51212         * doc/posix-functions/close.texi: Update mingw problems.
51213         * doc/posix-functions/connect.texi: Update mingw problems.
51214         * doc/posix-functions/getpeername.texi: Update mingw problems.
51215         * doc/posix-functions/getsockname.texi: Update mingw problems.
51216         * doc/posix-functions/getsockopt.texi: Update mingw problems.
51217         * doc/posix-functions/ioctl.texi: Update mingw problems.
51218         * doc/posix-functions/listen.texi: Update mingw problems.
51219         * doc/posix-functions/recv.texi: Update mingw problems.
51220         * doc/posix-functions/recvfrom.texi: Update mingw problems.
51221         * doc/posix-functions/select.texi: Update mingw problems.
51222         * doc/posix-functions/send.texi: Update mingw problems.
51223         * doc/posix-functions/sendto.texi: Update mingw problems.
51224         * doc/posix-functions/setsockopt.texi: Update mingw problems.
51225         * doc/posix-functions/socket.texi: Update mingw problems.
51226
51227 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
51228             Bruno Haible  <bruno@clisp.org>
51229
51230         * lib/sys_select.in.h: Include sys/time.h.
51231         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
51232         * modules/sys_select: Depend on sys_time.
51233         * tests/test-sys_select.c: Test that sys/select.h defines struct
51234         timeval fully.
51235
51236 2008-09-29  Bruno Haible  <bruno@clisp.org>
51237
51238         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
51239         * lib/sys_select.in.h: Likewise.
51240
51241 2008-09-29  Bruno Haible  <bruno@clisp.org>
51242
51243         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
51244
51245 2008-09-29  Bruno Haible  <bruno@clisp.org>
51246
51247         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
51248         Set LIBSOCKET instead of augmenting LIBS.
51249         * modules/sockets (Link): New section.
51250         * modules/sockets-tests (test_sockets_LDADD): New variable.
51251         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
51252         * modules/poll-tests (test_poll_LDADD): New variable.
51253         * NEWS: Document the change.
51254
51255 2008-09-29  Bruno Haible  <bruno@clisp.org>
51256
51257         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
51258         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
51259         ARPA_INET_H directly.
51260         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51261
51262 2008-09-28  Bruno Haible  <bruno@clisp.org>
51263
51264         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
51265         from gl_HEADER_SYS_SOCKET.
51266         (gl_HEADER_SYS_SOCKET): Invoke it.
51267         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51268
51269 2008-09-28  Bruno Haible  <bruno@clisp.org>
51270
51271         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
51272         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
51273         Needed on OSF/1 4.0.
51274
51275 2008-09-28  Bruno Haible  <bruno@clisp.org>
51276
51277         Override open more carefully.
51278         * lib/open.c (orig_open): New function.
51279         (rpl_open): Use orig_open instead of open.
51280         * lib/fcntl.in.h: Add special invocation convention.
51281         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
51282         (gl_FUNC_OPEN): Invoke it.
51283
51284         Override freopen more carefully.
51285         * lib/freopen.c (orig_freopen): New function.
51286         (rpl_freopen): Use orig_freopen instead of freopen.
51287         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
51288         (gl_FUNC_FREOPEN): Invoke it.
51289
51290         Override fopen more carefully.
51291         * lib/fopen.c (orig_fopen): New function.
51292         (rpl_fopen): Use orig_fopen instead of fopen.
51293         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
51294         (gl_FUNC_FOPEN): Invoke it.
51295         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
51296
51297 2008-09-28  Bruno Haible  <bruno@clisp.org>
51298
51299         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
51300         SIGPIPE.
51301
51302 2008-09-28  Bruno Haible  <bruno@clisp.org>
51303
51304         * tests/test-sigaction.c (handler, main): Disable the check whether
51305         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
51306         glibc systems with LinuxThreads.
51307
51308 2008-09-28  Bruno Haible  <bruno@clisp.org>
51309
51310         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
51311
51312         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
51313         with AIX xlc.
51314         * lib/fcntl.in.h (open): Likewise.
51315         Reported by Rainer Tammer <tammer@tammer.net>.
51316
51317 2008-09-28  Bruno Haible  <bruno@clisp.org>
51318
51319         * modules/posix_spawnp-tests: New file.
51320         * tests/test-posix_spawn.c: New file.
51321         * tests/test-posix_spawn.in.sh: New file.
51322
51323         New module 'posix_spawnp'.
51324         * modules/posix_spawnp: New file.
51325         * lib/spawnp.c: New file, from GNU libc with modifications.
51326         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
51327
51328         New module 'posix_spawn'.
51329         * modules/posix_spawn: New file.
51330         * lib/spawn.c: New file, from GNU libc with modifications.
51331         * doc/posix-functions/posix_spawn.texi: Mention the new module.
51332
51333         New module 'posix_spawnattr_destroy'.
51334         * modules/posix_spawnattr_destroy: New file.
51335         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
51336         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
51337         module.
51338
51339         New module 'posix_spawnattr_setsigmask'.
51340         * modules/posix_spawnattr_setsigmask: New file.
51341         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
51342         modifications.
51343         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
51344         new module.
51345
51346         New module 'posix_spawnattr_getsigmask'.
51347         * modules/posix_spawnattr_getsigmask: New file.
51348         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
51349         modifications.
51350         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
51351         new module.
51352
51353         New module 'posix_spawnattr_setsigdefault'.
51354         * modules/posix_spawnattr_setsigdefault: New file.
51355         * lib/spawnattr_setdefault.c: New file, from GNU libc with
51356         modifications.
51357         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
51358         new module.
51359
51360         New module 'posix_spawnattr_getsigdefault'.
51361         * modules/posix_spawnattr_getsigdefault: New file.
51362         * lib/spawnattr_getdefault.c: New file, from GNU libc with
51363         modifications.
51364         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
51365         new module.
51366
51367         New module 'posix_spawnattr_setschedpolicy'.
51368         * modules/posix_spawnattr_setschedpolicy: New file.
51369         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
51370         modifications.
51371         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
51372         new module.
51373
51374         New module 'posix_spawnattr_getschedpolicy'.
51375         * modules/posix_spawnattr_getschedpolicy: New file.
51376         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
51377         modifications.
51378         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
51379         new module.
51380
51381         New module 'posix_spawnattr_setschedparam'.
51382         * modules/posix_spawnattr_setschedparam: New file.
51383         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
51384         modifications.
51385         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
51386         new module.
51387
51388         New module 'posix_spawnattr_getschedparam'.
51389         * modules/posix_spawnattr_getschedparam: New file.
51390         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
51391         modifications.
51392         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
51393         new module.
51394
51395         New module 'posix_spawnattr_setpgroup'.
51396         * modules/posix_spawnattr_setpgroup: New file.
51397         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
51398         modifications.
51399         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
51400         module.
51401
51402         New module 'posix_spawnattr_getpgroup'.
51403         * modules/posix_spawnattr_getpgroup: New file.
51404         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
51405         modifications.
51406         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
51407         module.
51408
51409         New module 'posix_spawnattr_setflags'.
51410         * modules/posix_spawnattr_setflags: New file.
51411         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
51412         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
51413         module.
51414
51415         New module 'posix_spawnattr_getflags'.
51416         * modules/posix_spawnattr_getflags: New file.
51417         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
51418         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
51419         module.
51420
51421         New module 'posix_spawnattr_init'.
51422         * modules/posix_spawnattr_init: New file.
51423         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
51424         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
51425         module.
51426
51427         New module 'posix_spawn_file_actions_destroy'.
51428         * modules/posix_spawn_file_actions_destroy: New file.
51429         * lib/spawn_faction_destroy.c: New file, from GNU libc with
51430         modifications.
51431         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
51432         the new module.
51433
51434         New module 'posix_spawn_file_actions_addopen'.
51435         * modules/posix_spawn_file_actions_addopen: New file.
51436         * lib/spawn_faction_addopen.c: New file, from GNU libc with
51437         modifications.
51438         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
51439         the new module.
51440
51441         New module 'posix_spawn_file_actions_adddup2'.
51442         * modules/posix_spawn_file_actions_adddup2: New file.
51443         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
51444         modifications.
51445         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
51446         the new module.
51447
51448         New module 'posix_spawn_file_actions_addclose'.
51449         * modules/posix_spawn_file_actions_addclose: New file.
51450         * lib/spawn_faction_addclose.c: New file, from GNU libc with
51451         modifications.
51452         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
51453         the new module.
51454
51455         New module 'posix_spawn_file_actions_init'.
51456         * modules/posix_spawn_file_actions_init: New file.
51457         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
51458         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
51459         new module.
51460
51461         New module 'posix_spawn-internal'.
51462         * modules/posix_spawn-internal: New file.
51463         * lib/spawn_int.h: New file, from GNU libc with modifications.
51464         * lib/spawni.c: New file, from GNU libc with modifications.
51465         * m4/posix_spawn.m4: New file.
51466
51467         New module 'spawn'.
51468         * modules/spawn: New file.
51469         * lib/spawn.in.h: New file, from GNU libc with modifications.
51470         * m4/spawn_h.m4: New file.
51471         * doc/posix-headers/spawn.texi: Mention the new module.
51472
51473 2008-09-28  Bruno Haible  <bruno@clisp.org>
51474
51475         * modules/sched-tests: New file.
51476         * tests/test-sched.c: New file.
51477
51478         New module 'sched'.
51479         * modules/sched: New file.
51480         * lib/sched.in.h: New file.
51481         * m4/sched_h.m4: New file.
51482         * doc/posix-headers/sched.texi: Mention the new module.
51483
51484 2008-09-27  Eric Blake  <ebb9@byu.net>
51485
51486         Fix previous patch, and tweak references to $0.
51487         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
51488         (func_version, func_gnulib_dir): Don't call this program
51489         gnulib-tool.
51490         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
51491         with using $0 in function.
51492         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
51493         (func_fatal_error): Reuse the name the user invoked us with.
51494
51495 2008-09-27  Bruno Haible  <bruno@clisp.org>
51496
51497         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
51498         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
51499         (gl_ICONV_H): Not here.
51500         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
51501         instead of assigning ICONV_H directly.
51502
51503         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
51504         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
51505         WCHAR_H directly.
51506
51507 2008-09-27  Bruno Haible  <bruno@clisp.org>
51508
51509         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
51510         * modules/arpa_inet (Depends-on): Add link-warning.
51511         (Makefile.am): Insert the definition of GL_LINK-WARNING.
51512         * modules/unistd (Makefile.am): Likewise.
51513
51514 2008-09-26  Bruno Haible  <bruno@clisp.org>
51515
51516         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
51517         variables.
51518         (func_version): Essentially copied from gnulib-tool.
51519         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
51520         func_readlink): Copied from gnulib-tool.
51521
51522 2008-09-26  Bruno Haible  <bruno@clisp.org>
51523
51524         * gnulib-tool (func_version): Change directory to $gnulib_dir before
51525         invoking git-version-gen.
51526
51527 2008-09-26  Bruno Haible  <bruno@clisp.org>
51528
51529         * posix-modules: Update to directory names changed on 2008-01-19.
51530         Remove commas in output before splitting into words. No more need to
51531         avoid 'ftruncate' since 2007-02-19.
51532
51533 2008-09-26  Bruno Haible  <bruno@clisp.org>
51534
51535         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
51536
51537 2008-09-26  Bruno Haible  <bruno@clisp.org>
51538
51539         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
51540         * modules/fwriteerror (Depends-on): Add errno.
51541
51542 2008-09-26  Bruno Haible  <bruno@clisp.org>
51543
51544         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
51545         * tests/test-vc-list-files-cvs.sh: Likewise.
51546
51547 2008-09-26  Bruno Haible  <bruno@clisp.org>
51548
51549         * doc/posix-headers/sys_resource.texi: Reorder items.
51550
51551 2008-09-26  Jim Meyering  <meyering@redhat.com>
51552
51553         fts: tweak inode comparison function
51554         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
51555         inode numbers, as documented.
51556
51557         fts: sort dirent entries on inode number before traversing
51558         This avoids a quadratic, seek-related performance penalty when
51559         operating on a directory containing many entries (measurable at 10k;
51560         3.5 hours at 2 million entries with a cold cache) on certain types
51561         of file systems, including ext3 and ext4, but not tmpfs.
51562         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
51563         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
51564         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
51565         (fs_handles_readdir_ordered_dirents_efficiently): New function.
51566         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
51567         (fts_build): Set the stat.st_ino member from D_INO.
51568         If it is likely to be useful, sort dirent entries on inode number.
51569
51570         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
51571         and the struct statfs.f_type member.
51572         * modules/fts (Depends-on): Add d-ino.
51573
51574 2008-09-26  Bruno Haible  <bruno@clisp.org>
51575
51576         * modules/sigpipe-die (Depends-on): Add sigpipe.
51577
51578         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
51579         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
51580         and GNULIB_STDIO_H_SIGPIPE are set.
51581         * lib/stdio-write.c: New file.
51582         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
51583         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51584         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51585         REPLACE_STDIO_WRITE_FUNCS.
51586         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
51587         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51588         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51589         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51590         * modules/stdio (Files): Add lib/stdio-write.c.
51591         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
51592         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51593         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51594         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51595         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
51596         REPLACE_FPRINTF_POSIX.
51597         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
51598         REPLACE_PRINTF_POSIX.
51599         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
51600         REPLACE_VFPRINTF_POSIX.
51601         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
51602         REPLACE_VPRINTF_POSIX.
51603         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
51604         SIGPIPE issue.
51605         * doc/posix-functions/fputc.texi: Likewise.
51606         * doc/posix-functions/fputs.texi: Likewise.
51607         * doc/posix-functions/fwrite.texi: Likewise.
51608         * doc/posix-functions/printf.texi: Likewise.
51609         * doc/posix-functions/putc.texi: Likewise.
51610         * doc/posix-functions/putchar.texi: Likewise.
51611         * doc/posix-functions/puts.texi: Likewise.
51612         * doc/posix-functions/vfprintf.texi: Likewise.
51613         * doc/posix-functions/vprintf.texi: Likewise.
51614
51615         * modules/safe-write (Depends-on): Add write.
51616
51617         * modules/sigpipe-tests: New file.
51618         * tests/test-sigpipe.c: New file.
51619         * tests/test-sigpipe.sh: New file.
51620
51621         * modules/write: New file.
51622         * lib/unistd.in.h: Include <sys/types.h>.
51623         (write): New declaration.
51624         * lib/write.c: New file.
51625         * m4/write.m4: New file.
51626         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51627         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
51628         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
51629         GNULIB_WRITE, REPLACE_WRITE.
51630         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
51631         and the SIGPIPE issue.
51632
51633         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
51634         (raise): New declaration.
51635         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
51636         (ext_signal): New function.
51637         (rpl_raise): New function.
51638         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51639         GNULIB_SIGNAL_H_SIGPIPE.
51640         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
51641         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
51642
51643         * modules/sigpipe: New file.
51644         * m4/sigpipe.m4: New file.
51645
51646 2008-09-25  Derek Price  <derek@ximbiot.com>
51647             Bruno Haible  <bruno@clisp.org>
51648
51649         * gnulib-tool (func_import): Report all license incompatibilities, not
51650         just the first one.
51651
51652 2008-09-25  Bruno Haible  <bruno@clisp.org>
51653
51654         * gnulib-tool (func_import): When computing the edits, consider not
51655         only the Makefile.ams that exist but also those that will be generated.
51656
51657 2008-09-25  Simon Josefsson  <simon@josefsson.org>
51658
51659         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
51660         fixes gnulib-tool --test warning about duplicate dependency.
51661
51662 2008-09-25  Bruno Haible  <bruno@clisp.org>
51663
51664         * gnulib-tool: Don't ask the user to perform edits in the generated
51665         Makefile.ams.
51666         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
51667         apply to the Makefile.am being generated.
51668         (func_emit_tests_Makefile_am): Execute edits that apply to the
51669         Makefile.am being generated.
51670         (func_import): Setup list of Makefile.am edits before emitting the
51671         Makefile.ams, not at the end.
51672         (func_create_testdir): Update.
51673         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51674
51675 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51676
51677         * gnulib-tool (func_import): Store the --tests-base option in the
51678         comment in gnulib-cache.m4.
51679
51680 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
51681
51682         * NEWS: Document increased portability that sys_select now provides.
51683
51684         * lib/sys_select.in.h: Install select wrapper.
51685         * lib/sys_socket.in.h: Use more descriptive name when there is no
51686         select wrapper.
51687         * lib/winsock-select.c: New.
51688         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
51689         Require gl_HEADER_SYS_SOCKET.
51690         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
51691         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
51692         * tests/test-sys_select.c: Add functional tests.
51693
51694 2008-09-24  Eric Blake  <ebb9@byu.net>
51695
51696         open, fopen: close fd leak in last patch
51697         * lib/open.c (rpl_open): Close fd before returning error.
51698         * lib/fopen.c (rpl_fopen): Close fd before returning error.
51699         * doc/posix-functions/open.texi (open): Document that Irix also
51700         has the bug.
51701         * doc/posix-functions/fopen.texi (fopen): Likewise.
51702         Reported by Paolo Bonzini.
51703
51704 2008-09-24  Bruno Haible  <bruno@clisp.org>
51705
51706         Ensure that a filename ending in a slash cannot be used to access a
51707         non-directory.
51708         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
51709         to check whether it's really a directory.
51710         * lib/fopen.c: Include fcntl.h, unistd.h.
51711         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
51712         and fdopen().
51713         * modules/fopen (Depends-on): Add unistd.
51714         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
51715         * tests/test-fopen.c (main): Likewise.
51716         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
51717         * doc/posix-functions/fopen.texi: Likewise.
51718         Reported by Eric Blake.
51719
51720 2008-09-23  Eric Blake  <ebb9@byu.net>
51721
51722         c-stack: avoid compiler optimizations when provoking overflow
51723         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
51724         recursion harder to optimize, to ensure a stack overflow occurs.
51725         * tests/test-c-stack.c (recurse): Likewise.
51726         Borrowed from libsigsegv.
51727
51728         c-stack: work around Irix sigaltstack bug
51729         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
51730         whether sigaltstack uses wrong end of stack_t (copied in part from
51731         libsigsegv).
51732         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
51733         Irix bug, without requiring an over-allocation.
51734         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
51735         bug.
51736
51737         fopen: document mingw bug on directories
51738         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
51739         not allowing a stream visiting a directory, even though reading
51740         from such a stream is not portable.
51741
51742 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51743
51744         * lib/poll.c: Rewrite.
51745         * modules/poll: Depend on alloca.
51746
51747 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51748
51749         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
51750         instead define prototypes for a full set of wrappers.  Ensure
51751         that Cygwin does not use the compatibility code, which is only
51752         for MinGW.
51753         * lib/winsock.c: New.
51754         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
51755         * modules/sys_socket: Add lib/winsock.c.
51756
51757         * modules/poll-tests: Add errno and perror.
51758         * tests/test-poll.c: Use ioctl, not ioctlsocket.
51759
51760 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51761
51762         * tests/test-poll.c: Downgrade minimum needed Winsock version.
51763
51764 2008-09-23  Bruno Haible  <bruno@clisp.org>
51765
51766         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
51767         * doc/glibc-functions/*: Likewise.
51768
51769 2008-09-23  Simon Josefsson  <simon@josefsson.org>
51770
51771         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
51772         success.
51773
51774 2008-09-22  Eric Blake  <ebb9@byu.net>
51775             Bruno Haible  <bruno@clisp.org>
51776
51777         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
51778         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
51779         supply %A but mishandle pseudo-NaN.
51780         Reported by Simon Josefsson.
51781
51782 2008-09-21  Bruno Haible  <bruno@clisp.org>
51783
51784         * tests/test-lock.c (main): Tweak skip message.
51785         * tests/test-tls.c (main): Likewise.
51786
51787 2008-09-21  Bruno Haible  <bruno@clisp.org>
51788
51789         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
51790         whether 'struct sigaction' has sa_sigaction here...
51791         (gl_PREREQ_SIG_HANDLER_H): ... not here.
51792         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
51793
51794 2008-09-21  Bruno Haible  <bruno@clisp.org>
51795
51796         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
51797         section.
51798         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
51799         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
51800         the new section.
51801         (Support for obsolete systems lacking POSIX:2001): New section.
51802         (String handling <string.h>): Move strdup to the new section.
51803         Suggested by Simon Josefsson and Paolo Bonzini.
51804
51805 2008-09-21  Bruno Haible  <bruno@clisp.org>
51806
51807         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
51808         exponents in %e and %g results on 'long double'. Needed for mingw's
51809         improved *printf functions.
51810         * tests/test-vasprintf-posix.c (test_function): Likewise.
51811         * tests/test-snprintf-posix.h (test_function): Likewise.
51812         * tests/test-sprintf-posix.h (test_function): Likewise.
51813         Reported by Eric Blake.
51814
51815 2008-09-21  Bruno Haible  <bruno@clisp.org>
51816
51817         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
51818         * tests/test-sprintf-posix.h (test_function): Likewise.
51819
51820 2008-09-21  Bruno Haible  <bruno@clisp.org>
51821
51822         * modules/getpass (Depends-on): Add strdup-posix.
51823
51824         New module 'strdup-posix'.
51825         * modules/strdup-posix: New file.
51826         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
51827         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
51828         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51829         REPLACE_STRDUP.
51830         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
51831         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
51832         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51833         strdup-posix.
51834
51835         * modules/strdup (Depends-on): Remove malloc-posix.
51836
51837 2008-09-20  Bruno Haible  <bruno@clisp.org>
51838
51839         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
51840         Wildenhues.
51841
51842 2008-09-20  Bruno Haible  <bruno@clisp.org>
51843
51844         Ensure that wint_t gets defined on IRIX 5.3.
51845         * lib/wchar.in.h (wint_t): Define if not defined by the system.
51846         * lib/wctype.in.h (wint_t): Likewise.
51847         (__wctype_wint_t): Remove type.
51848         (isw*): Use wint_t instead of __wctype_wint_t.
51849         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
51850         * modules/wchar (Files): Add m4/wint_t.m4.
51851         (Makefile.am): Substitute HAVE_WINT_T.
51852         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
51853         * tests/test-wctype.c: Check that wint_t is defined.
51854         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
51855         * doc/posix-headers/wctype.texi: Likewise.
51856         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51857
51858 2008-09-18  Bruno Haible  <bruno@clisp.org>
51859
51860         * gnulib-tool (func_exit): Update comment.
51861
51862 2008-09-18  Simon Josefsson  <simon@josefsson.org>
51863
51864         * modules/getaddrinfo (Depends-on): Remove strdup, this module
51865         assumes strdup exists and does not depend on strdup to return
51866         ENOMEM on out of memory conditions.
51867
51868 2008-09-18  Bruno Haible  <bruno@clisp.org>
51869
51870         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
51871         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
51872         digits for the exponent.
51873
51874 2008-09-18  Jim Meyering  <meyering@redhat.com>
51875             Bruno Haible  <bruno@clisp.org>
51876
51877         * lib/vasnprintf.c (decimal_point_char): Define also if
51878         NEED_PRINTF_INFINITE_LONG_DOUBLE.
51879
51880 2008-09-16  Bruno Haible  <bruno@clisp.org>
51881         and Eric Blake  <ebb9@byu.net>
51882
51883         vasnprintf: support Irix 5.3
51884         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
51885         that mishandle long double infinity.
51886         Reported by Tom G. Christensen.
51887
51888 2008-09-16  Bruno Haible  <bruno@clisp.org>
51889
51890         * doc/glibc-functions/scandir.texi: Mention the function is missing on
51891         Solaris 9.
51892         * doc/glibc-functions/alphasort.texi: Likewise.
51893         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
51894
51895 2008-09-16  Jim Meyering  <meyering@redhat.com>
51896
51897         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
51898         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
51899         a umask modification leak out of a subshell.  Otherwise, the
51900         opensolaris /bin/sh would be accepted and thus cause unwarranted
51901         failures in the coreutils test suite.
51902
51903 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
51904
51905         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
51906         to succeed.
51907
51908 2008-09-16  Jim Meyering  <meyering@redhat.com>
51909
51910         avoid spurious test failure when library is built without ACL support
51911         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
51912         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
51913         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
51914         * tests/test-copy-acl.sh: Likewise.
51915
51916 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51917
51918         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
51919         based on character occurrence counts.
51920
51921 2008-09-15  Eric Blake  <ebb9@byu.net>
51922
51923         tests: avoid some compiler warnings
51924         * tests/test-memchr.c (main): Pass NULL indirectly.
51925         * tests/test-closein.c (main): Avoid unused variable.
51926
51927 2008-09-15  Bruno Haible  <bruno@clisp.org>
51928
51929         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
51930         are missing on OpenBSD 4.0 individually.
51931         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51932
51933 2008-09-15  Bruno Haible  <bruno@clisp.org>
51934
51935         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
51936         * doc/posix-functions/strerror.texi: Mention also Cygwin.
51937         * doc/posix-functions/perror.texi: Likewise.
51938         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
51939         is missing.
51940         Reported by Eric Blake.
51941
51942         * lib/errno.in.h: Use replacement values >= 2000.
51943         Reported by Eric Blake.
51944
51945 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51946
51947         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
51948         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
51949         limit.
51950         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
51951         compareseq was aborted.
51952
51953 2008-09-14  Bruno Haible  <bruno@clisp.org>
51954
51955         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
51956         yvec_edit_count.
51957         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
51958         (fstrcmp_bounded): Simplify result computation accordingly.
51959
51960 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51961
51962         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
51963         (fstrcmp): Define in terms of fstrcmp_bounded.
51964         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
51965         lower_bound argument.
51966         Return quickly if the result is certainly < lower_bound.
51967         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
51968
51969 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51970
51971         * lib/diffseq.h (EARLY_ABORT): New macro.
51972         (compareseq): Change return type to bool. Return true when EARLY_ABORT
51973         evaluates to true.
51974
51975 2008-09-14  Bruno Haible  <bruno@clisp.org>
51976
51977         * modules/perror-tests: New file.
51978         * tests/test-perror.sh: New file.
51979         * tests/test-perror.c: New file.
51980
51981         New module 'perror'.
51982         * lib/stdio.in.h (perror): New declaration.
51983         * lib/perror.c: New file.
51984         * m4/perror.m4: New file.
51985         * modules/perror: New file.
51986         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
51987         * doc/posix-functions/perror.texi: Mention the perror module.
51988         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
51989         REPLACE_PERROR.
51990         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
51991         REPLACE_PERROR.
51992
51993 2008-09-14  Bruno Haible  <bruno@clisp.org>
51994
51995         * modules/stdio (Makefile.am): Reorder to match the order in
51996         lib/stdio.in.h.
51997         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51998
51999 2008-09-13  Bruno Haible  <bruno@clisp.org>
52000
52001         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
52002
52003 2008-09-13  Bruno Haible  <bruno@clisp.org>
52004
52005         Extend strerror to cover the added errno values.
52006         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
52007         (rpl_strerror): Provide error messages for the added errno values and
52008         for the WSA* values.
52009         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
52010         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
52011         strerror.
52012         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
52013         * modules/strerror (Depends-on): Add errno.
52014         * doc/posix-functions/strerror.texi: Document the change.
52015         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
52016         and EOVERFLOW.
52017
52018 2008-09-13  Bruno Haible  <bruno@clisp.org>
52019
52020         * modules/EOVERFLOW: Remove file.
52021         * m4/eoverflow.m4: Remove file.
52022         * modules/EOVERFLOW-tests: Remove file.
52023         * tests/test-EOVERFLOW.c: Remove file.
52024         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
52025         * modules/ftell (Depends-on): Likewise.
52026         * modules/getdelim (Depends-on): Likewise.
52027         * modules/getugroups (Depends-on): Likewise.
52028         * modules/poll (Depends-on): Likewise.
52029         * modules/snprintf (Depends-on): Likewise.
52030         * modules/sprintf-posix (Depends-on): Likewise.
52031         * modules/vasnprintf (Depends-on): Likewise.
52032         * modules/vasprintf (Depends-on): Likewise.
52033         * modules/vfprintf-posix (Depends-on): Likewise.
52034         * modules/vsnprintf (Depends-on): Likewise.
52035         * modules/vsprintf-posix (Depends-on): Likewise.
52036         * modules/xvasprintf (Depends-on): Likewise.
52037         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52038         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
52039         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
52040         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
52041         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52042         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
52043         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
52044         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
52045         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52046         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
52047         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
52048         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
52049         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52050         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
52051         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
52052         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
52053         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52054         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
52055         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
52056         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
52057         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52058         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
52059         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
52060         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
52061         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
52062         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52063         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
52064         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
52065         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
52066         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
52067         * MODULES.html.sh: Remove EOVERFLOW.
52068         * NEWS: Mention the change.
52069
52070 2008-09-13  Bruno Haible  <bruno@clisp.org>
52071
52072         * modules/errno-tests: New file.
52073         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
52074
52075         * lib/errno.in.h: New file.
52076         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
52077         * modules/errno: New file.
52078         * doc/posix-headers/errno.texi: Update documentation.
52079         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
52080
52081 2008-09-13  Bruno Haible  <bruno@clisp.org>
52082
52083         * tests/test-poll.c: Use #if for native Windows, rather than testing
52084         __MSVCRT__.
52085
52086 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52087             Bruno Haible  <bruno@clisp.org>
52088
52089         * lib/glob.c: Don't include <pwd.h> on native Windows.
52090         (WINDOWS32): New macro.
52091         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
52092
52093 2008-09-13  Bruno Haible  <bruno@clisp.org>
52094
52095         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
52096         (ETIMEDOUT): Remove macro.
52097         (glthread_cond_timedwait_multithreaded): New declaration.
52098         (glthread_cond_timedwait): Use it.
52099         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
52100         (glthread_cond_timedwait_multithreaded): New function.
52101
52102 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52103
52104         * modules/poll-tests: Do not check for io.h.
52105         * tests/test-poll.c: Check for __MSVCRT__ instead.
52106
52107 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52108
52109         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
52110         * modules/poll-tests: Add inet_pton, stdbool, sockets.
52111         * tests/test-poll.c: Use them.  Use _pipe on Windows.
52112
52113 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52114
52115         * modules/poll-tests: New.
52116         * tests/test-poll.c: New.
52117
52118 2008-09-12  Eric Blake  <ebb9@byu.net>
52119
52120         frexp: test for NetBSD failure on -0.0
52121         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
52122         not all, bugs from NetBSD 3.0 have been fixed.
52123         * doc/posix-functions/frexp.texi (frexp): Document bug.
52124         Reported by Thomas Klausner.
52125
52126         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
52127         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
52128         literal -0.0.
52129         Reported by Jonathan C. Patschke <jp@centtech.com>.
52130
52131 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52132
52133         * lib/glthread/cond.h: Use dummy implementation also if
52134         USE_WIN32_THREADS.
52135
52136 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52137
52138         * modules/fnmatch-posix (License): Change to LGPLv2+.
52139         * modules/fnmatch-gnu (License): Likewise.
52140
52141 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52142
52143         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
52144
52145 2008-09-11  Jim Meyering  <meyering@redhat.com>
52146
52147         * users.txt: Add gtk-vnc.
52148
52149 2008-09-08  Simon Josefsson  <simon@josefsson.org>
52150
52151         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
52152         rotate amounts.
52153
52154         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
52155         required for 16-bit and 8-bit rotates.
52156         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
52157         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
52158         UINT8_MAX instead of hard-coded constants.
52159         Suggested by Paul Eggert.
52160
52161 2008-09-07  Bruno Haible  <bruno@clisp.org>
52162
52163         * tests/test-striconveh.c (main): Check behaviour when converting from
52164         UTF-7.
52165
52166         Make striconveh work better with stateful encodings.
52167         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
52168         that iconv does not increment the inptr when returning -1/EINVAL.
52169
52170 2008-09-07  Bruno Haible  <bruno@clisp.org>
52171
52172         * build-aux/config.rpath: Update according to libtool-2.2.6.
52173         * build-aux/config.libpath: Likewise.
52174
52175 2008-09-06  Bruno Haible  <bruno@clisp.org>
52176
52177         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
52178         * lib/freadptr.c (freadptr): Likewise.
52179         * lib/freadseek.c (freadptrinc): Likewise.
52180         Reported by Simon Josefsson.
52181
52182 2008-09-06  Bruno Haible  <bruno@clisp.org>
52183
52184         * modules/freadptr (License): Change to LGPLv2+.
52185         * modules/freadseek (License): Likewise.
52186         Suggested by Eric Blake.
52187
52188         * modules/memchr2 (License): Change to LGPLv2+.
52189         Approved by Eric Blake.
52190
52191 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52192             Bruno Haible  <bruno@clisp.org>
52193
52194         Make gnulib-tool work with native 'sed' on AIX.
52195         * gnulib-tool (sed_noop): New variable.
52196         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
52197         func_add_or_update, func_create_testdir): Use it to initialize sed
52198         script variables.
52199         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52200
52201 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
52202             Bruno Haible  <bruno@clisp.org>
52203
52204         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
52205         also works after #include directives.
52206
52207 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
52208
52209         getdate.y: reject an out-of-range timezone value
52210         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
52211         the range [-24...+24].  When specified with only one or two digits,
52212         * tests/test-getdate.c: Tests for the fix.
52213         * doc/getdate.texi: Document this change.
52214
52215 2008-09-03  Bruno Haible  <bruno@clisp.org>
52216
52217         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
52218
52219 2008-09-02  Simon Josefsson  <simon@josefsson.org>
52220
52221         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
52222         <bruce.korb@gmail.com> with ideas from Ben Pfaff
52223         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
52224         Blake <ebb9@byu.net>.
52225
52226         * tests/test-bitrotate.c: Add more test vectors.
52227
52228 2008-09-02  Eric Blake  <ebb9@byu.net>
52229
52230         vasnprintf-posix: handle large precision via %.*d
52231         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
52232         when handling it ourselves.
52233         * tests/test-vasnprintf-posix.c (test_function): Add test.
52234         * tests/test-snprintf-posix.h (test_function): Likewise.
52235         * tests/test-sprintf-posix.h (test_function): Likewise.
52236         * tests/test-vasprintf-posix.c (test_function): Likewise.
52237         Reported by Alain Guibert.
52238
52239 2008-09-01  Eric Blake  <ebb9@byu.net>
52240
52241         c-stack: make configure-time check more robust
52242         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
52243         successful sigaction call.
52244         Reported by Tom G. Christensen.
52245
52246 2008-09-01  Bruno Haible  <bruno@clisp.org>
52247
52248         New module 'findprog-lgpl'.
52249         * modules/findprog-lgpl: New file.
52250         * lib/findprog-lgpl.c: New file.
52251         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
52252         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
52253         to decide whether to use strdup or xstrdup, concatenated_filename or
52254         xconcatenated_filename.
52255
52256 2008-09-01  Bruno Haible  <bruno@clisp.org>
52257
52258         Split module 'concat-filename' into 'concat-filename' (LGPL) and
52259         'xconcat-filename' (GPL).
52260         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
52261         (License): Change to LGPLv2+.
52262         * modules/xconcat-filename: New file.
52263         * lib/concat-filename.h (concatenated_filename): Change specification.
52264         (xconcatenated_filename): New declaration.
52265         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
52266         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
52267         memory situations.
52268         * lib/xconcat-filename.c: New file.
52269         * NEWS: Mention the change.
52270         * lib/findprog.c: Include concat-filename.h, not filename.h.
52271         (find_in_path): Use xconcatenated_filename instead of
52272         concatenated_filename.
52273         * lib/javacomp.c: Include concat-filename.h, not filename.h.
52274         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
52275         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
52276         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
52277         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
52278         instead of concatenated_filename.
52279         * lib/javaexec.c: Include concat-filename.h, not filename.h.
52280         (execute_java_class): Use xconcatenated_filename instead of
52281         concatenated_filename.
52282         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
52283         * modules/javacomp (Depends-on): Likewise.
52284         * modules/javaexec (Depends-on): Likewise.
52285
52286 2008-09-01  Bruno Haible  <bruno@clisp.org>
52287
52288         Split module 'filename' into 'filename' and 'concat-filename'.
52289         * modules/filename: Keep only lib/filename.h.
52290         (License): Change to LGPLv2+.
52291         * modules/concat-filename: New file, extracted from modules/filename.
52292         * lib/filename.h (concatenated_filename): Remove declaration.
52293         * lib/concat-filename.h: New file, extracted from lib/filename.h.
52294         * lib/concat-filename.c: Include concat-filename.h.
52295         * NEWS: Mention the change.
52296
52297 2008-09-01  Simon Josefsson  <simon@josefsson.org>
52298
52299         * lib/bitrotate.h (rotl8, rotr8): Add.
52300
52301         * modules/bitrotate (configure.ac): Need
52302         AC_REQUIRE([AC_C_INLINE]).
52303         (Description): Mention stdint.h.  Reported by Bruno Haible
52304         <bruno@clisp.org>.
52305
52306         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
52307         Paolo Bonzini <bonzini@gnu.org>.
52308
52309 2008-08-31  Bruno Haible  <bruno@clisp.org>
52310
52311         Assume Solaris specific bi-arch conventions on Solaris systems.
52312         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
52313         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
52314         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
52315         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
52316         like acl_libdirstem.
52317         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
52318         acl_libdirstem.
52319         * NEWS: Mention the change.
52320         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
52321
52322 2008-08-31  Jim Meyering  <meyering@redhat.com>
52323
52324         * lib/strftime.h: Add comments describing the two added arguments.
52325
52326         remove duplicate #include directives
52327         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
52328         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
52329
52330 2008-08-31  Bruno Haible  <bruno@clisp.org>
52331
52332         New module 'sigpipe-die'.
52333         * modules/sigpipe-die: New file.
52334         * lib/sigpipe-die.h: New file.
52335         * lib/sigpipe-die.c: New file.
52336         * MODULES.html.sh (Signal handling): Add sigpipe-die.
52337
52338 2008-08-31  Bruno Haible  <bruno@clisp.org>
52339
52340         Don't override previously installed signal handlers.
52341         * lib/fatal-signal.c (saved_sigactions): New variable.
52342         (uninstall_handlers): Reset the signal to the saved handler, not
52343         to SIG_DFL (except when ignored).
52344         (install_handlers): Save the previous handlers.
52345
52346 2008-08-30  Bruno Haible  <bruno@clisp.org>
52347
52348         * gnulib-tool (func_reset_sigpipe): New function.
52349         (func_get_automake_snippet, func_modules_transitive_closure,
52350         func_import): Invoke it before a join command that reads from stdin,
52351         to avoid "echo: write error: Broken pipe" error messages on stderr.
52352         Reported by Sam Steingold <sds@gnu.org>.
52353
52354 2008-08-30  Bruno Haible  <bruno@clisp.org>
52355
52356         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
52357         Code copied from m4/open.m4.
52358         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
52359         access and the filename ends in a slash. Code copied from lib/open.c.
52360         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
52361         * tests/test-fopen.c (main): Check against bug with trailing slash.
52362
52363 2008-08-29  Bruno Haible  <bruno@clisp.org>
52364
52365         Avoid some "gcc -pedantic" warnings.
52366         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
52367         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
52368         * lib/dirent.in.h: Likewise.
52369         * lib/fcntl.in.h: Likewise.
52370         * lib/float.in.h: Likewise.
52371         * lib/iconv.in.h: Likewise.
52372         * lib/inttypes.in.h: Likewise.
52373         * lib/locale.in.h: Likewise.
52374         * lib/math.in.h: Likewise.
52375         * lib/netinet_in.in.h: Likewise.
52376         * lib/search.in.h: Likewise.
52377         * lib/signal.in.h: Likewise.
52378         * lib/stdarg.in.h: Likewise.
52379         * lib/stdint.in.h: Likewise.
52380         * lib/stdio.in.h: Likewise.
52381         * lib/stdlib.in.h: Likewise.
52382         * lib/string.in.h: Likewise.
52383         * lib/strings.in.h: Likewise.
52384         * lib/sys_select.in.h: Likewise.
52385         * lib/sys_socket.in.h: Likewise.
52386         * lib/sys_stat.in.h: Likewise.
52387         * lib/sys_time.in.h: Likewise.
52388         * lib/sysexits.in.h: Likewise.
52389         * lib/time.in.h: Likewise.
52390         * lib/unistd.in.h: Likewise.
52391         * lib/wchar.in.h: Likewise.
52392         * lib/wctype.in.h: Likewise.
52393         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
52394         * modules/fchdir (Makefile.am): Likewise.
52395         * modules/fcntl (Makefile.am): Likewise.
52396         * modules/float (Makefile.am): Likewise.
52397         * modules/iconv_open (Makefile.am): Likewise.
52398         * modules/inttypes (Makefile.am): Likewise.
52399         * modules/locale (Makefile.am): Likewise.
52400         * modules/math (Makefile.am): Likewise.
52401         * modules/netinet_in (Makefile.am): Likewise.
52402         * modules/search (Makefile.am): Likewise.
52403         * modules/signal (Makefile.am): Likewise.
52404         * modules/stdarg (Makefile.am): Likewise.
52405         * modules/stdint (Makefile.am): Likewise.
52406         * modules/stdio (Makefile.am): Likewise.
52407         * modules/stdlib (Makefile.am): Likewise.
52408         * modules/string (Makefile.am): Likewise.
52409         * modules/strings (Makefile.am): Likewise.
52410         * modules/sys_select (Makefile.am): Likewise.
52411         * modules/sys_socket (Makefile.am): Likewise.
52412         * modules/sys_stat (Makefile.am): Likewise.
52413         * modules/sys_time (Makefile.am): Likewise.
52414         * modules/sysexits (Makefile.am): Likewise.
52415         * modules/time (Makefile.am): Likewise.
52416         * modules/unistd (Makefile.am): Likewise.
52417         * modules/wchar (Makefile.am): Likewise.
52418         * modules/wctype (Makefile.am): Likewise.
52419         Reported by Reuben Thomas <rrt@sc3d.org>.
52420
52421 2008-08-29  Bruno Haible  <bruno@clisp.org>
52422
52423         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
52424         any more.
52425
52426 2008-08-29  Simon Josefsson  <simon@josefsson.org>
52427
52428         * MODULES.html.sh (Misc): Add bitrotate.
52429
52430         * modules/bitrotate: New file.
52431
52432         * lib/bitrotate.h: New file.
52433
52434         * modules/bitrotate-tests: New file.
52435
52436         * tests/test-bitrotate.c: New file.
52437
52438         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
52439         on the bitrotate module.
52440
52441         * lib/arctwo.c: Use new bitrotate module.
52442
52443 2008-08-29  Jim Meyering  <meyering@redhat.com>
52444
52445         bootstrap: merge changes from coreutils
52446         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
52447         of copied files.  Remove a kludge, now that this is fixed.
52448         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
52449         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
52450         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
52451
52452 2008-08-29  Bruno Haible  <bruno@clisp.org>
52453
52454         * MODULES.html.sh: Remove --cvs-urls option.
52455
52456 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
52457
52458         maint.mk: adjust to file name change
52459         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
52460
52461 2008-08-28  Jim Meyering  <meyering@redhat.com>
52462
52463         * modules/getndelim2 (License): Relicense to LGPLv2+.
52464         Approved by Richard Stallman for the version of 1995, and by
52465         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
52466
52467 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
52468
52469         * lib/getdelim.c (flockfile, funlockfile): Make all of them
52470         dummy if one is not available.  Do not touch them if
52471         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
52472         (getc_maybe_unlocked): New.
52473         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
52474
52475 2008-08-26  Eric Blake  <ebb9@byu.net>
52476
52477         doc/INSTALL: resync from autoconf
52478         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
52479         (INSTALL_PRELUDE): Delete; this is done more efficiently by
52480         moving...
52481         * install.texi [!autoconf]: ...here.  Resync from autoconf.
52482         * INSTALL: Regenerate.
52483         * INSTALL.ISO: New file.
52484         * INSTALL.UTF-8: Likewise.
52485
52486 2008-08-26  Jim Meyering  <meyering@redhat.com>
52487
52488         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
52489         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
52490         these definitions conditional, so that they may be overridden, too.
52491
52492 2008-08-26  Bruno Haible  <bruno@clisp.org>
52493
52494         Generate INSTALL file variants with prettier quotes.
52495         * doc/Makefile (INSTALL_PRELUDE): New macro.
52496         (INSTALL): Use it.
52497         (INSTALL.ISO, INSTALL.UTF-8): New rules.
52498
52499 2008-08-26  Bruno Haible  <bruno@clisp.org>
52500
52501         Run makeinfo in an English locale.
52502         * doc/Makefile (MAKEINFO): New variable.
52503
52504 2008-08-26  Bruno Haible  <bruno@clisp.org>
52505
52506         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
52507         Suggested by Eric Blake.
52508
52509 2008-08-25  Bruno Haible  <bruno@clisp.org>
52510
52511         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
52512
52513 2008-08-25  Eric Blake  <ebb9@byu.net>
52514
52515         c-stack: test that stack overflow can be caught
52516         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
52517         that platform allows handling stack overflow; at least OS/2 EMX
52518         has sigaltstack, but crashes before transferring control to
52519         handler on stack overflow.
52520         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
52521         check for HAVE_STACK_OVERFLOW_HANDLING.
52522         Reported by Elbert Pol.
52523
52524 2008-08-25  Bruno Haible  <bruno@clisp.org>
52525
52526         * doc/posix-functions/strftime.texi: Fix description of strftime
52527         module.
52528
52529 2008-08-24  Bruno Haible  <bruno@clisp.org>
52530
52531         * tests/uniwidth/test-uc_width2.c: New file.
52532         * tests/uniwidth/test-uc_width2.sh: New file.
52533         * modules/uniwidth/width-tests (Files): Add the new files.
52534         (TESTS): Add uniwidth/test-uc_width2.sh.
52535         (TESTS_ENVIRONMENT): New variable.
52536         (check_PROGRAMS): Add test-uc_width2.
52537         (test_uc_width2_SOURCES): New variable.
52538
52539         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
52540         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
52541         not 0x00AB.
52542         Reported by Alexander V. Lukyanov <lav@netis.ru>.
52543
52544 2008-08-22  Eric Blake  <ebb9@byu.net>
52545
52546         test-lock, test-tls: mention why a test is skipped
52547         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
52548         skipped.
52549         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
52550
52551         count-one-bits: relax license
52552         * modules/count-one-bits (License): Relicense to LGPLv2+.
52553         Suggested by Ludovic Courtès, approved by Ben Pfaff.
52554
52555 2008-08-22  Andreas Schwab  <schwab@suse.de>
52556
52557         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
52558         Remove spurious space in assignment.
52559
52560 2008-08-21  Simon Josefsson  <simon@josefsson.org>
52561
52562         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
52563         Paul Eggert <eggert@CS.UCLA.EDU>.
52564
52565 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
52566
52567         * modules/gettext: Add m4/threadlib.m4.
52568
52569 2008-08-19  Eric Blake  <ebb9@byu.net>
52570
52571         test-c-stack: fix compilation failure on FreeBSD 5.0
52572         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
52573         headers before <sys/resource.h>.
52574         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
52575         the bug.
52576         Reported by Nelson H. F. Beebe.
52577
52578         strverscmp: migrate from "strverscmp.h" to <string.h>
52579         * modules/string (Makefile.am): Add new hooks.
52580         * modules/strverscmp (Files): Remove strverscmp.h.
52581         (Depends-on): Add string.
52582         (configure.ac): Add indicator.
52583         (Include): Mention new header.
52584         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
52585         defaults.
52586         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
52587         results.
52588         * lib/strverscmp.h: Delete.
52589         * lib/string.in.h (strverscmp): Provide declaration, when needed.
52590         * tests/test-strverscmp.c (includes): Adjust client.
52591         * lib/check-version.c (includes): Likewise.
52592         * NEWS: Document the change.
52593
52594         strverscmp: add unit test
52595         * modules/strverscmp-tests: New file.
52596         * tests/test-strverscmp.c: Likewise.
52597
52598 2008-08-19  Simon Josefsson  <simon@josefsson.org>
52599
52600         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
52601         regarding Windows crypto stuff, from Mono.
52602
52603 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
52604
52605         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
52606         if present, for intel RND.  Return error on failures.
52607
52608 2008-08-18  Ben Pfaff  <blp@gnu.org>
52609
52610         gitlog-to-changelog: give better diagnostic for failed pipe-open
52611         * build-aux/gitlog-to-changelog: Improve error message: suggest
52612         that the version of Git may be too old.
52613
52614 2008-08-18  Simon Josefsson  <simon@josefsson.org>
52615
52616         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
52617         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
52618
52619 2008-08-18  Bruno Haible  <bruno@clisp.org>
52620
52621         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
52622         pthread_in_use().
52623
52624 2008-08-18  Bruno Haible  <bruno@clisp.org>
52625
52626         * lib/glthread/threadlib.c: Include <pthread.h>.
52627
52628 2008-08-18  Bruno Haible  <bruno@clisp.org>
52629
52630         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
52631         glthread_recursive_lock_* macros.
52632         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
52633         Fix syntax error.
52634
52635 2008-08-18  Bruno Haible  <bruno@clisp.org>
52636
52637         * lib/glthread/thread.c: Avoid forcing a context switch right after
52638         thread creation.
52639
52640 2008-08-17  Bruno Haible  <bruno@clisp.org>
52641
52642         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
52643         * lib/glthread/thread.h: Provide Win32 specific implementation.
52644         * modules/thread (Files): Add lib/glthread/thread.c.
52645         (Depends-on): Add lock.
52646         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
52647
52648 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52649
52650         New module 'yield'.
52651         * modules/yield: New file.
52652         * lib/glthread/yield.h: New file.
52653         * m4/yield.m4: New file.
52654         * MODULES.html.sh (Multithreading): Add yield.
52655
52656 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52657
52658         New module 'thread'.
52659         * modules/thread: New file.
52660         * lib/glthread/thread.h: New file.
52661         * m4/thread.m4: New file.
52662         * MODULES.html.sh (Multithreading): Add thread.
52663
52664 2008-08-17  Bruno Haible  <bruno@clisp.org>
52665
52666         * lib/glthread/lock.h: Include <stdlib.h> always.
52667         * lib/glthread/tls.h: Likewise.
52668         * lib/glthread/cond.h: Likewise.
52669
52670 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52671
52672         New module 'cond'.
52673         * modules/cond: New file.
52674         * lib/glthread/cond.h: New file.
52675         * lib/glthread/cond.c: New file.
52676         * m4/cond.m4: New file.
52677         * MODULES.html.sh (Multithreading): Add cond.
52678
52679 2008-08-16  Eric Blake  <ebb9@byu.net>
52680
52681         c-stack: fix regression on Irix 5.3 from 2008-06-21
52682         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
52683         sa_sigaction...
52684         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
52685         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
52686         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
52687         * modules/signal (Makefile.am): Use the value.
52688         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
52689         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
52690         * doc/posix-headers/signal.texi (signal.h): Document this
52691         portability issue.
52692         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
52693         Reported by Tom G. Christensen.
52694
52695 2008-08-17  Bruno Haible  <bruno@clisp.org>
52696
52697         New module 'threadlib'.
52698         * modules/threadlib: New file.
52699         * lib/glthread/threadlib.c: New file, extracted from
52700         lib/glthread/lock.c.
52701         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
52702         functions.
52703         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
52704         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
52705         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
52706         macros.
52707         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
52708         (gl_DISABLE_THREADS): Remove macro.
52709         * modules/lock (Files): Remove build-aux/config.rpath.
52710         (Depends-on): Remove havelib. Add threadlib.
52711         (configure.ac-early): Remove section.
52712         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
52713         * modules/tls (Depends-on): Remove lock. Add threadlib.
52714         (Link): New section, copied from threadlib.
52715         * MODULES.html.sh (Multithreading): Add threadlib.
52716
52717 2008-08-14  Bruno Haible  <bruno@clisp.org>
52718
52719         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
52720         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
52721         glthread_rwlock_unlock, glthread_rwlock_destroy,
52722         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
52723         glthread_recursive_lock_destroy): Define as macros always.
52724         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
52725         glthread_lock_lock.
52726         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
52727         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
52728         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
52729         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
52730         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
52731         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
52732         (glthread_recursive_lock_lock_func): Renamed from
52733         glthread_recursive_lock_lock.
52734         (glthread_recursive_lock_unlock_func): Renamed from
52735         glthread_recursive_lock_unlock.
52736         (glthread_recursive_lock_destroy_func): Renamed from
52737         glthread_recursive_lock_destroy.
52738
52739 2008-08-14  Bruno Haible  <bruno@clisp.org>
52740
52741         * lib/glthread/lock.h: Renamed from lib/lock.h.
52742         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
52743         * lib/glthread/tls.h: Renamed from lib/tls.h.
52744         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
52745         * lib/fstrcmp.c: Update includes.
52746         * lib/strsignal.c: Update includes.
52747         * modules/lock (Files, Makefile.am): Update.
52748         (Include): Change to "glthread/lock.h".
52749         * modules/tls (Files, Makefile.am): Update.
52750         (Include): Change to "glthread/tls.h".
52751         * tests/test-lock.c: Update includes.
52752         * tests/test-tls.c: Update includes.
52753         * NEWS: Mention the renamed header files.
52754
52755 2008-08-11  Jim Meyering  <meyering@redhat.com>
52756
52757         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
52758
52759 2008-08-11  Eric Blake  <ebb9@byu.net>
52760
52761         test-c-stack: avoid C99-ism
52762         * tests/test-c-stack.c (main): Fix whitespace, move declaration
52763         before statement.
52764         Reported by Alain Guibert.
52765
52766 2008-08-10  Jim Meyering  <meyering@redhat.com>
52767
52768         ensure that return value of uinttostr et al are not ignored
52769         * lib/inttostr.h (__GNUC_PREREQ): Define.
52770         (__attribute_warn_unused_result__): Define.
52771         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
52772
52773 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
52774
52775         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
52776         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
52777
52778 2008-08-07  Jim Meyering  <meyering@redhat.com>
52779
52780         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
52781
52782         * modules/mkstemp (License): Relicense under LGPLv2+.
52783         * modules/tempname (License): Likewise.
52784
52785 2008-08-06  Bruno Haible  <bruno@clisp.org>
52786
52787         * lib/poll.c (poll): Further micro-optimization.
52788
52789 2008-08-06  Jim Meyering  <meyering@redhat.com>
52790
52791         inet_pton.c: use locale-independent tolower
52792         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
52793         (inet_pton6): Use c_tolower rather than tolower.
52794         * modules/inet_pton (Depends-on): Add c-ctype.
52795
52796 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
52797
52798         * lib/poll.c (poll): Avoid division when timeout is 0, cache
52799         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
52800
52801 2008-08-06  Jim Meyering  <meyering@redhat.com>
52802
52803         * modules/inet_pton (License): Relicense under LGPLv2+.
52804
52805 2008-08-03  Bruno Haible  <bruno@clisp.org>
52806
52807         Additional non-aborting API for lock and tls.
52808         * lib/lock.h: Include <errno.h>.
52809         (glthread_lock_init): New macro/function.
52810         (gl_lock_init): Define as wrapper around glthread_lock_init.
52811         (glthread_lock_lock): New macro/function.
52812         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
52813         (glthread_lock_unlock): New macro/function.
52814         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
52815         (glthread_lock_destroy): New macro/function.
52816         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
52817         (glthread_rwlock_init): New macro/function.
52818         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
52819         (glthread_rwlock_rdlock): New macro/function.
52820         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
52821         (glthread_rwlock_wrlock): New macro/function.
52822         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
52823         (glthread_rwlock_unlock): New macro/function.
52824         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
52825         (glthread_rwlock_destroy): New macro/function.
52826         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
52827         (glthread_recursive_lock_init): New macro/function.
52828         (gl_recursive_lock_init): Define as wrapper around
52829         glthread_recursive_lock_init.
52830         (glthread_recursive_lock_lock): New macro/function.
52831         (gl_recursive_lock_lock): Define as wrapper around
52832         glthread_recursive_lock_lock.
52833         (glthread_recursive_lock_unlock): New macro/function.
52834         (gl_recursive_lock_unlock): Define as wrapper around
52835         glthread_recursive_lock_unlock.
52836         (glthread_recursive_lock_destroy): New macro/function.
52837         (gl_recursive_lock_destroy): Define as wrapper around
52838         glthread_recursive_lock_destroy.
52839         (glthread_once): New macro/function.
52840         (gl_once): Define as wrapper around glthread_once.
52841         Update function declarations.
52842         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
52843         glthread_rwlock_init. Return error code.
52844         (glthread_rwlock_rdlock_multithreaded): Renamed from
52845         glthread_rwlock_rdlock. Return error code.
52846         (glthread_rwlock_wrlock_multithreaded): Renamed from
52847         glthread_rwlock_wrlock. Return error code.
52848         (glthread_rwlock_unlock_multithreaded): Renamed from
52849         glthread_rwlock_unlock. Return error code.
52850         (glthread_rwlock_destroy_multithreaded): Renamed from
52851         glthread_rwlock_destroy. Return error code.
52852         (glthread_recursive_lock_init_multithreaded): Renamed from
52853         glthread_recursive_lock_init. Return error code.
52854         (glthread_recursive_lock_lock_multithreaded): Renamed from
52855         glthread_recursive_lock_lock. Return error code.
52856         (glthread_recursive_lock_unlock_multithreaded): Renamed from
52857         glthread_recursive_lock_unlock. Return error code.
52858         (glthread_recursive_lock_destroy_multithreaded): Renamed from
52859         glthread_recursive_lock_destroy. Return error code.
52860         (glthread_once_call): Make static.
52861         (glthread_once_multithreaded): Renamed from glthread_once.
52862         * lib/tls.h: Include <errno.h>.
52863         (glthread_tls_key_init): New macro/function.
52864         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
52865         (glthread_tls_set): New macro/function.
52866         (gl_tls_set): Define as wrapper around glthread_tls_set.
52867         (glthread_tls_key_destroy): New macro/function.
52868         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
52869         Update function declarations.
52870         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
52871         glthread_tls_get.
52872         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52873
52874 2008-08-04  Eric Blake  <ebb9@byu.net>
52875
52876         gnumakefile: use space, not TAB, outside of targets
52877         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
52878
52879 2008-08-02  Jim Meyering  <meyering@redhat.com>
52880
52881         getdate.y: avoid locale-dependent date parsing failure
52882         In Turkish locales, getdate would fail to recognize keywords
52883         containing a lowercase "i".  The solution is not to rely on
52884         locale-sensitive case-conversion.
52885         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
52886         (lookup_word): Use c_toupper in place of toupper.
52887         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
52888         Reported by Vefa Bicakci <bicave@superonline.com> in
52889         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
52890         * modules/getdate (Depends-on): Add c-ctype.
52891
52892 2008-08-02  Bruno Haible  <bruno@clisp.org>
52893
52894         * gnulib-tool (func_import): When updating or creating a .gitignore
52895         file, prepend each added line with a slash, and ignore leading slashes
52896         from the existing lines.
52897         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52898
52899 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52900
52901         Portability fix for GNU make 3.79.1.
52902         * top/GNUmakefile: Avoid 'else COND', which older GNU make
52903         versions do not understand.
52904
52905 2008-08-01  Bruno Haible  <bruno@clisp.org>
52906
52907         Work around bug of HP-UX 10.20 cc with -0.0 literal.
52908         * tests/test-isnanf.h (zero): New variable.
52909         (main): Avoid literal -0.0f.
52910         * tests/test-isnand.h (zero): New variable.
52911         (main): Avoid literal -0.0.
52912         * tests/test-isnanl.h (zero): New variable.
52913         (main): Avoid literal -0.0L.
52914         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
52915         (test_float, test_double, test_long_double): Avoid literals -0.0f,
52916         -0.0, -0.0L.
52917         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
52918         (test_signbitd): Avoid literal -0.0.
52919         (test_signbitl): Avoid literal -0.0L.
52920         * tests/test-ceilf1.c (zero): New variable.
52921         (main): Avoid literal -0.0f.
52922         * tests/test-ceill.c (zero): New variable.
52923         (main): Avoid literal -0.0L.
52924         * tests/test-floorf1.c (zero): New variable.
52925         (main): Avoid literal -0.0f.
52926         * tests/test-floorl.c (zero): New variable.
52927         (main): Avoid literal -0.0L.
52928         * tests/test-roundf1.c (zero): New variable.
52929         (main): Avoid literal -0.0f.
52930         * tests/test-round1.c (zero): New variable.
52931         (main): Avoid literal -0.0.
52932         * tests/test-roundl.c (zero): New variable.
52933         (main): Avoid literal -0.0L.
52934         * tests/test-truncf1.c (zero): New variable.
52935         (main): Avoid literal -0.0f.
52936         * tests/test-trunc1.c (zero): New variable.
52937         (main): Avoid literal -0.0.
52938         * tests/test-truncl.c (zero): New variable.
52939         (main): Avoid literal -0.0L.
52940         * tests/test-frexp.c (zero): New variable.
52941         (main): Avoid literal -0.0.
52942         * tests/test-frexpl.c (zero): New variable.
52943         (main): Avoid literal -0.0L.
52944         * tests/test-ldexpl.c (zero): New variable.
52945         (main): Avoid literal -0.0L.
52946         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
52947         (zerod, zerol): New variables.
52948         (test_function): Avoid literals -0.0, -0.0L.
52949         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
52950         (zerod, zerol): New variables.
52951         (test_function): Avoid literals -0.0, -0.0L.
52952         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
52953         (zerod, zerol): New variables.
52954         (test_function): Avoid literals -0.0, -0.0L.
52955         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
52956         (zerod, zerol): New variables.
52957         (test_function): Avoid literals -0.0, -0.0L.
52958         * tests/test-strtod.c (zero): New variable.
52959         (main): Avoid literal -0.0.
52960         Reported by Jonathan C. Patschke <jp@centtech.com>.
52961
52962 2008-07-31  Jim Meyering  <meyering@redhat.com>
52963
52964         sha256.h: correct definition of SHA224_DIGEST_SIZE
52965         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
52966         Reported by Paulie Pena IV <paulie4@gmail.com>.
52967         Define as 224 / 8, rather than as a literal.
52968         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
52969         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
52970         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
52971
52972 2008-07-31  Bruno Haible  <bruno@clisp.org>
52973
52974         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
52975         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
52976         Reported by Jonathan Patschke <jp@centtech.com>.
52977
52978 2008-07-31  Bruno Haible  <bruno@clisp.org>
52979
52980         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
52981         Reported by Paolo Bonzini <bonzini@gnu.org>.
52982
52983 2008-07-30  Eric Blake  <ebb9@byu.net>
52984
52985         test-strtod: allow compilation without -lm
52986         * tests/test-strtod.c (main): Avoid link dependence on fabs.
52987         Reported by Dennis Clarke <blastwave@gmail.com>.
52988
52989 2008-07-28  Jim Meyering  <meyering@redhat.com>
52990
52991         bootstrap: work also when there are no .po files in po/
52992         * build-aux/bootstrap (update_po_files): Complete the change
52993         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
52994
52995 2008-07-27  Jim Meyering  <meyering@redhat.com>
52996
52997         * users.txt: Add zile.
52998
52999 2008-07-26  Ben Pfaff  <blp@gnu.org>
53000
53001         Add missing dependencies on new m4/exponent[fdl].m4 files.
53002         * modules/isnanf-nolibm: Add m4/exponentf.m4.
53003         * modules/isnand-nolibm: Add m4/exponentd.m4.
53004         * modules/isnanl-nolibm: Add m4/exponentl.m4.
53005         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
53006         m4/isnan[fdl].m4, because the macros actually used moved.
53007         Reported by Jim Meyering.
53008
53009 2008-07-14  Ben Pfaff  <blp@gnu.org>
53010
53011         Add isinf module.
53012         * lib/isinf.c: New file.
53013         * lib/math.in.h: Define isinf macro if we have decided to replace
53014         it.
53015         * m4/isinf.m4: New file.
53016         * m4/math_h.m4: Initialize and substitute variables for isinf
53017         module.
53018         * modules/isinf: New file.
53019         * modules/isinf-tests: New file.
53020         * modules/math: Add substitutions for new module.
53021         * tests/test-isinf.c: New file.
53022         * doc/posix-functions/isinf.texi: Mention new module.
53023         * MODULES.html.sh: Mention new module.
53024
53025 2008-07-14  Ben Pfaff  <blp@gnu.org>
53026
53027         Factor out some macros for use by additional modules.
53028         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
53029         exponentf.m4.
53030         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
53031         exponentd.m4.
53032         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
53033         file exponentl.m4.
53034         * m4/exponentf.m4: New file.
53035         * m4/exponentd.m4: New file.
53036         * m4/exponentl.m4: New file.
53037         * modules/isnanf: Use new file m4/exponentf.m4.
53038         * modules/isnand: Use new file m4/exponentd.m4.
53039         * modules/isnanl: Use new file m4/exponentl.m4.
53040
53041 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
53042
53043         mktime.c: normalize tp->tm_isdst value to -1/0/1.
53044         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
53045         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
53046         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
53047
53048         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
53049         readlink on platforms without PATH_MAX.
53050
53051 2008-07-21  Eric Blake  <ebb9@byu.net>
53052
53053         Warn, not fail, on stale version.
53054         * top/GNUmakefile (_curr-ver): Tone down previous patch.
53055
53056         Don't allow installation with stale devel version number.
53057         * top/GNUmakefile (_is-install-target): New macro.
53058         (_curr-ver): Forbid installation with stale version number.
53059
53060 2008-07-20  Bruno Haible  <bruno@clisp.org>
53061
53062         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
53063         TESTS_ENVIRONMENT.
53064         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
53065
53066 2008-07-20  Bruno Haible  <bruno@clisp.org>
53067
53068         * lib/c-stack.h (c_stack_action): Add documentation.
53069         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
53070
53071 2008-07-20  Bruno Haible  <bruno@clisp.org>
53072
53073         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
53074         * modules/readlink (License): Likewise.
53075
53076 2008-07-17  Eric Blake  <ebb9@byu.net>
53077
53078         * modules/c-stack (Link): Fix typo.
53079
53080         Make c-stack use libsigsegv, when available.
53081         * modules/c-stack (Depends-on): Add libsigsegv.
53082         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
53083         needed.
53084         * lib/c-stack.c (SIGSTKSZ): Define fallback.
53085         (segv_handler, overflow_handler, c_stack_action)
53086         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
53087         implementation when libsigsegv is available, but only when using
53088         the library is necessary.
53089         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
53090         comment, explaining why XSI check fails on Linux.
53091         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
53092         * tests/test-c-stack2.sh: Tweak skip message.
53093         * NEWS: Document new link-time requirements.
53094
53095 2008-07-16  Eric Blake  <ebb9@byu.net>
53096
53097         c-stack: Expose false positives when not using libsigsegv.
53098         * modules/c-stack-tests (Files): Expand test.
53099         * tests/test-c-stack.c (main): Add means to conditionally trigger
53100         non-overflow SIGSEGV.
53101         * tests/test-c-stack2.sh: New file.
53102
53103 2008-07-14  Bruno Haible  <bruno@clisp.org>
53104
53105         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
53106         Reported by Eric Blake.
53107
53108 2008-07-14  Sam Steingold  <sds@gnu.org>
53109             Bruno Haible  <bruno@clisp.org>
53110
53111         New module libsigsegv.
53112         * modules/libsigsegv: New file.
53113         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
53114         modifications.
53115         * MODULES.html.sh (Signal handling): New section.
53116
53117 2008-07-14  Bruno Haible  <bruno@clisp.org>
53118
53119         * modules/unictype/ctype-* (Description): Add the word "function".
53120         Improves the resulting doc in MODULES.html.
53121
53122 2008-07-12  Ben Pfaff  <blp@gnu.org>
53123
53124         Add longlong module.
53125         * modules/longlong: New file.
53126
53127 2008-07-12  Bruno Haible  <bruno@clisp.org>
53128
53129         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
53130         to empty.
53131
53132 2008-07-10  Ben Pfaff  <blp@gnu.org>
53133
53134         Add isnan module.
53135         * doc/posix-functions/isnan.texi: Mention new module.
53136         * lib/math.in.h: Define isnan macro if we have decided to replace
53137         it.
53138         * m4/isnan.m4: New file.
53139         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
53140         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
53141         also.
53142         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
53143         redundancy.
53144         * m4/math_h.m4: Initialize and substitute variables for isnan
53145         module.
53146         * modules/isnan: New file.
53147         * modules/isnan-tests: New file.
53148         * modules/math: Add substitutions for new module.
53149         * tests/test-isnan.c: New file.
53150         * MODULES.html.sh: Mention new module.
53151
53152 2008-07-10  Ben Pfaff  <blp@gnu.org>
53153
53154         Add isnanf module.
53155         * lib/isnanf.m4: New file.
53156         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
53157         (gl_HAVE_ISNANF_IN_LIBM): New macro.
53158         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
53159         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
53160         * modules/isnanf: New file.
53161         * modules/isnanf-tests: New file.
53162         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
53163         files.
53164         * tests/test-isnanf-nolibm.c: factored most of its contents into
53165         new file tests/test-isnanf.h.
53166         * tests/test-isnanf.h: New file.
53167         * tests/test-isnanf.c: New file.
53168         * MODULES.html.sh: Mention new module.
53169         * doc/glibc-functions/isnanf.texi: Mention new module.
53170
53171 2008-07-10  Ben Pfaff  <blp@gnu.org>
53172
53173         Add isnand module.
53174         * lib/isnand.h: New file.
53175         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
53176         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
53177         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
53178         functionality also.
53179         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
53180         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
53181         (gl_HAVE_ISNAND_IN_LIBM): New macro.
53182         * modules/isnand: New file.
53183         * modules/isnand-tests: New file.
53184         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
53185         files.
53186         * tests/test-isnand-nolibm.c: factored most of its contents into
53187         new file tests/test-isnand.h.
53188         * tests/test-isnand.h: New file.
53189         * tests/test-isnand.c: New file.
53190         * MODULES.html.sh: Mention new module.
53191
53192 2008-07-10  Ben Pfaff  <blp@gnu.org>
53193
53194         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
53195         * lib/isnand.h: Rename lib/isnand-nolibm.h.
53196         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
53197         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
53198         * modules/isnanf-nolibm: Update references to renamed files.
53199         * modules/isnand-nolibm: Likewise.
53200         * modules/isnanf-nolibm-tests: Likewise.
53201         * modules/isnand-nolibm-tests: Likewise.
53202         * lib/frexp.c: Likewise.
53203         * lib/isfinite.c: Likewise.
53204         * lib/signbitd.c: Likewise.
53205         * lib/signbitf.c: Likewise.
53206         * lib/vasnprintf.c: Likewise.
53207         * tests/test-ceilf1.c: Likewise.
53208         * tests/test-ceilf2.c: Likewise.
53209         * tests/test-floorf1.c: Likewise.
53210         * tests/test-floorf2.c: Likewise.
53211         * tests/test-frexp.c: Likewise.
53212         * tests/test-round1.c: Likewise.
53213         * tests/test-round2.c: Likewise.
53214         * tests/test-roundf1.c: Likewise.
53215         * tests/test-strtod.c: Likewise.
53216         * tests/test-trunc1.c: Likewise.
53217         * tests/test-trunc2.c: Likewise.
53218         * tests/test-truncf1.c: Likewise.
53219         * tests/test-truncf2.c: Likewise.
53220         * NEWS: Mention the renamed header files.
53221
53222 2008-07-11  Jim Meyering  <meyering@redhat.com>
53223
53224         vc-list-files: make the last-resort awk code more portable
53225         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
53226         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
53227         does not support it.
53228
53229 2008-07-10  Eric Blake  <ebb9@byu.net>
53230
53231         Work with tar's bootstrap.
53232         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
53233         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
53234         an m4 comment.
53235
53236 2008-07-09  Jim Meyering  <meyering@redhat.com>
53237
53238         posix-shell.m4: fix typo that made this test malfunction
53239         * m4/posix-shell.m4: Remove capitalization in variable name.
53240
53241 2008-07-08  Bruno Haible  <bruno@clisp.org>
53242
53243         * m4/onceonly.m4: Update comments.
53244         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53245
53246 2008-07-04  Jim Meyering  <meyering@redhat.com>
53247
53248         * users.txt: Add vc-dwim.
53249         (bison, coreutils): Use the gitweb URL.
53250
53251 2008-07-03  Jim Meyering  <meyering@redhat.com>
53252
53253         * users.txt: Add libffcall.  From Sam Steingold.
53254
53255 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
53256
53257         getdate.y: do not ignore TZ with relative day, month or year offset
53258         * lib/getdate.y (get_date): Move the tz-handling block to follow the
53259         relative-date-handling, since otherwise, the latter would clobber the
53260         sole output (an updated Start value) of the tz-handling block.
53261         * tests/test-getdate.c: Tests for the fix
53262
53263 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53264
53265         Recognize 'foo_LIBRARIES += libgnu.a'.
53266         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
53267         makefile snippet has already specified an installation location,
53268         also using '+='.
53269
53270 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
53271
53272         getdate.y: factor out common actions
53273         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
53274         Use them in place of open-coded actions.
53275
53276 2008-07-01  Simon Josefsson  <simon@josefsson.org>
53277
53278         Add self-test for getdate module.
53279         * modules/getdate-tests: New file.
53280         * tests/test-getdate.c: New file.
53281
53282 2008-06-29  Bruno Haible  <bruno@clisp.org>
53283
53284         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
53285         .gitignore.
53286         Reported by Sylvain Beucler <beuc@beuc.net>.
53287
53288 2008-06-29  Bruno Haible  <bruno@clisp.org>
53289
53290         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
53291         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
53292
53293 2008-06-29  Bruno Haible  <bruno@clisp.org>
53294
53295         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
53296         EXTRA_DIST.
53297         Reported by Sylvain Beucler <beuc@beuc.net>.
53298
53299 2008-06-26  Jim Meyering  <meyering@redhat.com>
53300
53301         make several modules depend on the "open" module
53302         This provides slightly increased consistency when opening-for-write
53303         the name of a non-directory spelled with a trailing slash.
53304         * modules/chdir-safer: Likewise.
53305         * modules/chown: Likewise.
53306         * modules/clean-temp: Likewise.
53307         * modules/copy-file: Likewise.
53308         * modules/fchdir: Likewise.
53309         * modules/fcntl-safer: Likewise.
53310         * modules/pipe: Likewise.
53311         * modules/utime: Likewise.
53312         Prompted by Eric Blake and Bruno Haible.
53313
53314 2008-06-24  Andreas Schwab  <schwab@suse.de>
53315
53316         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
53317         literals can be used as initializers for global variables.
53318
53319 2008-06-23  Eric Blake  <ebb9@byu.net>
53320
53321         Make gnulib-cache.m4 easier to diff.
53322         * gnulib-tool (func_import): Allow newlines when reading cached
53323         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
53324
53325 2008-06-23  Bruno Haible  <bruno@clisp.org>
53326
53327         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
53328         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
53329         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
53330         m4/signalblocking.m4.
53331         (gl_PREREQ_SIGACTION): Don't invoke it.
53332         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
53333         gl_PREREQ_SIG_HANDLER_H.
53334         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53335         Don't check for sigaction here.
53336
53337 2008-06-23  Bruno Haible  <bruno@clisp.org>
53338
53339         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
53340         (install_handlers): Don't set the SA_RESETHAND flag.
53341
53342 2008-06-23  Bruno Haible  <bruno@clisp.org>
53343
53344         * m4/sigaction.m4: Comment fixes.
53345         * lib/signal.in.h: Likewise.
53346
53347 2008-06-23  Eric Blake  <ebb9@byu.net>
53348
53349         Fix typo.
53350         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
53351
53352         Avoid SA_ namespace.
53353         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
53354         Reported by Ralf Wildenhues.
53355
53356         Avoid test failure due to SA_RESTORER.
53357         * tests/test-sigaction.c (SA_MASK): New macro.
53358         (main): Avoid failing due to extension flags being set.
53359         Reported by Jim Meyering.
53360
53361         Revert use of sig-handler.h in sigprocmask.c.
53362         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
53363         it requires the existence of struct sigaction.
53364         * lib/sigprocmask.c (handler_t): Restore typedef.
53365         (rpl_signal, old_handlers): Use local type.
53366
53367 2008-06-22  Bruno Haible  <bruno@clisp.org>
53368
53369         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
53370         conditionally.
53371         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53372
53373 2008-06-22  Bruno Haible  <bruno@clisp.org>
53374
53375         * doc/posix-functions/siginterrupt.texi: Move note.
53376
53377         * lib/signal.in.h (SA_RESTART): New macro.
53378         * lib/sigaction.c: Update comment.
53379
53380         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
53381
53382         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
53383         (gl_PREREQ_SIGPROCMASK): Invoke it.
53384         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
53385
53386         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
53387
53388         * lib/sigprocmask.c: Update a comment.
53389
53390 2008-06-21  Eric Blake  <ebb9@byu.net>
53391
53392         Use sigaction module rather than signal().
53393         * modules/c-stack (Depends-on): Add sigaction.
53394         * modules/fatal-signal (Depends-on): Likewise.
53395         * modules/nanosleep (Depends-on): Likewise.
53396         * modules/sigprocmask (Files): Add sig-handler.h.
53397         * modules/sigaction (Files): Likewise.
53398         * lib/sig-handler.h (get_handler): New file, suggested by Paul
53399         Eggert.
53400         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
53401         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
53402         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
53403         (init_fatal_signals): Likewise.
53404         * lib/nanosleep.c (rpl_nanosleep): Likewise.
53405         (siginterrupt): Delete fallback.
53406         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
53407         instead.
53408         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
53409         siginterrupt.
53410
53411         New module sigaction, for mingw.
53412         * modules/sigaction: New module...
53413         * modules/sigaction-tests: ...and its test.
53414         * m4/sigaction.m4: New file.
53415         * lib/sigaction.c: Likewise.
53416         * tests/test-sigaction.c: Likewise.
53417         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
53418         * modules/signal (Makefile.am): Likewise.
53419         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
53420         needed.
53421         * doc/posix-headers/signal.texi (signal.h): Mention provided
53422         types.
53423         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
53424         that sigaction is preferable.
53425         * doc/posix-functions/sigaction.texi (sigaction): Mention new
53426         module.
53427         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53428         sigaction.
53429
53430         Improve robustness of sigprocmask by overriding signal.
53431         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
53432         is in use.
53433         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
53434         (SIGKILL, SIGSTOP): Provide fallbacks.
53435         (rpl_signal): Implement.
53436         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
53437         signal can be called inside handlers.
53438
53439         Fix nanosleep module on mingw.
53440         * modules/nanosleep (Depends-on): Add sys_select.
53441         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
53442
53443         Fix licensing of sigprocmask.
53444         * modules/raise (License): Relicense as LGPL.
53445
53446 2008-06-21  Bruno Haible  <bruno@clisp.org>
53447
53448         * lib/propername.c (proper_name_utf8): Don't use the transliterated
53449         result if it contains question marks.
53450         Reported by Michael Geng <linux@michaelgeng.de>.
53451
53452 2008-06-19  Bruno Haible  <bruno@clisp.org>
53453
53454         Fix CVS-ism.
53455         * doc/gnulib.texi: Include updated-stamp.texi.
53456         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
53457         (updated-stamp.texi): New rule.
53458         (gnulib.info): Depend on it.
53459         * doc/.gitignore: Add updated-stamp.texi.
53460         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
53461
53462 2008-06-19  Bruno Haible  <bruno@clisp.org>
53463
53464         * doc/Makefile (gnulib.info): Update and simplify dependencies.
53465         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53466
53467 2008-06-19  Eric Blake  <ebb9@byu.net>
53468
53469         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
53470         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
53471         Reported by Stepan Kasal.
53472
53473 2008-06-18  Bruno Haible  <bruno@clisp.org>
53474
53475         * lib/fatal-signal.c (init_fatal_signals): Add comment.
53476         Reported by Eric Blake.
53477
53478 2008-06-18  Eric Blake  <ebb9@byu.net>
53479
53480         Work around cygwin 1.5.25 strsignal bug.
53481         * tests/test-strsignal.c: Allow for const char *.
53482         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
53483
53484 2008-06-18  Simon Josefsson  <simon@josefsson.org>
53485
53486         * users.txt: Update URL to article and add author/date
53487         information.
53488
53489 2008-06-17  Bruno Haible  <bruno@clisp.org>
53490
53491         New macro gl_DISABLE_THREADS.
53492         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
53493         if the user did not pass --enable-threads or --disable-threads option.
53494         (gl_DISABLE_THREADS): New macro.
53495         Reported by Eric Blake <ebb9@byu.net>.
53496
53497 2008-06-17  Bruno Haible  <bruno@clisp.org>
53498
53499         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
53500         when the macro ignores it.
53501         Based on a patch by Eric Blake <ebb9@byu.net>.
53502
53503 2008-06-17  Bruno Haible  <bruno@clisp.org>
53504
53505         * modules/tls (License): Change to LGPLv2+.
53506         Reported by Eric Blake.
53507
53508 2008-06-17  Eric Blake  <ebb9@byu.net>
53509
53510         Simplify c-stack prerequisites.
53511         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
53512         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
53513         no longer requires <ucontext.h> to exist.  Optimize setrlimit
53514         check.
53515         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
53516         <sys/resource.h>.
53517
53518         Move c-stack test into testsuite.
53519         * modules/c-stack-tests: New file.
53520         * lib/c-stack.c [DEBUG]: Move test program...
53521         * tests/test-c-stack.c: ...into this new file.  Skip rather than
53522         fail test if sigaltstack is lacking.
53523         * tests/test-c-stack.sh: New driver file.
53524
53525 2008-06-16  Eric Blake  <ebb9@byu.net>
53526
53527         Use raise module consistently.
53528         * modules/fatal-signal (Depends-on): Add raise.
53529         * modules/sigprocmask (Depends-on): Likewise.
53530         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
53531         * lib/sigprocmask.c (sigprocmask): Likewise.
53532         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53533         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
53534
53535         Fix compliance bug in sigpending.
53536         * lib/sigprocmask.c (sigpending): Return pending array via
53537         parameter, not return value.
53538
53539 2008-06-14  Eric Blake  <ebb9@byu.net>
53540
53541         Improve obstack-printf test code.
53542         * tests/test-obstack-printf.c (test_function): Fix comment, and
53543         simplify usage of obstack_* in macros.  Add a test for coverage.
53544         Reported by Bruno Haible.
53545
53546 2008-06-14  Bruno Haible  <bruno@clisp.org>
53547
53548         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
53549         array size as a constant, not as a const variable.
53550         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
53551         AC_USE_SYSTEM_EXTENSIONS.
53552         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
53553         Test whether the obstack_printf function actually exists.
53554         * modules/obstack-printf (Depends-on): Add extensions.
53555         (Include): Remove obstack.h.
53556         * modules/obstack-printf-posix (Depends-on): Add extensions.
53557         (Include): Remove obstack.h.
53558
53559 2008-06-13  Eric Blake  <ebb9@byu.net>
53560
53561         Add obstack-printf and obstack-printf-posix modules.
53562         * modules/obstack-printf: New file.
53563         * modules/obstack-printf-posix: Likewise.
53564         * MODULES.html.sh (Misc): Mention them.
53565         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
53566         Likewise.
53567         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
53568         Likewise.
53569         * modules/stdio (Makefile.am): Accomodate new modules.
53570         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53571         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
53572         Declare.
53573         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
53574         functions.
53575         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
53576         (gl_REPLACE_OBSTACK_PRINTF): New macros
53577         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
53578         * tests/test-obstack-printf.c: New file.
53579         * modules/obstack-printf-tests: Likewise.
53580         * modules/obstack-printf-posix-tests: Likewise.
53581
53582 2008-06-11  Bruno Haible  <bruno@clisp.org>
53583
53584         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
53585         * lib/open.c: Include errno.h.
53586         (open): Fail when attempting to write to a file that has a trailing
53587         slash.
53588         * tests/test-open.c (main): Test against trailing slash bug.
53589         * doc/posix-functions/open.texi: Mention the trailing slash bug.
53590
53591 2008-06-10  Bruno Haible  <bruno@clisp.org>
53592
53593         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
53594         for $? to work inside the trap command, with various /bin/sh-s.
53595         * tests/test-vc-list-files-cvs.sh: Likewise.
53596
53597 2008-06-10  Bruno Haible  <bruno@clisp.org>
53598
53599         * lib/acl-internal.h: Don't include gettext.h here.
53600         * lib/set-mode-acl.c: Include gettext.h here.
53601         * lib/copy-acl.c: Likewise.
53602
53603 2008-06-10  Bruno Haible  <bruno@clisp.org>
53604
53605         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
53606         * lib/wait-process.c (wait_subprocess): Likewise.
53607         * lib/execute.h (execute): Add termsigp argument.
53608         * lib/execute.c (execute): Likewise.
53609         * lib/csharpcomp.c (compile_csharp_using_pnet,
53610         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
53611         * lib/csharpexec.c (execute_csharp_using_pnet,
53612         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
53613         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
53614         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
53615         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
53616         is_jikes_present): Update.
53617         * lib/javaexec.c (execute_java_class): Update.
53618         * lib/javaversion.c (execute_and_read_line): Update.
53619         * NEWS: Document the changes.
53620         Reported by Eric Blake.
53621
53622 2008-06-10  Eric Blake  <ebb9@byu.net>
53623
53624         Add missing include.
53625         * tests/test-strstr.c (includes): Add <signal.h>.
53626         * tests/test-strcasestr.c (includes): Likewise.
53627         * tests/test-memmem.c (includes): Likewise.
53628
53629 2008-06-10  Bruno Haible  <bruno@clisp.org>
53630
53631         * lib/wait-process.c (wait_subprocess): Add an assertion.
53632
53633 2008-06-10  Bruno Haible  <bruno@clisp.org>
53634
53635         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
53636
53637 2008-06-10  Bruno Haible  <bruno@clisp.org>
53638
53639         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
53640         using alarm().
53641         * tests/test-strcasestr.c (main): Likewise.
53642         * tests/test-strstr.c (main): Likewise.
53643
53644 2008-06-09  Bruno Haible  <bruno@clisp.org>
53645
53646         Work around the Solaris 10 ACE ACLs ABI change.
53647         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
53648         declare if ACL_NO_TRIVIAL is present.
53649         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
53650         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
53651         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
53652         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
53653         define if ACL_NO_TRIVIAL is present.
53654         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
53655         and use the current ABI.
53656         (file_has_acl): Use same #if condition as elsewhere.
53657         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
53658         in use, and use the current ABI.
53659         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
53660         Reported by Jim Meyering.
53661
53662 2008-06-09  Eric Blake  <ebb9@byu.net>
53663
53664         Work around environments that (stupidly) ignore SIGALRM.
53665         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
53666         before using alarm().
53667         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53668         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53669         Reported by Ian Beckwith <ianb@erislabs.net>.
53670
53671         Produce autobuild blurb earlier in log.
53672         * modules/autobuild (configure.ac-early): Move AB_INIT here.
53673
53674 2008-06-09  Jim Meyering  <meyering@redhat.com>
53675         and OndÅ™ej Vašík  <ovasik@redhat.com>
53676
53677         utimens.c: correct kernel bug work-around
53678         OndÅ™ej Vašík found that the invalid return value of 280 indicates
53679         failure, not success, and the kernel bug we're trying to work
53680         around affects not just the utimensat call, but also the fallback
53681         futimens call.
53682         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
53683         not success.
53684         [HAVE_FUTIMENS]: Use the same work-around, here.
53685
53686 2008-06-09  Jim Meyering  <meyering@redhat.com>
53687
53688         add more guards around definition of ACE_-related code
53689         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
53690         ALLOW and ACE_OWNER are also defined.
53691
53692 2008-06-08  Bruno Haible  <bruno@clisp.org>
53693
53694         * lib/acl-internal.h: Add me as co-author.
53695         * lib/file-has-acl.c: Likewise.
53696         * lib/set-mode-acl.c: Likewise.
53697         * lib/copy-acl.c: Likewise.
53698
53699 2008-06-08  Bruno Haible  <bruno@clisp.org>
53700
53701         Add support for AIX ACLs.
53702         * lib/acl-internal.h (acl_nontrivial): New declaration.
53703         * lib/file-has-acl.c (acl_nontrivial): New function.
53704         (file_has_acl): Add implementation using AIX 4 ACL API.
53705         * lib/set-mode-acl.c (qset_acl): Likewise.
53706         * lib/copy-acl.c (qcopy_acl): Likewise.
53707
53708 2008-06-08  Bruno Haible  <bruno@clisp.org>
53709
53710         Add support for HP-UX ACLs.
53711         * lib/acl-internal.h (acl_nontrivial): New declaration.
53712         * lib/file-has-acl.c (acl_nontrivial): New function.
53713         (file_has_acl): Add implementation using HP-UX 11 ACL API.
53714         * lib/set-mode-acl.c (qset_acl): Likewise.
53715         * lib/copy-acl.c (qcopy_acl): Likewise.
53716
53717 2008-06-08  Bruno Haible  <bruno@clisp.org>
53718
53719         Add support for Cygwin ACLs.
53720         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
53721         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
53722         the chmod_or_fchmod call.
53723         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
53724
53725 2008-06-08  Bruno Haible  <bruno@clisp.org>
53726
53727         Fix bug with setuid modes in Solaris 10+ code.
53728         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
53729         succeeded, when the mode contains some special bits.
53730
53731 2008-06-08  Bruno Haible  <bruno@clisp.org>
53732
53733         Add support for Solaris 7..10 ACLs.
53734         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
53735         declarations.
53736         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
53737         functions.
53738         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
53739         * lib/set-mode-acl.c (qset_acl): Likewise.
53740         * lib/copy-acl.c (qcopy_acl): Likewise.
53741
53742 2008-06-08  Bruno Haible  <bruno@clisp.org>
53743
53744         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
53745         declaration.
53746         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
53747         (acl_access_nontrivial): Remove MacOS X case.
53748         (file_has_acl): Use acl_extended_nontrivial.
53749         * lib/copy-acl.c (qcopy_acl): Likewise.
53750
53751 2008-06-08  Bruno Haible  <bruno@clisp.org>
53752
53753         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
53754
53755 2008-06-08  Jim Meyering  <meyering@redhat.com>
53756
53757         * modules/acl (Maintainer): Add Bruno Haible.
53758
53759 2008-06-07  Bruno Haible  <bruno@clisp.org>
53760
53761         Improve support for Tru64 ACLs.
53762         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
53763         ACL on OSF/1.
53764
53765 2008-06-07  Bruno Haible  <bruno@clisp.org>
53766
53767         Add support for MacOS X ACLs.
53768         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
53769         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
53770         * lib/set-mode-acl.c (qset_acl): Likewise.
53771         * lib/copy-acl.c (qcopy_acl): Likewise.
53772
53773 2008-06-07  Bruno Haible  <bruno@clisp.org>
53774
53775         Fix memory leak introduced on 2008-05-22.
53776         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
53777         use.
53778
53779 2008-06-07  Bruno Haible  <bruno@clisp.org>
53780
53781         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
53782         to construct an empty ACL.
53783
53784 2008-06-07  Bruno Haible  <bruno@clisp.org>
53785
53786         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
53787         precisely.
53788         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
53789
53790 2008-06-07  Bruno Haible  <bruno@clisp.org>
53791
53792         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
53793         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
53794
53795 2008-06-07  Bruno Haible  <bruno@clisp.org>
53796
53797         * doc/posix-functions/_setjmp.texi: Explain the use of this function
53798         regardless of POSIX.
53799         * doc/posix-functions/_longjmp.texi: Likewise.
53800         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
53801         SystemV platform in this case.
53802
53803 2008-06-06  Eric Blake  <ebb9@byu.net>
53804
53805         Document abort() bugs.
53806         * doc/posix-functions/abort.texi (abort): Mention anomalies.
53807
53808         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
53809         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
53810         sigsetjmp.
53811         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
53812         siglongjmp, but only as a macro.
53813         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
53814         is obsolete.
53815         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
53816
53817         Tweak documentation to cover cygwin argz bugs.
53818         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
53819         argz bug fix; no code change needed since no cygwin releases
53820         occurred between the last fix and the bug being tested.
53821         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
53822         module and recently fixed cygwin bugs.
53823         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
53824         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
53825         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
53826         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
53827         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
53828         Likewise.
53829         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
53830         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
53831         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
53832         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
53833         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
53834         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
53835         Likewise.
53836
53837         Avoid gcc warning on cygwin.
53838         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
53839         !ACL_NO_TRIVIAL]: Avoid unused variable.
53840
53841 2008-06-05  Eric Blake  <ebb9@byu.net>
53842
53843         Be tolerant of UNKNOWN version in gnulib-tool test dir.
53844         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
53845         git-version-gen fails to come up with a version.
53846         Reported by Simon Josefsson.
53847
53848 2008-06-05  Jim Meyering  <meyering@redhat.com>
53849             Paul Eggert  <eggert@cs.ucla.edu>
53850
53851         utimens.c: work around a probable Linux kernel bug
53852         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
53853         appears to be a kernel bug that causes utimensat to return 280
53854         instead of 0, indicating success.
53855
53856 2008-06-04  Bruno Haible  <bruno@clisp.org>
53857
53858         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
53859         2008-06-01 commit.
53860
53861 2008-06-04  Bruno Haible  <bruno@clisp.org>
53862
53863         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
53864         * lib/file-has-acl.c (acl_access_nontrivial): New function.
53865         (file_has_acl): Use it. Save errno afterwards.
53866         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
53867
53868 2008-06-03  Bruno Haible  <bruno@clisp.org>
53869
53870         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
53871         draft code. Simplify #ifs.
53872         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
53873         Put Solaris code after POSIX-draft code. Fix comments regarding
53874         Solaris 10, HP-UX. Mention Cygwin.
53875         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
53876
53877 2008-06-03  Eric Blake  <ebb9@byu.net>
53878
53879         Provide fallback for older kernels.
53880         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
53881         Provide runtime fallback if kernel lacks support.
53882         Reported by Mike Frysinger.
53883
53884 2008-06-02  Bruno Haible  <bruno@clisp.org>
53885
53886         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
53887         it exists.
53888
53889 2008-06-02  Bruno Haible  <bruno@clisp.org>
53890
53891         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
53892         * lib/copy-acl.c (qcopy_acl): Update comment.
53893
53894 2008-06-02  Bruno Haible  <bruno@clisp.org>
53895
53896         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
53897         like ACL APIs.
53898
53899 2008-06-02  Bruno Haible  <bruno@clisp.org>
53900
53901         * tests/test-file-has-acl.sh: Use different code for Cygwin.
53902         * tests/test-set-mode-acl.sh: Likewise.
53903         * tests/test-copy-acl.sh: Likewise.
53904         * tests/test-copy-file.sh: Likewise.
53905
53906 2008-06-02  Bruno Haible  <bruno@clisp.org>
53907
53908         * tests/test-file-has-acl.sh: Remove unused code.
53909
53910 2008-06-01  Bruno Haible  <bruno@clisp.org>
53911
53912         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
53913         (copy_acl): Just a wrapper around qcopy_acl that emits the error
53914         messages.
53915         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
53916
53917 2008-06-01  Bruno Haible  <bruno@clisp.org>
53918
53919         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
53920         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
53921         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
53922         APIs.
53923         * modules/acl-tests (configure.ac): Remove tests now contained in
53924         m4/acl.m4.
53925
53926 2008-06-02  Jim Meyering  <meyering@redhat.com>
53927
53928         announce-gen: use a better key-server host name
53929         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
53930         it may be more consistently reliable.  Suggested by Werner Koch
53931         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
53932
53933 2008-06-01  Bruno Haible  <bruno@clisp.org>
53934
53935         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
53936         Reported by Voroskoi Andras <voroskoi@gmail.com>.
53937
53938 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
53939
53940         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
53941
53942 2008-06-01  Bruno Haible  <bruno@clisp.org>
53943
53944         New ACL tests.
53945         * tests/test-file-has-acl.sh: New file.
53946         * tests/test-file-has-acl.c: New file.
53947         * tests/test-set-mode-acl.sh: New file.
53948         * tests/test-set-mode-acl.c: New file.
53949         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
53950         * tests/test-copy-acl.c: New file.
53951         * modules/acl-tests: New file, based on modules/copy-file-tests.
53952         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
53953         (Depends-on): Add acl-tests.
53954         (configure.ac): Remove checks.
53955         (Makefile.am): Don't create test-sameacls program here any more.
53956
53957 2008-06-01  Bruno Haible  <bruno@clisp.org>
53958
53959         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
53960         * tests/test-sameacls.c: Include progname.h.
53961         (main): Invoke set_program_name. Portability fixes for MacOS X,
53962         Solaris, HP-UX.
53963
53964 2008-06-01  Bruno Haible  <bruno@clisp.org>
53965
53966         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
53967         function.
53968         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
53969
53970 2008-06-01  Bruno Haible  <bruno@clisp.org>
53971
53972         * modules/rpmatch (Depends-on): Add strdup.
53973
53974 2008-06-01  Bruno Haible  <bruno@clisp.org>
53975
53976         * lib/pipe.c: Include unistd-safer.h.
53977         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
53978         * modules/pipe (Depends-on): Add unistd-safer.
53979
53980 2008-05-30  Simon Josefsson  <simon@josefsson.org>
53981
53982         * modules/autobuild (configure.ac): Call AB_INIT.
53983
53984 2008-05-30  Simon Josefsson  <simon@josefsson.org>
53985
53986         * tests/test-getaddrinfo.c: Don't print debug messages by default.
53987         Suggested by Bruno Haible <bruno@clisp.org>.
53988
53989 2008-05-30  Simon Josefsson  <simon@josefsson.org>
53990
53991         * tests/test-base64.c: Cast size_t to unsigned long when invoking
53992         printf.  Use %lu instead of %d.  Reported by Bruno Haible
53993         <bruno@clisp.org>.
53994
53995 2008-05-29  Eric Blake  <ebb9@byu.net>
53996
53997         Prefer new POSIX 200x interfaces over futimesat.
53998         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
53999         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
54000         when available.
54001         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
54002
54003 2008-05-28  Bruno Haible  <bruno@clisp.org>
54004
54005         * modules/stpcpy (License): Change to LGPLv2+.
54006         Requested by David Lutterkort <dlutter@redhat.com>.
54007
54008 2008-05-27  Bruno Haible  <bruno@clisp.org>
54009
54010         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
54011         current mingw.
54012         Reported by Jose E. Marchesi <jemarch@gnu.org>.
54013
54014 2008-05-27  Bruno Haible  <bruno@clisp.org>
54015
54016         * modules/iconv_open (Link): New section, from module 'iconv'.
54017         * modules/striconv (Link): Likewise.
54018         * modules/striconveh (Link): Likewise.
54019         * modules/xstriconv (Link): Likewise.
54020         * modules/unicodeio (Link): Likewise.
54021         * modules/propername (Link): Likewise.
54022         Reported by Jim Meyering.
54023
54024 2008-05-26  Jim Meyering  <meyering@redhat.com>
54025
54026         sha256: do not artificially restrict buffer length to be < 2^32
54027         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
54028         uint32_t to size_t.
54029         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
54030         to match.
54031
54032         avoid unaligned access errors, e.g., on sparc
54033         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
54034         direct access through a possibly-unaligned uint64* pointer.
54035         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
54036         direct access through a possibly-unaligned uint32* pointer.
54037         Prompted by this patch from Tom "spot" Callaway:
54038         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
54039
54040         sha512.c: fix typo in comment
54041         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
54042
54043 2008-05-25  Bruno Haible  <bruno@clisp.org>
54044
54045         * lib/set-mode-acl.c: Renamed from lib/acl.c.
54046         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
54047         (Makefile.am): Update lib_SOURCES.
54048
54049 2008-05-25  Bruno Haible  <bruno@clisp.org>
54050
54051         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
54052
54053 2008-05-25  Jim Meyering  <meyering@redhat.com>
54054
54055         useless-if-before-free: freed expr may have white-space differences
54056         * build-aux/useless-if-before-free: Recognize cases in which the
54057         freed expression differs from the tested one in embedded white
54058         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
54059         $1 was used, so we can't make any regexp shy.  Improved tests now
54060         detect this.
54061
54062         useless-if-before-free: accept white space in the expression.
54063         * build-aux/useless-if-before-free: For now, any white space
54064         in the expression must be identical in the free argument.
54065
54066         useless-if-before-free: efficiency tweak
54067         * build-aux/useless-if-before-free: Make the expression-matching
54068         regexp "shy".
54069         Make the *outer* regexp shy, not the expr-matching one.
54070
54071         update code-in-comment to accept cast of free arg
54072         * build-aux/useless-if-before-free: Update regexp.
54073
54074 2008-05-25  Bruno Haible  <bruno@clisp.org>
54075
54076         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
54077         * modules/copy-file-tests (Files, Makefile.am): Update.
54078         * tests/test-copy-file.c (func_test_copy): Update.
54079
54080 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
54081
54082         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
54083
54084 2008-05-23  Bruno Haible  <bruno@clisp.org>
54085
54086         Improve support for ACLs on OSF/1.
54087         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
54088         Remove fallback for unknown flavors of ACLs.
54089
54090 2008-05-22  Bruno Haible  <bruno@clisp.org>
54091
54092         Add support for ACLs on OSF/1.
54093         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
54094         replacements.
54095         (acl_free_text): New macro fallback.
54096         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
54097         acl_free.
54098         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
54099         acl_free_text function. Require AC_C_INLINE.
54100
54101 2008-05-22  Bruno Haible  <bruno@clisp.org>
54102
54103         Make copy_acl work on MacOS X 10.5.
54104         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
54105         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
54106         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
54107         If MODE_INSIDE_ACL, don't assume that every system has the same text
54108         representation for ACLs as FreeBSD.
54109         * lib/copy-acl.c (copy_acl): Add support for platforms with
54110         !MODE_INSIDE_ACL.
54111         * lib/file-has-acl.c (file_has_acl): Likewise.
54112         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
54113         FreeBSD, MacOS X, or IRIX, respectively.
54114
54115 2008-05-22  Bruno Haible  <bruno@clisp.org>
54116
54117         * lib/acl.h: Don't include <sys/acl.h>.
54118         (GETACLCNT): Move fallback to lib/acl-internal.h.
54119         * lib/acl-internal.h: Include <sys/acl.h> here.
54120         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
54121
54122 2008-05-22  Bruno Haible  <bruno@clisp.org>
54123
54124         Split off copy_acl function to separate file.
54125         * lib/copy-acl.c: New file, extracted from lib/acl.c.
54126         * lib/acl.c (copy_acl): Moved function to separate file.
54127         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
54128         * modules/acl (Files): Add lib/copy-acl.c.
54129         (Makefiles.am): Augment lib_SOURCES.
54130
54131 2008-05-22  Bruno Haible  <bruno@clisp.org>
54132
54133         * modules/copy-file-tests: New file.
54134         * tests/test-copy-file.sh: New file.
54135         * tests/test-copy-file.c: New file.
54136         * tests/test-copy-file-sameacls.c: New file.
54137
54138 2008-05-22  Eric Blake  <ebb9@byu.net>
54139
54140         Avoid gcc warning.
54141         * tests/test-memcmp.c (main): Pass NULL indirectly.
54142
54143 2008-05-21  Bruno Haible  <bruno@clisp.org>
54144
54145         Add reference doc about ACLs.
54146         * doc/acl-resources.txt: New file.
54147         * doc/acl-cygwin.txt: New file.
54148
54149 2008-05-21  Bruno Haible  <bruno@clisp.org>
54150
54151         Avoid one more warning from gcc.
54152         * lib/vasnprintf.c (IF_LINT): Update comments.
54153         (VASNPRINTF): Use it also for the 'prefix' array initializer.
54154
54155 2008-05-21  Jim Meyering  <meyering@redhat.com>
54156
54157         avoid a warning from gcc
54158         * lib/vasnprintf.c (IF_LINT): Define.
54159         (scale10_round_decimal_long_double):
54160         Use it to avoid a "may be used uninitialized" warning.
54161         (scale10_round_decimal_double): Likewise.
54162
54163 2008-05-21  Simon Josefsson  <simon@josefsson.org>
54164
54165         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
54166         declared.
54167
54168 2008-05-20  Bruno Haible  <bruno@clisp.org>
54169
54170         * tests/test-memcmp.c (main): Test also the sign of the result. Test
54171         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
54172
54173 2008-05-20  Simon Josefsson  <simon@josefsson.org>
54174
54175         * modules/memcmp-tests: New file.
54176         * tests/test-memcmp.c: New file.
54177
54178 2008-05-19  Bruno Haible  <bruno@clisp.org>
54179
54180         * modules/propername (Notice, configure.ac): Put quoted "..." into
54181         --keyword option.
54182         * lib/propername.h: Update comments accordingly.
54183         Reported by Eric Blake.
54184
54185 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
54186
54187         * modules/getpass-gnu (Depends-on): Add fseeko.
54188
54189 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54190
54191         * modules/base64-tests: New file.
54192
54193 2008-05-19  Bo Borgerson <gigabo@gmail.com>
54194
54195         * lib/base64.c (base64_decode_ctx): If a decode context structure
54196         was passed in use it to ignore newlines.  If a context structure
54197         was _not_ passed in, continue to treat newlines as garbage (this
54198         is the historical behavior).  Formerly base64_decode.
54199         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54200         takes a decode context structure.
54201         * lib/base64.h (base64_decode): Macro for four-argument calls.
54202         (base64_decode_alloc): Likewise.
54203         * lib/base64.c (base64_decode_ctx): If a decode context structure
54204         was passed in use it to ignore newlines.  If a context structure
54205         was _not_ passed in, continue to treat newlines as garbage (this
54206         is the historical behavior).  Formerly base64_decode.
54207         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54208         takes a decode context structure.
54209         * lib/base64.h (base64_decode): Macro for four-argument calls.
54210         (base64_decode_alloc): Likewise.
54211
54212 2008-05-19  Jim Meyering  <meyering@redhat.com>
54213
54214         avoid a warning from gcc
54215         * lib/trim.c (IF_LINT): Define.
54216         (trim2): Use it to avoid a "may be used uninitialized" warning.
54217
54218         Fix doc typo.
54219         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
54220
54221 2008-05-19  Bruno Haible  <bruno@clisp.org>
54222
54223         * doc/glibc-functions/getpass.texi: Document limits of other
54224         implementations.
54225
54226 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54227             Bruno Haible <bruno@clisp.org>
54228
54229         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
54230
54231 2008-05-18  Bruno Haible  <bruno@clisp.org>
54232
54233         * modules/propername: New file, from GNU gettext.
54234         * lib/propername.h: New file, from GNU gettext.
54235         * lib/propername.c: New file, from GNU gettext.
54236         * MODULES.html.sh (Internationalization functions): Add propername.
54237
54238 2008-05-16  Jim Meyering  <meyering@redhat.com>
54239             Bruno Haible  <bruno@clisp.org>
54240
54241         Avoid some warnings from "gcc -Wshadow".
54242         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
54243
54244 2008-05-15  Eric Blake  <ebb9@byu.net>
54245
54246         Extend previous patch to cygwin 1.7.0.
54247         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
54248         fast implementation in cygwin >= 1.7.0.
54249         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54250         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54251
54252 2008-05-15  Bruno Haible  <bruno@clisp.org>
54253
54254         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
54255         implementation in glibc >= 2.9.
54256         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54257         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54258
54259 2008-05-15  Bruno Haible  <bruno@clisp.org>
54260
54261         * MODULES.html.sh (Internationalization functions): Remove linebreak.
54262         (Unicode string functions): Add unilbrk/*.
54263         Reported by Karl Berry.
54264
54265 2008-05-15  Eric Blake  <ebb9@byu.net>
54266
54267         Fix violation of <stdbool.h> replacement in regex.
54268         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
54269         * lib/regexec.c (re_search_internal): Likewise.
54270         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
54271
54272 2008-05-15  Jim Meyering  <meyering@redhat.com>
54273
54274         avoid distracting test output when git or cvs is not found
54275         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
54276         * tests/test-vc-list-files-git.sh: Likewise.
54277
54278 2008-05-15  Eric Blake  <ebb9@byu.net>
54279
54280         Glibc finally accepted the memmem speedup code, bugzilla #5514.
54281         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
54282         glibc version.
54283         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
54284         * doc/posix-functions/strstr.texi (strstr): Likewise.
54285         * lib/str-two-way.h (MAX): Sychronize with glibc.
54286
54287 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
54288
54289         * lib/regcomp.c (optimize_utf8): Add a note on why we test
54290         opr.ctx_type.
54291         (calc_first): Initialize constraint field.
54292         (duplicate_node_closure): Use it instead of special casing ANCHORS.
54293         Fix grammar.
54294         (duplicate_node): Merge constraint field for all node types.
54295         (calc_eclosure_iter): Look at constraint field for all node types.
54296         * lib/regex_internal.c (create_cd_newstate): Don't look at
54297         opr.ctx_type.
54298
54299 2008-05-14  Bruno Haible  <bruno@clisp.org>
54300
54301         Help GCC to do better code generation.
54302         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
54303         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
54304         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
54305         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
54306         Declare with attribute 'malloc' if supported.
54307
54308 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
54309
54310         use "echo STR|wc -c" rather than unportable "expr length STR"
54311         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
54312         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
54313
54314 2008-05-14  Jim Meyering  <meyering@redhat.com>
54315
54316         use dd ibs=$n count=1 ... rather than less-portable head -c$n
54317         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
54318         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
54319         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
54320         via Collin Lasse.
54321
54322 2008-05-14  Eric Blake  <ebb9@byu.net>
54323
54324         Avoid quadratic growth in gl_LIBSOURCES.
54325         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
54326         Suggested by Bruno Haible.
54327
54328         Test xmemdup0.
54329         * modules/xmemdup0-tests: New file.
54330         * tests/test-xmemdup0.c: Likewise.
54331
54332 2008-05-13  Eric Blake  <ebb9@byu.net>
54333
54334         Split xmemdup0 into its own module.
54335         * modules/xmemdup0: New file.
54336         * lib/xmemdup0.h: Likewise.
54337         * lib/xmemdup0.c: Likewise.
54338         * MODULES.html.sh (Memory management functions): Add xmemdup0.
54339         * lib/xalloc.h (xmemdup0): Remove.
54340         * lib/xmalloc.c (xmemdup0): Likewise.
54341
54342 2008-05-13  Eric Blake  <ebb9@byu.net>
54343             Bruno Haible  <bruno@clisp.org>
54344
54345         Reduce number of forks required during autoconf.
54346         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
54347         and gl_LIBSOURCES_DIR.
54348         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
54349         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
54350         m4_syscmd per file.
54351         <m4_foreach_w>: Move...
54352         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
54353
54354 2008-05-13  Eric Blake  <ebb9@byu.net>
54355
54356         * gnulib-tool: Fix various comment typos.
54357
54358 2008-05-12  Bruno Haible  <bruno@clisp.org>
54359
54360         Tailor the linebreaking algorithm.
54361         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
54362
54363 2008-05-12  Bruno Haible  <bruno@clisp.org>
54364
54365         Update to Unicode 5.0.0.
54366         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54367         LBP_JV, LBP_JT. Redistribute values.
54368         (unilbrk_table): Change size.
54369         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
54370         Unicode TR#14 rev. 22.
54371         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54372         LBP_JV, LBP_JT. Redistribute values.
54373         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
54374         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
54375         Update.
54376         * lib/unilbrk/lbrkprop1.h: Regenerated.
54377         * lib/unilbrk/lbrkprop2.h: Regenerated.
54378         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
54379         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
54380         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
54381         Likewise.
54382         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
54383         Likewise.
54384         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
54385         result.
54386         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
54387         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
54388         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
54389         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
54390         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
54391         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
54392
54393 2008-05-11  Bruno Haible  <bruno@clisp.org>
54394
54395         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
54396
54397 2008-05-11  Bruno Haible  <bruno@clisp.org>
54398
54399         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
54400         * modules/unilbrk/gen-lbrk: New file.
54401
54402 2008-05-11  Bruno Haible  <bruno@clisp.org>
54403
54404         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
54405         * m4/sha512.m4 (gl_SHA512): Likewise.
54406
54407 2008-05-11  Jim Meyering  <meyering@redhat.com>
54408
54409         New modules: crypto/sha256, crypto/sha512 (from coreutils)
54410         * modules/crypto/sha256: New file.
54411         * modules/crypto/sha512: Likewise.
54412         * lib/sha256.c: Likewise.
54413         * lib/sha256.h: Likewise.
54414         * lib/sha512.c: Likewise.
54415         * lib/sha512.h: Likewise.
54416         * lib/u64.h: Likewise.
54417         * m4/sha256.m4: Likewise.
54418         * m4/sha512.m4: Likewise.
54419         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
54420
54421 2008-05-10  Bruno Haible  <bruno@clisp.org>
54422
54423         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
54424         (Input/Output <stdio.h>): Add xprintf.
54425         (Signal handling <signal.h>): Add strsignal.
54426         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
54427         (Core language properties): Add func.
54428         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
54429         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
54430         strings.
54431         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
54432         (Input/output): New section.
54433         (File system functions): Add openat-die, stat-macros.
54434         (Networking functions): Add sockets.
54435         (Unicode string functions): Add unictype/*.
54436         (Support for building libraries and executables): Add gperf.
54437         (Support for building documentation): Add agpl-3.0.
54438         (Misc): Add nocrash.
54439
54440 2008-05-10  Bruno Haible  <bruno@clisp.org>
54441
54442         * modules/unictype/gen-ctype: New file.
54443
54444 2008-05-10  Jim Meyering  <meyering@redhat.com>
54445
54446         Make chdir-safer.c more efficient on a system with no symlinks.
54447         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
54448         also if ELOOP is zero.  Suggested by Bruno Haible.
54449
54450         Make chdir-safer.c slightly safer.
54451         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
54452         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
54453
54454         Avoid compile failure on systems without ELOOP (like mingw).
54455         * lib/chdir-safer.c (ELOOP): Define if not already defined.
54456         Reported by Bruno Haible.
54457
54458 2008-05-10  Bruno Haible  <bruno@clisp.org>
54459
54460         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
54461         (is_utf8_encoding): Use a case-insensitive comparison.
54462         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
54463         streq.
54464
54465 2008-05-10  Bruno Haible  <bruno@clisp.org>
54466
54467         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
54468         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
54469         * lib/unilbrk/ulc-common.h (iconv_string_length,
54470         iconv_string_keeping_offsets): Remove declarations.
54471         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
54472         Don't include <iconv.h>, streq.h, xsize.h.
54473         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
54474         conversion.
54475         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
54476         <iconv.h>, streq.h, xsize.h.
54477         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
54478         conversion.
54479         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
54480         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
54481         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
54482         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
54483
54484 2008-05-10  Bruno Haible  <bruno@clisp.org>
54485
54486         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
54487         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
54488
54489         * modules/unilbrk/u32-width-linebreaks-tests: New file.
54490         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
54491
54492         * modules/unilbrk/u16-width-linebreaks-tests: New file.
54493         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
54494
54495         * modules/unilbrk/u8-width-linebreaks-tests: New file.
54496         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
54497
54498         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
54499         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
54500
54501         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
54502         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
54503
54504         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
54505         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
54506
54507         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
54508         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
54509
54510 2008-05-10  Bruno Haible  <bruno@clisp.org>
54511
54512         Split up 'linebreak' module.
54513         * lib/unilbrk.h: New file, based on lib/linebreak.h.
54514         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
54515         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
54516         modifications.
54517         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
54518         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
54519         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
54520         lib/linebreak.c.
54521         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
54522         lib/linebreak.c.
54523         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
54524         lib/linebreak.c.
54525         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
54526         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
54527         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
54528         lib/linebreak.c.
54529         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
54530         lib/linebreak.c.
54531         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
54532         lib/linebreak.c.
54533         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
54534         lib/linebreak.c.
54535         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
54536         lib/linebreak.c.
54537         * modules/unilbrk/base: New file.
54538         * modules/unilbrk/tables: New file.
54539         * modules/unilbrk/u8-possible-linebreaks: New file.
54540         * modules/unilbrk/u16-possible-linebreaks: New file.
54541         * modules/unilbrk/u32-possible-linebreaks: New file.
54542         * modules/unilbrk/ulc-common: New file.
54543         * modules/unilbrk/ulc-possible-linebreaks: New file.
54544         * modules/unilbrk/u8-width-linebreaks: New file.
54545         * modules/unilbrk/u16-width-linebreaks: New file.
54546         * modules/unilbrk/u32-width-linebreaks: New file.
54547         * modules/unilbrk/ulc-width-linebreaks: New file.
54548         * lib/linebreak.h: Remove file.
54549         * lib/linebreak.c: Remove file.
54550         * m4/linebreak.m4: Remove file.
54551         * modules/linebreak: Remove file.
54552         * NEWS: Mention the changes.
54553
54554 2008-05-09  Eric Blake  <ebb9@byu.net>
54555
54556         Add xmemdup0.
54557         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
54558         implementation.
54559         * lib/xmalloc.c (xmemdup0): New C implementation.
54560
54561 2008-05-08  Bruno Haible  <bruno@clisp.org>
54562
54563         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
54564
54565 2008-05-07  Eric Blake  <ebb9@byu.net>
54566
54567         Support cross-compilation of <wctype.h>.
54568         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
54569         AC_CACHE_CHECK.
54570
54571 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
54572
54573         * build-aux/vc-list-files: Add support for bzr.
54574
54575 2008-05-03  Jim Meyering  <meyering@redhat.com>
54576
54577         avoid failed assertion with tight malloc
54578         * tests/test-getndelim2.c: Correct an off-by-one assertion.
54579
54580 2008-05-03  Simon Josefsson  <simon@josefsson.org>
54581
54582         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
54583         are needed from arpa/inet.h.
54584         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
54585         Reported by Bruno Haible.
54586
54587 2008-05-02  Jim Meyering  <meyering@redhat.com>
54588
54589         avoid compilation error on FreeBSD 6
54590         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
54591
54592 2008-05-01  Jim Meyering  <meyering@redhat.com>
54593
54594         useless-if-before-free: correct --help's exit status description
54595         * build-aux/useless-if-before-free (usage): Like grep, exit 0
54596         for one or more matches, etc.  Reported by Bruno Haible.
54597
54598         vc-list-files: make the stand-alone gnulib test work
54599         * modules/vc-list-files-tests (configure.ac):
54600         Define and AC_SUBST abs_aux_dir.
54601         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
54602         $(abs_top_srcdir) to each script and having each of them
54603         duplicate the work of setting PATH, set PATH here, using
54604         the new variable, abs_aux_dir instead.
54605         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
54606         * tests/test-vc-list-files-git.sh: Likewise.
54607         Reported by Bruno Haible.
54608
54609 2008-05-01  Bruno Haible  <bruno@clisp.org>
54610
54611         * lib/getndelim2.c (getndelim2): Fix newsize computation during
54612         reallocation. Rename 'done' to 'found_delimiter'.
54613
54614 2008-05-01  Jim Meyering  <meyering@redhat.com>
54615
54616         vc-list-files: accommodate /bin/sh like the one from Solaris 10
54617         * build-aux/vc-list-files: Use `...`, not $(...).
54618
54619 2008-04-30  Jim Meyering  <meyering@redhat.com>
54620
54621         add tests for vc-list-files
54622         * modules/vc-list-files-tests: New module.
54623         * tests/test-vc-list-files-cvs.sh: New file.
54624         * tests/test-vc-list-files-git.sh: New file.
54625
54626         avoid a warning from gcc
54627         * lib/getndelim2.c (IF_LINT): Define.
54628         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
54629
54630         vc-list-files: work properly with build-aux/cvsu, too
54631         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
54632         to all cvs-based clauses.
54633
54634         vc-list-files: work properly in the CVS+awk case, too
54635         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
54636
54637         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
54638         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
54639         take more than one file argument, so .  Add quotes, just in case $dir
54640         ever contains a shell meta-character.  Prompted by Soren Hansen in
54641         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
54642
54643 2008-04-29  Eric Blake  <ebb9@byu.net>
54644
54645         Optimize getndelim2 to use block operations when possible.
54646         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
54647         freadseek, and memchr2.
54648         * lib/getndelim2.c (getndelim2): Use them for block reads.
54649
54650 2008-04-29  Bruno Haible  <bruno@clisp.org>
54651
54652         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
54653         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54654         * modules/inet_ntop (Depends-on): Add extensions.
54655         * modules/inet_pton (Depends-on): Likewise.
54656         Reported by Simon Josefsson.
54657
54658 2008-04-29  Jim Meyering  <meyering@redhat.com>
54659
54660         When the is more than one match in a block, match all of them.
54661         * build-aux/useless-if-before-free: Iterate through each block
54662         until there are no more matches.
54663
54664         Fix broken useless-if-before-free script.
54665         * build-aux/useless-if-before-free: Fix typo: missing "?" after
54666         the expression to match cast of argument to free-like function.
54667
54668 2008-04-29  Eric Blake  <ebb9@byu.net>
54669
54670         Use new header.
54671         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
54672
54673 2008-04-29  Jim Meyering  <meyering@redhat.com>
54674
54675         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
54676         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
54677         by gnulib to exist and to declare e.g., inet_ntop.
54678         Don't include "inet_ntop.h", now removed.
54679
54680         * m4/arpa_inet_h.m4: Remove trailing blanks.
54681
54682 2008-04-29  Eric Blake  <ebb9@byu.net>
54683
54684         Silence valgrind on safe reads beyond potential array bounds.
54685         * lib/rawmemchr.valgrind: New file.
54686         * lib/strchrnul.valgrind: Likewise.
54687         * modules/rawmemchr (Files): Distribute new file.
54688         * modules/strchrnul (Files): Likewise.
54689         Suggested by Bruno Haible.
54690
54691 2008-04-29  Bruno Haible  <bruno@clisp.org>
54692
54693         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
54694         (inet_ntop, inet_pton): Change portability warning's wording.
54695         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
54696         Invoke gl_CHECK_NEXT_HEADERS.
54697         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
54698         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
54699         set ARPA_INET_H.
54700         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54701         * modules/arpa_inet (Description): No longer only for systems that
54702         lack it.
54703         (Depends-on): Add include_next.
54704         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
54705         HAVE_ARPA_INET_H.
54706
54707 2008-04-29  Jim Meyering  <meyering@redhat.com>
54708
54709         * modules/mkdir (License): Re-license as LGPLv2+.
54710
54711 2008-04-29  Bruno Haible  <bruno@clisp.org>
54712
54713         * modules/rawmemchr (Maintainer): Set to Eric.
54714         * modules/strchrnul (Maintainer): Likewise.
54715
54716 2008-04-29  Simon Josefsson  <simon@josefsson.org>
54717
54718         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
54719         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
54720
54721         * modules/arpa_inet (arpa/inet.h): Use them.
54722
54723 2008-04-28  Eric Blake  <ebb9@byu.net>
54724
54725         Test getndelim2.
54726         * modules/getndelim2-tests: New file.
54727         * tests/test-getndelim2.c: Likewise.
54728         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
54729         stream.
54730         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
54731
54732         * MODULES.html.sh: Document new module.
54733
54734 2008-04-20  Bruno Haible  <bruno@clisp.org>
54735
54736         * lib/c-stack.c (die): Use raise.
54737         * modules/c-stack (Depends-on): Add raise.
54738
54739 2008-04-28  Bruno Haible  <bruno@clisp.org>
54740
54741         Expect rpmatch to be declared.
54742         * lib/yesno.c (rpmatch): Remove declaration.
54743
54744         Declare rpmatch.
54745         * lib/stdlib.in.h (rpmatch): New declaration.
54746         * lib/rpmatch.c: Include <stdlib.h> first.
54747         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
54748         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
54749         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
54750         HAVE_RPMATCH.
54751         * modules/rpmatch (Depends-on): Add stdlib, extensions.
54752         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54753         (Include): Set to <stdlib.h>.
54754         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
54755         HAVE_RPMATCH.
54756         * NEWS: Document the change.
54757
54758 2008-04-28  Bruno Haible  <bruno@clisp.org>
54759
54760         Change rpmatch to use nl_langinfo when appropriate.
54761         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
54762         (N_): New macro.
54763         (localized_pattern): New function/macro.
54764         (try): Remove match, nomatch arguments. Copy the pattern into safe
54765         memory before caching it.
54766         (rpmatch): Use localized_pattern. Add translator comments.
54767         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
54768         Suggested by Eric Blake.
54769         * modules/rpmatch (Depends-on): Add stdbool.
54770
54771 2008-04-28  Eric Blake  <ebb9@byu.net>
54772
54773         Add rawmemchr module, matching glibc.
54774         * modules/string (Makefile.am): New indicator.
54775         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
54776         * lib/string.in.h (rawmemchr): Declare when appropriate.
54777         * modules/rawmemchr: New file.
54778         * m4/rawmemchr.m4: Likewise.
54779         * lib/rawmemchr.c: Likewise.
54780         * modules/rawmemchr-tests: Likewise.
54781         * tests/test-rawmemchr.c: Likewise.
54782         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
54783         module.
54784         * modules/strchrnul (Depends-on): Add rawmemchr.
54785         * lib/strchrnul.c (strchrnul): Optimize a corner case.
54786
54787         Whitespace cleanup.
54788         * tests/test-strchrnul.c: Reindent.
54789         * lib/strchrnul.c: Likewise.
54790
54791         Optimize and test strchrnul.
54792         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
54793         * modules/strchrnul-tests: New file.
54794         * tests/test-strchrnul.c: Likewise.
54795
54796         Remove intprops dependency.
54797         * modules/memchr (Depends-on): Remove intprops.
54798         * modules/memrchr (Depends-on): Likewise.
54799         * modules/memchr2 (Depends-on): Likewise.
54800         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
54801         * lib/memrchr.c (__memrchr): Likewise.
54802         * lib/memrchr2.c (memchr2): Likewise.
54803         Reported by Simon Josefsson.
54804
54805 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54806
54807         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
54808         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54809
54810 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54811
54812         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
54813
54814         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
54815
54816         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
54817
54818         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
54819         declarations.
54820         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
54821
54822         * m4/inet_pton.m4: Don't check for header files.
54823
54824         * m4/inet_ntop.m4: Don't check for header files.
54825
54826 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54827
54828         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
54829         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
54830         trigger for cygwin).
54831         Reported by Bruno Haible  <bruno@clisp.org>.
54832
54833 2008-04-28  Bruno Haible  <bruno@clisp.org>
54834
54835         * doc/posix-functions/strdup.texi: Mention mingw problem.
54836
54837 2008-04-27  Bruno Haible  <bruno@clisp.org>
54838
54839         * modules/stat-time-tests (Depends-on): Add sleep.
54840         * tests/test-stat-time.c (force_unlink): New function.
54841         (cleanup): Use it.
54842         (test_mtime): Remove the ctime related tests.
54843         (test_ctime): New function, containing the ctime related tests.
54844         (main): Call test_ctime, except on native Windows platforms.
54845
54846 2008-04-27  Bruno Haible  <bruno@clisp.org>
54847
54848         * lib/rpmatch.c (rpmatch): Add some comments.
54849         Reported by James Youngman <jay@gnu.org>.
54850
54851 2008-04-27  Bruno Haible  <bruno@clisp.org>
54852
54853         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
54854         quiet NaNs.
54855
54856 2008-04-27  Bruno Haible  <bruno@clisp.org>
54857
54858         Make test-yesno.sh work on mingw.
54859         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
54860         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
54861         (main): Set stdin to binary mode.
54862         * modules/yesno-tests (Depends-on): Add binary-io.
54863
54864 2008-04-27  Bruno Haible  <bruno@clisp.org>
54865
54866         Fix 'isfinite' on x86, x86_64, ia64 platforms.
54867         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
54868         argument that lie outside the IEEE 854 domain.
54869         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
54870         (gl_ISFINITE): Use it.
54871         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
54872
54873 2008-04-27  Bruno Haible  <bruno@clisp.org>
54874
54875         Allow local renaming in config.h.
54876         * lib/memrchr.c (memrchr): Don't undefine outside libc.
54877
54878 2008-04-27  Bruno Haible  <bruno@clisp.org>
54879
54880         * lib/memchr.c (__memchr): Change type of 'i'.
54881         * lib/memchr2.c (memchr2): Likewise.
54882
54883 2008-04-26  Eric Blake  <ebb9@byu.net>
54884         and Bruno Haible  <bruno@clisp.org>
54885
54886         Optimize and test memrchr.
54887         * modules/memrchr (Depends-on): Add intprops.
54888         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
54889         * modules/memrchr-tests: New file.
54890         * tests/test-memrchr.c: New file.
54891
54892 2008-04-26  Bruno Haible  <bruno@clisp.org>
54893
54894         Add tentative support for DragonFly BSD.
54895         * lib/stdio-impl.h: Add macros for DragonFly BSD.
54896         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
54897         fp.
54898         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
54899         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
54900         * lib/fpurge.c (fpurge): Likewise.
54901         * lib/freadable.c (freaadable): Likewise.
54902         * lib/freadahead.c (freadahead): Likewise.
54903         * lib/freading.c (freading): Likewise.
54904         * lib/freadptr.c (freadptr): Likewise.
54905         * lib/freadseek.c (freadptrinc): Likewise.
54906         * lib/fseeko.c (fseeko): Likewise.
54907         * lib/fseterr.c (fseterr): Likewise.
54908         * lib/fwritable.c (fwritable): Likewise.
54909         * lib/fwriting.c (fwriting): Likewise.
54910
54911 2008-04-26  Bruno Haible  <bruno@clisp.org>
54912
54913         * lib/stdio-impl.h: New file.
54914         * lib/fbufmode.c: Include stdio-impl.h.
54915         (fbufmode): Use fp_, remove redundant #defines.
54916         * lib/fflush.c: Include stdio-impl.h.
54917         (clear_ungetc_buffer): Remove redundant #defines.
54918         * lib/fpurge.c: Include stdio-impl.h.
54919         (fpurge): Remove redundant #defines.
54920         * lib/freadable.c: Include stdio-impl.h.
54921         (freadable): Remove redundant #defines.
54922         * lib/freadahead.c: Include stdio-impl.h.
54923         (freadahead): Remove redundant #defines.
54924         * lib/freading.c: Include stdio-impl.h.
54925         (freading): Remove redundant #defines.
54926         * lib/freadptr.c: Include stdio-impl.h.
54927         (freadptr): Remove redundant #defines.
54928         * lib/freadseek.c: Include stdio-impl.h.
54929         (freadptrinc): Remove redundant #defines.
54930         * lib/fseeko.c: Include stdio-impl.h.
54931         (rpl_fseeko): Remove redundant #defines.
54932         * lib/fseterr.c: Include stdio-impl.h.
54933         (fseterr): Remove redundant #defines.
54934         * lib/fwritable.c: Include stdio-impl.h.
54935         (fwritable: Remove redundant #defines.
54936         * lib/fwriting.c: Include stdio-impl.h.
54937         (fwriting): Remove redundant #defines.
54938         * modules/fbufmode (Files): Add lib/stdio-impl.h.
54939         * modules/fflush (Files): Likewise.
54940         * modules/fpurge (Files): Likewise.
54941         * modules/freadable (Files): Likewise.
54942         * modules/freadahead (Files): Likewise.
54943         * modules/freading (Files): Likewise.
54944         * modules/freadptr (Files): Likewise.
54945         * modules/freadseek (Files): Likewise.
54946         * modules/fseeko (Files): Likewise.
54947         * modules/fseterr (Files): Likewise.
54948         * modules/fwritable (Files): Likewise.
54949         * modules/fwriting (Files): Likewise.
54950
54951 2008-04-26  Bruno Haible  <bruno@clisp.org>
54952
54953         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
54954         restore_seek_optimization, update_fpos_cache): New functions, extracted
54955         from rpl_fflush.
54956         (rpl_fflush): Use them.
54957         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
54958         (gl_REPLACE_FFLUSH): Use it.
54959
54960 2008-04-26  Bruno Haible  <bruno@clisp.org>
54961
54962         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
54963         on Solaris.
54964         * tests/test-xstrtoimax.sh: Likewise.
54965         * tests/test-xstrtoumax.sh: Likewise.
54966         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54967
54968 2008-04-26  Bruno Haible  <bruno@clisp.org>
54969
54970         * modules/memchr-tests: New file.
54971         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
54972
54973 2008-04-26  Eric Blake  <ebb9@byu.net>
54974             Bruno Haible  <bruno@clisp.org>
54975
54976         * lib/memchr.c: Include intprops.h.
54977         (__memchr): Optimize parallel detection of matching bytes. Rename local
54978         variables. Add explanatory comments.
54979
54980 2008-04-26  Bruno Haible  <bruno@clisp.org>
54981
54982         Fix module 'memchr', broken since 2000-10-28.
54983         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
54984
54985 2008-04-26  Bruno Haible  <bruno@clisp.org>
54986
54987         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
54988         comments.
54989
54990 2008-04-25  Eric Blake  <ebb9@byu.net>
54991
54992         Use native fstatat on cygwin 1.7.0.
54993         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
54994         first.
54995
54996 2008-04-23  Eric Blake  <ebb9@byu.net>
54997
54998         Improve memchr2 performance.
54999         * lib/memchr2.c (memchr2): Further optimize parallel detection of
55000         NUL bytes.
55001         * modules/memchr2 (Depends-on): Use intprops.h.
55002
55003 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55004
55005         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
55006         an inline function instead of a CPP macro.  Patch by Ben Pfaff
55007         <blp@cs.stanford.edu>.
55008
55009 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55010
55011         * lib/arpa_inet.in.h: New file.
55012
55013         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
55014         (Makefile.am): Sed in substitute header file.
55015
55016         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
55017         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
55018
55019         * modules/inet_ntop (configure.ac): Use
55020         gl_ARPA_INET_MODULE_INDICATOR.
55021
55022         * modules/inet_pton (configure.ac): Use
55023         gl_ARPA_INET_MODULE_INDICATOR.
55024
55025 2008-04-22  Jim Meyering  <meyering@redhat.com>
55026
55027         * modules/verify (License): Re-license as LGPLv2+.
55028
55029 2008-04-22  Simon Josefsson  <simon@josefsson.org>
55030
55031         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
55032         parameter to void* as per POSIX standard (MinGW uses char*).
55033
55034 2008-04-21  Bruno Haible  <bruno@clisp.org>
55035
55036         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55037         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
55038         Define to replacements if REPLACE_ISWCNTRL is 1.
55039         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
55040         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
55041         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
55042         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
55043         what it fixes.
55044         * doc/posix-functions/iswalpha.texi: Likewise.
55045         * doc/posix-functions/iswblank.texi: Likewise.
55046         * doc/posix-functions/iswcntrl.texi: Likewise.
55047         * doc/posix-functions/iswdigit.texi: Likewise.
55048         * doc/posix-functions/iswgraph.texi: Likewise.
55049         * doc/posix-functions/iswlower.texi: Likewise.
55050         * doc/posix-functions/iswprint.texi: Likewise.
55051         * doc/posix-functions/iswpunct.texi: Likewise.
55052         * doc/posix-functions/iswspace.texi: Likewise.
55053         * doc/posix-functions/iswupper.texi: Likewise.
55054         * doc/posix-functions/iswxdigit.texi: Likewise.
55055         Reported by Alain Guibert.
55056
55057 2008-04-21  Bruno Haible  <bruno@clisp.org>
55058
55059         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
55060         Patch by Alain Guibert.
55061
55062 2008-04-21  Bruno Haible  <bruno@clisp.org>
55063
55064         Fix test failures on mingw.
55065         * tests/test-xstrtol.c (print_no_progname): New function.
55066         (main): Install it in error_print_progname hook.
55067         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
55068         * tests/test-xstrtoimax.sh: Likewise.
55069         * tests/test-xstrtoumax.sh: Likewise.
55070
55071 2008-04-21  Bruno Haible  <bruno@clisp.org>
55072
55073         Fix test failure on mingw.
55074         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
55075
55076 2008-04-21  Bruno Haible  <bruno@clisp.org>
55077
55078         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
55079         Actually assign a value.
55080
55081 2008-04-20  Bruno Haible  <bruno@clisp.org>
55082
55083         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
55084         take 2.
55085         * lib/canonicalize.c (canonicalize_file_name): Elide if the
55086         'canonicalize-lgpl' module is also used.
55087         * lib/canonicalize-lgpl.c: Undo last change.
55088         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
55089
55090 2008-04-20  Bruno Haible  <bruno@clisp.org>
55091
55092         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
55093         config.h. Provide _mkdir based fallback for mingw.
55094         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
55095         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
55096         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
55097         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
55098         rather than defining mkdir in config.h.
55099         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
55100         (gl_SYS_STAT_H_DEFAULTS): New macro.
55101         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
55102         HAVE_IO_H any more.
55103         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
55104         HAVE_DECL_MKDIR and HAVE_IO_H.
55105
55106 2008-04-20  Bruno Haible  <bruno@clisp.org>
55107
55108         * lib/isapipe.c: Port to native Windows platforms.
55109
55110 2008-04-20  Bruno Haible  <bruno@clisp.org>
55111
55112         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
55113
55114 2008-04-21  Eric Blake  <ebb9@byu.net>
55115
55116         Work around preprocessors that don't handle UINTMAX_MAX.
55117         * lib/memchr2.c (memchr2): Avoid embedded #if.
55118         Reported by Alain Guibert, fix suggested by Bruno Haible.
55119
55120 2008-04-21  Simon Josefsson  <simon@josefsson.org>
55121
55122         * doc/posix-functions/strftime.texi (strftime): Explain better
55123         Windows incompatibility.  Suggested by Micah Cowan
55124         <micah@cowan.name>.
55125
55126 2008-04-20  Bruno Haible  <bruno@clisp.org>
55127
55128         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
55129         unistr/u8-mblen.
55130
55131 2008-04-20  Bruno Haible  <bruno@clisp.org>
55132
55133         Fix test failure on platforms with non-GNU iconv.
55134         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
55135         (U_TO_U8): Use it, rather than u16_to_u8.
55136         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
55137         units at the end of the input string.
55138         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
55139
55140 2008-04-20  Bruno Haible  <bruno@clisp.org>
55141
55142         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
55143         when the resulting length is 0.
55144         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
55145
55146 2008-04-20  Bruno Haible  <bruno@clisp.org>
55147
55148         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
55149         works.
55150         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
55151
55152 2008-04-20  Bruno Haible  <bruno@clisp.org>
55153
55154         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
55155         * modules/tsearch-tests (configure.ac): Test for initstate function.
55156
55157 2008-04-20  Bruno Haible  <bruno@clisp.org>
55158
55159         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
55160         for nlink_t if missing.
55161         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
55162
55163 2008-04-19  Bruno Haible  <bruno@clisp.org>
55164
55165         Work around snprintf bug on Linux libc5.
55166         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
55167         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55168         gl_SNPRINTF_SIZE1.
55169         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55170         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
55171         that test failed.
55172         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
55173         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
55174         * modules/snprintf (Files): Add m4/printf.m4.
55175         * modules/vsnprintf (Files): Likewise.
55176         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
55177         * doc/posix-functions/vsnprintf.texi: Likewise.
55178
55179 2008-04-19  Bruno Haible  <bruno@clisp.org>
55180
55181         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
55182         from 0.0058 to less than 10^-7.
55183
55184 2008-04-19  Bruno Haible  <bruno@clisp.org>
55185
55186         Fix rounding when a precision is given.
55187         * lib/vasnprintf.c (is_borderline): New function.
55188         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
55189         9...9x.
55190         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
55191         %e, %g.
55192         * tests/test-vasprintf-posix.c (test_function): Likewise.
55193         * tests/test-snprintf-posix.h (test_function): Likewise.
55194         * tests/test-sprintf-posix.h (test_function): Likewise.
55195         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
55196         * tests/test-printf-posix.h (test_function): Likewise.
55197         * tests/test-printf-posix.output: Update.
55198         Reported by John Darrington <john@darrington.wattle.id.au> via
55199         Ben Pfaff <blp@cs.stanford.edu>.
55200
55201 2008-04-18  Simon Josefsson  <simon@josefsson.org>
55202
55203         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
55204         Suggested by Bruno Haible <bruno@clisp.org>.
55205
55206 2008-04-17  Bruno Haible  <bruno@clisp.org>
55207
55208         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
55209         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
55210         implementation.
55211         Patch by Bruce Merry <bmerry@gmail.com>.
55212
55213 2008-04-17  Simon Josefsson  <simon@josefsson.org>
55214
55215         * doc/posix-functions/strftime.texi (strftime): Mention that %e
55216         doesn't work under Windows.
55217
55218 2008-04-16  Bruno Haible  <bruno@clisp.org>
55219
55220         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
55221         New macros.
55222         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
55223         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
55224         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
55225         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
55226         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
55227         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
55228         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
55229         macros.
55230         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
55231         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
55232         Northern Sotho, Uighur.
55233
55234 2008-04-16  Bruno Haible  <bruno@clisp.org>
55235
55236         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
55237         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
55238         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
55239         Reported by Daniel Bergström <daniel@octocode.com>.
55240
55241 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
55242             Bruno Haible  <bruno@clisp.org>
55243
55244         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
55245         function.
55246         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
55247         New functions, mostly extracted from gl_locale_name_default.
55248         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
55249
55250 2008-04-16  Eric Blake  <ebb9@byu.net>
55251
55252         Adjust strtod detection to catch glibc 2.7 bug.
55253         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
55254         Reported by John Gatewood Ham.
55255
55256 2008-04-16  Bruno Haible  <bruno@clisp.org>
55257
55258         Add tentative support for Linux libc5.
55259         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
55260         * lib/fpurge.c (fpurge): Likewise.
55261         * lib/freadable.c (freadable): Likewise.
55262         * lib/freadahead.c (freadahead): Likewise.
55263         * lib/freading.c (freading): Likewise.
55264         * lib/freadptr.c (freadptr): Likewise.
55265         * lib/freadseek.c (freadptrinc): Likewise.
55266         * lib/fseeko.c (rpl_fseeko): Likewise.
55267         * lib/fseterr.c (fseterr): Likewise.
55268         * lib/fwritable.c (fwritable): Likewise.
55269         * lib/fwriting.c (fwriting): Likewise.
55270         Reported by Alain Guibert <alguibert+bts@free.fr>.
55271
55272 2008-04-15  Bruno Haible  <bruno@clisp.org>
55273
55274         * modules/mathl (configure.ac): Define module indicator.
55275
55276 2008-04-15  Bruno Haible  <bruno@clisp.org>
55277
55278         * lib/logl.c (logl): Remove unused variables.
55279
55280 2008-04-15  Bruno Haible  <bruno@clisp.org>
55281
55282         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
55283         fails.
55284
55285 2008-04-15  Bruno Haible  <bruno@clisp.org>
55286
55287         * lib/trim.c (trim2): Fix argument of isspace() macro.
55288
55289 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
55290
55291         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
55292         to 0.
55293         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
55294
55295 2008-04-14  Bruno Haible  <bruno@clisp.org>
55296
55297         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
55298         AC_LANG_PROGRAM argument.
55299         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
55300         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
55301         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
55302         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55303         * m4/math_h.m4 (gl_MATH_H): Likewise.
55304         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
55305         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55306         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
55307         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
55308         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
55309         * m4/regex.m4 (gl_REGEX): Likewise.
55310         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
55311         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
55312         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55313         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
55314         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55315         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55316         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55317         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55318
55319 2008-04-14  Jim Meyering  <meyering@redhat.com>
55320
55321         test-strtod: fix typos: s/abs/fabs/
55322         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
55323
55324 2008-04-13  Bruno Haible  <bruno@clisp.org>
55325
55326         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
55327         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
55328         module is also used and while not building the reloc-wrapper.
55329
55330 2008-04-13  Bruno Haible  <bruno@clisp.org>
55331
55332         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
55333
55334 2008-04-13  Bruno Haible  <bruno@clisp.org>
55335
55336         Fix AIX compilation failure introduced on 2008-04-02.
55337         * tests/test-frexp.c (exp): Undefine before redefining.
55338         * tests/test-frexpl.c (exp): Likewise.
55339
55340 2008-04-13  Bruno Haible  <bruno@clisp.org>
55341
55342         Work around a HP-UX stdio bug.
55343         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
55344         * tests/test-ftello.c (main): Likewise.
55345         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
55346         * doc/posix-functions/ftello.texi: Likewise.
55347
55348 2008-04-13  Bruno Haible  <bruno@clisp.org>
55349
55350         Make test-signbit pass on HP-UX/hppa.
55351         * tests/test-signbit.c (minus_zerol): New variable.
55352         (test_signbitl): Use it.
55353
55354 2008-04-13  Bruno Haible  <bruno@clisp.org>
55355
55356         Make truncl work on OSF/1 4.0.
55357         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
55358         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55359         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55360         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
55361         HAVE_DECL_TRUNCL.
55362         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
55363         HAVE_DECL_TRUNCL.
55364         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
55365
55366 2008-04-13  Bruno Haible  <bruno@clisp.org>
55367
55368         * lib/unictype.h: Remove trailing comma from enumeration definitions.
55369
55370 2008-04-13  Bruno Haible  <bruno@clisp.org>
55371
55372         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
55373         expression, so as to avoid HP-UX 11 cc compiler bug.
55374
55375 2008-04-13  Bruno Haible  <bruno@clisp.org>
55376
55377         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
55378
55379 2008-04-13  Bruno Haible  <bruno@clisp.org>
55380
55381         * lib/git-merge-changelog.c: Remove empty declaration outside of
55382         functions.
55383
55384 2008-04-13  Bruno Haible  <bruno@clisp.org>
55385
55386         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
55387
55388 2008-04-13  Bruno Haible  <bruno@clisp.org>
55389
55390         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
55391         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
55392         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
55393         also if it exists but lacks definitions of the SHUT_* macros.
55394         * modules/sys_socket (Description): Update.
55395         Reported by Elbert Pol <e.pol@chello.nl>.
55396
55397 2008-04-13  Bruno Haible  <bruno@clisp.org>
55398
55399         * lib/localcharset.c (OS2): Don't redefine if already defined.
55400         Reported by Elbert Pol <e.pol@chello.nl>.
55401
55402 2008-04-13  Bruno Haible  <bruno@clisp.org>
55403
55404         * lib/binary-io.h [__EMX__]: Include <io.h>.
55405         Reported by Elbert Pol <e.pol@chello.nl>.
55406
55407 2008-04-12  Bruno Haible  <bruno@clisp.org>
55408
55409         * lib/fpucw.h: Enable the definitions also for x86_64.
55410         Needed for NetBSD/x86_64.
55411         Reported by Thomas Klausner <tk@giga.or.at>.
55412
55413 2008-04-12  Bruno Haible  <bruno@clisp.org>
55414
55415         * tests/test-strtod.c: Include isnand.h.
55416         (main): Use isnand instead of isnan.
55417         Reported by Jim Meyering.
55418
55419 2008-04-12  Bruno Haible  <bruno@clisp.org>
55420
55421         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
55422         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
55423
55424 2008-04-12  Jim Meyering  <meyering@redhat.com>
55425
55426         * m4/math_h.m4 (gl_MATH_H): Fix typos.
55427
55428 2008-04-12  Bruno Haible  <bruno@clisp.org>
55429
55430         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
55431         Reported by Elbert Pol <e.pol@chello.nl>.
55432
55433 2008-04-12  Eric Blake  <ebb9@byu.net>
55434
55435         Work around Solaris 10 math.h bug.
55436         * m4/math_h.m4 (gl_MATH_H): Check for bug.
55437         (gl_MATH_H_DEFAULTS): Set up default.
55438         * modules/math (Makefile.am): Replace new indicators.
55439         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
55440         * tests/test-math.c (main): Test this.
55441         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
55442         * doc/posix-headers/math.texi (math.h): Mention bug.
55443         Reported by Nelson H. F. Beebe and Jim Meyering.
55444
55445 2008-04-11  Bruno Haible  <bruno@clisp.org>
55446
55447         Adapt to future versions of Apple GCC.
55448         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
55449         Reported by Peter O'Gorman <peter@pogma.com>.
55450
55451 2008-04-11  Bruno Haible  <bruno@clisp.org>
55452
55453         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
55454
55455 2008-04-11  Bruno Haible  <bruno@clisp.org>
55456
55457         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
55458
55459         * modules/getaddrinfo-tests (Makefile.am): Define
55460         test_getaddrinfo_LDADD.
55461
55462 2008-04-11  Bruno Haible  <bruno@clisp.org>
55463
55464         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
55465         (init): Fix syntax error.
55466         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
55467         is declared.
55468
55469 2008-04-11  Bruno Haible  <bruno@clisp.org>
55470
55471         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
55472         * modules/glob (Depends-on): Add stdbool.
55473
55474 2008-04-11  Bruno Haible  <bruno@clisp.org>
55475
55476         * lib/trim.c: Include <string.h>.
55477
55478 2008-04-11  Eric Blake  <ebb9@byu.net>
55479
55480         Avoid compile failure on OS/2.
55481         * lib/regex_internal.h (internal_function): Disable optimization
55482         on OS/2 (__EMX__), where it caused compiler error.
55483         Reported by Elbert Pol.
55484
55485 2008-04-11  Bruno Haible  <bruno@clisp.org>
55486
55487         Flush the standard error stream before aborting. Needed on mingw.
55488         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
55489         * tests/test-array_list.c (ASSERT): Likewise.
55490         * tests/test-array_oset.c (ASSERT): Likewise.
55491         * tests/test-avltree_list.c (ASSERT): Likewise.
55492         * tests/test-avltree_oset.c (ASSERT): Likewise.
55493         * tests/test-avltreehash_list.c (ASSERT): Likewise.
55494         * tests/test-binary-io.c (ASSERT): Likewise.
55495         * tests/test-byteswap.c (ASSERT): Likewise.
55496         * tests/test-c-ctype.c (ASSERT): Likewise.
55497         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
55498         * tests/test-c-strcasestr.c (ASSERT): Likewise.
55499         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
55500         * tests/test-c-strstr.c (ASSERT): Likewise.
55501         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
55502         * tests/test-canonicalize.c (ASSERT): Likewise.
55503         * tests/test-carray_list.c (ASSERT): Likewise.
55504         * tests/test-ceilf1.c (ASSERT): Likewise.
55505         * tests/test-ceilf2.c (ASSERT): Likewise.
55506         * tests/test-ceill.c (ASSERT): Likewise.
55507         * tests/test-count-one-bits.c (ASSERT): Likewise.
55508         * tests/test-fbufmode.c (ASSERT): Likewise.
55509         * tests/test-fflush2.c (ASSERT): Likewise.
55510         * tests/test-floorf1.c (ASSERT): Likewise.
55511         * tests/test-floorf2.c (ASSERT): Likewise.
55512         * tests/test-floorl.c (ASSERT): Likewise.
55513         * tests/test-fopen.c (ASSERT): Likewise.
55514         * tests/test-fpending.c (ASSERT): Likewise.
55515         * tests/test-fprintf-posix.c (ASSERT): Likewise.
55516         * tests/test-fpurge.c (ASSERT): Likewise.
55517         * tests/test-freadable.c (ASSERT): Likewise.
55518         * tests/test-freadahead.c (ASSERT): Likewise.
55519         * tests/test-freading.c (ASSERT): Likewise.
55520         * tests/test-freadptr.c (ASSERT): Likewise.
55521         * tests/test-freadptr2.c (ASSERT): Likewise.
55522         * tests/test-freadseek.c (ASSERT): Likewise.
55523         * tests/test-freopen.c (ASSERT): Likewise.
55524         * tests/test-frexp.c (ASSERT): Likewise.
55525         * tests/test-frexpl.c (ASSERT): Likewise.
55526         * tests/test-fseek.c (ASSERT): Likewise.
55527         * tests/test-fseeko.c (ASSERT): Likewise.
55528         * tests/test-fstrcmp.c (ASSERT): Likewise.
55529         * tests/test-ftell.c (ASSERT): Likewise.
55530         * tests/test-ftello.c (ASSERT): Likewise.
55531         * tests/test-func.c (ASSERT): Likewise.
55532         * tests/test-fwritable.c (ASSERT): Likewise.
55533         * tests/test-fwriting.c (ASSERT): Likewise.
55534         * tests/test-getdelim.c (ASSERT): Likewise.
55535         * tests/test-getline.c (ASSERT): Likewise.
55536         * tests/test-i-ring.c (ASSERT): Likewise.
55537         * tests/test-iconv-utf.c (ASSERT): Likewise.
55538         * tests/test-iconv.c (ASSERT): Likewise.
55539         * tests/test-isfinite.c (ASSERT): Likewise.
55540         * tests/test-isnand.c (ASSERT): Likewise.
55541         * tests/test-isnanf.c (ASSERT): Likewise.
55542         * tests/test-isnanl.h (ASSERT): Likewise.
55543         * tests/test-ldexpl.c (ASSERT): Likewise.
55544         * tests/test-linked_list.c (ASSERT): Likewise.
55545         * tests/test-linkedhash_list.c (ASSERT): Likewise.
55546         * tests/test-localename.c (ASSERT): Likewise.
55547         * tests/test-lseek.c (ASSERT): Likewise.
55548         * tests/test-mbscasecmp.c (ASSERT): Likewise.
55549         * tests/test-mbscasestr1.c (ASSERT): Likewise.
55550         * tests/test-mbscasestr2.c (ASSERT): Likewise.
55551         * tests/test-mbscasestr3.c (ASSERT): Likewise.
55552         * tests/test-mbscasestr4.c (ASSERT): Likewise.
55553         * tests/test-mbschr.c (ASSERT): Likewise.
55554         * tests/test-mbscspn.c (ASSERT): Likewise.
55555         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
55556         * tests/test-mbspbrk.c (ASSERT): Likewise.
55557         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
55558         * tests/test-mbsrchr.c (ASSERT): Likewise.
55559         * tests/test-mbsspn.c (ASSERT): Likewise.
55560         * tests/test-mbsstr1.c (ASSERT): Likewise.
55561         * tests/test-mbsstr2.c (ASSERT): Likewise.
55562         * tests/test-mbsstr3.c (ASSERT): Likewise.
55563         * tests/test-memchr2.c (ASSERT): Likewise.
55564         * tests/test-memmem.c (ASSERT): Likewise.
55565         * tests/test-open.c (ASSERT): Likewise.
55566         * tests/test-printf-frexp.c (ASSERT): Likewise.
55567         * tests/test-printf-frexpl.c (ASSERT): Likewise.
55568         * tests/test-printf-posix.c (ASSERT): Likewise.
55569         * tests/test-quotearg.c (ASSERT): Likewise.
55570         * tests/test-rbtree_list.c (ASSERT): Likewise.
55571         * tests/test-rbtree_oset.c (ASSERT): Likewise.
55572         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
55573         * tests/test-round1.c (ASSERT): Likewise.
55574         * tests/test-roundf1.c (ASSERT): Likewise.
55575         * tests/test-roundl.c (ASSERT): Likewise.
55576         * tests/test-signbit.c (ASSERT): Likewise.
55577         * tests/test-sleep.c (ASSERT): Likewise.
55578         * tests/test-snprintf-posix.c (ASSERT): Likewise.
55579         * tests/test-snprintf.c (ASSERT): Likewise.
55580         * tests/test-sprintf-posix.c (ASSERT): Likewise.
55581         * tests/test-stat-time.c (ASSERT): Likewise.
55582         * tests/test-strcasestr.c (ASSERT): Likewise.
55583         * tests/test-strerror.c (ASSERT): Likewise.
55584         * tests/test-striconv.c (ASSERT): Likewise.
55585         * tests/test-striconveh.c (ASSERT): Likewise.
55586         * tests/test-striconveha.c (ASSERT): Likewise.
55587         * tests/test-strsignal.c (ASSERT): Likewise.
55588         * tests/test-strstr.c (ASSERT): Likewise.
55589         * tests/test-strtod.c (ASSERT): Likewise.
55590         * tests/test-trunc1.c (ASSERT): Likewise.
55591         * tests/test-trunc2.c (ASSERT): Likewise.
55592         * tests/test-truncf1.c (ASSERT): Likewise.
55593         * tests/test-truncf2.c (ASSERT): Likewise.
55594         * tests/test-truncl.c (ASSERT): Likewise.
55595         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
55596         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
55597         * tests/test-vasnprintf.c (ASSERT): Likewise.
55598         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
55599         * tests/test-vasprintf.c (ASSERT): Likewise.
55600         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
55601         * tests/test-vprintf-posix.c (ASSERT): Likewise.
55602         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
55603         * tests/test-vsnprintf.c (ASSERT): Likewise.
55604         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
55605         * tests/test-wcwidth.c (ASSERT): Likewise.
55606         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
55607         * tests/test-xprintf-posix.c (ASSERT): Likewise.
55608         * tests/test-xvasprintf.c (ASSERT): Likewise.
55609         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
55610         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
55611         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
55612         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
55613         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
55614         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
55615         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
55616         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
55617         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
55618         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
55619         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
55620         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
55621         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
55622         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
55623         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
55624         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
55625         * tests/unictype/test-block_list.c (ASSERT): Likewise.
55626         * tests/unictype/test-block_of.c (ASSERT): Likewise.
55627         * tests/unictype/test-block_test.c (ASSERT): Likewise.
55628         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
55629         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
55630         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
55631         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
55632         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
55633         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
55634         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
55635         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
55636         * tests/unictype/test-combining.c (ASSERT): Likewise.
55637         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
55638         * tests/unictype/test-digit.c (ASSERT): Likewise.
55639         * tests/unictype/test-mirror.c (ASSERT): Likewise.
55640         * tests/unictype/test-numeric.c (ASSERT): Likewise.
55641         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
55642         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
55643         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
55644         * tests/unictype/test-scripts.c (ASSERT): Likewise.
55645         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
55646         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
55647         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
55648         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
55649         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
55650         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
55651         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
55652         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
55653         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
55654         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
55655         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
55656         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
55657         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
55658         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
55659         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
55660         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
55661         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
55662         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
55663         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
55664         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
55665         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
55666         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
55667         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
55668         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
55669         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
55670         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
55671         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
55672         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
55673         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
55674         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
55675         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
55676         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
55677         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
55678         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
55679         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
55680         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
55681         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
55682         Reported by Eric Blake.
55683
55684 2008-04-11  Bruno Haible  <bruno@clisp.org>
55685
55686         * lib/wchar.in.h: Tweak comment.
55687
55688 2008-04-11  Bruno Haible  <bruno@clisp.org>
55689
55690         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
55691         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
55692         gl_COMMON.
55693         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
55694
55695 2008-04-11  Bruno Haible  <bruno@clisp.org>
55696
55697         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
55698
55699 2008-04-11  Simon Josefsson  <simon@josefsson.org>
55700
55701         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
55702         of attempting to use non-existing /dev/*random.  Based on patch
55703         from Adam Strzelecki <ono@java.pl> in
55704         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
55705
55706 2008-04-08  Bruno Haible  <bruno@clisp.org>
55707
55708         Add tentative support for emx+gcc.
55709         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
55710         * lib/fpurge.c (fpurge): Likewise.
55711         * lib/freadable.c (freadable): Likewise.
55712         * lib/freadahead.c (freadahead): Likewise.
55713         * lib/freading.c (freading): Likewise.
55714         * lib/freadptr.c (freadptr): Likewise.
55715         * lib/freadseek.c (freadptrinc): Likewise.
55716         * lib/fseeko.c (rpl_fseeko): Likewise.
55717         * lib/fseterr.c (fseterr): Likewise.
55718         * lib/fwritable.c (fwritable): Likewise.
55719         * lib/fwriting.c (fwriting): Likewise.
55720         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
55721
55722 2008-04-09  Eric Blake  <ebb9@byu.net>
55723
55724         Avoid some autoconf warnings.
55725         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
55726         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
55727         * m4/afs.m4 (gl_AFS): Likewise.
55728         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
55729         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
55730         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55731         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
55732         (gl_INTEGER_TYPE_SUFFIX): Likewise.
55733         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
55734         (AC_CHECK_DECLS_ONCE): Likewise.
55735         Rename file...
55736         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
55737         gnulib-tool requires autoconf 2.59 or better.
55738         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
55739
55740 2008-04-08  Eric Blake  <ebb9@byu.net>
55741
55742         Use 'git describe --match' if present (added in git 1.5.5).
55743         * build-aux/git-version-gen: Limit result to tags that match 'v*'
55744         if possible.
55745
55746 2008-04-08  Bruno Haible  <bruno@clisp.org>
55747
55748         Add tentative support for OpenServer.
55749         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
55750         _ptr, _cnt.
55751         * lib/fpurge.c (fpurge): Likewise.
55752         * lib/freadable.c (freadable): Likewise.
55753         * lib/freadahead.c (freadahead): Likewise.
55754         * lib/freading.c (freading): Likewise.
55755         * lib/freadptr.c (freadptr): Likewise.
55756         * lib/freadseek.c (freadptrinc): Likewise.
55757         * lib/fseeko.c (rpl_fseeko): Likewise.
55758         * lib/fseterr.c (fseterr): Likewise.
55759         * lib/fwritable.c (fwritable): Likewise.
55760         * lib/fwriting.c (fwriting): Likewise.
55761         Reported by Roger Cornelius <rac@tenzing.org> and
55762         Brian K. White <brian@aljex.com>.
55763
55764 2008-04-06  Jim Meyering  <meyering@redhat.com>
55765
55766         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
55767
55768 2008-04-06  Bruno Haible  <bruno@clisp.org>
55769
55770         Avoid possible error with non-ASCII bytes in UTF-8 locales.
55771         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
55772         * tests/test-printf-posix.sh: Likewise.
55773         * tests/test-vfprintf-posix.sh: Likewise.
55774         * tests/test-vprintf-posix.sh: Likewise.
55775         * tests/test-xprintf-posix.sh: Likewise.
55776
55777 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55778
55779         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
55780         hide error from 'ls', needed on OS/2.
55781         Report by Elbert Pol <elbert.pol@gmail.com>.
55782
55783 2008-04-04  Eric Blake  <ebb9@byu.net>
55784
55785         Make test-fseeko.c failures meaningful.
55786         * tests/test-fseeko.c: Print line number on failure.
55787         * tests/test-fseek.c: Likewise.
55788         Reported by Nelson H. F. Beebe.
55789
55790         Improve strtod bug detection check.
55791         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
55792         required for Solaris 10.
55793         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
55794
55795 2008-04-04  Bruno Haible  <bruno@clisp.org>
55796
55797         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
55798         by m4/setenv.m4.
55799
55800 2008-04-03  Eric Blake  <ebb9@byu.net>
55801
55802         Ensure sane .version contents.
55803         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
55804         version string.
55805         * build-aux/git-version-gen: Improve documentation.
55806
55807         Make GNU make output nicer.
55808         * top/GNUmakefile [!_have-Makefile]: Add dependency on
55809         MAKECMDGOALS to enforce message for all command line targets.  Set
55810         srcdir for use in maint.mk.
55811
55812         Another maintainer tweak.
55813         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
55814         a target that regenerates version.
55815
55816 2008-04-03  Jim Meyering  <meyering@redhat.com>
55817
55818         vc-list-files: don't cause coreutils "make po-check" failure
55819         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
55820
55821 2008-04-03  Eric Blake  <ebb9@byu.net>
55822
55823         Allow VPATH usage of vc-list-files.
55824         * build-aux/vc-list-files (scriptversion): Add timestamp.
55825         (options): Add --help, --version, -C.
55826         (CVS): Support installed cvsu.
55827
55828 2008-04-02  Bruno Haible  <bruno@clisp.org>
55829
55830         Avoid some "statement with no effect" warnings from gcc.
55831         * tests/test-wctype.c (main): Explicitly ignore unused values.
55832         Reported by Jim Meyering.
55833
55834 2008-04-02  Jim Meyering  <meyering@redhat.com>
55835
55836         Avoid some warnings from "gcc -Wshadow".
55837         * tests/test-frexp.c (exp): Define to a different identifier.
55838         * tests/test-frexpl.c (exp): Likewise.
55839
55840 2008-04-03  Jim Meyering  <meyering@redhat.com>
55841
55842         bootstrap: remove dangling *.[ch] symlinks from lib
55843         * build-aux/bootstrap [dangling symlink removal]: Move find's
55844         -depth option to precede all others, to avoid a warning.
55845         Remove *.[ch] files too, and from "$source_base" (usually lib/).
55846
55847 2008-04-02  Bruno Haible  <bruno@clisp.org>
55848
55849         Avoid some warnings from "gcc -Wshadow".
55850         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
55851         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
55852         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
55853         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
55854         Reported by Jim Meyering.
55855
55856 2008-04-01  Bruno Haible  <bruno@clisp.org>
55857
55858         Fix test to work on IRIX 6.5 with cc.
55859         * tests/test-math.c (numeric_equal): New function.
55860         (main): Use it.
55861
55862 2008-04-01  Bruno Haible  <bruno@clisp.org>
55863
55864         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
55865
55866 2008-04-01  Bruno Haible  <bruno@clisp.org>
55867
55868         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
55869         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55870         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
55871         (Depends-on): Remove math.
55872
55873         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
55874         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55875         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
55876         (Depends-on): Remove math.
55877
55878         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
55879         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55880         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
55881         (Depends-on): Remove math.
55882         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
55883         (Depends-on): Remove math.
55884
55885         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
55886         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55887         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
55888         (Depends-on): Remove math.
55889         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
55890         (Depends-on): Remove math.
55891
55892         * tests/test-round1.c: Include nan.h.
55893         (main): Use NaNd instead of NAN.
55894         * modules/round-tests (Files): Add tests/nan.h.
55895
55896         * tests/test-trunc1.c: Include nan.h.
55897         (main): Use NaNd instead of NAN.
55898         * modules/trunc-tests (Files): Add tests/nan.h.
55899
55900         * tests/test-roundf1.c: Include nan.h.
55901         (main): Use NaNf instead of NAN.
55902         * modules/roundf-tests (Files): Add tests/nan.h.
55903
55904         * tests/test-truncf1.c: Include nan.h.
55905         (main): Use NaNf instead of NAN.
55906         * modules/truncf-tests (Files): Add tests/nan.h.
55907
55908         * tests/test-ceilf1.c: Include nan.h.
55909         (main): Use NaNf instead of NAN.
55910         * modules/ceilf-tests (Files): Add tests/nan.h.
55911
55912         * tests/test-floorf1.c: Include nan.h.
55913         (main): Use NaNf instead of NAN.
55914         * modules/floorf-tests (Files): Add tests/nan.h.
55915
55916         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
55917         (main): Use NaNf instead of NAN.
55918         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
55919
55920         * tests/test-isnand.c: Include nan.h instead of <math.h>.
55921         (main): Use NaNd instead of NAN.
55922         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
55923
55924         * tests/test-frexp.c: Include nan.h.
55925         (main): Use NaNd instead of NAN.
55926         * modules/frexp-tests (Files): Add tests/nan.h.
55927
55928         * lib/isnan.c: Don't include <math.h>.
55929         (FUNC): Don't use NAN macro.
55930         * modules/isnand-nolibm (Depends-on): Remove math.
55931         * modules/isnanf-nolibm (Depends-on): Remove math.
55932         * modules/isnanl (Depends-on): Remove math.
55933         * modules/isnanl-nolibm (Depends-on): Remove math.
55934
55935         * tests/nan.h: New file.
55936
55937 2008-04-01  Eric Blake  <ebb9@byu.net>
55938
55939         Fix typos.
55940         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
55941         values to be the right type.
55942
55943         For now, cater to gnulib strtod inaccuracies.
55944         * tests/test-strtod.c (main): Allow 1-ulp error on expected
55945         fractional results.  While not as nice from a QoI perspective, it
55946         is a quicker patch than correctly implementing decimal to binary
55947         rounding.
55948
55949 2008-03-31  Eric Blake  <ebb9@byu.net>
55950
55951         Guarantee a definition of NAN.
55952         * lib/math.in.h (NAN): Define if missing.
55953         * tests/test-math.c (main): Test it.
55954         * doc/posix-headers/math.texi (math.h): Document this.
55955         * lib/isnan.c (rpl_isnand): Use it.
55956         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
55957         * tests/test-floorf1.c (NaN): Likewise.
55958         * tests/test-frexp.c (NaN): Likewise.
55959         * tests/test-isnand.c (NaN): Likewise.
55960         * tests/test-isnanf.c (NaN): Likewise.
55961         * tests/test-round1.c (NaN): Likewise.
55962         * tests/test-roundf1.c (NaN): Likewise.
55963         * tests/test-snprintf-posix.h (NaN): Likewise.
55964         * tests/test-sprintf-posix.h (NaN): Likewise.
55965         * tests/test-trunc1.c (NaN): Likewise.
55966         * tests/test-truncf1.c (NaN): Likewise.
55967         * tests/test-vasnprintf-posix.c (NaN): Likewise.
55968         * tests/test-vasprintf-posix.c (NaN): Likewise.
55969         * modules/isnand-nolibm (Depends-on): Add math.
55970         * modules/isnanf-nolibm (Depends-on): Likewise.
55971         * modules/isnanl (Depends-on): Likewise.
55972         * modules/isnanl-nolibm (Depends-on): Likewise.
55973         * modules/snprintf-posix-tests (Depends-on): Likewise.
55974         * modules/sprintf-posix-tests (Depends-on): Likewise.
55975         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
55976         * modules/vsprintf-posix-tests (Depends-on): Likewise.
55977         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
55978         * modules/vasprintf-posix-tests (Depends-on): Likewise.
55979
55980 2008-03-31  Bruno Haible  <bruno@clisp.org>
55981
55982         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
55983         * doc/posix-functions/strtod.texi: Likewise.
55984
55985 2008-03-31  Bruno Haible  <bruno@clisp.org>
55986
55987         * tests/test-strtod.c (main): Don't use C99 syntax.
55988
55989 2008-03-31  Bruno Haible  <bruno@clisp.org>
55990
55991         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
55992         Reported by Eric Blake.
55993
55994 2008-03-31  Jim Meyering  <meyering@redhat.com>
55995
55996         Don't compare actual signbit return values.
55997         * tests/test-strtod.c (main): Rather, compare only their
55998         zero/non-zero nature.
55999
56000 2008-03-31  Eric Blake  <ebb9@byu.net>
56001
56002         More strtod documentation.
56003         * doc/posix-functions/strtod.texi (strtod): Interpret more test
56004         failures as distinct bugs.
56005
56006 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56007
56008         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
56009         Problem reported by Erik Benada in
56010         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
56011
56012 2008-03-30  Bruno Haible  <bruno@clisp.org>
56013
56014         * tests/test-strtod.c: Add comments about which assertion fails on which
56015         platform.
56016         * doc/posix-functions/strtod.texi: Add info about many more platforms.
56017
56018 2008-03-30  Eric Blake  <ebb9@byu.net>
56019
56020         Test signbit behavior on zeros.
56021         * tests/test-signbit.c (test_signbitf): Add tests for zero.
56022         (test_signbitd, test_signbitl): Likewise.
56023
56024         More strtod touchups.
56025         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
56026         sign of negative underflow, for now.  Use .5, not .1.
56027         * doc/posix-functions/strtod.texi (strtod): Mention these
56028         limitations.
56029         Reported by Jim Meyering.
56030
56031 2008-03-30  Bruno Haible  <bruno@clisp.org>
56032
56033         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
56034         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
56035
56036 2008-03-30  Bruno Haible  <bruno@clisp.org>
56037
56038         Avoid failure when attempting to return empty iconv results on some
56039         platforms.
56040         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
56041         allocation, don't report ENOMEM when the resulting string is empty.
56042
56043 2008-03-30  Bruno Haible  <bruno@clisp.org>
56044
56045         Fix buffer overrun.
56046         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
56047         Don't consider the width for tmp_length. Check count against tmp_length
56048         before doing the padding. Ensure enough allocation during padding.
56049
56050 2008-03-30  Eric Blake  <ebb9@byu.net>
56051
56052         strtod touchups.
56053         * lib/strtod.c (strtod): Avoid compiler warnings.
56054         Reported by Jim Meyering.
56055
56056 2008-03-30  Bruno Haible  <bruno@clisp.org>
56057
56058         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
56059         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
56060         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
56061         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
56062         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
56063         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
56064         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
56065         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
56066
56067         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
56068         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
56069         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
56070         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
56071         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
56072         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
56073         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
56074         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
56075
56076         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
56077         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
56078         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
56079         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
56080         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
56081         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
56082         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
56083         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
56084
56085         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
56086         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
56087
56088         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
56089         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
56090
56091         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
56092         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
56093
56094         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
56095         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
56096         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
56097
56098         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
56099         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
56100         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
56101
56102         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
56103         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
56104         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
56105
56106         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
56107         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
56108         * modules/vasprintf (Depends-on): Add EOVERFLOW.
56109
56110         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
56111         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
56112         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
56113         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
56114         (Depends-on): Add EOVERFLOW.
56115         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
56116         (Depends-on): Add EOVERFLOW.
56117         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56118         (Depends-on): Add EOVERFLOW.
56119         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56120         (Depends-on): Add EOVERFLOW.
56121         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56122         (Depends-on): Add EOVERFLOW.
56123         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56124         (Depends-on): Add EOVERFLOW.
56125         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56126         (Depends-on): Add EOVERFLOW.
56127         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56128         (Depends-on): Add EOVERFLOW.
56129
56130         * lib/sprintf.c (EOVERFLOW): Remove fallback.
56131         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
56132         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
56133
56134         * lib/snprintf.c (EOVERFLOW): Remove fallback.
56135         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
56136         * modules/snprintf (Depends-on): Add EOVERFLOW.
56137
56138         * lib/poll.c (EOVERFLOW): Remove fallback.
56139         * modules/poll (Depends-on): Add EOVERFLOW.
56140
56141         * lib/getugroups.c (EOVERFLOW): Remove fallback.
56142         * modules/getugroups (Depends-on): Add EOVERFLOW.
56143
56144         * lib/getdelim.c (EOVERFLOW): Remove fallback.
56145         * modules/getdelim (Depends-on): Add EOVERFLOW.
56146
56147         * lib/ftell.c (EOVERFLOW): Remove fallback.
56148         * modules/ftell (Depends-on): Add EOVERFLOW.
56149
56150         * lib/fprintf.c (EOVERFLOW): Remove fallback.
56151         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
56152         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
56153
56154         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
56155
56156         * modules/EOVERFLOW-tests: New file.
56157         * tests/test-EOVERFLOW.c: New file.
56158
56159         * modules/EOVERFLOW: New file.
56160         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
56161
56162 2008-03-30  Bruno Haible  <bruno@clisp.org>
56163
56164         Fix bug introduced on 2007-06-10.
56165         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
56166         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
56167
56168 2008-03-30  Bruno Haible  <bruno@clisp.org>
56169
56170         Improve freadseek's efficiency after ungetc.
56171         * lib/freadseek.c: Include freadahead.h.
56172         (freadptrinc): New function, extracted from freadseek.
56173         (freadseek): Use it in a loop. Use freadahead to determine the number
56174         of loop iterations.
56175         * modules/freadseek (Depends-on): Add freadahead.
56176         (configure.ac): Require AC_C_INLINE.
56177
56178 2008-03-30  Bruno Haible  <bruno@clisp.org>
56179
56180         * lib/freadseek.c (freadseek): Don't ignore the return value of
56181         freadptr.
56182
56183 2008-03-29  Eric Blake  <ebb9@byu.net>
56184
56185         Add hex float support.
56186         * modules/strtod (Depends-on): Add c-ctype.
56187         (Link): Mention POW_LIB.
56188         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
56189         whitespace between 'e' and exponent.
56190         * tests/test-strtod.c (main): Enable hex float tests.
56191         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
56192         now provides.
56193
56194         Document various strtod bugs, with some fixes.
56195         * doc/posix-functions/strtod.texi (strtod): Document bugs with
56196         "-0x", "inf", "nan", and hex constants.
56197         * doc/posix-functions/atof.texi (atof): Likewise.
56198         * modules/stdlib (Makefile.am): Support strtod.
56199         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
56200         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
56201         detect additional strtod bugs.
56202         * lib/stdlib.in.h (rpl_strtod): Add declarations.
56203         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
56204         bool where appropriate.  Parse 'inf' and 'nan'.
56205         * tests/test-strtod.c: New file.
56206         * modules/strtod (Depends-on): Add stdbool, stdlib.
56207         (configure.ac): Turn on module indicator.
56208         * modules/strtod-tests: New module.
56209
56210 2008-03-29  Eric Blake  <ebb9@byu.net>
56211
56212         Fix ftell on mingw.
56213         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
56214         * modules/ftell-tests (Depends-on): Add binary-io.
56215         * modules/ftello-tests (Depends-on): Likewise.
56216         * tests/test-ftell.c (main): Enhance test to cover behavior after
56217         ungetc.  Enforce binary mode.
56218         * tests/test-ftello.c (main): Likewise.
56219
56220         Pass test-freadseek on cygwin.
56221         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
56222         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
56223         ungetc buffer.
56224
56225         * tests/test-fflush2.c (main): Fix typo.
56226
56227 2008-03-29  Bruno Haible  <bruno@clisp.org>
56228
56229         * tests/test-fflush2.c (main): Temporarily disable the contents of
56230         this test.
56231         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
56232         Reported by Eric Blake.
56233
56234 2008-03-28  Simon Josefsson  <simon@josefsson.org>
56235
56236         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
56237         (GC_SHA224_DIGEST_SIZE): Add.
56238
56239         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
56240         (gc_hash_digest_length): Likewise.
56241         (gc_hash_buffer): Likewise.
56242
56243 2008-03-25  Bruno Haible  <bruno@clisp.org>
56244
56245         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
56246         detail which gettext release to use.
56247         Reported by Simon Josefsson.
56248
56249 2008-03-26  Jim Meyering  <meyering@redhat.com>
56250
56251         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
56252         * modules/gnumakefile (clean-GNUmakefile): Also, use
56253         test ... && ... || : syntax rather than if-then ... fi.
56254
56255         gnumakefile: Don't double-quote-expand $(VPATH) value.
56256         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
56257
56258 2008-03-24  Eric Blake  <ebb9@byu.net>
56259
56260         Alter GNUmakefile to install into top directory.
56261         * modules/maintainer-makefile: Split, and add dependency...
56262         * modules/gnumakefile: to this new module.
56263         * build-aux/GNUmakefile: Move...
56264         * top/GNUmakefile: ...here.
56265         * build-aux/maint.mk: Move...
56266         * top/maint.mk: ...here.
56267         * MODULES.html.sh (Support for maintaining...): Document new
56268         module.
56269
56270 2008-03-23  Bruno Haible  <bruno@clisp.org>
56271
56272         * gnulib-tool: New options --vc-files, --no-vc-files.
56273         (func_usage): Document them.
56274         (vc_files): New variable.
56275         (func_import): Consider vc_files.
56276         (func_create_testdir): Set vc_files to empty.
56277         Suggested by Jim Meyering and Karl Berry.
56278
56279 2008-03-23  Bruno Haible  <bruno@clisp.org>
56280
56281         Fix regex compilation error on HP-UX 11.
56282         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
56283         * modules/regex (Files): Add m4/mbstate_t.m4.
56284         Reported by Ton Voon <ton.voon@altinity.com>.
56285
56286 2008-03-23  Bruno Haible  <bruno@clisp.org>
56287
56288         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
56289
56290 2008-03-23  Eric Blake  <ebb9@byu.net>
56291             Bruno Haible  <bruno@clisp.org>
56292
56293         Install files from top/ in the destination directory.
56294         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56295         augmentation also for the files from top/.
56296         (func_import, func_create_testdir): Rewrite file names:
56297         top/filename -> filename.
56298
56299 2008-03-23  Bruno Haible  <bruno@clisp.org>
56300
56301         Tweak "gnulib --version" output.
56302         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
56303
56304 2008-03-23  Bruno Haible  <bruno@clisp.org>
56305
56306         Tweak "gnulib --version" output.
56307         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
56308         rather than contents of ChangeLog, when possible.
56309
56310 2008-03-21  Eric Blake  <ebb9@byu.net>
56311
56312         More --version tweaks.
56313         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
56314         date of last ChangeLog entry.
56315
56316 2008-03-21  Jim Meyering  <meyering@redhat.com>
56317
56318         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
56319
56320 2008-03-20  Eric Blake  <ebb9@byu.net>
56321
56322         VPATH fix.
56323         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
56324
56325 2008-03-20  Simon Josefsson  <simon@josefsson.org>
56326
56327         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
56328         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
56329
56330 2008-03-20  Eric Blake  <ebb9@byu.net>
56331
56332         Sync GNUmakefile with coreutils.
56333         * build-aux/GNUmakefile (have-Makefile): Rename...
56334         (_have-Makefile): ...to this, for namespace consideration.
56335         (GNUmakefile.cfg): Include, if present.
56336         (_autoreconf): Define a default.
56337         (_is-dist-target): New rule for rebuilds to pick up intra-release
56338         version.
56339         (maint-cfg.mk): Rename...
56340         (cfg.mk): ...to this.
56341
56342 2008-03-18  Jim Meyering  <meyering@redhat.com>
56343
56344         New script and module: mktempd
56345         * MODULES.html.sh (maint+release support): Add mktempd.
56346         * build-aux/mktempd: New file.
56347         * modules/mktempd: New file.
56348
56349 2008-03-15  Jim Meyering  <meyering@redhat.com>
56350
56351         Undo last change.
56352         * lib/sha1.c, lib/md5.c: 63 != ~63.
56353         Reported by Andreas Schwab.
56354
56355         sha1.c, md5.c: Hoist a redundant expression.
56356         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
56357         "ctx->buflen" only once, before calling *_process_block.
56358         * lib/md5.c (md5_process_bytes): Likewise.
56359
56360 2008-03-14  Eric Blake  <ebb9@byu.net>
56361
56362         Bump copyright year in files generated by gnulib-tool.
56363         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
56364         gnulib-tool, rather than hard-coding it.
56365
56366         Fix 'gnulib-tool --version' output to work with git.
56367         * gnulib-tool (func_gnulib_dir): New function, extracted from...
56368         (startup): ...here.
56369         (func_version): Use it to invoke git-version-gen, rather than
56370         relying on CVS keyword expansion.  Modernize wording.
56371         (cvsdatestamp, last_checkin_date, version): Kill unused
56372         variables.
56373
56374 2008-03-12  Jim Meyering  <meyering@redhat.com>
56375
56376         Recognize optional cast of the argument to free.
56377         * build-aux/useless-if-before-free: Update regexps.
56378
56379         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
56380
56381 2008-03-11  Bruno Haible  <bruno@clisp.org>
56382
56383         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
56384         by a single package.
56385         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
56386         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
56387         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
56388         Reported by Sam Steingold <sds@gnu.org>.
56389
56390 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56391
56392         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
56393         repositories.
56394
56395 2008-03-11  Bruno Haible  <bruno@clisp.org>
56396
56397         Avoid conflicts between local macro definitions.
56398         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56399         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
56400
56401 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
56402             Bruno Haible  <bruno@clisp.org>
56403
56404         Make va_copy work with some version of xlc on AIX 5.1.
56405         * lib/stdarg.in.h: New file.
56406         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
56407         On AIX, use a <stdarg.h> file substitute.
56408         * modules/stdarg (Files): Add lib/stdarg.in.h.
56409         (Depends-on): Add include_next.
56410         (Makefile.am): Build a stdarg.h substitute if requested.
56411         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
56412
56413 2008-03-10  Bruno Haible  <bruno@clisp.org>
56414
56415         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
56416         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56417         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56418
56419 2008-03-10  Bruno Haible  <bruno@clisp.org>
56420
56421         * modules/stdlib (Depends-on): Add include_next, remove
56422         absolute-header.
56423
56424 2008-03-09  Bruno Haible  <bruno@clisp.org>
56425
56426         * lib/freadahead.h (freadahead): Document more precisely.
56427         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
56428         the sum of both buffer sizes.
56429         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
56430         * NEWS: Document the change.
56431
56432 2008-03-09  Bruno Haible  <bruno@clisp.org>
56433
56434         Extend freadptr to return also the buffer size.
56435         * lib/freadptr.h (freadptr): Add sizep argument.
56436         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
56437         (freadptr): Add sizep argument. Determine buffer size like freadahead
56438         does.
56439         * tests/test-freadptr.c: Don't include freadahead.h.
56440         (main): Adapt for new calling convention of freadptr.
56441         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
56442         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
56443         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
56444         tests/test-freadptr2.sh.
56445         (Depends): Remove freadahead.
56446         (TESTS): Add test-freadptr2.sh.
56447         (check_PROGRAMS): Add test-freadptr2.
56448
56449 2008-03-09  Bruno Haible  <bruno@clisp.org>
56450
56451         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
56452         Report and solution by Simon Josefsson.
56453
56454 2008-03-06  Bruno Haible  <bruno@clisp.org>
56455
56456         Make fflush after ungetc work on BSD platforms.
56457         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
56458         * tests/test-fflush2.c: New file.
56459         * tests/test-fflush2.sh: New file.
56460         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
56461         tests/test-fflush2.c.
56462         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
56463         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
56464
56465 2008-03-06  Eric Blake  <ebb9@byu.net>
56466
56467         Likewise for ftello.
56468         * modules/ftello (Dependencies): Add extensions.
56469         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
56470
56471 2008-03-06  Bruno Haible  <bruno@clisp.org>
56472
56473         * modules/fseeko (Dependencies): Add extensions.
56474         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
56475         Needed on glibc systems.
56476
56477 2008-03-06  Bruno Haible  <bruno@clisp.org>
56478
56479         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
56480         email address.
56481         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56482
56483 2008-03-06  Bruno Haible  <bruno@clisp.org>
56484
56485         * users.txt: Add libgnupdf.
56486
56487 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56488
56489         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
56490         (Header File Substitutes, Function Substitutes,
56491         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
56492         (Build robot for gnulib): Fix typo.
56493
56494 2008-03-06  Bruno Haible  <bruno@clisp.org>
56495
56496         * doc/gnulib-tool.texi (VCS Issues): Small updates.
56497         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56498
56499 2008-03-06  Bruno Haible  <bruno@clisp.org>
56500
56501         * doc/func.texi: New file, extracted from doc/gnulib.texi.
56502         * doc/gnulib.texi: Include it.
56503
56504 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56505
56506         * modules/func (License): Change license to unlimited; there was
56507         no LGPL parts in the module anyway.
56508
56509 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56510
56511         * modules/__func__: Renamed to modules/func.
56512         * modules/__func__-tests: Renamed to modules/func-tests.
56513         * tests/test-__func__.c: Renamed to tests/test-func.c.
56514         * m4/__func__.m4: Renamed to m4/func.m4.
56515         * doc/gnulib.texi (__func__): Section renamed to func.
56516         Suggested by Eric Blake <ebb9@byu.net>.
56517
56518 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56519
56520         * doc/gnulib.texi (__func__): Use C99 terminology when talking
56521         about __func__.  Make example self-contained.  Suggested by Eric
56522         Blake <ebb9@byu.net>.
56523
56524         * tests/test-__func__.c (main): Avoid extraneous () around __func.
56525         Suggested by Eric Blake <ebb9@byu.net>.
56526
56527 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56528
56529         * modules/__func__: New file.
56530         * modules/__func__-tests: New file.
56531         * tests/test-__func__.c: New file.
56532         * m4/__func__.m4: New file.
56533         * doc/gnulib.texi (__func__): Document __func__ module.
56534
56535 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56536
56537         * modules/byteswap (License): Re-license as LGPLv2+.
56538
56539 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56540
56541         * doc/Makefile: Add pdf target.
56542
56543 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56544
56545         * modules/inline (License): Use 'unlimited', since there are only
56546         *.m4 files in this module.
56547
56548 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56549             Bruno Haible  <bruno@clisp.org>
56550
56551         Add support for HP C 7.1 on OpenVMS 8.3.
56552         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
56553
56554 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56555
56556         Update VMS specifics.
56557         * lib/getopt.c [VMS]: Remove include of unixlib.h.
56558
56559 2008-03-02  Jim Meyering  <meyering@redhat.com>
56560
56561         Remove the last dependency on the "free" module.
56562         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
56563         Reported by Bob Proulx.
56564
56565         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
56566
56567         Remove useless "if" tests before free.  Deprecate "free" module.
56568         * doc/posix-functions/free.texi: Mention that this
56569         module is no longer useful.
56570         * modules/free (Notice): Say this module is obsolete.
56571         * modules/readutmp (Depends-on): Remove free.
56572         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
56573         * lib/putenv.c (putenv): Likewise.
56574         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
56575         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
56576         * tests/test-c-strcasestr.c (main): Likewise.
56577         * tests/test-c-strstr.c (main): Likewise.
56578         * tests/test-mbscasestr1.c (main): Likewise.
56579         * tests/test-mbscasestr2.c (main): Likewise.
56580         * tests/test-mbsstr1.c (main): Likewise.
56581         * tests/test-mbsstr2.c (main): Likewise.
56582         * tests/test-memmem.c (main): Likewise.
56583         * tests/test-strcasestr.c (main): Likewise.
56584         * tests/test-striconv.c (main): Likewise.
56585         * tests/test-striconveh.c (main): Likewise.
56586         * tests/test-striconveha.c (main): Likewise.
56587         * tests/test-strstr.c (main): Likewise.
56588
56589         * build-aux/git-version-gen: Adjust a comment and the Usage string.
56590
56591         bootstrap: sync from coreutils again
56592         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
56593
56594 2008-03-01  Jim Meyering  <meyering@redhat.com>
56595
56596         bootstrap: sync from coreutils
56597         * build-aux/bootstrap (update_po_files): Copy a .po file into place
56598         also when the target doesn't exist.
56599
56600 2008-03-01  Eric Blake  <ebb9@byu.net>
56601
56602         Fix bugs in last patch.
56603         * lib/memchr2.c (memchr2): Fix typo.
56604         * tests/test-memchr2.c: Test previous bug, and don't use GNU
56605         extension.
56606         Reported by Bruce Korb.
56607
56608         New module 'memchr2'.
56609         * modules/memchr2: New file.
56610         * modules/memchr2-tests: Likewise.
56611         * lib/memchr2.h: Likewise.
56612         * lib/memchr2.c: Likewise, based on memchr.c.
56613         * tests/test-memchr2.c: New test.
56614         * MODULES.html.sh (String handling): Add memchr2.
56615
56616 2008-02-29  Bruno Haible  <bruno@clisp.org>
56617
56618         * modules/freadseek-tests: New file.
56619         * tests/test-freadseek.sh: New file.
56620         * tests/test-freadseek.c: New file.
56621
56622         New module 'freadseek'.
56623         * modules/freadseek: New file.
56624         * lib/freadseek.h: New file.
56625         * lib/freadseek.c: New file.
56626         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
56627
56628 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56629
56630         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
56631         wydawca.
56632
56633         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
56634         program_invocation_name and program_invocation_short_name are
56635         present.
56636
56637 2008-02-28  Bruno Haible  <bruno@clisp.org>
56638
56639         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
56640         * tests/test-freadptr.sh: Also test non-seekable stdin.
56641
56642 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
56643
56644         * build-aux/bootstrap (source_base, m4_base)
56645         (doc_base, tests_base): New variables.
56646         (gnulib_tool_options): Do not hardcode base directories, use
56647         the above variables instead.
56648
56649 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
56650
56651         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
56652
56653 2008-02-28  Bruno Haible  <bruno@clisp.org>
56654
56655         * modules/freadptr-tests: New file.
56656         * tests/test-freadptr.sh: New file.
56657         * tests/test-freadptr.c: New file.
56658
56659         New module 'freadptr'.
56660         * modules/freadptr: New file.
56661         * lib/freadptr.h: New file.
56662         * lib/freadptr.c: New file.
56663         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
56664
56665 2008-02-26  Karl Berry  <karl@freefriends.org>
56666
56667         Sync from Libtool:
56668         * libltdl/argz.c (argz_add, argz_count): New functions.
56669         * libltdl/argz.in.h: Declare them.
56670         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
56671
56672 2008-02-22  Bruno Haible  <bruno@clisp.org>
56673
56674         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
56675         is a pointer type.  Needed for HP-UX 10.
56676         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
56677         * doc/posix-functions/gmtime_r.texi: Likewise.
56678         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56679
56680 2008-02-24  Bruno Haible  <bruno@clisp.org>
56681
56682         * modules/environ-tests: New file.
56683         * tests/test-environ.c: New file.
56684
56685         New module 'environ'.
56686         * modules/environ: New file.
56687         * lib/unistd.in.h (environ): New declaration.
56688         * m4/environ.m4: New file.
56689         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
56690         after use.
56691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
56692         HAVE_DECL_ENVIRON.
56693         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
56694         HAVE_DECL_ENVIRON.
56695         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
56696         wrong claim that 'environ' is missing on some systems.
56697         * modules/execute (Depends-on): Add environ.
56698         * lib/execute.c (environ): Remove fallback declaration.
56699         * modules/pipe (Depends-on): Add environ.
56700         * lib/pipe.c (environ): Remove fallback declaration.
56701         * modules/setenv (Depends-on): Add environ.
56702         * lib/setenv.c (environ): Remove fallback declaration.
56703         * modules/unsetenv (Depends-on): Add environ.
56704         * lib/unsetenv.c (environ): Remove fallback declaration.
56705         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
56706         m4/environ.m4.
56707         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
56708         (gl_PREREQ_UNSETENV): Likewise.
56709
56710 2008-02-24  Bruno Haible  <bruno@clisp.org>
56711
56712         * doc/posix-functions/environ.texi: Document the MacOS X problem.
56713
56714 2008-02-20  Bob Proulx  <bob@proulx.com>
56715
56716         Enable use of older two part flavor 'git describe'.
56717         * build-aux/git-version-gen: If using the older two part flavor of
56718         git version then recreate the third part now present in the
56719         newer three part flavor of git describe.
56720
56721 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
56722
56723         * lib/fts.c (fts_build): Typo correction to comment.
56724
56725 2008-02-17  Bruno Haible  <bruno@clisp.org>
56726
56727         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
56728         generating no-op conflicts.
56729
56730 2008-02-17  Bruno Haible  <bruno@clisp.org>
56731
56732         Speed up by 10%.
56733         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
56734         result_entries, rather than an index-based loop.
56735
56736 2008-02-17  Bruno Haible  <bruno@clisp.org>
56737
56738         Speed up by 25%.
56739         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
56740         'hashcode_cached'.
56741         (entry_create): New function.
56742         (entry_hashcode): Use the cached hashcode if possible.
56743         (read_changelog_file, try_split_merged_entry): Use entry_create.
56744
56745 2008-02-17  Bruno Haible  <bruno@clisp.org>
56746
56747         Speed up from O(n^2) to O(n) for long ChangeLog files.
56748         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
56749         (read_changelog_file): Change implementation of entries_reversed list
56750         to rbtreehash.
56751         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
56752
56753 2008-02-17  Bruno Haible  <bruno@clisp.org>
56754
56755         New option --split-merged-entry.
56756         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
56757         (find_paragraph_end, try_split_merged_entry): New functions.
56758         (long_options): Add option --split-merged-entry.
56759         (usage): Document option --split-merged-entry.
56760         (main): Implement option --split-merged-entry.
56761         Reported by Eric Blake.
56762
56763 2008-02-17  Bruno Haible  <bruno@clisp.org>
56764
56765         * lib/git-merge-changelog.c: Include c-strstr.h.
56766         (main): Support the "git pull --rebase" situation.
56767         * modules/git-merge-changelog (Depends-on): Add c-strstr.
56768         Reported by Eric Blake.
56769
56770 2008-02-16  Eric Blake  <ebb9@byu.net>
56771
56772         Avoid doubling \ in common case of "c-maybe" quoting style.
56773         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
56774         eliding outer quotes.
56775         * lib/quotearg.h: Document this.
56776         * tests/test-quotearg.c (result_strings, inputs, results_g)
56777         (flag_results, locale_results): Test it by adding a new string to
56778         each test group.
56779         (compare_strings): Test new string.
56780
56781 2008-02-13  Eric Blake  <ebb9@byu.net>
56782
56783         Avoid trigraph quoting in default output.
56784         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
56785         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
56786         unless explicitly requested.
56787         * tests/test-quotearg.c (flag_results, main): Add additional tests.
56788
56789 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
56790
56791         Don't rely on signed integer overflowing to negative value.
56792         * lib/getugroups.c (getugroups): Include <limits.h>.
56793         Instead, compare against INT_MAX, and increment only if the test passes.
56794
56795 2008-02-13  Jim Meyering  <meyering@redhat.com>
56796         and Eric Blake  <ebb9@byu.net>
56797
56798         Avoid shadowing warning and compile errors on Linux.
56799         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
56800         forwarding macros on Linux.
56801         (dcgettext): Define a stub, for Linux.
56802         (results_g, main): Avoid warnings.
56803
56804 2008-02-12  Eric Blake  <ebb9@byu.net>
56805
56806         Silence warning in last patch.
56807         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
56808
56809         Quotearg part 4: add tests, fix c-maybe colon quoting.
56810         * lib/quotearg.h: Improve documentation.
56811         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
56812         escapes when adding outer quotes.  When quoting trigraphs, use
56813         valid C notation.  When quoting NUL, omit extra characters if next
56814         character is not digit.  Alter prototype.
56815         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
56816         callers.
56817         * modules/quotearg-tests: New module.
56818         * tests/test-quotearg.c: New test.
56819
56820 2008-02-07  Eric Blake  <ebb9@byu.net>
56821
56822         Quotearg part 3: add flag to control outer quote elision.
56823         * lib/quotearg.h (c_maybe_quoting_style): New style.
56824         (enum quoting_flags): Better documentation of flags.
56825         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
56826         c-maybe style.
56827         (quotearg_buffer_restyled): Handle new flag to elide outer
56828         quotes.
56829
56830         Quotearg part 2: add flag that can control NUL elision.
56831         * lib/quotearg.h (set_quoting_flags): New prototype.
56832         * lib/quotearg.c (struct quoting_options): Add flag field.
56833         (set_quoting_flags): New function.
56834         (quotearg_buffer_restyled): Add flags parameter.
56835         (quotearg_alloc_mem): Set the flag if length cannot be returned.
56836         (quotearg_n_options): Set the flag, since length cannot be
56837         returned.
56838         (quoting_options_from_style): Default flags correctly.
56839
56840         Quotearg part 1: more wrappers, restore quotearg_char state.
56841         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
56842         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
56843         (quotearg_colon_mem): New wrappers.
56844         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
56845         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
56846         functions.
56847         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
56848         (quotearg_colon_mem): New functions.
56849
56850 2008-02-11  Bruno Haible  <bruno@clisp.org>
56851
56852         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
56853         library in the current directory: it does not work with parallel make.
56854         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56855
56856 2008-02-11  Bruno Haible  <bruno@clisp.org>
56857
56858         * .gitattributes: New file.
56859
56860 2008-02-11  Jim Meyering  <meyering@redhat.com>
56861
56862         useless-if-before-free: Fix reversed exit values.
56863         * build-aux/useless-if-before-free: Use correct values
56864         for EXIT_MATCH and EXIT_NO_MATCH.
56865
56866         * build-aux/useless-if-before-free: Close stdout carefully.
56867
56868 2008-02-10  Bruno Haible  <bruno@clisp.org>
56869
56870         New module 'git-merge-changelog'.
56871         * modules/git-merge-changelog: New file.
56872         * lib/git-merge-changelog.c: New file.
56873
56874 2008-02-10  Jim Meyering  <meyering@redhat.com>
56875
56876         useless-if-before-free: New option: --list (-l).
56877
56878         useless-if-before-free: Don't exit immediately upon open failure.
56879         * build-aux/useless-if-before-free: Exit 2 for errors.
56880         Upon failure to open a file, don't exit immediately.
56881         Rather, just warn and continue with any remaining files.
56882
56883 2008-02-10  Bruno Haible  <bruno@clisp.org>
56884
56885         New abstract list operation 'node_set_value'.
56886         * lib/gl_list.h (gl_list_node_set_value): New function.
56887         (struct gl_list_implementation): New field node_set_value.
56888         * lib/gl_list.c (gl_list_node_set_value): New function.
56889         * lib/gl_array_list.c (gl_array_node_set_value): New function.
56890         (gl_array_list_implementation): Update.
56891         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
56892         (gl_carray_list_implementation): Update.
56893         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
56894         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
56895         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
56896         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
56897         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
56898         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
56899         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
56900         Update.
56901         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
56902         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
56903         (gl_sublist_list_implementation): Update.
56904
56905 2008-02-10  Bruno Haible  <bruno@clisp.org>
56906
56907         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
56908         Needed when ELEMENT is #defined to 'some_type *'.
56909
56910 2008-02-10  Jim Meyering  <meyering@redhat.com>
56911
56912         New script and module: useless-if-before-free
56913         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
56914         * build-aux/useless-if-before-free: New file.
56915         * modules/useless-if-before-free: New file.
56916
56917         * build-aux/gitlog-to-changelog: Use committer date, not author date.
56918
56919         xstrtol_error: Fix typo.
56920         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
56921         s/exit_failure/exit_status/.
56922
56923 2008-02-09  Jim Meyering  <meyering@redhat.com>
56924
56925         New script and module: gitlog-to-changelog
56926         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
56927         * modules/gitlog-to-changelog: New file.
56928         * build-aux/gitlog-to-changelog: New file.
56929
56930 2008-02-08  Jim Meyering  <meyering@redhat.com>
56931
56932         Avoid two "parameter unused" warnings.
56933         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
56934         Mark "st" as used.
56935
56936         Use "git COMMAND", not "git-COMMAND".
56937         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
56938         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
56939         * build-aux/git-version-gen: Use "git status", not "git-status".
56940
56941 2008-02-07  Bruno Haible  <bruno@clisp.org>
56942
56943         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
56944         Avoids a crash on Windows Vista.
56945         Reported by Adam Strzelecki <ono@java.pl> via
56946         Simon Josefsson <simon@josefsson.org>.
56947
56948 2008-02-06  Bruno Haible  <bruno@clisp.org>
56949
56950         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
56951         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
56952         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
56953         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
56954         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56955         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56956         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
56957         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
56958         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56959         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56960         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56961         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56962         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56963         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56964         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56965         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
56966         left-adjust flag.
56967         * tests/test-snprintf-posix.h (test_function): Likewise.
56968         * tests/test-sprintf-posix.h (test_function): Likewise.
56969         * tests/test-vasprintf-posix.c (test_function): Likewise.
56970         * doc/posix-functions/fprintf.texi: Update.
56971         * doc/posix-functions/printf.texi: Update.
56972         * doc/posix-functions/snprintf.texi: Update.
56973         * doc/posix-functions/sprintf.texi: Update.
56974         * doc/posix-functions/vfprintf.texi: Update.
56975         * doc/posix-functions/vprintf.texi: Update.
56976         * doc/posix-functions/vsnprintf.texi: Update.
56977         * doc/posix-functions/vsprintf.texi: Update.
56978         Reported by Peter Fales <psfales@alcatel-lucent.com>.
56979
56980 2008-02-06  Bruno Haible  <bruno@clisp.org>
56981
56982         Fix bug introduced on 2008-01-26.
56983         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
56984
56985 2008-02-06  Bruno Haible  <bruno@clisp.org>
56986
56987         Fix bug introduced on 2007-06-10.
56988         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
56989         !NEED_PRINTF_FLAG_ZERO.
56990
56991 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
56992
56993         getloadavg: use libperfstat on AIX5
56994         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
56995
56996 2008-02-03  Bruno Haible  <bruno@clisp.org>
56997
56998         * lib/diffseq.h: Add comments about required #includes.
56999         Reported by Michael Biggs <gnulib@doubleplum.net>.
57000
57001 2008-02-01  Bruno Haible  <bruno@clisp.org>
57002
57003         * users.txt: Add gnuit.
57004
57005 2008-01-31  Bruno Haible  <bruno@clisp.org>
57006
57007         * lib/md4.c (set_uint32): Mark as inline.
57008         * lib/md5.c (set_uint32): Likewise.
57009         * lib/sha1.c (set_uint32): Likewise.
57010         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
57011         * m4/md5.m4 (gl_MD5): Likewise.
57012         * m4/sha1.m4 (gl_SHA1): Likewise.
57013
57014 2008-01-31  Jim Meyering  <meyering@redhat.com>
57015
57016         Use "sizeof VAR", rather than a literal "4".
57017         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
57018         * lib/md4.c (md4_read_ctx): Likewise.
57019         * lib/sha1.c (sha1_read_ctx): Likewise.
57020
57021 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57022
57023         * tests/test-sha1.c: New file, based on test-md5.c.
57024
57025         * modules/crypto/sha1-tests: New file.
57026
57027 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57028
57029         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
57030
57031 2008-01-31  Jim Meyering  <meyering@redhat.com>
57032
57033         Prefer "sizeof v" over the equivalent "4".
57034         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
57035         * lib/md5.c (set_uint32): Likewise.
57036         * lib/sha1.c (set_uint32): Likewise.
57037
57038 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57039
57040         * lib/sha1.c (set_uint32): Mark function as static.
57041
57042 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57043
57044         md2: clarify comments to say that alignment is not required.
57045         * lib/md2.h: Remove warning about alignment in comment.
57046         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
57047         never been required.
57048
57049 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57050
57051         md4: adapt alignment constraint fix from sha1.
57052         * lib/md4.c (set_uint32): New function, from sha1.c
57053         (md4_read_ctx): Use it.
57054         (md4_finish_ctx): Doc fix.
57055         * lib/md4.h: Doc fix.
57056
57057 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57058
57059         md5: adapt alignment constraint fix from sha1.
57060         * lib/md5.c (set_uint32): New function, from sha1.c
57061         (md5_read_ctx): Use it.
57062         (md5_finish_ctx): Doc fix.
57063         * lib/md5.h: Doc fix.
57064
57065 2008-01-30  Peter Palfrader  <weasel@debian.org>
57066
57067         sha1: remove the result buffer alignment constraint
57068         * lib/sha1.c (set_uint32): New function.
57069         (sha1_read_ctx): Rewrite to remove the result buffer alignment
57070         constraint.
57071         (sha1_finish_ctx): Remove comment warning about alignment constraint.
57072         * lib/sha1.h: Likewise.
57073
57074 2008-01-30  Andreas Schwab  <schwab@suse.de>
57075             Bruno Haible  <bruno@clisp.org>
57076
57077         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
57078         correct definition of LDBL_MIN_EXP.
57079
57080 2008-01-30  Karl Berry  <karl@gnu.org>
57081
57082         * config/srclist-update: try to preserve x bit on updates.
57083         * config/srclistvars.sh: update for karl.
57084
57085 2008-01-29  Jim Meyering  <meyering@redhat.com>
57086
57087         vasnprintf.c: Avoid warning about unused label
57088         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
57089         "overflow" label definition and associated code with the
57090         same cpp condition that guards the sole use of that label.
57091
57092 2008-01-26  Bruno Haible  <bruno@clisp.org>
57093
57094         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
57095         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
57096         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
57097         * lib/isnanl-nolibm.h (isnanl): Likewise.
57098         Reported by Paul Eggert <eggert@cs.ucla.edu>.
57099
57100 2008-01-26  Bruno Haible  <bruno@clisp.org>
57101
57102         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
57103         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
57104
57105 2008-01-26  Bruno Haible  <bruno@clisp.org>
57106
57107         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
57108         GCC >= 4.0 built-in.
57109         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
57110
57111 2008-01-26  Bruno Haible  <bruno@clisp.org>
57112
57113         Rename isnan, applicable to 'double' only, to isnand.
57114         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
57115         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
57116         (configure.ac): Update.
57117         (Include): Replace "isnan.h" with "isnand.h".
57118         * m4/isnand.m4: Renamed from m4/isnan.m4.
57119         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
57120         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
57121         instead of isnan.c.
57122         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
57123         instead of HAVE_ISNAN_IN_LIBC.
57124         (isnand): Renamed from isnan.
57125         * lib/isnand.c: New file.
57126         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
57127         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
57128         (Makefile.am): Update.
57129         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
57130         Include isnand.h instead of isnan.h.
57131         (main): Test isnand instead of isnan.
57132         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
57133         isnan-nolibm.
57134         * modules/frexp (Depends-on): Likewise.
57135         * modules/frexp-tests (Depends-on): Likewise.
57136         * modules/frexp-nolibm (Depends-on): Likewise.
57137         * modules/frexp-nolibm-tests (Depends-on): Likewise.
57138         * modules/isfinite (Depends-on): Likewise.
57139         * modules/round-tests (Depends-on): Likewise.
57140         * modules/signbit (Depends-on): Likewise.
57141         * modules/signbit-tests (Depends-on): Likewise.
57142         * modules/snprintf-posix (Depends-on): Likewise.
57143         * modules/sprintf-posix (Depends-on): Likewise.
57144         * modules/trunc-tests (Depends-on): Likewise.
57145         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57146         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57147         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57148         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57149         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57150         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57151         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57152         * modules/vasnprintf-posix (Depends-on): Likewise.
57153         * modules/vasprintf-posix (Depends-on): Likewise.
57154         * modules/vfprintf-posix (Depends-on): Likewise.
57155         * modules/vsnprintf-posix (Depends-on): Likewise.
57156         * modules/vsprintf-posix (Depends-on): Likewise.
57157         * lib/frexp.c: Include isnand.h instead of isnan.h.
57158         (ISNAN): Set to isnand instead of isnan.
57159         * lib/isfinite.c: Include isnand.h instead of isnan.h.
57160         (gl_isfinited): Use isnand instead of isnan.
57161         * lib/signbitd.c: Include isnand.h instead of isnan.h.
57162         (gl_signbitd): Use isnand instead of isnan.
57163         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
57164         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
57165         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
57166         (main): Use isnand instead of isnan.
57167         * tests/test-round1.c: Include isnand.h.
57168         (main): Use isnand instead of isnan.
57169         * tests/test-round2.c: Include isnand.h instead of isnan.h.
57170         (ISNAN): Set to isnand instead of isnan.
57171         * tests/test-trunc1.c: Include isnand.h.
57172         (main): Use isnand instead of isnan.
57173         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
57174         (equal): Use isnand instead of isnan.
57175         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
57176         isnand-nolibm.
57177         * NEWS: Mention the change.
57178
57179 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
57180             Bruno Haible  <bruno@clisp.org>
57181
57182         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
57183         the GCC builtins for signbits are present and set
57184         REPLACE_SIGNBIT_USING_GCC if so.
57185         * lib/math.in.h (signbit): Define using GCC builtins if
57186         REPLACE_SIGNBIT_USING_GCC is set.
57187         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
57188         REPLACE_SIGNBIT_USING_GCC.
57189         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
57190
57191 2008-01-25  Jim Meyering  <meyering@redhat.com>
57192
57193         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
57194         * lib/poll.c: Include <config.h>, not "config.h".
57195         * tests/test-getaddrinfo.c: Likewise.
57196
57197 2008-01-25  Simon Josefsson  <simon@josefsson.org>
57198
57199         * modules/sockets-tests: New file.
57200
57201 2008-01-24  Simon Josefsson  <simon@josefsson.org>
57202
57203         * modules/sockets: New module, can be used to call WSA_Startup and
57204         WSA_Cleanup when needed.
57205
57206         * lib/sockets.h, lib/sockets.c: New files.
57207
57208         * m4/sockets.m4: New file.
57209
57210         * tests/test-sockets.c: New file.
57211
57212 2008-01-19  Bruno Haible  <bruno@clisp.org>
57213
57214         * doc/posix-headers: Renamed from doc/headers.
57215         * doc/posix-functions: Renamed from doc/functions.
57216         * doc/gnulib.texi: Update.
57217
57218 2008-01-19  Bruno Haible  <bruno@clisp.org>
57219
57220         * doc/glibc-functions/strcasestr.texi: Include contents of
57221         doc/functions/strcasestr.texi, fixing the list of platforms.
57222         * doc/functions/strcasestr.texi: Remove file.
57223
57224 2008-01-19  Bruno Haible  <bruno@clisp.org>
57225
57226         * doc/glibc-functions/memmem.texi: Include contents of
57227         doc/functions/memmem.texi.
57228         * doc/functions/memmem.texi: Remove file.
57229
57230 2008-01-18  Bruno Haible  <bruno@clisp.org>
57231
57232         * doc/glibc-functions/*.texi: New files.
57233         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
57234         to use the new files.
57235
57236 2008-01-17  Bruno Haible  <bruno@clisp.org>
57237
57238         * tests/test-gethostname.c (main): Fix printf statement.
57239
57240 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57241
57242         * modules/gethostname-tests: New file.
57243
57244         * tests/test-gethostname.c: New file.
57245
57246 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57247
57248         * lib/gethostname.c: Include string.h unconditionally, strncpy is
57249         used by the UNAME case.  Reported by Bruno Haible
57250         <bruno@clisp.org>.
57251
57252 2008-01-17  Eric Blake  <ebb9@byu.net>
57253
57254         Convert c-strcasestr to be more efficient.
57255         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
57256         (Depends-on): Add c-strcase, remove malloca, strnlen.
57257         * tests/test-c-strcasestr.c (main): Enhance test.
57258         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
57259
57260 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
57261
57262         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
57263         Use it in creating po/Makevars.
57264
57265 2008-01-15  Simon Josefsson  <simon@josefsson.org>
57266
57267         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
57268         Applications that requires it should initialize libgcrypt
57269         manually.
57270
57271 2008-01-16  Simon Josefsson  <simon@josefsson.org>
57272
57273         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
57274
57275 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
57276
57277         Fix problem with getdate on mingw32 reported by Simon Josefsson
57278         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
57279         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
57280         tzname", when deciding whether to declare tzname.
57281         * lib/strftime.c (tzname): Likewise.
57282
57283 2008-01-15  Bruno Haible  <bruno@clisp.org>
57284
57285         Work around a MacOS X 10.5 bug in frexpl().
57286         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
57287         * doc/functions/frexpl.texi: Document the bug.
57288         Reported by Elias Pipping <pipping@gentoo.org>.
57289
57290 2008-01-14  Eric Blake  <ebb9@byu.net>
57291
57292         Touch up previous patch.
57293         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
57294         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
57295
57296         Convert strcasestr module to use Two-Way algorithm.
57297         * modules/strcasestr-simple: New module, based on the old
57298         strcasestr, but with Two-Way rather than KMP.
57299         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
57300         * lib/string.in.h (rpl_strcasestr): Declare.
57301         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
57302         performance.
57303         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
57304         * modules/string (Makefile.am): Support strcasestr.
57305         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
57306         * modules/strcasestr-tests (Depends-on): Check for alarm.
57307         * tests/test-strcasestr.c: Augment test.
57308         * lib/str-two-way.h: Clean up stray macro.
57309         * NEWS: Document new module.
57310         * MODULES.html.sh (string handling): Likewise.
57311         * doc/functions/strcasestr.texi: New file.
57312         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
57313         here, since it is not a POSIX function.
57314
57315 2008-01-14  Colin Watson  <cjwatson@debian.org>
57316             Bruno Haible  <bruno@clisp.org>
57317
57318         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
57319         works fine; if not, set REPLACE_STRSIGNAL.
57320         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
57321         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57322         REPLACE_STRSIGNAL.
57323         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
57324         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
57325         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
57326
57327 2008-01-14  Bruno Haible  <bruno@clisp.org>
57328
57329         * modules/strsignal (Include): Change to <string.h>.
57330
57331 2008-01-14  Colin Watson  <cjwatson@debian.org>
57332
57333         * modules/argp (Notice): Add a notice recommending to change
57334         XGETTEXT_OPTIONS.
57335         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
57336
57337 2008-01-13  Colin Watson  <cjwatson@debian.org>
57338
57339         * modules/strsignal-tests: New file.
57340         * tests/test-strsignal.c: New file.
57341
57342         * lib/strsignal.c: New file, from glibc with modifications.
57343         * lib/siglist.h: New file, from glibc with modifications.
57344         * lib/string.in.h (strsignal): New declaration.
57345         * m4/strsignal.m4: New file.
57346         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57347         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
57348         * modules/strsignal: New file.
57349         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
57350         HAVE_DECL_STRSIGNAL.
57351
57352 2008-01-13  Bruno Haible  <bruno@clisp.org>
57353
57354         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
57355         locale encoding is not ASCII. Needed for OpenBSD 4.0.
57356         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
57357         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57358
57359 2008-01-13  Bruno Haible  <bruno@clisp.org>
57360
57361         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
57362         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
57363         * lib/argp.h (__attribute__): Likewise.
57364         * lib/c-stack.c (__attribute__): Likewise.
57365         * lib/error.h (__attribute__): Likewise.
57366         * lib/fts.c (__attribute__): Likewise.
57367         * lib/openat.h (__attribute__): Likewise.
57368         * lib/stdio.in.h (__attribute__): Likewise.
57369         * lib/string.in.h (__attribute__): Likewise.
57370         * lib/utimens.c (__attribute__): Likewise.
57371         * lib/vasnprintf.h (__attribute__): Likewise.
57372         * lib/xalloc.h (__attribute__): Likewise.
57373         * lib/xprintf.h (__attribute__): Likewise.
57374         * lib/xstrtol.h (__attribute__): Likewise.
57375         * lib/xvasprintf.h (__attribute__): Likewise.
57376
57377 2008-01-12  Bruno Haible  <bruno@clisp.org>
57378
57379         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
57380         * doc/glibc-headers/a.out.texi: New file.
57381         * doc/glibc-headers/aliases.texi: New file.
57382         * doc/glibc-headers/alloca.texi: New file.
57383         * doc/glibc-headers/ar.texi: New file.
57384         * doc/glibc-headers/argp.texi: New file.
57385         * doc/glibc-headers/argz.texi: New file.
57386         * doc/glibc-headers/byteswap.texi: New file.
57387         * doc/glibc-headers/crypt.texi: New file.
57388         * doc/glibc-headers/endian.texi: New file.
57389         * doc/glibc-headers/envz.texi: New file.
57390         * doc/glibc-headers/err.texi: New file.
57391         * doc/glibc-headers/error.texi: New file.
57392         * doc/glibc-headers/execinfo.texi: New file.
57393         * doc/glibc-headers/fpu_control.texi: New file.
57394         * doc/glibc-headers/fstab.texi: New file.
57395         * doc/glibc-headers/fts.texi: New file.
57396         * doc/glibc-headers/getopt.texi: New file.
57397         * doc/glibc-headers/ieee754.texi: New file.
57398         * doc/glibc-headers/ifaddrs.texi: New file.
57399         * doc/glibc-headers/libintl.texi: New file.
57400         * doc/glibc-headers/mcheck.texi: New file.
57401         * doc/glibc-headers/mntent.texi: New file.
57402         * doc/glibc-headers/obstack.texi: New file.
57403         * doc/glibc-headers/paths.texi: New file.
57404         * doc/glibc-headers/printf.texi: New file.
57405         * doc/glibc-headers/pty.texi: New file.
57406         * doc/glibc-headers/resolv.texi: New file.
57407         * doc/glibc-headers/shadow.texi: New file.
57408         * doc/glibc-headers/sysexits.texi: New file.
57409         * doc/glibc-headers/ttyent.texi: New file.
57410
57411 2008-01-12  Jim Meyering  <meyering@redhat.com>
57412
57413         announce-gen: emit Gnulib's git-based version string.
57414         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
57415         New option --gnulib-version=V, where V is expected to be
57416         the output of running git describe in the gnulib directory.
57417         (get_tool_versions): Request feedback on xdelta.  I suspect it's
57418         not useful, and plan to stop publishing an xdelta file with each
57419         coreutils release.
57420
57421         * build-aux/announce-gen: Also check for lzma-compressed files.
57422
57423 2008-01-11  Bruno Haible  <bruno@clisp.org>
57424
57425         * tests/test-memmem.c (main): Increase maximum allowed time.
57426         * tests/test-strstr.c (main): Likewise.
57427
57428 2008-01-11  Bruno Haible  <bruno@clisp.org>
57429
57430         * doc/functions/memmem.texi: Add more precisions about platforms.
57431         * doc/functions/strstr.texi: Likewise.
57432
57433 2008-01-10  Eric Blake  <ebb9@byu.net>
57434
57435         * m4/strstr.m4: Delete cruft from copy-n-paste.
57436         Reported by Bruno Haible.
57437
57438 2008-01-10  Bruno Haible  <bruno@clisp.org>
57439
57440         Make c-strstr rely on strstr.
57441         * lib/c-strstr.c: Don't include str-kmp.h.
57442         (c_strstr): Define in terms of strstr.
57443         * modules/c-strstr (Files): Remove lib/str-kmp.h.
57444         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
57445
57446 2008-01-10  Bruno Haible  <bruno@clisp.org>
57447
57448         * doc/gnulib.texi (String Functions in C Locale): New section.
57449         * doc/c-ctype.texi: New file.
57450         * doc/c-strcase.texi: New file.
57451         * doc/c-strcaseeq.texi: New file.
57452         * doc/c-strcasestr.texi: New file.
57453         * doc/c-strstr.texi: New file.
57454         * doc/c-strtod.texi: New file.
57455         * doc/c-strtold.texi: New file.
57456
57457 2008-01-10  Eric Blake  <ebb9@byu.net>
57458
57459         * lib/relocatable.h: Fix a comment.
57460
57461 2008-01-10  Eric Blake  <ebb9@byu.net>
57462
57463         Share two-way algorithm.
57464         * lib/str-two-way.h: New file, merged from...
57465         * lib/memmem.c: ...here...
57466         * lib/strstr.c: ...and here.
57467         * modules/memmem (Files): Use it.
57468         * modules/strstr (Files): Likewise.
57469
57470         Avoid quadratic strstr implementations.
57471         * lib/strstr.c: New file.
57472         * m4/strstr.m4: Likewise.
57473         * modules/strstr: Likewise.
57474         * modules/strstr-tests: Likewise.
57475         * tests/test-strstr.c: Likewise.
57476         * lib/string.in.h (rpl_strstr): Declare.
57477         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
57478         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
57479         * modules/string (Makefile.am): Likewise.
57480         * MODULES.html.sh (string handling): Mention new module.
57481         * doc/functions/strstr.texi (strstr): Document the bug.
57482
57483 2008-01-10  Bruno Haible  <bruno@clisp.org>
57484
57485         * lib/relocatable.h (relocate): State whether result is freshly
57486         allocated or not.
57487         * lib/relocatable.c (relocate): Return a freshly allocated string
57488         instead of a pointer to a privately held string.
57489         Reported by Sylvain Beucler <beuc@gnu.org>.
57490
57491 2008-01-10  Colin Watson  <cjwatson@debian.org>
57492
57493         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
57494         s/S_ISNLK/S_ISLNK/.
57495
57496 2008-01-09  Bruno Haible  <bruno@clisp.org>
57497
57498         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
57499         and other files.
57500         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
57501         if it's only a guess.
57502         * modules/memmem: Simplify by depending on memmem-simple.
57503
57504 2008-01-09  Bruno Haible  <bruno@clisp.org>
57505
57506         Work around OpenBSD 4.0 tdelete() bug.
57507         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
57508         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
57509         macros and don't redefine the enum values.
57510         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
57511         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
57512         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
57513
57514 2008-01-09  Bruno Haible  <bruno@clisp.org>
57515
57516         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
57517         (main): Don't perform the tests if setlocale did not install a UTF-8
57518         locale. Needed on OpenBSD 4.0.
57519         * modules/wcwidth-tests (Depends-on): Add localcharset.
57520
57521 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57522
57523         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
57524         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
57525         * NEWS: announce this.
57526         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
57527
57528 2008-01-09  Simon Josefsson  <simon@josefsson.org>
57529         and Eric Blake  <ebb9@byu.net>
57530
57531         Add memmem-simple module.
57532         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
57533         (gl_FUNC_MEMMEM): Separate performance from presence checks.
57534         * modules/memmem-simple: New file.
57535         * modules/memmem (Description): Tweak.
57536         * MODULES.html.sh (string handling): Mention new module.
57537         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
57538         addressed by memmem-simple.
57539         * NEWS: Document the difference.
57540
57541 2008-01-09  Eric Blake  <ebb9@byu.net>
57542
57543         Give gcc some memmem optimization hints.
57544         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
57545         (strcasestr): Declare as pure.
57546         * modules/memmem (Maintainer): Claim my implementation.
57547
57548 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57549
57550         Support AIX 6.1 and higher.
57551         * build-aux/config.libpath: Likewise.
57552         * build-aux/config.rpath: Likewise.
57553
57554 2008-01-08  Jim Meyering  <meyering@redhat.com>
57555             Bruno Haible  <bruno@clisp.org>
57556
57557         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
57558         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
57559         Reported by Peter Fales in
57560         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
57561
57562 2008-01-08  Bruno Haible  <bruno@clisp.org>
57563
57564         * modules/unictype/category-of (Depends-on): Add
57565         unictype/category-none.
57566         * modules/unictype/category-and-tests (Depends-on): Add
57567         unictype/category-{L,N,Lu,Nd}.
57568         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
57569         * modules/unictype/category-or-tests (Depends-on): Add
57570         unictype/category-{L,N}.
57571         * modules/unictype/category-name-tests (Depends-on): Add
57572         unictype/category-{Z,Nl}.
57573         Reported by Simon Josefsson.
57574
57575 2008-01-08  Bruno Haible  <bruno@clisp.org>
57576
57577         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
57578         convention better.
57579         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
57580         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
57581         Reported by Peter Miller <millerp@canb.auug.org.au>.
57582
57583 2008-01-08  Eric Blake  <ebb9@byu.net>
57584
57585         Rewrite memmem to guarantee linear complexity without malloc.
57586         * lib/memmem.c (memmem): Use Two-Way rather than
57587         Knuth-Morris-Pratt, to allow O(1) space usage.
57588         (critical_factorization, two_way_short_needle)
57589         (two_way_long_needle): New functions.
57590         (knuth_morris_pratt): Delete.
57591         * modules/memmem (Depends-on): No longer need malloca or stdbool.
57592         Add stdint.
57593         * tests/test-memmem.c (main): Add tests for periodic needle and
57594         sublinear performance.
57595         * doc/functions/memmem.texi (memmem): Document other deficiencies
57596         in cygwin and older glibc.
57597
57598 2008-01-08  Bruno Haible  <bruno@clisp.org>
57599
57600         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
57601         augmentation.
57602
57603 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
57604
57605         Add a configure time option: --disable-acl.
57606         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
57607         AC_ARG_ENABLE(acl).
57608
57609 2008-01-06  Simon Josefsson  <simon@josefsson.org>
57610
57611         * tests/test-localename.c: Don't include obsolete "setenv.h".
57612
57613         * modules/localename-tests (Depends-on): Need unsetenv.
57614
57615 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57616
57617         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
57618
57619 2008-01-06  Colin Watson  <cjwatson@debian.org>
57620
57621         * users.txt: Add man-db.
57622
57623 2008-01-07  Bruno Haible  <bruno@clisp.org>
57624
57625         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
57626         previous section name.
57627
57628 2008-01-07  Bruno Haible  <bruno@clisp.org>
57629
57630         * lib/progname.c (set_program_name): Don't strip off a leading
57631         "lt-" prefix outside a .libs directory.
57632         Suggested by Paul Eggert.
57633
57634 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
57635             Bruno Haible  <bruno@clisp.org>
57636
57637         Improve memory cleanup in 'relocatable' module.
57638         * lib/relocatable.h (compute_curr_prefix): Change return type to
57639         'char *'.
57640         * lib/relocatable.c (compute_curr_prefix): Change return type to
57641         'char *'. Free curr_installdir after use.
57642         (relocate): Free curr_prefix_better after use.
57643         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
57644
57645 2008-01-01  Bruno Haible  <bruno@clisp.org>
57646
57647         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
57648         failure on older glibc systems.
57649         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57650
57651 2008-01-05  Eric Blake  <ebb9@byu.net>
57652
57653         Avoid quadratic system memmem.
57654         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
57655         Reported by Ralf Wildenhues.
57656
57657         Fix memmem test for mingw.
57658         * modules/memmem-tests (configure.ac): Check for alarm.
57659         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
57660         it.
57661         * doc/functions/memmem.texi: New file.
57662         * doc/gnulib.texi (Function Substitutes): Add memmem.
57663         Reported by Bruno Haible.
57664
57665 2008-01-04  Bruno Haible  <bruno@clisp.org>
57666
57667         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
57668         Require gl_HEADER_STRINGS_H_DEFAULTS, not
57669         gl_HEADER_STRING_H_DEFAULTS.
57670
57671 2008-01-04  Eric Blake  <ebb9@byu.net>
57672
57673         Shorten duration of memmem test.
57674         * tests/test-memmem.c (main): Use alarm to declare failure if test
57675         is taking too long.
57676         Reported by Ralf Wildenhues.
57677
57678 2007-12-21  Simon Josefsson  <simon@josefsson.org>
57679
57680         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
57681         string, needed by strerror.
57682
57683 2008-01-03  Colin Watson  <cjwatson@debian.org>
57684             Bruno Haible  <bruno@clisp.org>
57685
57686         * doc/gnulib-tool.texi (Localization): New section.
57687
57688 2008-01-02  Bruno Haible  <bruno@clisp.org>
57689
57690         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
57691         variables to 'unsigned char *' type.
57692         Reported by Paul Eggert.
57693
57694 2008-01-02  Jim Meyering  <jim@meyering.net>
57695
57696         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
57697
57698 2007-12-31  Jim Meyering  <jim@meyering.net>
57699
57700         Avoid use of private FTS type name.
57701         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
57702
57703 2007-12-30  Karl Berry  <karl@gnu.org>
57704
57705         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
57706         work around defect in Texinfo and/or the standalone Info browser.
57707
57708 2007-12-30  Bruno Haible  <bruno@clisp.org>
57709
57710         Unify 5 copies of the KMP code.
57711         * lib/str-kmp.h: New file.
57712         * lib/c-strcasestr.c: Include str-kmp.h.
57713         (knuth_morris_pratt): Remove function.
57714         (c_strcasestr): Update.
57715         * lib/c-strstr.c: Include str-kmp.h.
57716         (knuth_morris_pratt): Remove function.
57717         (c_strcasestr): Update.
57718         * lib/mbscasestr.c: Include str-kmp.h.
57719         (knuth_morris_pratt_unibyte): Remove function.
57720         * lib/mbsstr.c: Include str-kmp.h.
57721         (knuth_morris_pratt_unibyte): Remove function.
57722         * lib/strcasestr.c: Include str-kmp.h.
57723         (knuth_morris_pratt): Remove function.
57724         (strcasestr): Update.
57725         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
57726         * modules/c-strstr (Files): Likewise.
57727         * modules/mbscasestr (Files): Likewise.
57728         * modules/mbsstr (Files): Likewise.
57729         * modules/strcasestr (Files): Likewise.
57730         Suggested by Paul Eggert.
57731
57732 2007-12-30  Bruno Haible  <bruno@clisp.org>
57733
57734         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
57735         defined.
57736
57737 2007-12-30  Bruno Haible  <bruno@clisp.org>
57738
57739         * lib/xmalloca.h: Include xalloc.h.
57740         (xnmalloca): New macro.
57741
57742 2007-12-30  Bruno Haible  <bruno@clisp.org>
57743
57744         * lib/malloca.h (nmalloca): New macro.
57745         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
57746         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
57747         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
57748         knuth_morris_pratt_multibyte): Likewise.
57749         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
57750         knuth_morris_pratt_multibyte): Likewise.
57751         * lib/memmem.c (knuth_morris_pratt): Likewise.
57752         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
57753
57754 2007-12-25  Bruno Haible  <bruno@clisp.org>
57755
57756         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
57757         * lib/glob.c: Don't include openat.h.
57758         (link_exists2_p): Add back the code that deals with the
57759         !GLOB_ALTDIRFUNC case.
57760         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
57761         let it do the filename concatenation.
57762         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
57763         * modules/glob (Depends-on): Remove openat.
57764
57765 2007-12-31  Bruno Haible  <bruno@clisp.org>
57766
57767         * modules/dirfd (License): Change to LGPLv2+.
57768         Approved by Jim Meyering.
57769
57770 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
57771
57772         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
57773         when multiplying M by sizeof (size_t).
57774
57775 2007-12-10  Martin Lambers  <marlam@marlam.de>
57776
57777         Override getpagesize on mingw.
57778         * lib/getpagesize.c: New file.
57779         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
57780         * modules/getpagesize (Files): Add lib/getpagesize.c.
57781         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
57782         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57783         REPLACE_GETPAGESIZE.
57784         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
57785
57786 2007-12-25  Bruno Haible  <bruno@clisp.org>
57787
57788         * modules/localcharset (Notice): New field.
57789         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
57790         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
57791
57792 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
57793             Bruno Haible  <bruno@clisp.org>
57794
57795         Avoid using the syntax symbol() in formatted documentation.
57796         * MODULES.html.sh (func_module): When replacing symbol() with a
57797         hyperlink, remove the parentheses. Show an error if some remain.
57798         Recognize and render the '...' syntax.
57799         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
57800         Rework. Add paragraph about GCC's inlining.
57801         * doc/alloca.texi: Likewise.
57802         * doc/error.texi: Remove parentheses from symbol reference.
57803         * doc/gnulib-intro.texi: Likewise.
57804         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
57805         * modules/fnmatch (Description): Reword to say "the ... function".
57806         * modules/full-read (Description): Likewise.
57807         * modules/full-write (Description): Likewise.
57808         * modules/safe-read (Description): Likewise.
57809         * modules/safe-write (Description): Likewise.
57810         * modules/strchrnul (Description): Likewise.
57811         * modules/trim (Description): Likewise.
57812         * modules/error (Description): Remove parentheses from symbol
57813         references.
57814         * modules/verror (Description): Likewise.
57815         Reported by Karl Berry.
57816
57817 2007-12-25  Bruno Haible  <bruno@clisp.org>
57818
57819         Fixup after 2007-10-16 commit.
57820         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
57821
57822 2007-12-24  Bruno Haible  <bruno@clisp.org>
57823
57824         Make --enable-relocatable work with DESTDIR.
57825         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
57826         to compute installdir from destprog.
57827         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
57828         also set the RELOC_DESTDIR variable.
57829         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
57830
57831 2007-12-24  Bruno Haible  <bruno@clisp.org>
57832
57833         Fix link error due to xalloc_die().
57834         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
57835         of xreadlink.
57836         * lib/relocwrapper.c: Update comments.
57837         * build-aux/install-reloc: Remove xreadlink.c from file list.
57838         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
57839         xreadlink.c.
57840         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
57841
57842 2007-12-24  Bruno Haible  <bruno@clisp.org>
57843
57844         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
57845         * lib/setenv.h: Remove file.
57846         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
57847         lib/setenv.h.
57848         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
57849         (Depends-on): Add stdlib.
57850         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
57851         gl_FUNC_UNSETENV.
57852         (Include): Replace setenv.h with <stdlib.h>.
57853         * modules/unsetenv: New file.
57854         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
57855         * lib/unsetenv.c: Include <stdlib.h> first.
57856         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
57857         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
57858         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
57859         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
57860         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
57861         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
57862         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
57863         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
57864         * doc/functions/unsetenv.texi: Update.
57865         * modules/xsetenv (Depends-on): Add unsetenv.
57866         * modules/getdate (Depends-on): Likewise.
57867         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
57868         * lib/xsetenv.c: Don't include setenv.h.
57869         * lib/getdate.y: Likewise.
57870         * lib/relocwrapper.c: Likewise.
57871         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
57872         (Depends-on): Add stdlib.
57873         * NEWS: Mention the changes.
57874         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
57875
57876 2007-12-23  Bruno Haible  <bruno@clisp.org>
57877
57878         * lib/memmem.c (memmem): Use lowercase variable names. Tab
57879         indentation.
57880
57881 2007-12-23  Bruno Haible  <bruno@clisp.org>
57882
57883         * lib/c-strcasestr.c: Add more comments.
57884         * lib/c-strstr.c: Likewise.
57885         * lib/mbscasestr.c: Likewise.
57886         * lib/mbsstr.c: Likewise.
57887         * lib/strcasestr.c: Likewise.
57888         * lib/memmem.c: Likewise.
57889
57890 2007-12-23  Bruno Haible  <bruno@clisp.org>
57891
57892         * tests/test-memmem.c: Include <string.h> first.
57893
57894 2007-12-22  Bruno Haible  <bruno@clisp.org>
57895
57896         * gnulib-tool (func_create_testdir): Change $auxdir while generating
57897         the contents of $testsbase.
57898         Reported by Ralf Wildenhues.
57899
57900 2007-12-22  Bruno Haible  <bruno@clisp.org>
57901
57902         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
57903         two variables local_ldadd_before, local_ldadd_last.
57904
57905 2007-12-20  Eric Blake  <ebb9@byu.net>
57906
57907         Work around circular library issue when cross-compiling.
57908         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
57909         that progname.o does not need to pull in rpl_memcmp.
57910
57911 2007-12-19  Eric Blake  <ebb9@byu.net>
57912
57913         Fix memmem to avoid O(n^2) worst-case complexity.
57914         * lib/memmem.c (knuth_morris_pratt): New function.
57915         (memmem): Use it if first few naive iterations fail.
57916         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
57917         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
57918         * modules/memchr (License): Likewise.
57919         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
57920         malloca.
57921         * tests/test-memmem.c: Rewrite, borrowing ideas from
57922         test-mbsstr1.c; the old version wouldn't even compile!
57923         * modules/memmem-tests: New file.
57924         * lib/string.in.h (rpl_memmem): Add declaration.
57925         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
57926         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
57927         REPLACE_MEMMEM.
57928
57929 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
57930
57931         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
57932         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
57933         before any system include files, and undef after them all.  This
57934         should fix a problem on VMS reported by John E. Malmberg in
57935         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
57936
57937 2007-12-17  Eric Blake  <ebb9@byu.net>
57938
57939         Revert addition of verify, for BSD/OS.
57940         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
57941         can't handle large files, for the sake of obsolete platforms.
57942         * modules/fseeko (Depends-on): Remove verify.
57943         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
57944         * doc/functions/ftello.texi (ftello): Likewise.
57945         * doc/functions/fgetpos.texi (fgetpos): Likewise.
57946         Reported by Larry Jones.
57947
57948 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
57949
57950         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
57951         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
57952
57953 2007-12-17  Jim Meyering  <meyering@redhat.com>
57954
57955         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
57956         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
57957         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
57958         * modules/getcwd (Depends-on): Add openat.
57959         Reported by Petr Salinger.
57960
57961 2007-12-17  Bruno Haible  <bruno@clisp.org>
57962
57963         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
57964         avoid a segmentation fault of the configure test on x86_64 systems.
57965
57966 2007-12-15  Jim Meyering  <meyering@redhat.com>
57967
57968         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
57969
57970 2007-12-13  Eric Blake  <ebb9@byu.net>
57971
57972         Another fseek test.
57973         * tests/test-fseek.c (main): Also test ungetc handling.
57974         * tests/test-fseeko.c (main): Likewise.
57975         * modules/fseeko (Depends-on): Add verify.
57976         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
57977         large.
57978         Reported by Larry Jones.
57979
57980         Fix fseeko on mingw.
57981         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
57982         seek.
57983
57984         Beef up fseek tests.
57985         * tests/test-fseek.c (main): Also test eof handling.
57986         * tests/test-fseeko.c (main): Likewise.
57987         Reported by Larry Jones.
57988
57989 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
57990
57991         Fix fseeko on BSD-based platforms.
57992         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
57993         successful seek.
57994
57995 2007-12-12  Eric Blake  <ebb9@byu.net>
57996
57997         Allow circular dependency of separate libtests.a
57998         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
57999         when use_libtests.
58000
58001 2007-12-11  Eric Blake  <ebb9@byu.net>
58002
58003         Fix bug with -0.0L in previous patch.
58004         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
58005         * tests/test-isnan.c (main): Also test on zeroes.
58006         * tests/test-isnanf.c (main): Likewise.
58007         * tests/test-isnanl.h (main): Likewise.
58008
58009         Detect pseudo-denormals on x86 even when cross-compiling.
58010         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
58011         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
58012         invalid bit patterns that happen to satisfy ==.
58013
58014         Avoid link failures with separate libtests.a.
58015         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
58016         last, to satisfy circular dependencies.
58017
58018 2007-12-11  Eric Blake  <ebb9@byu.net>
58019         and Bruno Haible  <bruno@clisp.org>
58020
58021         Fix OpenBSD 4.0 <float.h> handling of long double.
58022         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
58023         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
58024         * doc/headers/float.texi (float.h): Document OpenBSD bug.
58025
58026 2007-12-11  Jim Meyering  <meyering@redhat.com>
58027
58028         * users.txt: Add libvirt.
58029
58030         Support versions of autoconf prior to 2.59c.
58031         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
58032         if it is not already defined.
58033
58034 2007-12-09  Bruno Haible  <bruno@clisp.org>
58035
58036         Let 'gnulib-tool --import' collect sources needed for the tests in
58037         tests/ rather than in lib/.
58038         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
58039         argument. If true, add rules to generate libtests.a, and put libtests.a
58040         into $(LDADD). Consider source files in subdirectories and set
58041         uses_subdirs.
58042         (func_emit_initmacro_start, func_emit_initmacro_end,
58043         func_emit_initmacro_done): Pass all arguments explicitly.
58044         (func_import): Determine two module lists main_modules,
58045         testsrelated_modules. Determine use_libtests. Determine two variables
58046         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
58047         instead of just sed_transform_lib_file. Determine two variables
58048         main_files and testsrelated_files. Compute 'files' as the union of
58049         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
58050         func_add_or_update. In the generated gnulib-comp.m4, collect the
58051         object files for tests/ in different variables than those for lib/.
58052         Substitute LIBTESTS_LIBDEPS.
58053         (func_create_testdir): Combine the uses_subdirs results from
58054         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
58055
58056 2007-12-09  Bruno Haible  <bruno@clisp.org>
58057
58058         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
58059         the build-aux directory.
58060
58061 2007-12-09  Bruno Haible  <bruno@clisp.org>
58062
58063         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
58064         introduced on 2006-09-09.
58065
58066 2007-12-07  Jim Meyering  <meyering@redhat.com>
58067
58068         Let these macros work also with autoconf-2.59.
58069         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
58070         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
58071         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58072
58073 2007-12-06  Jim Meyering  <meyering@redhat.com>
58074
58075         Avoid a configure-time syntax error in gl_FUNC_ACL.
58076         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
58077         function in each branch, before testing the cache variable.
58078
58079 2007-12-04  Eric Blake  <ebb9@byu.net>
58080
58081         Make scripts executable.
58082         * build-aux/config.guess: Add execute permissions.
58083         * build-aux/config.sub: Likewise.
58084         * build-aux/gendocs.sh: Likewise.
58085
58086         Fix frexp on mingw.
58087         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
58088         cross-compiling.
58089         * doc/functions/frexp.texi (frexp): Document the bug.
58090
58091         Make cygwin fseeko check more reliable.
58092         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
58093         version numbers, rather than unrelated feature check.
58094         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
58095         * doc/functions/ftello.texi (ftello): Likewise.
58096         Reported by Bruno Haible.
58097
58098         * m4/strerror.m4: Bump version number.
58099
58100 2007-12-03  Bruno Haible  <bruno@clisp.org>
58101
58102         * doc/functions/mprotect.texi: Mention the mingw problem.
58103
58104 2007-12-03  Eric Blake  <ebb9@byu.net>
58105
58106         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
58107         REPLACE_STRERROR is initialized before this macro.
58108
58109 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58110
58111         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
58112         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
58113         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
58114         put -lsec in even for programs other than 'ls'.  This fixes a problem
58115         for gettext reported by Bruno Haible in
58116         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
58117         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
58118         Add support for Solaris 10.  This isn't efficient, but should get the
58119         job done for now.
58120
58121 2007-12-03  James Youngman  <jay@gnu.org>
58122
58123         * doc/regexprops-generic.texi: change "an close-group" to "a
58124         close-group" and "illegal" to "not allowed".
58125
58126 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58127
58128         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
58129         pr_byname.h. Needed for the rare case when the maintainer has done
58130         "make maintainer-clean" in the source directory and then attempts a
58131         build outside the source directory.
58132         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
58133         scripts_byname.h.
58134
58135 2007-12-02  Martin Lambers <marlam@marlam.de>
58136             Bruno Haible  <bruno@clisp.org>
58137
58138         * lib/getpagesize.h: Remove file.
58139         * lib/unistd.in.h: Include declaration of getpagesize here.
58140         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
58141         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
58142         HAVE_SYS_PARAM_H.
58143         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
58144         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58145         * modules/getpagesize (Files): Remove lib/getpagesize.h.
58146         (Depends-on): Add unistd.
58147         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58148         (Include): Use <unistd.h> instead of getpagesize.h.
58149         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
58150         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58151         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
58152         gl_GETPAGESIZE invocation, already handled by module dependency.
58153         * lib/pagealign_alloc.c: Don't include getpagesize.h.
58154
58155 2007-12-02  Bruno Haible  <bruno@clisp.org>
58156
58157         * modules/strings-tests: New file.
58158         * tests/test-strings.c: New file.
58159
58160         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
58161         * lib/strings.in.h: New file.
58162         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
58163         * m4/strings_h.m4: New file.
58164         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
58165         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
58166         * modules/strings: New file.
58167         * modules/string (Makefile.am): Update.
58168         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
58169         Reported by Karl Berry.
58170
58171 2007-12-01  Eric Blake  <ebb9@byu.net>
58172
58173         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
58174         accomodate fix in cygwin 1.5.25.
58175
58176 2007-12-01  Jim Meyering  <meyering@redhat.com>
58177
58178         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
58179         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
58180         that would inhibit utf8-optimization of a regexp containing line-
58181         or buffer-anchors, e.g., `^', `$'.
58182
58183 2007-11-30  Bruno Haible  <bruno@clisp.org>
58184
58185         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
58186         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
58187         glthread_recursive_lock_init.
58188         * lib/lock.c (glthread_recursive_lock_init)
58189         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
58190         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58191
58192 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
58193
58194         New function qset_acl, like set_acl but with syscall semantics.
58195         * lib/acl.h (qset_acl): New decl.
58196         * lib/acl.c (qset_acl): New function.
58197         (set_acl): Use new function.  Use more-consistent diagnostics.
58198
58199 2007-11-28  Jim Meyering  <meyering@redhat.com>
58200
58201         * modules/physmem (License): Change from GPL to LGPLv2+.
58202
58203 2007-11-26  Bruno Haible  <bruno@clisp.org>
58204
58205         * lib/vasnprintf.c (decode_long_double): Don't abort if the
58206         'long double' type has excess precision.
58207         Reported by Jim Meyering in
58208         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
58209
58210 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58211
58212         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
58213         Sync from <http://gnu.org/licenses>.
58214         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
58215         with license text from same location.
58216         * doc/maintain.texi, doc/standards.texi:  Sync from
58217         <http://savannah.gnu.org/projects/gnustandards>.
58218
58219 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
58220         and Jim Meyering  <meyering@redhat.com>
58221
58222         Adjust getdate' grammar to accept a slightly more regular language.
58223         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
58224         Before, the former was rejected.
58225         * lib/getdate.y (digits_to_date_time): New function, factored
58226         out of ...
58227         (number): ...here.  Just call digits_to_date_time.
58228         (hybrid): New non-terminal to handle an <unsigned number,
58229         signed relative offset> sequence consistently.
58230
58231 2007-11-18  Jim Meyering  <meyering@redhat.com>
58232
58233         Pull my changes from coreutils:
58234         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
58235         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
58236         use of $gnulib_tool_option_extras, so that it's separated from the
58237         preceding argument.
58238
58239         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
58240         * build-aux/bootstrap (cp_mark_as_generated): Create any required
58241         parent destination directories before copying a file into place.
58242
58243 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
58244
58245         bootstrap: work also with 4-argument variant of AC_INIT
58246         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
58247
58248 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58249
58250         Port test-getaddrinfo to Solaris.
58251         Problem reported by Bruno Haible in
58252         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
58253         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
58254         explanation of setting 'hints'.
58255         Don't reject an implementation merely because it returns EAI_SERVICE.
58256         (EAI_SERVICE): Define to 0 if not defined.
58257
58258 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
58259
58260         The license of gnu-make and posix-shell is now "GPLed build tool".
58261         * modules/gnu-make (License): Likewise.
58262         * modules/posix-shell (License): Likewise.
58263
58264         New module posix-shell, for determining a POSIX shell
58265         or perhaps something that is close enough to a POSIX shell.
58266         * m4/posix-shell.m4: New file.
58267         * modules/posix-shell: New file.
58268
58269         * MODULES.html.sh: Mention new module.
58270
58271         New module gnu-make, for determining whether we're using GNU Make.
58272         * m4/gnu-make.m4: New file.
58273         * modules/gnu-make: New file.
58274         * MODULES.html.sh: Mention new module.
58275
58276 2007-11-14  Jim Meyering  <meyering@redhat.com>
58277
58278         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
58279         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
58280         use this macro to create a function _definition_.
58281         Remove useless "#undef ARGMATCH_DIE".
58282
58283 2007-11-14  Bruno Haible  <bruno@clisp.org>
58284
58285         * lib/config.charset: Update for OpenBSD 4.1.
58286         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
58287
58288 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
58289
58290         Document 64-bit #if problems in stdint.texi.
58291         * doc/headers/stdint.texi (stdint.h): Mention problems with
58292         64-bit-#if, and how to work around them.
58293
58294         Don't insist on 'long long int' support in the preprocessor.  It
58295         breaks too many things.  For example, PRIdMAX still uses a 'long
58296         long int' format with the latest Sun compiler, even though
58297         HAVE_LONG_LONG_INT isn't defined due to that compiler's
58298         preprocessor problem.  This causes the latest coreutils to dump
58299         core on Solaris 10 sparc with the Sun C compiler.
58300         Instead, fix the 2007-10-16 problem in a different way, by evaluating
58301         the troublesome expressions at configure-time, not at #if-time.
58302         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
58303         preprocessor.
58304         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
58305         compile-time C checks, done at 'configure'-time.
58306         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
58307         * modules/inttypes (Makefile): Substitute the new symbols that
58308         gl_INTTYPES_H now generates.
58309         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
58310
58311 2007-11-12  Bruno Haible  <bruno@clisp.org>
58312
58313         Tests for Unicode character classification functions.
58314
58315         * modules/unictype/bidicategory-byname-tests: New file.
58316         * modules/unictype/bidicategory-name-tests: New file.
58317         * modules/unictype/bidicategory-of-tests: New file.
58318         * modules/unictype/bidicategory-test-tests: New file.
58319         * modules/unictype/block-list-tests: New file.
58320         * modules/unictype/block-of-tests: New file.
58321         * modules/unictype/block-test-tests: New file.
58322         * modules/unictype/category-C-tests: New file.
58323         * modules/unictype/category-Cc-tests: New file.
58324         * modules/unictype/category-Cf-tests: New file.
58325         * modules/unictype/category-Cn-tests: New file.
58326         * modules/unictype/category-Co-tests: New file.
58327         * modules/unictype/category-Cs-tests: New file.
58328         * modules/unictype/category-L-tests: New file.
58329         * modules/unictype/category-Ll-tests: New file.
58330         * modules/unictype/category-Lm-tests: New file.
58331         * modules/unictype/category-Lo-tests: New file.
58332         * modules/unictype/category-Lt-tests: New file.
58333         * modules/unictype/category-Lu-tests: New file.
58334         * modules/unictype/category-M-tests: New file.
58335         * modules/unictype/category-Mc-tests: New file.
58336         * modules/unictype/category-Me-tests: New file.
58337         * modules/unictype/category-Mn-tests: New file.
58338         * modules/unictype/category-N-tests: New file.
58339         * modules/unictype/category-Nd-tests: New file.
58340         * modules/unictype/category-Nl-tests: New file.
58341         * modules/unictype/category-No-tests: New file.
58342         * modules/unictype/category-P-tests: New file.
58343         * modules/unictype/category-Pc-tests: New file.
58344         * modules/unictype/category-Pd-tests: New file.
58345         * modules/unictype/category-Pe-tests: New file.
58346         * modules/unictype/category-Pf-tests: New file.
58347         * modules/unictype/category-Pi-tests: New file.
58348         * modules/unictype/category-Po-tests: New file.
58349         * modules/unictype/category-Ps-tests: New file.
58350         * modules/unictype/category-S-tests: New file.
58351         * modules/unictype/category-Sc-tests: New file.
58352         * modules/unictype/category-Sk-tests: New file.
58353         * modules/unictype/category-Sm-tests: New file.
58354         * modules/unictype/category-So-tests: New file.
58355         * modules/unictype/category-Z-tests: New file.
58356         * modules/unictype/category-Zl-tests: New file.
58357         * modules/unictype/category-Zp-tests: New file.
58358         * modules/unictype/category-Zs-tests: New file.
58359         * modules/unictype/category-and-not-tests: New file.
58360         * modules/unictype/category-and-tests: New file.
58361         * modules/unictype/category-byname-tests: New file.
58362         * modules/unictype/category-name-tests: New file.
58363         * modules/unictype/category-none-tests: New file.
58364         * modules/unictype/category-of-tests: New file.
58365         * modules/unictype/category-or-tests: New file.
58366         * modules/unictype/category-test-withtable-tests: New file.
58367         * modules/unictype/combining-class-tests: New file.
58368         * modules/unictype/ctype-alnum-tests: New file.
58369         * modules/unictype/ctype-alpha-tests: New file.
58370         * modules/unictype/ctype-blank-tests: New file.
58371         * modules/unictype/ctype-cntrl-tests: New file.
58372         * modules/unictype/ctype-digit-tests: New file.
58373         * modules/unictype/ctype-graph-tests: New file.
58374         * modules/unictype/ctype-lower-tests: New file.
58375         * modules/unictype/ctype-print-tests: New file.
58376         * modules/unictype/ctype-punct-tests: New file.
58377         * modules/unictype/ctype-space-tests: New file.
58378         * modules/unictype/ctype-upper-tests: New file.
58379         * modules/unictype/ctype-xdigit-tests: New file.
58380         * modules/unictype/decimal-digit-tests: New file.
58381         * modules/unictype/digit-tests: New file.
58382         * modules/unictype/mirror-tests: New file.
58383         * modules/unictype/numeric-tests: New file.
58384         * modules/unictype/property-alphabetic-tests: New file.
58385         * modules/unictype/property-ascii-hex-digit-tests: New file.
58386         * modules/unictype/property-bidi-arabic-digit-tests: New file.
58387         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
58388         * modules/unictype/property-bidi-block-separator-tests: New file.
58389         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
58390         * modules/unictype/property-bidi-common-separator-tests: New file.
58391         * modules/unictype/property-bidi-control-tests: New file.
58392         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
58393         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
58394         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
58395         * modules/unictype/property-bidi-european-digit-tests: New file.
58396         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
58397         * modules/unictype/property-bidi-left-to-right-tests: New file.
58398         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
58399         * modules/unictype/property-bidi-other-neutral-tests: New file.
58400         * modules/unictype/property-bidi-pdf-tests: New file.
58401         * modules/unictype/property-bidi-segment-separator-tests: New file.
58402         * modules/unictype/property-bidi-whitespace-tests: New file.
58403         * modules/unictype/property-byname-tests: New file.
58404         * modules/unictype/property-combining-tests: New file.
58405         * modules/unictype/property-composite-tests: New file.
58406         * modules/unictype/property-currency-symbol-tests: New file.
58407         * modules/unictype/property-dash-tests: New file.
58408         * modules/unictype/property-decimal-digit-tests: New file.
58409         * modules/unictype/property-default-ignorable-code-point-tests: New file.
58410         * modules/unictype/property-deprecated-tests: New file.
58411         * modules/unictype/property-diacritic-tests: New file.
58412         * modules/unictype/property-extender-tests: New file.
58413         * modules/unictype/property-format-control-tests: New file.
58414         * modules/unictype/property-grapheme-base-tests: New file.
58415         * modules/unictype/property-grapheme-extend-tests: New file.
58416         * modules/unictype/property-grapheme-link-tests: New file.
58417         * modules/unictype/property-hex-digit-tests: New file.
58418         * modules/unictype/property-hyphen-tests: New file.
58419         * modules/unictype/property-id-continue-tests: New file.
58420         * modules/unictype/property-id-start-tests: New file.
58421         * modules/unictype/property-ideographic-tests: New file.
58422         * modules/unictype/property-ids-binary-operator-tests: New file.
58423         * modules/unictype/property-ids-trinary-operator-tests: New file.
58424         * modules/unictype/property-ignorable-control-tests: New file.
58425         * modules/unictype/property-iso-control-tests: New file.
58426         * modules/unictype/property-join-control-tests: New file.
58427         * modules/unictype/property-left-of-pair-tests: New file.
58428         * modules/unictype/property-line-separator-tests: New file.
58429         * modules/unictype/property-logical-order-exception-tests: New file.
58430         * modules/unictype/property-lowercase-tests: New file.
58431         * modules/unictype/property-math-tests: New file.
58432         * modules/unictype/property-non-break-tests: New file.
58433         * modules/unictype/property-not-a-character-tests: New file.
58434         * modules/unictype/property-numeric-tests: New file.
58435         * modules/unictype/property-other-alphabetic-tests: New file.
58436         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
58437         * modules/unictype/property-other-grapheme-extend-tests: New file.
58438         * modules/unictype/property-other-id-continue-tests: New file.
58439         * modules/unictype/property-other-id-start-tests: New file.
58440         * modules/unictype/property-other-lowercase-tests: New file.
58441         * modules/unictype/property-other-math-tests: New file.
58442         * modules/unictype/property-other-uppercase-tests: New file.
58443         * modules/unictype/property-paired-punctuation-tests: New file.
58444         * modules/unictype/property-paragraph-separator-tests: New file.
58445         * modules/unictype/property-pattern-syntax-tests: New file.
58446         * modules/unictype/property-pattern-white-space-tests: New file.
58447         * modules/unictype/property-private-use-tests: New file.
58448         * modules/unictype/property-punctuation-tests: New file.
58449         * modules/unictype/property-quotation-mark-tests: New file.
58450         * modules/unictype/property-radical-tests: New file.
58451         * modules/unictype/property-sentence-terminal-tests: New file.
58452         * modules/unictype/property-soft-dotted-tests: New file.
58453         * modules/unictype/property-space-tests: New file.
58454         * modules/unictype/property-terminal-punctuation-tests: New file.
58455         * modules/unictype/property-test-tests: New file.
58456         * modules/unictype/property-titlecase-tests: New file.
58457         * modules/unictype/property-unassigned-code-value-tests: New file.
58458         * modules/unictype/property-unified-ideograph-tests: New file.
58459         * modules/unictype/property-uppercase-tests: New file.
58460         * modules/unictype/property-variation-selector-tests: New file.
58461         * modules/unictype/property-white-space-tests: New file.
58462         * modules/unictype/property-xid-continue-tests: New file.
58463         * modules/unictype/property-xid-start-tests: New file.
58464         * modules/unictype/property-zero-width-tests: New file.
58465         * modules/unictype/scripts-tests: New file.
58466         * modules/unictype/syntax-c-ident-tests: New file.
58467         * modules/unictype/syntax-c-whitespace-tests: New file.
58468         * modules/unictype/syntax-java-ident-tests: New file.
58469         * modules/unictype/syntax-java-whitespace-tests: New file.
58470         * tests/unictype/test-bidi_byname.c: New file.
58471         * tests/unictype/test-bidi_name.c: New file.
58472         * tests/unictype/test-bidi_of.c: New file.
58473         * tests/unictype/test-bidi_test.c: New file.
58474         * tests/unictype/test-block_list.c: New file.
58475         * tests/unictype/test-block_of.c: New file.
58476         * tests/unictype/test-block_test.c: New file.
58477         * tests/unictype/test-categ_and.c: New file.
58478         * tests/unictype/test-categ_and_not.c: New file.
58479         * tests/unictype/test-categ_byname.c: New file.
58480         * tests/unictype/test-categ_name.c: New file.
58481         * tests/unictype/test-categ_none.c: New file.
58482         * tests/unictype/test-categ_of.c: New file.
58483         * tests/unictype/test-categ_or.c: New file.
58484         * tests/unictype/test-categ_test_withtable.c: New file.
58485         * tests/unictype/test-combining.c: New file.
58486         * tests/unictype/test-decdigit.c: New file.
58487         * tests/unictype/test-digit.c: New file.
58488         * tests/unictype/test-mirror.c: New file.
58489         * tests/unictype/test-numeric.c: New file.
58490         * tests/unictype/test-pr_byname.c: New file.
58491         * tests/unictype/test-pr_test.c: New file.
58492         * tests/unictype/test-predicate-part1.h: New file.
58493         * tests/unictype/test-predicate-part2.h: New file.
58494         * tests/unictype/test-scripts.c: New file.
58495         * tests/unictype/test-sy_c_ident.c: New file.
58496         * tests/unictype/test-sy_java_ident.c: New file.
58497
58498         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
58499         for Unicode 5.0.0.
58500         * tests/unictype/test-categ_Cc.c: Likewise.
58501         * tests/unictype/test-categ_Cf.c: Likewise.
58502         * tests/unictype/test-categ_Cn.c: Likewise.
58503         * tests/unictype/test-categ_Co.c: Likewise.
58504         * tests/unictype/test-categ_Cs.c: Likewise.
58505         * tests/unictype/test-categ_L.c: Likewise.
58506         * tests/unictype/test-categ_Ll.c: Likewise.
58507         * tests/unictype/test-categ_Lm.c: Likewise.
58508         * tests/unictype/test-categ_Lo.c: Likewise.
58509         * tests/unictype/test-categ_Lt.c: Likewise.
58510         * tests/unictype/test-categ_Lu.c: Likewise.
58511         * tests/unictype/test-categ_M.c: Likewise.
58512         * tests/unictype/test-categ_Mc.c: Likewise.
58513         * tests/unictype/test-categ_Me.c: Likewise.
58514         * tests/unictype/test-categ_Mn.c: Likewise.
58515         * tests/unictype/test-categ_N.c: Likewise.
58516         * tests/unictype/test-categ_Nd.c: Likewise.
58517         * tests/unictype/test-categ_Nl.c: Likewise.
58518         * tests/unictype/test-categ_No.c: Likewise.
58519         * tests/unictype/test-categ_P.c: Likewise.
58520         * tests/unictype/test-categ_Pc.c: Likewise.
58521         * tests/unictype/test-categ_Pd.c: Likewise.
58522         * tests/unictype/test-categ_Pe.c: Likewise.
58523         * tests/unictype/test-categ_Pf.c: Likewise.
58524         * tests/unictype/test-categ_Pi.c: Likewise.
58525         * tests/unictype/test-categ_Po.c: Likewise.
58526         * tests/unictype/test-categ_Ps.c: Likewise.
58527         * tests/unictype/test-categ_S.c: Likewise.
58528         * tests/unictype/test-categ_Sc.c: Likewise.
58529         * tests/unictype/test-categ_Sk.c: Likewise.
58530         * tests/unictype/test-categ_Sm.c: Likewise.
58531         * tests/unictype/test-categ_So.c: Likewise.
58532         * tests/unictype/test-categ_Z.c: Likewise.
58533         * tests/unictype/test-categ_Zl.c: Likewise.
58534         * tests/unictype/test-categ_Zp.c: Likewise.
58535         * tests/unictype/test-categ_Zs.c: Likewise.
58536         * tests/unictype/test-ctype_alnum.c: Likewise.
58537         * tests/unictype/test-ctype_alpha.c: Likewise.
58538         * tests/unictype/test-ctype_blank.c: Likewise.
58539         * tests/unictype/test-ctype_cntrl.c: Likewise.
58540         * tests/unictype/test-ctype_digit.c: Likewise.
58541         * tests/unictype/test-ctype_graph.c: Likewise.
58542         * tests/unictype/test-ctype_lower.c: Likewise.
58543         * tests/unictype/test-ctype_print.c: Likewise.
58544         * tests/unictype/test-ctype_punct.c: Likewise.
58545         * tests/unictype/test-ctype_space.c: Likewise.
58546         * tests/unictype/test-ctype_upper.c: Likewise.
58547         * tests/unictype/test-ctype_xdigit.c: Likewise.
58548         * tests/unictype/test-decdigit.h: Likewise.
58549         * tests/unictype/test-digit.h: Likewise.
58550         * tests/unictype/test-numeric.h: Likewise.
58551         * tests/unictype/test-pr_alphabetic.c: Likewise.
58552         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
58553         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
58554         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
58555         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
58556         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
58557         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
58558         * tests/unictype/test-pr_bidi_control.c: Likewise.
58559         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
58560         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
58561         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
58562         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
58563         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
58564         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
58565         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
58566         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
58567         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
58568         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
58569         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
58570         * tests/unictype/test-pr_combining.c: Likewise.
58571         * tests/unictype/test-pr_composite.c: Likewise.
58572         * tests/unictype/test-pr_currency_symbol.c: Likewise.
58573         * tests/unictype/test-pr_dash.c: Likewise.
58574         * tests/unictype/test-pr_decimal_digit.c: Likewise.
58575         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
58576         * tests/unictype/test-pr_deprecated.c: Likewise.
58577         * tests/unictype/test-pr_diacritic.c: Likewise.
58578         * tests/unictype/test-pr_extender.c: Likewise.
58579         * tests/unictype/test-pr_format_control.c: Likewise.
58580         * tests/unictype/test-pr_grapheme_base.c: Likewise.
58581         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
58582         * tests/unictype/test-pr_grapheme_link.c: Likewise.
58583         * tests/unictype/test-pr_hex_digit.c: Likewise.
58584         * tests/unictype/test-pr_hyphen.c: Likewise.
58585         * tests/unictype/test-pr_id_continue.c: Likewise.
58586         * tests/unictype/test-pr_id_start.c: Likewise.
58587         * tests/unictype/test-pr_ideographic.c: Likewise.
58588         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
58589         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
58590         * tests/unictype/test-pr_ignorable_control.c: Likewise.
58591         * tests/unictype/test-pr_iso_control.c: Likewise.
58592         * tests/unictype/test-pr_join_control.c: Likewise.
58593         * tests/unictype/test-pr_left_of_pair.c: Likewise.
58594         * tests/unictype/test-pr_line_separator.c: Likewise.
58595         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
58596         * tests/unictype/test-pr_lowercase.c: Likewise.
58597         * tests/unictype/test-pr_math.c: Likewise.
58598         * tests/unictype/test-pr_non_break.c: Likewise.
58599         * tests/unictype/test-pr_not_a_character.c: Likewise.
58600         * tests/unictype/test-pr_numeric.c: Likewise.
58601         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
58602         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
58603         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
58604         * tests/unictype/test-pr_other_id_continue.c: Likewise.
58605         * tests/unictype/test-pr_other_id_start.c: Likewise.
58606         * tests/unictype/test-pr_other_lowercase.c: Likewise.
58607         * tests/unictype/test-pr_other_math.c: Likewise.
58608         * tests/unictype/test-pr_other_uppercase.c: Likewise.
58609         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
58610         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
58611         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
58612         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
58613         * tests/unictype/test-pr_private_use.c: Likewise.
58614         * tests/unictype/test-pr_punctuation.c: Likewise.
58615         * tests/unictype/test-pr_quotation_mark.c: Likewise.
58616         * tests/unictype/test-pr_radical.c: Likewise.
58617         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
58618         * tests/unictype/test-pr_soft_dotted.c: Likewise.
58619         * tests/unictype/test-pr_space.c: Likewise.
58620         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
58621         * tests/unictype/test-pr_titlecase.c: Likewise.
58622         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
58623         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
58624         * tests/unictype/test-pr_uppercase.c: Likewise.
58625         * tests/unictype/test-pr_variation_selector.c: Likewise.
58626         * tests/unictype/test-pr_white_space.c: Likewise.
58627         * tests/unictype/test-pr_xid_continue.c: Likewise.
58628         * tests/unictype/test-pr_xid_start.c: Likewise.
58629         * tests/unictype/test-pr_zero_width.c: Likewise.
58630         * tests/unictype/test-sy_c_whitespace.c: Likewise.
58631         * tests/unictype/test-sy_java_whitespace.c: Likewise.
58632
58633 2007-11-12  Bruno Haible  <bruno@clisp.org>
58634
58635         Unicode character classification functions.
58636         * lib/unictype.h: New file.
58637         * modules/unictype/base: New file.
58638         * modules/unictype/category-L: New file.
58639         * modules/unictype/category-Lu: New file.
58640         * modules/unictype/category-Ll: New file.
58641         * modules/unictype/category-Lt: New file.
58642         * modules/unictype/category-Lm: New file.
58643         * modules/unictype/category-Lo: New file.
58644         * modules/unictype/category-M: New file.
58645         * modules/unictype/category-Mn: New file.
58646         * modules/unictype/category-Mc: New file.
58647         * modules/unictype/category-Me: New file.
58648         * modules/unictype/category-N: New file.
58649         * modules/unictype/category-Nd: New file.
58650         * modules/unictype/category-Nl: New file.
58651         * modules/unictype/category-No: New file.
58652         * modules/unictype/category-P: New file.
58653         * modules/unictype/category-Pc: New file.
58654         * modules/unictype/category-Pd: New file.
58655         * modules/unictype/category-Ps: New file.
58656         * modules/unictype/category-Pe: New file.
58657         * modules/unictype/category-Pi: New file.
58658         * modules/unictype/category-Pf: New file.
58659         * modules/unictype/category-Po: New file.
58660         * modules/unictype/category-S: New file.
58661         * modules/unictype/category-Sm: New file.
58662         * modules/unictype/category-Sc: New file.
58663         * modules/unictype/category-Sk: New file.
58664         * modules/unictype/category-So: New file.
58665         * modules/unictype/category-Z: New file.
58666         * modules/unictype/category-Zs: New file.
58667         * modules/unictype/category-Zl: New file.
58668         * modules/unictype/category-Zp: New file.
58669         * modules/unictype/category-C: New file.
58670         * modules/unictype/category-Cc: New file.
58671         * modules/unictype/category-Cf: New file.
58672         * modules/unictype/category-Cs: New file.
58673         * modules/unictype/category-Co: New file.
58674         * modules/unictype/category-Cn: New file.
58675         * modules/unictype/category-or: New file.
58676         * modules/unictype/category-of: New file.
58677         * modules/unictype/category-test: New file.
58678         * modules/unictype/category-test-withtable: New file.
58679         * modules/unictype/category-byname: New file.
58680         * modules/unictype/category-none: New file.
58681         * modules/unictype/category-and: New file.
58682         * modules/unictype/category-and-not: New file.
58683         * modules/unictype/category-name: New file.
58684         * modules/unictype/combining-class: New file.
58685         * modules/unictype/category-all: New file.
58686         * modules/unictype/bidicategory-all: New file.
58687         * modules/unictype/bidicategory-byname: New file.
58688         * modules/unictype/bidicategory-name: New file.
58689         * modules/unictype/bidicategory-of: New file.
58690         * modules/unictype/bidicategory-test: New file.
58691         * modules/unictype/decimal-digit: New file.
58692         * modules/unictype/digit: New file.
58693         * modules/unictype/numeric: New file.
58694         * modules/unictype/mirror: New file.
58695         * modules/unictype/property-white-space: New file.
58696         * modules/unictype/property-alphabetic: New file.
58697         * modules/unictype/property-other-alphabetic: New file.
58698         * modules/unictype/property-not-a-character: New file.
58699         * modules/unictype/property-default-ignorable-code-point: New file.
58700         * modules/unictype/property-other-default-ignorable-code-point: New
58701         file.
58702         * modules/unictype/property-deprecated: New file.
58703         * modules/unictype/property-logical-order-exception: New file.
58704         * modules/unictype/property-variation-selector: New file.
58705         * modules/unictype/property-private-use: New file.
58706         * modules/unictype/property-unassigned-code-value: New file.
58707         * modules/unictype/property-uppercase: New file.
58708         * modules/unictype/property-other-uppercase: New file.
58709         * modules/unictype/property-lowercase: New file.
58710         * modules/unictype/property-other-lowercase: New file.
58711         * modules/unictype/property-titlecase: New file.
58712         * modules/unictype/property-soft-dotted: New file.
58713         * modules/unictype/property-id-start: New file.
58714         * modules/unictype/property-other-id-start: New file.
58715         * modules/unictype/property-id-continue: New file.
58716         * modules/unictype/property-other-id-continue: New file.
58717         * modules/unictype/property-xid-start: New file.
58718         * modules/unictype/property-xid-continue: New file.
58719         * modules/unictype/property-pattern-white-space: New file.
58720         * modules/unictype/property-pattern-syntax: New file.
58721         * modules/unictype/property-join-control: New file.
58722         * modules/unictype/property-grapheme-base: New file.
58723         * modules/unictype/property-grapheme-extend: New file.
58724         * modules/unictype/property-other-grapheme-extend: New file.
58725         * modules/unictype/property-grapheme-link: New file.
58726         * modules/unictype/property-bidi-control: New file.
58727         * modules/unictype/property-bidi-left-to-right: New file.
58728         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
58729         * modules/unictype/property-bidi-arabic-right-to-left: New file.
58730         * modules/unictype/property-bidi-european-digit: New file.
58731         * modules/unictype/property-bidi-eur-num-separator: New file.
58732         * modules/unictype/property-bidi-eur-num-terminator: New file.
58733         * modules/unictype/property-bidi-arabic-digit: New file.
58734         * modules/unictype/property-bidi-common-separator: New file.
58735         * modules/unictype/property-bidi-block-separator: New file.
58736         * modules/unictype/property-bidi-segment-separator: New file.
58737         * modules/unictype/property-bidi-whitespace: New file.
58738         * modules/unictype/property-bidi-non-spacing-mark: New file.
58739         * modules/unictype/property-bidi-boundary-neutral: New file.
58740         * modules/unictype/property-bidi-pdf: New file.
58741         * modules/unictype/property-bidi-embedding-or-override: New file.
58742         * modules/unictype/property-bidi-other-neutral: New file.
58743         * modules/unictype/property-hex-digit: New file.
58744         * modules/unictype/property-ascii-hex-digit: New file.
58745         * modules/unictype/property-ideographic: New file.
58746         * modules/unictype/property-unified-ideograph: New file.
58747         * modules/unictype/property-radical: New file.
58748         * modules/unictype/property-ids-binary-operator: New file.
58749         * modules/unictype/property-ids-trinary-operator: New file.
58750         * modules/unictype/property-zero-width: New file.
58751         * modules/unictype/property-space: New file.
58752         * modules/unictype/property-non-break: New file.
58753         * modules/unictype/property-iso-control: New file.
58754         * modules/unictype/property-format-control: New file.
58755         * modules/unictype/property-dash: New file.
58756         * modules/unictype/property-hyphen: New file.
58757         * modules/unictype/property-punctuation: New file.
58758         * modules/unictype/property-line-separator: New file.
58759         * modules/unictype/property-paragraph-separator: New file.
58760         * modules/unictype/property-quotation-mark: New file.
58761         * modules/unictype/property-sentence-terminal: New file.
58762         * modules/unictype/property-terminal-punctuation: New file.
58763         * modules/unictype/property-currency-symbol: New file.
58764         * modules/unictype/property-math: New file.
58765         * modules/unictype/property-other-math: New file.
58766         * modules/unictype/property-paired-punctuation: New file.
58767         * modules/unictype/property-left-of-pair: New file.
58768         * modules/unictype/property-combining: New file.
58769         * modules/unictype/property-composite: New file.
58770         * modules/unictype/property-decimal-digit: New file.
58771         * modules/unictype/property-numeric: New file.
58772         * modules/unictype/property-diacritic: New file.
58773         * modules/unictype/property-extender: New file.
58774         * modules/unictype/property-ignorable-control: New file.
58775         * modules/unictype/property-test: New file.
58776         * modules/unictype/property-byname: New file.
58777         * modules/unictype/property-all: New file.
58778         * modules/unictype/scripts: New file.
58779         * modules/unictype/scripts-all: New file.
58780         * modules/unictype/block-of: New file.
58781         * modules/unictype/block-test: New file.
58782         * modules/unictype/block-list: New file.
58783         * modules/unictype/block-all: New file.
58784         * modules/unictype/syntax-c-whitespace: New file.
58785         * modules/unictype/syntax-java-whitespace: New file.
58786         * modules/unictype/syntax-c-ident: New file.
58787         * modules/unictype/syntax-java-ident: New file.
58788         * modules/unictype/ctype-alnum: New file.
58789         * modules/unictype/ctype-alpha: New file.
58790         * modules/unictype/ctype-cntrl: New file.
58791         * modules/unictype/ctype-digit: New file.
58792         * modules/unictype/ctype-graph: New file.
58793         * modules/unictype/ctype-lower: New file.
58794         * modules/unictype/ctype-print: New file.
58795         * modules/unictype/ctype-punct: New file.
58796         * modules/unictype/ctype-space: New file.
58797         * modules/unictype/ctype-upper: New file.
58798         * modules/unictype/ctype-xdigit: New file.
58799         * modules/unictype/ctype-blank: New file.
58800         * lib/unictype/bidi_byname.c: New file.
58801         * lib/unictype/bidi_name.c: New file.
58802         * lib/unictype/bidi_of.c: New file.
58803         * lib/unictype/bidi_test.c: New file.
58804         * lib/unictype/bitmap.h: New file.
58805         * lib/unictype/block_test.c: New file.
58806         * lib/unictype/blocks.c: New file.
58807         * lib/unictype/categ_C.c: New file.
58808         * lib/unictype/categ_Cc.c: New file.
58809         * lib/unictype/categ_Cf.c: New file.
58810         * lib/unictype/categ_Cn.c: New file.
58811         * lib/unictype/categ_Co.c: New file.
58812         * lib/unictype/categ_Cs.c: New file.
58813         * lib/unictype/categ_L.c: New file.
58814         * lib/unictype/categ_Ll.c: New file.
58815         * lib/unictype/categ_Lm.c: New file.
58816         * lib/unictype/categ_Lo.c: New file.
58817         * lib/unictype/categ_Lt.c: New file.
58818         * lib/unictype/categ_Lu.c: New file.
58819         * lib/unictype/categ_M.c: New file.
58820         * lib/unictype/categ_Mc.c: New file.
58821         * lib/unictype/categ_Me.c: New file.
58822         * lib/unictype/categ_Mn.c: New file.
58823         * lib/unictype/categ_N.c: New file.
58824         * lib/unictype/categ_Nd.c: New file.
58825         * lib/unictype/categ_Nl.c: New file.
58826         * lib/unictype/categ_No.c: New file.
58827         * lib/unictype/categ_P.c: New file.
58828         * lib/unictype/categ_Pc.c: New file.
58829         * lib/unictype/categ_Pd.c: New file.
58830         * lib/unictype/categ_Pe.c: New file.
58831         * lib/unictype/categ_Pf.c: New file.
58832         * lib/unictype/categ_Pi.c: New file.
58833         * lib/unictype/categ_Po.c: New file.
58834         * lib/unictype/categ_Ps.c: New file.
58835         * lib/unictype/categ_S.c: New file.
58836         * lib/unictype/categ_Sc.c: New file.
58837         * lib/unictype/categ_Sk.c: New file.
58838         * lib/unictype/categ_Sm.c: New file.
58839         * lib/unictype/categ_So.c: New file.
58840         * lib/unictype/categ_Z.c: New file.
58841         * lib/unictype/categ_Zl.c: New file.
58842         * lib/unictype/categ_Zp.c: New file.
58843         * lib/unictype/categ_Zs.c: New file.
58844         * lib/unictype/categ_and.c: New file.
58845         * lib/unictype/categ_and_not.c: New file.
58846         * lib/unictype/categ_byname.c: New file.
58847         * lib/unictype/categ_name.c: New file.
58848         * lib/unictype/categ_none.c: New file.
58849         * lib/unictype/categ_of.c: New file.
58850         * lib/unictype/categ_or.c: New file.
58851         * lib/unictype/categ_test.c: New file.
58852         * lib/unictype/combining.c: New file.
58853         * lib/unictype/ctype_alnum.c: New file.
58854         * lib/unictype/ctype_alpha.c: New file.
58855         * lib/unictype/ctype_blank.c: New file.
58856         * lib/unictype/ctype_cntrl.c: New file.
58857         * lib/unictype/ctype_digit.c: New file.
58858         * lib/unictype/ctype_graph.c: New file.
58859         * lib/unictype/ctype_lower.c: New file.
58860         * lib/unictype/ctype_print.c: New file.
58861         * lib/unictype/ctype_punct.c: New file.
58862         * lib/unictype/ctype_space.c: New file.
58863         * lib/unictype/ctype_upper.c: New file.
58864         * lib/unictype/ctype_xdigit.c: New file.
58865         * lib/unictype/decdigit.c: New file.
58866         * lib/unictype/digit.c: New file.
58867         * lib/unictype/identsyntaxmap.h: New file.
58868         * lib/unictype/mirror.c: New file.
58869         * lib/unictype/numeric.c: New file.
58870         * lib/unictype/pr_alphabetic.c: New file.
58871         * lib/unictype/pr_ascii_hex_digit.c: New file.
58872         * lib/unictype/pr_bidi_arabic_digit.c: New file.
58873         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
58874         * lib/unictype/pr_bidi_block_separator.c: New file.
58875         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
58876         * lib/unictype/pr_bidi_common_separator.c: New file.
58877         * lib/unictype/pr_bidi_control.c: New file.
58878         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
58879         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
58880         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
58881         * lib/unictype/pr_bidi_european_digit.c: New file.
58882         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
58883         * lib/unictype/pr_bidi_left_to_right.c: New file.
58884         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
58885         * lib/unictype/pr_bidi_other_neutral.c: New file.
58886         * lib/unictype/pr_bidi_pdf.c: New file.
58887         * lib/unictype/pr_bidi_segment_separator.c: New file.
58888         * lib/unictype/pr_bidi_whitespace.c: New file.
58889         * lib/unictype/pr_byname.c: New file.
58890         * lib/unictype/pr_byname.gperf: New file.
58891         * lib/unictype/pr_combining.c: New file.
58892         * lib/unictype/pr_composite.c: New file.
58893         * lib/unictype/pr_currency_symbol.c: New file.
58894         * lib/unictype/pr_dash.c: New file.
58895         * lib/unictype/pr_decimal_digit.c: New file.
58896         * lib/unictype/pr_default_ignorable_code_point.c: New file.
58897         * lib/unictype/pr_deprecated.c: New file.
58898         * lib/unictype/pr_diacritic.c: New file.
58899         * lib/unictype/pr_extender.c: New file.
58900         * lib/unictype/pr_format_control.c: New file.
58901         * lib/unictype/pr_grapheme_base.c: New file.
58902         * lib/unictype/pr_grapheme_extend.c: New file.
58903         * lib/unictype/pr_grapheme_link.c: New file.
58904         * lib/unictype/pr_hex_digit.c: New file.
58905         * lib/unictype/pr_hyphen.c: New file.
58906         * lib/unictype/pr_id_continue.c: New file.
58907         * lib/unictype/pr_id_start.c: New file.
58908         * lib/unictype/pr_ideographic.c: New file.
58909         * lib/unictype/pr_ids_binary_operator.c: New file.
58910         * lib/unictype/pr_ids_trinary_operator.c: New file.
58911         * lib/unictype/pr_ignorable_control.c: New file.
58912         * lib/unictype/pr_iso_control.c: New file.
58913         * lib/unictype/pr_join_control.c: New file.
58914         * lib/unictype/pr_left_of_pair.c: New file.
58915         * lib/unictype/pr_line_separator.c: New file.
58916         * lib/unictype/pr_logical_order_exception.c: New file.
58917         * lib/unictype/pr_lowercase.c: New file.
58918         * lib/unictype/pr_math.c: New file.
58919         * lib/unictype/pr_non_break.c: New file.
58920         * lib/unictype/pr_not_a_character.c: New file.
58921         * lib/unictype/pr_numeric.c: New file.
58922         * lib/unictype/pr_other_alphabetic.c: New file.
58923         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
58924         * lib/unictype/pr_other_grapheme_extend.c: New file.
58925         * lib/unictype/pr_other_id_continue.c: New file.
58926         * lib/unictype/pr_other_id_start.c: New file.
58927         * lib/unictype/pr_other_lowercase.c: New file.
58928         * lib/unictype/pr_other_math.c: New file.
58929         * lib/unictype/pr_other_uppercase.c: New file.
58930         * lib/unictype/pr_paired_punctuation.c: New file.
58931         * lib/unictype/pr_paragraph_separator.c: New file.
58932         * lib/unictype/pr_pattern_syntax.c: New file.
58933         * lib/unictype/pr_pattern_white_space.c: New file.
58934         * lib/unictype/pr_private_use.c: New file.
58935         * lib/unictype/pr_punctuation.c: New file.
58936         * lib/unictype/pr_quotation_mark.c: New file.
58937         * lib/unictype/pr_radical.c: New file.
58938         * lib/unictype/pr_sentence_terminal.c: New file.
58939         * lib/unictype/pr_soft_dotted.c: New file.
58940         * lib/unictype/pr_space.c: New file.
58941         * lib/unictype/pr_terminal_punctuation.c: New file.
58942         * lib/unictype/pr_test.c: New file.
58943         * lib/unictype/pr_titlecase.c: New file.
58944         * lib/unictype/pr_unassigned_code_value.c: New file.
58945         * lib/unictype/pr_unified_ideograph.c: New file.
58946         * lib/unictype/pr_uppercase.c: New file.
58947         * lib/unictype/pr_variation_selector.c: New file.
58948         * lib/unictype/pr_white_space.c: New file.
58949         * lib/unictype/pr_xid_continue.c: New file.
58950         * lib/unictype/pr_xid_start.c: New file.
58951         * lib/unictype/pr_zero_width.c: New file.
58952         * lib/unictype/scripts.c: New file.
58953         * lib/unictype/sy_c_ident.c: New file.
58954         * lib/unictype/sy_c_whitespace.c: New file.
58955         * lib/unictype/sy_java_ident.c: New file.
58956         * lib/unictype/sy_java_whitespace.c: New file.
58957
58958         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
58959         Unicode 5.0.0.
58960         * lib/unictype/blocks.h: Likewise.
58961         * lib/unictype/categ_C.h: Likewise.
58962         * lib/unictype/categ_Cc.h: Likewise.
58963         * lib/unictype/categ_Cf.h: Likewise.
58964         * lib/unictype/categ_Cn.h: Likewise.
58965         * lib/unictype/categ_Co.h: Likewise.
58966         * lib/unictype/categ_Cs.h: Likewise.
58967         * lib/unictype/categ_L.h: Likewise.
58968         * lib/unictype/categ_Ll.h: Likewise.
58969         * lib/unictype/categ_Lm.h: Likewise.
58970         * lib/unictype/categ_Lo.h: Likewise.
58971         * lib/unictype/categ_Lt.h: Likewise.
58972         * lib/unictype/categ_Lu.h: Likewise.
58973         * lib/unictype/categ_M.h: Likewise.
58974         * lib/unictype/categ_Mc.h: Likewise.
58975         * lib/unictype/categ_Me.h: Likewise.
58976         * lib/unictype/categ_Mn.h: Likewise.
58977         * lib/unictype/categ_N.h: Likewise.
58978         * lib/unictype/categ_Nd.h: Likewise.
58979         * lib/unictype/categ_Nl.h: Likewise.
58980         * lib/unictype/categ_No.h: Likewise.
58981         * lib/unictype/categ_P.h: Likewise.
58982         * lib/unictype/categ_Pc.h: Likewise.
58983         * lib/unictype/categ_Pd.h: Likewise.
58984         * lib/unictype/categ_Pe.h: Likewise.
58985         * lib/unictype/categ_Pf.h: Likewise.
58986         * lib/unictype/categ_Pi.h: Likewise.
58987         * lib/unictype/categ_Po.h: Likewise.
58988         * lib/unictype/categ_Ps.h: Likewise.
58989         * lib/unictype/categ_S.h: Likewise.
58990         * lib/unictype/categ_Sc.h: Likewise.
58991         * lib/unictype/categ_Sk.h: Likewise.
58992         * lib/unictype/categ_Sm.h: Likewise.
58993         * lib/unictype/categ_So.h: Likewise.
58994         * lib/unictype/categ_Z.h: Likewise.
58995         * lib/unictype/categ_Zl.h: Likewise.
58996         * lib/unictype/categ_Zp.h: Likewise.
58997         * lib/unictype/categ_Zs.h: Likewise.
58998         * lib/unictype/categ_of.h: Likewise.
58999         * lib/unictype/combining.h: Likewise.
59000         * lib/unictype/ctype_alnum.h: Likewise.
59001         * lib/unictype/ctype_alpha.h: Likewise.
59002         * lib/unictype/ctype_blank.h: Likewise.
59003         * lib/unictype/ctype_cntrl.h: Likewise.
59004         * lib/unictype/ctype_digit.h: Likewise.
59005         * lib/unictype/ctype_graph.h: Likewise.
59006         * lib/unictype/ctype_lower.h: Likewise.
59007         * lib/unictype/ctype_print.h: Likewise.
59008         * lib/unictype/ctype_punct.h: Likewise.
59009         * lib/unictype/ctype_space.h: Likewise.
59010         * lib/unictype/ctype_upper.h: Likewise.
59011         * lib/unictype/ctype_xdigit.h: Likewise.
59012         * lib/unictype/decdigit.h: Likewise.
59013         * lib/unictype/digit.h: Likewise.
59014         * lib/unictype/mirror.h: Likewise.
59015         * lib/unictype/numeric.h: Likewise.
59016         * lib/unictype/pr_alphabetic.h: Likewise.
59017         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
59018         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59019         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59020         * lib/unictype/pr_bidi_block_separator.h: Likewise.
59021         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59022         * lib/unictype/pr_bidi_common_separator.h: Likewise.
59023         * lib/unictype/pr_bidi_control.h: Likewise.
59024         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
59025         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
59026         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59027         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59028         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59029         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59030         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59031         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59032         * lib/unictype/pr_bidi_pdf.h: Likewise.
59033         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
59034         * lib/unictype/pr_bidi_whitespace.h: Likewise.
59035         * lib/unictype/pr_combining.h: Likewise.
59036         * lib/unictype/pr_composite.h: Likewise.
59037         * lib/unictype/pr_currency_symbol.h: Likewise.
59038         * lib/unictype/pr_dash.h: Likewise.
59039         * lib/unictype/pr_decimal_digit.h: Likewise.
59040         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
59041         * lib/unictype/pr_deprecated.h: Likewise.
59042         * lib/unictype/pr_diacritic.h: Likewise.
59043         * lib/unictype/pr_extender.h: Likewise.
59044         * lib/unictype/pr_format_control.h: Likewise.
59045         * lib/unictype/pr_grapheme_base.h: Likewise.
59046         * lib/unictype/pr_grapheme_extend.h: Likewise.
59047         * lib/unictype/pr_grapheme_link.h: Likewise.
59048         * lib/unictype/pr_hex_digit.h: Likewise.
59049         * lib/unictype/pr_hyphen.h: Likewise.
59050         * lib/unictype/pr_id_continue.h: Likewise.
59051         * lib/unictype/pr_id_start.h: Likewise.
59052         * lib/unictype/pr_ideographic.h: Likewise.
59053         * lib/unictype/pr_ids_binary_operator.h: Likewise.
59054         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
59055         * lib/unictype/pr_ignorable_control.h: Likewise.
59056         * lib/unictype/pr_iso_control.h: Likewise.
59057         * lib/unictype/pr_join_control.h: Likewise.
59058         * lib/unictype/pr_left_of_pair.h: Likewise.
59059         * lib/unictype/pr_line_separator.h: Likewise.
59060         * lib/unictype/pr_logical_order_exception.h: Likewise.
59061         * lib/unictype/pr_lowercase.h: Likewise.
59062         * lib/unictype/pr_math.h: Likewise.
59063         * lib/unictype/pr_non_break.h: Likewise.
59064         * lib/unictype/pr_not_a_character.h: Likewise.
59065         * lib/unictype/pr_numeric.h: Likewise.
59066         * lib/unictype/pr_other_alphabetic.h: Likewise.
59067         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
59068         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
59069         * lib/unictype/pr_other_id_continue.h: Likewise.
59070         * lib/unictype/pr_other_id_start.h: Likewise.
59071         * lib/unictype/pr_other_lowercase.h: Likewise.
59072         * lib/unictype/pr_other_math.h: Likewise.
59073         * lib/unictype/pr_other_uppercase.h: Likewise.
59074         * lib/unictype/pr_paired_punctuation.h: Likewise.
59075         * lib/unictype/pr_paragraph_separator.h: Likewise.
59076         * lib/unictype/pr_pattern_syntax.h: Likewise.
59077         * lib/unictype/pr_pattern_white_space.h: Likewise.
59078         * lib/unictype/pr_private_use.h: Likewise.
59079         * lib/unictype/pr_punctuation.h: Likewise.
59080         * lib/unictype/pr_quotation_mark.h: Likewise.
59081         * lib/unictype/pr_radical.h: Likewise.
59082         * lib/unictype/pr_sentence_terminal.h: Likewise.
59083         * lib/unictype/pr_soft_dotted.h: Likewise.
59084         * lib/unictype/pr_space.h: Likewise.
59085         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59086         * lib/unictype/pr_titlecase.h: Likewise.
59087         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59088         * lib/unictype/pr_unified_ideograph.h: Likewise.
59089         * lib/unictype/pr_uppercase.h: Likewise.
59090         * lib/unictype/pr_variation_selector.h: Likewise.
59091         * lib/unictype/pr_white_space.h: Likewise.
59092         * lib/unictype/pr_xid_continue.h: Likewise.
59093         * lib/unictype/pr_xid_start.h: Likewise.
59094         * lib/unictype/pr_zero_width.h: Likewise.
59095         * lib/unictype/scripts.h: Likewise.
59096         * lib/unictype/scripts_byname.gperf: Likewise.
59097         * lib/unictype/sy_c_ident.h: Likewise.
59098         * lib/unictype/sy_c_whitespace.h: Likewise.
59099         * lib/unictype/sy_java_ident.h: Likewise.
59100         * lib/unictype/sy_java_whitespace.h: Likewise.
59101
59102         * lib/unictype/Makefile: New file.
59103         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
59104         glibc.
59105         * lib/unictype/3level.h: New file, copied from glibc.
59106         * lib/unictype/3levelbit.h: New file.
59107
59108 2007-11-11  Bruno Haible  <bruno@clisp.org>
59109
59110         * modules/gperf: New file.
59111         * modules/iconv_open (Depends-on): Add it.
59112         (Makefile.am): Remove the GPERF definition.
59113
59114 2007-11-11  Bruno Haible  <bruno@clisp.org>
59115
59116         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
59117         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
59118
59119 2007-11-11  Bruno Haible  <bruno@clisp.org>
59120
59121         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
59122         (usage): Remove function.
59123
59124 2007-11-11  Bruno Haible  <bruno@clisp.org>
59125
59126         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
59127         gl_FUNC_CEILF_LIBS.
59128         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
59129         gl_FUNC_CEIL_LIBS.
59130         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
59131         gl_FUNC_CEILL_LIBS.
59132         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
59133         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
59134         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
59135
59136 2007-11-11  Bruno Haible  <bruno@clisp.org>
59137
59138         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
59139         roundf were declared but do not exist on functions.
59140         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
59141         roundl were declared but do not exist on functions.
59142         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
59143         HAVE_FLOORL_AND_CEILL, respectively.
59144         Needed for Sun C on Solaris 10.
59145
59146 2007-11-11  Bruno Haible  <bruno@clisp.org>
59147
59148         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
59149         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
59150         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
59151         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
59152         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
59153         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
59154         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
59155         HAVE_DECL_ROUNDF.
59156         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
59157         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
59158         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
59159         of HAVE_DECL_ROUND*.
59160         * modules/math (Makefile.am): Update.
59161
59162 2007-11-10  Bruno Haible  <bruno@clisp.org>
59163
59164         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
59165         ptrdiff_t as m4/intl.m4.
59166
59167 2007-11-10  Jim Meyering  <meyering@redhat.com>
59168
59169         Avoid link failure for the argmatch test.
59170         * tests/test-argmatch.c (usage): Define function to avoid a link
59171         failure: argmatch_die requires a usage function.
59172
59173 2007-11-09  Bruno Haible  <bruno@clisp.org>
59174
59175         * doc/functions/snprintf.texi: Mention BeOS deficiency.
59176         * doc/functions/vsnprintf.texi: Likewise.
59177         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
59178         with a size argument < 2.
59179
59180 2007-11-09  Bruno Haible  <bruno@clisp.org>
59181
59182         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
59183         buffer. Fixes an inefficiency introduced on 2007-11-03.
59184
59185 2007-11-09  Bruno Haible  <bruno@clisp.org>
59186
59187         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
59188         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
59189
59190 2007-11-08  Jim Meyering  <meyering@redhat.com>
59191
59192         Change cache variable name prefix "jm_" to "gl_" everywhere.
59193         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
59194         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
59195         * m4/uptime.m4: s/gl_/jm_/
59196
59197 2007-11-07  Bruno Haible  <bruno@clisp.org>
59198
59199         Update to GNU gettext 0.17.
59200         * m4/intl.m4: Update to GNU gettext 0.17.
59201         * m4/po.m4: Likewise.
59202         * modules/gettext (Files): Remove m4/ulonglong.m4.
59203         (configure.ac): Require gettext infrastructure from version 0.17.
59204
59205 2007-11-06  Bruno Haible  <bruno@clisp.org>
59206
59207         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
59208         symbolic values are not defined in a public header.
59209         * lib/freadable.c (freadable) [QNX]: Likewise.
59210         * lib/freadahead.c (freadahead) [QNX]: Likewise.
59211         * lib/freading.c (freading) [QNX]: Likewise.
59212         * lib/fseterr.c (fseterr) [QNX]: Likewise.
59213         * lib/fwritable.c (fwritable) [QNX]: Likewise.
59214         * lib/fwriting.c (fwriting) [QNX]: Likewise.
59215         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
59216         Reported by Alain Magloire.
59217
59218         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
59219
59220 2007-11-05  Bruno Haible  <bruno@clisp.org>
59221
59222         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
59223         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
59224         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
59225         Reported by Eric Blake.
59226
59227 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59228             Bruno Haible  <bruno@clisp.org>
59229
59230         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
59231         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
59232         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
59233         (malloc): Undefine also before including <stdlib.h>.
59234         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
59235         Needed on OSF/1 4.0.
59236
59237 2007-11-05  Jim Meyering  <meyering@redhat.com>
59238
59239         git-version-gen: sync from coreutils.
59240         * build-aux/git-version-gen: Add comments.
59241         Change the first '-' to '.' in the snapshot version string,
59242         e.g., 6.9-377-08144 -> 6.9.377-08144
59243         Remove first parameter.
59244         Don't declare a version "-dirty" merely because a time
59245         stamp has changed.
59246
59247 2007-11-04  Bruno Haible  <bruno@clisp.org>
59248
59249         * lib/lock.h: Protect all macro definitions containing an 'if'
59250         statement through a "do { ... } while (0)".
59251         * lib/tls.h: Likewise.
59252
59253 2007-11-04  Bruno Haible  <bruno@clisp.org>
59254
59255         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
59256
59257 2007-11-04  Bruno Haible  <bruno@clisp.org>
59258
59259         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
59260         * modules/fprintf-posix (Depends-on): Add nocrash.
59261         * modules/snprintf-posix (Depends-on): Likewise.
59262         * modules/sprintf-posix (Depends-on): Likewise.
59263         * modules/vasnprintf-posix (Depends-on): Likewise.
59264         * modules/vasprintf-posix (Depends-on): Likewise.
59265         * modules/vfprintf-posix (Depends-on): Likewise.
59266         * modules/vsnprintf-posix (Depends-on): Likewise.
59267         * modules/vsprintf-posix (Depends-on): Likewise.
59268         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59269         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59270         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59271         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59272         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59273         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59274         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59275
59276 2007-11-04  Bruno Haible  <bruno@clisp.org>
59277
59278         * modules/nocrash: New file.
59279         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
59280         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
59281
59282 2007-11-04  Bruno Haible  <bruno@clisp.org>
59283
59284         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
59285         precision handling.
59286         * tests/test-vasprintf-posix.c (test_function): Likewise.
59287         * tests/test-snprintf-posix.h (test_function): Likewise.
59288         * tests/test-sprintf-posix.h (test_function): Likewise.
59289
59290         Fix *printf behaviour for large precisions on mingw and BeOS.
59291         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
59292         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
59293         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
59294         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59295         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59296         gl_PRINTF_PRECISION and test its result. Invoke
59297         gl_PREREQ_VASNPRINTF_PRECISION.
59298         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59299         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59300         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59301         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59302         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59303         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59304         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59305         * doc/functions/fprintf.texi: Update.
59306         * doc/functions/printf.texi: Update.
59307         * doc/functions/snprintf.texi: Update.
59308         * doc/functions/sprintf.texi: Update.
59309         * doc/functions/vfprintf.texi: Update.
59310         * doc/functions/vprintf.texi: Update.
59311         * doc/functions/vsnprintf.texi: Update.
59312         * doc/functions/vsprintf.texi: Update.
59313
59314 2007-11-04  Bruno Haible  <bruno@clisp.org>
59315
59316         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
59317
59318 2007-11-04  Bruno Haible  <bruno@clisp.org>
59319
59320         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
59321         Reported by Sylvain Beucler <beuc@gnu.org>.
59322
59323 2007-11-03  Bruno Haible  <bruno@clisp.org>
59324
59325         * tests/test-fprintf-posix2.sh: New file.
59326         * tests/test-fprintf-posix2.c: New file.
59327         * modules/fprintf-posix-tests (Files): Add them.
59328         (TESTS): Add test-fprintf-posix2.sh.
59329         (configure.ac): Check for getrlimit and setrlimit.
59330         (check_PROGRAMS): Add test-fprintf-posix2.
59331
59332         * tests/test-printf-posix2.sh: New file.
59333         * tests/test-printf-posix2.c: New file.
59334         * modules/printf-posix-tests (Files): Add them.
59335         (TESTS): Add test-printf-posix2.sh.
59336         (configure.ac): Check for getrlimit and setrlimit.
59337         (check_PROGRAMS): Add test-printf-posix2.
59338
59339         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
59340         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
59341         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
59342         (decode_double): New function, copied from decode_long_double.
59343         (scale10_round_decimal_decoded): New function, extracted from
59344         scale10_round_decimal_long_double.
59345         (scale10_round_decimal_long_double): Use it.
59346         (scale10_round_decimal_double): New function.
59347         (floorlog10): New function.
59348         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
59349         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
59350         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59351         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59352         gl_PRINTF_ENOMEM and test its result. Invoke
59353         gl_PREREQ_VASNPRINTF_ENOMEM.
59354         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59355         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59356         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59357         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59358         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59359         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59360         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59361         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
59362         * modules/snprintf-posix (Depends-on): Likewise.
59363         * modules/sprintf-posix (Depends-on): Likewise.
59364         * modules/vasnprintf-posix (Depends-on): Likewise.
59365         * modules/vasprintf-posix (Depends-on): Likewise.
59366         * modules/vfprintf-posix (Depends-on): Likewise.
59367         * modules/vsnprintf-posix (Depends-on): Likewise.
59368         * modules/vsprintf-posix (Depends-on): Likewise.
59369         * doc/functions/fprintf.texi: Update.
59370         * doc/functions/printf.texi: Update.
59371         * doc/functions/snprintf.texi: Update.
59372         * doc/functions/sprintf.texi: Update.
59373         * doc/functions/vfprintf.texi: Update.
59374         * doc/functions/vprintf.texi: Update.
59375         * doc/functions/vsnprintf.texi: Update.
59376         * doc/functions/vsprintf.texi: Update.
59377
59378 2007-11-03  Bruno Haible  <bruno@clisp.org>
59379
59380         * modules/frexp-nolibm-tests: New file.
59381
59382         * modules/frexp-nolibm: New file.
59383         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
59384
59385 2007-11-03  Bruno Haible  <bruno@clisp.org>
59386
59387         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
59388         value is C99 compliant.
59389         Needed for OSF/1 5.1.
59390
59391 2007-11-03  Bruno Haible  <bruno@clisp.org>
59392
59393         Fix out-of-memory handling of vasnprintf.
59394         * lib/printf-parse.c: Include <errno.h>.
59395         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
59396         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
59397         is already set.
59398
59399 2007-11-02  Eric Blake  <ebb9@byu.net>
59400
59401         Fix tests on cygwin.
59402         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
59403
59404 2007-11-01  Bruno Haible  <bruno@clisp.org>
59405
59406         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
59407         warning.
59408         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
59409         needed for POSIX compatibility.
59410
59411 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59412
59413         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
59414         for compatibility with GNU.
59415
59416 2007-11-01  Bruno Haible  <bruno@clisp.org>
59417
59418         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
59419         (putenv): Renamed from rpl_putenv. Change argument type from
59420         'const char *' to 'char *'.
59421         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
59422         of defining putenv in config.h, just set REPLACE_PUTENV.
59423         * modules/putenv (Depends-on): Add stdlib.
59424         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59425         (Include): Use <stdlib.h>.
59426         * lib/stdlib.in.h (putenv): New declaration.
59427         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
59428         REPLACE_PUTENV.
59429         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
59430         REPLACE_PUTENV.
59431         Needed for MacOS X 10.5.0.
59432         Reported by Peter O'Gorman <peter@pogma.com>.
59433
59434 2007-11-01  Jim Meyering  <meyering@redhat.com>
59435
59436         Treat an empty date string exactly like "0".
59437         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
59438         if the remaining date string (to be parsed) is empty, use "0".
59439         Reported by Mischa Molhoek and discussed in this thread:
59440         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
59441
59442 2007-10-31  Bruno Haible  <bruno@clisp.org>
59443
59444         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
59445         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
59446         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
59447         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
59448         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
59449         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
59450
59451 2007-10-31  Bruno Haible  <bruno@clisp.org>
59452
59453         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
59454         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
59455         (AC_TYPE_LONG_LONG_INT): Use it.
59456         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
59457         it as well.
59458         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
59459         to m4/longlong.m4.
59460         * modules/stdint (Files): Remove m4/ulonglong.m4.
59461         * modules/strtoull (Files): Use m4/longlong.m4 instead of
59462         m4/ulonglong.m4.
59463         * modules/strtoumax (Files): Likewise.
59464
59465 2007-10-30  Bruno Haible  <bruno@clisp.org>
59466
59467         * modules/xvasprintf-posix: New file.
59468         Suggested by Eric Blake.
59469
59470 2007-10-30  Bruno Haible  <bruno@clisp.org>
59471
59472         * modules/xprintf-posix-tests: New file.
59473         * tests/test-xprintf-posix.sh: New file.
59474         * tests/test-xprintf-posix.c: New file.
59475         * tests/test-xfprintf-posix.c: New file.
59476
59477         * modules/xprintf-posix: New file.
59478
59479 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59480
59481         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
59482         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
59483         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
59484
59485 2007-10-29  Bruno Haible  <bruno@clisp.org>
59486
59487         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
59488         contain the special marker '_cv_'.
59489         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
59490         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
59491         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
59492         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
59493         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
59494         Reported by Ralf Wildenhues.
59495
59496 2007-10-29  Bruno Haible  <bruno@clisp.org>
59497
59498         * gnulib-tool (func_import): When --lgpl is not specified, set
59499         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
59500         GPLv3.
59501         Reported by Simon Josefsson.
59502
59503 2007-10-28  Bruno Haible  <bruno@clisp.org>
59504
59505         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
59506         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
59507         HAVE_DECL_ISFINITE.
59508         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59509         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
59510         HAVE_DECL_ISFINITE.
59511
59512 2007-10-28  Bruno Haible  <bruno@clisp.org>
59513
59514         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
59515         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
59516
59517 2007-10-28  Bruno Haible  <bruno@clisp.org>
59518
59519         Fix link errors with Sun C 5.0 on Solaris 10.
59520         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
59521         function is declared but not present in the compiler's libm.
59522         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
59523         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
59524         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
59525         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
59526         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
59527         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
59528         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
59529         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59530         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
59531         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
59532         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
59533         HAVE_DECL_FLOORL.
59534
59535 2007-10-28  Bruno Haible  <bruno@clisp.org>
59536
59537         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
59538         gl_FUNC_FLOORL. Cache the result.
59539         (gl_FUNC_FLOORL): Use it.
59540         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
59541         gl_FUNC_CEILL. Cache the result.
59542         (gl_FUNC_CEILL): Use it.
59543
59544         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
59545         gl_FUNC_FLOOR. Cache the result.
59546         (gl_FUNC_FLOOR): Use it.
59547         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
59548         gl_FUNC_CEIL. Cache the result.
59549         (gl_FUNC_CEIL): Use it.
59550
59551         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
59552         gl_FUNC_FLOORF. Cache the result.
59553         (gl_FUNC_FLOORF): Use it.
59554         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
59555         gl_FUNC_CEILF. Cache the result.
59556         (gl_FUNC_CEILF): Use it.
59557
59558 2007-10-28  Bruno Haible  <bruno@clisp.org>
59559
59560         * gnulib-tool: Allow specifying the LGPL version number through
59561         --lgpl=2 or --lgpl=3.
59562         (func_usage): Document --lgpl with argument.
59563         Handle --lgpl=... arguments.
59564         (func_import): Recognize also gl_LGPL calls with an argument. When
59565         --lgpl=2 is used and the module's license is just LGPL, report an
59566         error. Set sed_transform_lib_file according to the lgpl variable. In
59567         the generated files, use --lgpl or gl_LGPL invocations with argument,
59568         if necessary.
59569         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
59570         an LGPv2+ license.
59571         * doc/gnulib-tool.texi (Modified imports): Update explanation of
59572         gl_LGPL macro.
59573
59574 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59575             Bruno Haible  <bruno@clisp.org>
59576
59577         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
59578         (u16_uctomb_aux): Likewise.
59579         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
59580         !HAVE_INLINE.
59581         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
59582
59583 2007-10-28  Bruno Haible  <bruno@clisp.org>
59584
59585         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
59586         Invoke AM_GETTEXT_OPTION if it exists.
59587         * modules/vasprintf: Likewise.
59588         * modules/verror: Likewise.
59589         * modules/xprintf: Likewise.
59590         * modules/xvasprintf: Likewise.
59591
59592 2007-10-27  Ben Pfaff  <blp@gnu.org>
59593
59594         * lib/math.in.h: Define isfinite macro and prototypes for
59595         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
59596         implementations.
59597         * m4/math_h.m4: New substitutions for isfinite module.
59598         * lib/isfinite.c: New file.
59599         * m4/isfinite.m4: New file.
59600         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
59601         * modules/isfinite: New file.
59602         * modules/isfinite-tests: New file.
59603         * tests/tests-isfinite.c: New file.
59604         * doc/functions/isfinite.texi: Mention isfinite module.
59605         * MODULES.html.sh: Mention new module.
59606
59607 2007-10-27  Ben Pfaff  <blp@gnu.org>
59608
59609         Ralf Wildenhues reported that Tru64 4.0D declares the round
59610         functions but does not have definitions.
59611         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
59612         cannot be found in any library, set the output variable to
59613         "missing" instead of "".
59614         * m4/round.m4: Also use our substitute if we cannot find round in
59615         any library, even if it is declared.
59616         * m4/roundf.m4: Likewise for roundf.
59617         * m4/roundl.m4: Likewise for roundl.
59618         * lib/math.in.h: Undefine roundf, round, roundl before defining
59619         their replacements, to allow for hypothetical systems where these
59620         may be defined as macros but not available in libraries.
59621
59622 2007-10-27  Bruno Haible  <bruno@clisp.org>
59623
59624         * doc/gnulib.texi: Invoke @firstparagraphindent.
59625         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
59626         changes in gnulib.
59627         (Source changes): New section.
59628
59629 2007-10-26  Bruno Haible  <bruno@clisp.org>
59630
59631         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
59632         borrowed from autoconf.
59633
59634 2007-10-26  Bruno Haible  <bruno@clisp.org>
59635
59636         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
59637         strerror returned the empty string. Needed on HP-UX 11.00.
59638
59639 2007-10-24  Micah Cowan  <micah@cowan.name>
59640
59641         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
59642         * build-aux/bootstrap: Remove support for now-unnecessary option,
59643         --cvs-user, and envvars CVS_USER, CVS_RSH.
59644
59645 2007-10-24  Jim Meyering  <meyering@redhat.com>
59646
59647         Avoid diagnostics from sha1sum when there is no cached checksum.
59648         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
59649         if the po.s1 file hasn't been created yet.
59650
59651         * build-aux/bootstrap: Sync from coreutils:
59652         2007-10-24  Jim Meyering  <meyering@redhat.com>
59653         Get gnulib from the git repository, not from an obsolete cvs one.
59654         * build-aux/bootstrap: Suggestion from Micah Cowan.
59655         2007-10-04  Jim Meyering  <jim@meyering.net>
59656         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
59657         (update_po_files): Work also when there are no .po files in po/.
59658
59659 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59660
59661         * README: Append ".git" to git and cg examples.
59662         Problem reported by Benoit Sigoure.
59663
59664 2007-10-23  Micah Cowan  <micah@cowan.name>
59665
59666         * users.txt: Add wget.
59667
59668 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59669
59670         Fix linking of some unistdio tests on FreeBSD.
59671         * modules/unistdio/u16-vsnprintf-tests
59672         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
59673         * modules/unistdio/u16-vsprintf-tests
59674         (test_u16_vsnprintf1_LDADD): Likewise.
59675         * modules/unistdio/u32-vsnprintf-tests
59676         (test_u32_vsnprintf1_LDADD): Likewise.
59677         * modules/unistdio/u32-vsprintf-tests
59678         (test_u32_vsprintf1_LDADD): Likewise.
59679         * modules/unistdio/u8-vsnprintf-tests
59680         (test_u8_vsnprintf1_LDADD): Likewise.
59681         * modules/unistdio/u8-vsprintf-tests
59682         (test_u8_vsprintf1_LDADD): Likewise.
59683         * modules/unistdio/ulc-vsnprintf-tests
59684         (test_ulc_vsnprintf1_LDADD): Likewise.
59685         * modules/unistdio/ulc-vsprintf-tests
59686         (test_ulc_vsprintf1_LDADD): Likewise.
59687
59688         Fix linking of some uniconv tests on FreeBSD.
59689         * modules/uniconv/u16-conv-from-enc-tests
59690         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
59691         * modules/uniconv/u16-conv-to-enc-tests
59692         (test_u16_conv_to_enc_LDADD): Likewise.
59693         * modules/uniconv/u16-strconv-from-enc-tests
59694         (test_u16_strconv_from_enc_LDADD): Likewise.
59695         * modules/uniconv/u16-strconv-to-enc-tests
59696         (test_u16_strconv_to_enc_LDADD): Likewise.
59697         * modules/uniconv/u32-conv-from-enc-tests
59698         (test_u32_conv_from_enc_LDADD): Likewise.
59699         * modules/uniconv/u32-conv-to-enc-tests
59700         (test_u32_conv_to_enc_LDADD): Likewise.
59701         * modules/uniconv/u32-strconv-from-enc-tests
59702         (test_u32_strconv_from_enc_LDADD): Likewise.
59703         * modules/uniconv/u32-strconv-to-enc-tests
59704         (test_u32_strconv_to_enc_LDADD): Likewise.
59705         * modules/uniconv/u8-conv-from-enc-tests
59706         (test_u8_conv_from_enc_LDADD): Likewise.
59707         * modules/uniconv/u8-conv-to-enc-tests
59708         (test_u8_conv_to_enc_LDADD): Likewise.
59709         * modules/uniconv/u8-strconv-from-enc-tests
59710         (test_u8_strconv_from_enc_LDADD): Likewise.
59711         * modules/uniconv/u8-strconv-to-enc-tests
59712         (test_u8_strconv_to_enc_LDADD): Likewise.
59713
59714 2007-10-22  Bruno Haible  <bruno@clisp.org>
59715
59716         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
59717         size.
59718
59719 2007-10-22  Eric Blake  <ebb9@byu.net>
59720
59721         Tweak x*printf documentation.
59722         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
59723         variable name and comments.
59724         Suggested by Bruno Haible.
59725
59726 2007-10-22  Bruno Haible  <bruno@clisp.org>
59727
59728         * lib/acl.c (copy_acl): Fix file name in comment.
59729
59730 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59731
59732         Fix Tru64 problem with stdbool.h.
59733         * lib/stdbool.in.h (false, true):
59734         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
59735         Don't declare as an enum in this situation; it runs afoul of Tru64.
59736         Problem reported by Steven M. Schweda in
59737         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
59738
59739 2007-10-22  Eric Blake  <ebb9@byu.net>
59740
59741         Also wrap vf?printf.
59742         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
59743         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
59744         (xvprintf, xvfprintf): New functions.
59745
59746 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59747
59748         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
59749         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
59750
59751         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
59752         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
59753
59754 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59755
59756         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
59757         by Bruno Haible.
59758
59759 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59760
59761         * lib/getloadavg.c
59762         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
59763         Undef `sys' after including sys/table.h, for Tru64 4.0D.
59764
59765         * tests/test-i-ring.c: Work for C89.
59766
59767 2007-10-22  Bruno Haible  <bruno@clisp.org>
59768
59769         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
59770         -1u, in preprocessor expression, so that we don't test for the bug
59771         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
59772         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
59773
59774 2007-10-22  Eric Blake  <ebb9@byu.net>
59775
59776         * tests/test-yesno.sh: Silence stderr during test.
59777
59778 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59779
59780         * modules/crypto/gc-camellia: New file.
59781
59782         * m4/gc-camellia.m4: New file.
59783
59784         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
59785
59786         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
59787
59788 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59789
59790         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
59791         --help to stdout.  Reported by sms@antinode.org (Steven
59792         M. Schweda).
59793
59794 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59795
59796         * users.txt: Fix link to libksba.
59797
59798 2007-10-21  Ben Pfaff  <blp@gnu.org>
59799
59800         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
59801         round.c roundf implementation that depends on floorf and ceilf to
59802         be tested unconditionally.
59803
59804 2007-10-21  Ben Pfaff  <blp@gnu.org>
59805
59806         * m4/check-libm-func.m4: Removed.
59807         * m4/check-math-lib.m4: New file.
59808         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
59809         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
59810         definition and lack of AC_LIBOBJ([roundf]).
59811         * m4/roundl.m4: Ditto, and similarly for roundl.
59812         * modules/round: Reference new m4 file.
59813         * modules/roundf: Ditto.
59814         * modules/roundl: Ditto.
59815         * tests/test-round2.c (main): Use ROUND instead of round.
59816         Bug report from Bruno Haible.
59817
59818 2007-10-21  Bruno Haible  <bruno@clisp.org>
59819
59820         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
59821         context.
59822
59823 2007-10-21  Bruno Haible  <bruno@clisp.org>
59824
59825         * tests/test-wcwidth.c (main): Allow negative result for some control
59826         characters.
59827
59828         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
59829         Needed on OSF/1 5.1.
59830
59831 2007-10-21  Bruno Haible  <bruno@clisp.org>
59832
59833         * tests/test-floorf1.c: Include isnanf.h.
59834         (main): Use isnanf() instead of isnan().
59835         * tests/test-ceilf1.c: Include isnanf.h.
59836         (main): Use isnanf() instead of isnan().
59837         * tests/test-truncf1.c: Include isnanf.h.
59838         (main): Use isnanf() instead of isnan().
59839         * tests/test-roundf1.c: Include isnanf.h.
59840         (main): Use isnanf() instead of isnan().
59841
59842 2007-10-21  Eric Blake  <ebb9@byu.net>
59843
59844         * users.txt: Update URL for m4.
59845
59846 2007-10-21  Bruno Haible  <bruno@clisp.org>
59847
59848         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
59849
59850 2007-10-21  Bruno Haible  <bruno@clisp.org>
59851
59852         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
59853         Git's management files if the CVS files are not present.
59854
59855 2007-10-20  Bruno Haible  <bruno@clisp.org>
59856
59857         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
59858         gcc-3.4.x.
59859
59860 2007-10-20  Ben Pfaff  <blp@gnu.org>
59861
59862         * lib/math.in.h: Declare round, roundf, roundl if we are providing
59863         implementations.
59864         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
59865         * lib/round.c: New file.
59866         * lib/roundf.c: New file.
59867         * lib/roundl.c: New file.
59868         * m4/round.m4: New file.
59869         * m4/roundf.m4: New file.
59870         * m4/roundl.m4: New file.
59871         * m4/check-libm-func-m4: New file.
59872         * modules/math: Replace round, roundf, roundl related @VARS@ in
59873         math.in.h.
59874         * modules/round: New file.
59875         * modules/round-tests: New file.
59876         * modules/roundf: New file.
59877         * modules/roundf-tests: New file.
59878         * modules/roundl: New file.
59879         * modules/roundl-tests: New file.
59880         * tests/test-round1.c: New file.
59881         * tests/test-round2.c: New file.
59882         * tests/test-roundf1.c: New file.
59883         * tests/test-roundf2.c: New file.
59884         * tests/test-roundl.c: New file.
59885         * doc/functions/round.texi: Mention round module.
59886         * doc/functions/roundf.texi: Mention roundf module.
59887         * doc/functions/roundl.texi: Mention roundl module.
59888         * MODULES.html.sh: Mention new modules.
59889         Thanks to Bruno Haible for suggestions.
59890
59891 2007-10-20  Jim Meyering  <meyering@redhat.com>
59892
59893         * lib/xprintf.c: Include <config.h> unconditionally.
59894
59895         Change xprintf's license to GPL.
59896         * modules/xprintf (License): s/LGPL/GPL/, since this module
59897         depends on modules (exit and exitfail) which are GPL.
59898         Suggestion from Bruno Haible.
59899
59900         xprintf fixes.
59901         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
59902         Use a clearer diagnostic.
59903         Patch from Bruno Haible.
59904
59905 2007-10-20  Bruno Haible  <bruno@clisp.org>
59906
59907         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
59908         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
59909         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59910
59911 2007-10-20  Bruno Haible  <bruno@clisp.org>
59912
59913         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
59914         precision in the comparison result > x - 1 or similar.
59915         * tests/test-ceilf2.c (correct_result_p): Likewise.
59916         * tests/test-truncf2.c (correct_result_p): Likewise.
59917         * tests/test-trunc2.c (correct_result_p): Likewise.
59918         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59919
59920 2007-10-20  Bruno Haible  <bruno@clisp.org>
59921
59922         * modules/ceil: New file.
59923         * m4/ceil.m4: New file.
59924         * doc/functions/ceil.texi: Mention the 'ceil' module.
59925
59926 2007-10-20  Bruno Haible  <bruno@clisp.org>
59927
59928         * modules/floor: New file.
59929         * m4/floor.m4: New file.
59930         * doc/functions/floor.texi: Mention the 'floor' module.
59931
59932 2007-10-20  Bruno Haible  <bruno@clisp.org>
59933
59934         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
59935         of %a.
59936         * modules/floorf-tests (Depends-on): Likewise.
59937         * modules/truncf-tests (Depends-on): Likewise.
59938         * modules/trunc-tests (Depends-on): Likewise.
59939         Reported by Ben Pfaff.
59940
59941 2007-10-19  Jim Meyering  <meyering@redhat.com>
59942
59943         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
59944         Don't bother testing specific errno values.  Just test ferror.
59945
59946         New module: xprintf
59947         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
59948
59949 2007-10-19  Bruno Haible  <bruno@clisp.org>
59950
59951         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
59952         syntax.
59953         * modules/javaexec (Makefile.am): Likewise.
59954         * modules/relocatable-prog (Makefile.am): Likewise.
59955         Suggested by Jim Meyering.
59956
59957 2007-10-18  Bruno Haible  <bruno@clisp.org>
59958
59959         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
59960         Reported by Jim Meyering.
59961
59962 2007-10-18  Eric Blake  <ebb9@byu.net>
59963
59964         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
59965
59966 2007-10-18  Bruno Haible  <bruno@clisp.org>
59967
59968         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
59969         the format string into writable memory. Needed in Fortify conditions.
59970
59971 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
59972             Bruno Haible  <bruno@clisp.org>
59973
59974         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
59975         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
59976         * modules/trim (Depends-on): Add mbchar.
59977         (configure.ac): Add gl_FUNC_MBRTOWC.
59978         (Makefile.am): Augment lib_SOURCES.
59979
59980 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59981
59982         Modify glob.c to use fstatat and dirfd, to simplify it.
59983         Suggested by Eric Blake.
59984         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
59985         Don't include <stdbool.h>; not used.
59986         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
59987         (link_exists_p): Simplify implementation, since we can now assume
59988         dirfd and fstatat.
59989         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
59990
59991 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59992
59993         * gnulib-tool (func_get_dependencies): Fix sed script to
59994         match only tests.
59995
59996 2007-10-17  Bruno Haible  <bruno@clisp.org>
59997
59998         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
59999         allow locale names without encoding suffix.
60000         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60001         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60002
60003 2007-10-16  Bruno Haible  <bruno@clisp.org>
60004
60005         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
60006         * lib/getgroups.c (getgroups): Likewise.
60007         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
60008
60009 2007-10-16  Bruno Haible  <bruno@clisp.org>
60010
60011         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
60012         * modules/malloc-posix (License): Likewise.
60013         * modules/realloc-posix (License): Likewise.
60014         * modules/calloc-posix (License): Likewise.
60015         * modules/intprops (License): Change from GPL to LGPL, with
60016         Paul Eggert's approval.
60017
60018 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60019
60020         Merge glibc changes into lib/glob.c.
60021
60022         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
60023         2007-10-15 04:59:03 UTC.  Here are the changes:
60024
60025         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
60026
60027         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
60028
60029         * lib/glob.c: Add some branch prediction throughout.
60030
60031         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
60032
60033         [BZ #5103]
60034         * lib/glob.c (glob): Recognize patterns starting \/.
60035
60036         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
60037
60038         [BZ #3996]
60039         * lib/glob.c (attribute_hidden): Define if not defined.
60040         (glob): Unescape dirname, filename or username when needed and not
60041         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
60042         is NULL.  Handle unescaped [ in pattern without closing ].
60043         Don't pass GLOB_CHECK down to recursive glob for directories.
60044         (__glob_pattern_type): New function.
60045         (__glob_pattern_p): Implement using __glob_pattern_type.
60046         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
60047         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
60048         Remove unreachable code.
60049
60050         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
60051
60052         * lib/glob.c (glob_in_dir): Add some comments and asserts to
60053         explain why there are no leaks.
60054
60055         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
60056
60057         [BZ #3253]
60058         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
60059         time, rather allocate increasingly bigger arrays of pointers, if
60060         possible with alloca, if too large with malloc.
60061
60062 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60063
60064         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
60065         Problem reported by H.Merijn Brand in
60066         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
60067         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
60068         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60069
60070 2007-10-15  Bruno Haible  <bruno@clisp.org>
60071
60072         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
60073         with explicit rpl_ prefix.
60074         * lib/fopen.c (fopen): Likewise.
60075         * lib/freopen.c (freopen): Likewise.
60076         * lib/iconv.c (iconv): Likewise.
60077         * lib/iconv_close.c (iconv_close): Likewise.
60078
60079 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60080
60081         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
60082
60083 2007-10-15  Bruno Haible  <bruno@clisp.org>
60084
60085         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
60086         <stddef.h> instead of <stdlib.h> since we only need NULL.
60087         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60088
60089 2007-10-15  Bruno Haible  <bruno@clisp.org>
60090
60091         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
60092         Replace paragraph talking about LIBOBJS.
60093         Reported by Colin Watson <cjwatson@debian.org>.
60094
60095 2007-10-15  Bruno Haible  <bruno@clisp.org>
60096
60097         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
60098         <stdlib.h> before using NULL.
60099
60100 2007-10-15  Simon Josefsson  <simon@josefsson.org>
60101
60102         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
60103         Reported by Albert Chin <china@thewrittenword.com>.
60104
60105 2007-10-14  Bruno Haible  <bruno@clisp.org>
60106
60107         * modules/iconv_open-utf-tests: New file.
60108         * tests/test-iconv-utf.c: New file.
60109
60110         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
60111         * modules/iconv_open-utf: New file.
60112         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
60113         (iconv, iconv_close): New declarations.
60114         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
60115         be defined.
60116         (iconv_open): Add special handling of conversion between UTF-8 and
60117         UTF-{16,32}{BE,LE}.
60118         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
60119         * lib/iconv_close.c: New file.
60120         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
60121         gl_FUNC_ICONV_OPEN.
60122         (gl_FUNC_ICONV_OPEN): Use it.
60123         (gl_FUNC_ICONV_OPEN_UTF): New macro.
60124         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
60125         and REPLACE_ICONV_UTF.
60126         * modules/iconv_open (Depends-on): Add c-strcase.
60127         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
60128         ICONV_CONST.
60129         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
60130
60131 2007-10-13  Albert Chin  <china@thewrittenword.com>
60132             Bruno Haible  <bruno@clisp.org>
60133
60134         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
60135         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
60136
60137 2007-10-13  Bruno Haible  <bruno@clisp.org>
60138
60139         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
60140         defined, use the ISO C99 inline semantics.
60141         * lib/argp.h (ARGP_EI): Likewise.
60142
60143 2007-10-13  Bruno Haible  <bruno@clisp.org>
60144
60145         Handle 'inline' change in gcc 4.3.0.
60146         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
60147         argp_fmtstream_write, argp_fmtstream_set_lmargin,
60148         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
60149         argp_fmtstream_point): Disable 'extern' declaration if the function
60150         definition is going to be provided inline.
60151         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
60152         semantics, not the ISO C99 inline semantics.
60153         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
60154         'extern' declaration if the function definition is going to be provided
60155         inline.
60156         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
60157         the GNU C inline semantics, not the ISO C99 inline semantics. With
60158         GCC 4.2, avoid a warning.
60159
60160 2007-10-13  Bruno Haible  <bruno@clisp.org>
60161
60162         * lib/freading.h (freading): Enable the use of __freading for
60163         glibc >= 2.7.
60164         * lib/freading.c (freading): Likewise.
60165
60166 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60167
60168         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
60169         "warning: C99 inline functions are not supported; using GNU89".
60170
60171 2007-10-12  Bruno Haible  <bruno@clisp.org>
60172
60173         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
60174         of 2.
60175         * tests/test-ceilf2.c: New file.
60176         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
60177
60178         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
60179         * modules/ceilf-tests: Update.
60180
60181 2007-10-12  Bruno Haible  <bruno@clisp.org>
60182
60183         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
60184         of 2.
60185         * tests/test-floorf2.c: New file.
60186         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
60187
60188         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
60189         * modules/floorf-tests: Update.
60190
60191 2007-10-12  Bruno Haible  <bruno@clisp.org>
60192
60193         * tests/test-trunc2.c: New file.
60194         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
60195
60196         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
60197         * modules/trunc-tests: Update.
60198
60199 2007-10-12  Bruno Haible  <bruno@clisp.org>
60200
60201         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
60202         of 2.
60203         * tests/test-truncf2.c: New file.
60204         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
60205
60206         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
60207         * modules/truncf-tests: Update.
60208
60209 2007-10-11  Eric Blake  <ebb9@byu.net>
60210
60211         Don't claim strerror is broken on Interix.
60212         * doc/functions/strerror.texi (strerror): Known broken systems are
60213         now Solaris 8, and not Interix.
60214         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
60215         Interix on cross-compile.
60216         Reported by Martin Koeppe in
60217         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
60218
60219 2007-10-11  Bruno Haible  <bruno@clisp.org>
60220
60221         * modules/i-ring-tests: New file.
60222         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
60223         instead of assert.
60224
60225 2007-10-11  Bruno Haible  <bruno@clisp.org>
60226
60227         * modules/filenamecat-tests: New file.
60228         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
60229         * lib/filenamecat.c: Remove test code.
60230
60231 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60232
60233         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
60234
60235         * lib/strerror.c: Include <string.h> always, to test interface,
60236         and to remove the need for the dummy.
60237         Include intprops.h to compute width instead of doing it ourselves
60238         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
60239         (strerror): Define it to return NULL if there's no system strerror.
60240         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
60241         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
60242         ancient pre-strerror Unix systems well any more.  Saying "unknown
60243         system error" is enough.
60244         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
60245         simpler strerror.c implementation.
60246         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
60247         Simplify the tests to reflect the simpler strerror implementation.
60248         * modules/strerror (Depends-on): Add intprops.
60249
60250 2007-10-09  Eric Blake  <ebb9@byu.net>
60251
60252         Silence test-fpending.
60253         * modules/fpending-tests (Files): Add wrapper script.
60254         * tests/test-fpending.sh: New file.
60255
60256 2007-10-09  Bruno Haible  <bruno@clisp.org>
60257
60258         * MODULES.html.sh (func_module): Don't create a hyperlink for
60259         function names like 'printf_frexp'.
60260         (Misc): Add crc, memxor.
60261         (Characteristics of floating types): New section.
60262         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
60263         isnanf-nolibm, signbit, trunc, truncf, truncl.
60264         (Enhancements for ISO C 99 functions): New subsection Input/output.
60265         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
60266         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
60267         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
60268         (Compatibility checks for POSIX:2001 functions): Add clock-time.
60269         (Enhancements for POSIX:2001 functions): Add chdir-long.
60270         (File system functions): Add areadlink, chdir-safer, read-file.
60271         Remove cycle-check.
60272         (File system as inode set): New section.
60273         (Date and time): Add gethrxtime.
60274         (Multithreading): Add openmp.
60275         (Internationalization functions): Add localename.
60276         (Unicode string functions): Add unistr/u*-mbsnlen.
60277         (Support for maintaining and releasing projects): Add git-version-gen.
60278         (Lone files): Remove directories.
60279
60280 2007-10-08  Ben Pfaff  <blp@gnu.org>
60281
60282         * lib/xmalloca.h: Fix typo in comment.
60283
60284 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60285
60286         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
60287         when avoiding problems with integer overflow.  Use a portable test
60288         instead.
60289
60290 2007-10-08  Simon Josefsson  <simon@josefsson.org>
60291
60292         * modules/dummy (License): Change to LGPLv2+.
60293         * modules/float (License): Likewise
60294         * modules/realloc (License): Likewise
60295         * modules/stdlib (License): Likewise
60296
60297 2007-10-07  Bruno Haible  <bruno@clisp.org>
60298
60299         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
60300         * floor.c (TWO_MANT_DIG): Likewise.
60301         * ceil.c (TWO_MANT_DIG): Likewise.
60302         Reported by Ben Pfaff.
60303
60304 2007-10-07  Bruno Haible  <bruno@clisp.org>
60305
60306         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
60307         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
60308         * lib/frexp.c (FUNC): Likewise.
60309         * lib/printf-frexp.h (printf_frexp): Likewise.
60310         * lib/printf-frexpl.h (printf_frexpl): Likewise.
60311         * lib/printf-frexp.c (FUNC): Likewise.
60312         Suggested by Jim Meyering.
60313
60314 2007-10-07  Jim Meyering  <meyering@redhat.com>
60315
60316         Make xnanosleep's integer overflow test more robust.
60317         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
60318         so that gcc-4.3.0 doesn't optimize away this test for overflow.
60319
60320 2007-10-07  Bruno Haible  <bruno@clisp.org>
60321
60322         * NEWS: Mention the license change.
60323
60324         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
60325         abbreviations in the modules files.
60326
60327         Change copyright notice from GPLv2+ to GPLv3+.
60328         * README: Change copyright notice.
60329         * MODULES.html.sh: Likewise.
60330         * build-aux/bootstrap.conf: Likewise.
60331         * build-aux/config.libpath: Likewise.
60332         * build-aux/csharpcomp.sh.in: Likewise.
60333         * build-aux/csharpexec.sh.in: Likewise.
60334         * build-aux/install-reloc: Likewise.
60335         * build-aux/javacomp.sh.in: Likewise.
60336         * build-aux/javaexec.sh.in: Likewise.
60337         * build-aux/ldd.sh.in: Likewise.
60338         * build-aux/reloc-ldflags: Likewise.
60339         * build-aux/relocatable.sh.in: Likewise.
60340         * build-aux/x-to-1.in: Likewise.
60341         * check-module: Likewise.
60342         * config/srclistvars.sh: Likewise.
60343         * gnulib-tool: Likewise.
60344         * lib/acl-internal.h: Likewise.
60345         * lib/acl.c: Likewise.
60346         * lib/acl.h: Likewise.
60347         * lib/acl_entries.c: Likewise.
60348         * lib/areadlink-with-size.c: Likewise.
60349         * lib/areadlink.c: Likewise.
60350         * lib/areadlink.h: Likewise.
60351         * lib/argmatch.c: Likewise.
60352         * lib/argmatch.h: Likewise.
60353         * lib/argp-ba.c: Likewise.
60354         * lib/argp-eexst.c: Likewise.
60355         * lib/argp-fmtstream.c: Likewise.
60356         * lib/argp-fmtstream.h: Likewise.
60357         * lib/argp-fs-xinl.c: Likewise.
60358         * lib/argp-help.c: Likewise.
60359         * lib/argp-namefrob.h: Likewise.
60360         * lib/argp-parse.c: Likewise.
60361         * lib/argp-pin.c: Likewise.
60362         * lib/argp-pv.c: Likewise.
60363         * lib/argp-pvh.c: Likewise.
60364         * lib/argp-xinl.c: Likewise.
60365         * lib/argp.h: Likewise.
60366         * lib/at-func.c: Likewise.
60367         * lib/atanl.c: Likewise.
60368         * lib/backupfile.c: Likewise.
60369         * lib/backupfile.h: Likewise.
60370         * lib/basename.c: Likewise.
60371         * lib/binary-io.h: Likewise.
60372         * lib/byteswap.in.h: Likewise.
60373         * lib/c-stack.c: Likewise.
60374         * lib/c-stack.h: Likewise.
60375         * lib/c-strcasestr.c: Likewise.
60376         * lib/c-strcasestr.h: Likewise.
60377         * lib/c-strstr.c: Likewise.
60378         * lib/c-strstr.h: Likewise.
60379         * lib/c-strtod.c: Likewise.
60380         * lib/calloc.c: Likewise.
60381         * lib/canon-host.c: Likewise.
60382         * lib/canon-host.h: Likewise.
60383         * lib/canonicalize-lgpl.c: Likewise.
60384         * lib/canonicalize.c: Likewise.
60385         * lib/canonicalize.h: Likewise.
60386         * lib/ceil.c: Likewise.
60387         * lib/ceilf.c: Likewise.
60388         * lib/ceill.c: Likewise.
60389         * lib/chdir-long.c: Likewise.
60390         * lib/chdir-long.h: Likewise.
60391         * lib/chdir-safer.c: Likewise.
60392         * lib/chdir-safer.h: Likewise.
60393         * lib/chown.c: Likewise.
60394         * lib/classpath.c: Likewise.
60395         * lib/classpath.h: Likewise.
60396         * lib/clean-temp.c: Likewise.
60397         * lib/clean-temp.h: Likewise.
60398         * lib/cloexec.c: Likewise.
60399         * lib/close-stream.c: Likewise.
60400         * lib/closein.c: Likewise.
60401         * lib/closein.h: Likewise.
60402         * lib/closeout.c: Likewise.
60403         * lib/closeout.h: Likewise.
60404         * lib/concat-filename.c: Likewise.
60405         * lib/copy-file.c: Likewise.
60406         * lib/copy-file.h: Likewise.
60407         * lib/count-one-bits.h: Likewise.
60408         * lib/crc.c: Likewise.
60409         * lib/crc.h: Likewise.
60410         * lib/creat-safer.c: Likewise.
60411         * lib/csharpcomp.c: Likewise.
60412         * lib/csharpcomp.h: Likewise.
60413         * lib/csharpexec.c: Likewise.
60414         * lib/csharpexec.h: Likewise.
60415         * lib/cycle-check.c: Likewise.
60416         * lib/cycle-check.h: Likewise.
60417         * lib/diacrit.c: Likewise.
60418         * lib/diacrit.h: Likewise.
60419         * lib/diffseq.h: Likewise.
60420         * lib/dirchownmod.c: Likewise.
60421         * lib/dirent.in.h: Likewise.
60422         * lib/dirfd.c: Likewise.
60423         * lib/dirfd.h: Likewise.
60424         * lib/dirname.c: Likewise.
60425         * lib/dirname.h: Likewise.
60426         * lib/dummy.c: Likewise.
60427         * lib/dup-safer.c: Likewise.
60428         * lib/dup2.c: Likewise.
60429         * lib/eealloc.h: Likewise.
60430         * lib/error.c: Likewise.
60431         * lib/error.h: Likewise.
60432         * lib/euidaccess.c: Likewise.
60433         * lib/exclude.c: Likewise.
60434         * lib/exclude.h: Likewise.
60435         * lib/execute.c: Likewise.
60436         * lib/execute.h: Likewise.
60437         * lib/exitfail.c: Likewise.
60438         * lib/exitfail.h: Likewise.
60439         * lib/expl.c: Likewise.
60440         * lib/fatal-signal.c: Likewise.
60441         * lib/fatal-signal.h: Likewise.
60442         * lib/fbufmode.c: Likewise.
60443         * lib/fbufmode.h: Likewise.
60444         * lib/fchdir.c: Likewise.
60445         * lib/fchmodat.c: Likewise.
60446         * lib/fchownat.c: Likewise.
60447         * lib/fcntl--.h: Likewise.
60448         * lib/fcntl-safer.h: Likewise.
60449         * lib/fcntl.in.h: Likewise.
60450         * lib/fd-safer.c: Likewise.
60451         * lib/fflush.c: Likewise.
60452         * lib/file-has-acl.c: Likewise.
60453         * lib/file-set.c: Likewise.
60454         * lib/file-type.c: Likewise.
60455         * lib/file-type.h: Likewise.
60456         * lib/fileblocks.c: Likewise.
60457         * lib/filemode.c: Likewise.
60458         * lib/filemode.h: Likewise.
60459         * lib/filename.h: Likewise.
60460         * lib/filenamecat.c: Likewise.
60461         * lib/filenamecat.h: Likewise.
60462         * lib/findprog.c: Likewise.
60463         * lib/findprog.h: Likewise.
60464         * lib/float.in.h: Likewise.
60465         * lib/floor.c: Likewise.
60466         * lib/floorf.c: Likewise.
60467         * lib/floorl.c: Likewise.
60468         * lib/fopen-safer.c: Likewise.
60469         * lib/fopen.c: Likewise.
60470         * lib/fpending.c: Likewise.
60471         * lib/fpending.h: Likewise.
60472         * lib/fprintf.c: Likewise.
60473         * lib/fprintftime.h: Likewise.
60474         * lib/fpucw.h: Likewise.
60475         * lib/fpurge.c: Likewise.
60476         * lib/fpurge.h: Likewise.
60477         * lib/freadable.c: Likewise.
60478         * lib/freadable.h: Likewise.
60479         * lib/freadahead.c: Likewise.
60480         * lib/freadahead.h: Likewise.
60481         * lib/freading.c: Likewise.
60482         * lib/freading.h: Likewise.
60483         * lib/free.c: Likewise.
60484         * lib/freopen.c: Likewise.
60485         * lib/frexp.c: Likewise.
60486         * lib/frexpl.c: Likewise.
60487         * lib/fseek.c: Likewise.
60488         * lib/fseterr.c: Likewise.
60489         * lib/fseterr.h: Likewise.
60490         * lib/fstatat.c: Likewise.
60491         * lib/fstrcmp.c: Likewise.
60492         * lib/fstrcmp.h: Likewise.
60493         * lib/fsusage.c: Likewise.
60494         * lib/fsusage.h: Likewise.
60495         * lib/ftell.c: Likewise.
60496         * lib/ftello.c: Likewise.
60497         * lib/fts-cycle.c: Likewise.
60498         * lib/fts.c: Likewise.
60499         * lib/fts_.h: Likewise.
60500         * lib/full-read.c: Likewise.
60501         * lib/full-read.h: Likewise.
60502         * lib/full-write.c: Likewise.
60503         * lib/full-write.h: Likewise.
60504         * lib/fwritable.c: Likewise.
60505         * lib/fwritable.h: Likewise.
60506         * lib/fwriteerror.c: Likewise.
60507         * lib/fwriteerror.h: Likewise.
60508         * lib/fwriting.c: Likewise.
60509         * lib/fwriting.h: Likewise.
60510         * lib/gcd.c: Likewise.
60511         * lib/gcd.h: Likewise.
60512         * lib/getcwd.c: Likewise.
60513         * lib/getdate.h: Likewise.
60514         * lib/getdate.y: Likewise.
60515         * lib/getdomainname.c: Likewise.
60516         * lib/getdomainname.h: Likewise.
60517         * lib/getgroups.c: Likewise.
60518         * lib/gethostname.c: Likewise.
60519         * lib/gethrxtime.c: Likewise.
60520         * lib/gethrxtime.h: Likewise.
60521         * lib/getloadavg.c: Likewise.
60522         * lib/getndelim2.c: Likewise.
60523         * lib/getndelim2.h: Likewise.
60524         * lib/getnline.c: Likewise.
60525         * lib/getnline.h: Likewise.
60526         * lib/getopt.c: Likewise.
60527         * lib/getopt.in.h: Likewise.
60528         * lib/getopt1.c: Likewise.
60529         * lib/getopt_int.h: Likewise.
60530         * lib/getpagesize.h: Likewise.
60531         * lib/getsubopt.c: Likewise.
60532         * lib/gettime.c: Likewise.
60533         * lib/getugroups.c: Likewise.
60534         * lib/getugroups.h: Likewise.
60535         * lib/getusershell.c: Likewise.
60536         * lib/gl_anyavltree_list1.h: Likewise.
60537         * lib/gl_anyavltree_list2.h: Likewise.
60538         * lib/gl_anyhash_list1.h: Likewise.
60539         * lib/gl_anyhash_list2.h: Likewise.
60540         * lib/gl_anylinked_list1.h: Likewise.
60541         * lib/gl_anylinked_list2.h: Likewise.
60542         * lib/gl_anyrbtree_list1.h: Likewise.
60543         * lib/gl_anyrbtree_list2.h: Likewise.
60544         * lib/gl_anytree_list1.h: Likewise.
60545         * lib/gl_anytree_list2.h: Likewise.
60546         * lib/gl_anytree_oset.h: Likewise.
60547         * lib/gl_anytreehash_list1.h: Likewise.
60548         * lib/gl_anytreehash_list2.h: Likewise.
60549         * lib/gl_array_list.c: Likewise.
60550         * lib/gl_array_list.h: Likewise.
60551         * lib/gl_array_oset.c: Likewise.
60552         * lib/gl_array_oset.h: Likewise.
60553         * lib/gl_avltree_list.c: Likewise.
60554         * lib/gl_avltree_list.h: Likewise.
60555         * lib/gl_avltree_oset.c: Likewise.
60556         * lib/gl_avltree_oset.h: Likewise.
60557         * lib/gl_avltreehash_list.c: Likewise.
60558         * lib/gl_avltreehash_list.h: Likewise.
60559         * lib/gl_carray_list.c: Likewise.
60560         * lib/gl_carray_list.h: Likewise.
60561         * lib/gl_linked_list.c: Likewise.
60562         * lib/gl_linked_list.h: Likewise.
60563         * lib/gl_linkedhash_list.c: Likewise.
60564         * lib/gl_linkedhash_list.h: Likewise.
60565         * lib/gl_list.c: Likewise.
60566         * lib/gl_list.h: Likewise.
60567         * lib/gl_oset.c: Likewise.
60568         * lib/gl_oset.h: Likewise.
60569         * lib/gl_rbtree_list.c: Likewise.
60570         * lib/gl_rbtree_list.h: Likewise.
60571         * lib/gl_rbtree_oset.c: Likewise.
60572         * lib/gl_rbtree_oset.h: Likewise.
60573         * lib/gl_rbtreehash_list.c: Likewise.
60574         * lib/gl_rbtreehash_list.h: Likewise.
60575         * lib/gl_sublist.c: Likewise.
60576         * lib/gl_sublist.h: Likewise.
60577         * lib/group-member.c: Likewise.
60578         * lib/group-member.h: Likewise.
60579         * lib/hard-locale.c: Likewise.
60580         * lib/hard-locale.h: Likewise.
60581         * lib/hash-pjw.c: Likewise.
60582         * lib/hash-pjw.h: Likewise.
60583         * lib/hash-triple.c: Likewise.
60584         * lib/hash.c: Likewise.
60585         * lib/hash.h: Likewise.
60586         * lib/human.c: Likewise.
60587         * lib/human.h: Likewise.
60588         * lib/i-ring.c: Likewise.
60589         * lib/i-ring.h: Likewise.
60590         * lib/idcache.c: Likewise.
60591         * lib/imaxabs.c: Likewise.
60592         * lib/imaxdiv.c: Likewise.
60593         * lib/inet_pton.c: Likewise.
60594         * lib/inet_pton.h: Likewise.
60595         * lib/intprops.h: Likewise.
60596         * lib/inttostr.c: Likewise.
60597         * lib/inttostr.h: Likewise.
60598         * lib/inttypes.in.h: Likewise.
60599         * lib/isapipe.c: Likewise.
60600         * lib/isdir.c: Likewise.
60601         * lib/isnan.c: Likewise.
60602         * lib/isnan.h: Likewise.
60603         * lib/isnanf.c: Likewise.
60604         * lib/isnanf.h: Likewise.
60605         * lib/isnanl-nolibm.h: Likewise.
60606         * lib/isnanl.c: Likewise.
60607         * lib/isnanl.h: Likewise.
60608         * lib/javacomp.c: Likewise.
60609         * lib/javacomp.h: Likewise.
60610         * lib/javaexec.c: Likewise.
60611         * lib/javaexec.h: Likewise.
60612         * lib/javaversion.c: Likewise.
60613         * lib/javaversion.h: Likewise.
60614         * lib/javaversion.java: Likewise.
60615         * lib/lbrkprop.h: Likewise.
60616         * lib/lchmod.h: Likewise.
60617         * lib/lchown.c: Likewise.
60618         * lib/ldexpl.c: Likewise.
60619         * lib/linebreak.c: Likewise.
60620         * lib/linebreak.h: Likewise.
60621         * lib/linebuffer.c: Likewise.
60622         * lib/linebuffer.h: Likewise.
60623         * lib/locale.in.h: Likewise.
60624         * lib/logl.c: Likewise.
60625         * lib/long-options.c: Likewise.
60626         * lib/long-options.h: Likewise.
60627         * lib/lstat.c: Likewise.
60628         * lib/lstat.h: Likewise.
60629         * lib/math.in.h: Likewise.
60630         * lib/mbchar.c: Likewise.
60631         * lib/mbchar.h: Likewise.
60632         * lib/mbfile.h: Likewise.
60633         * lib/mbiter.h: Likewise.
60634         * lib/mbscasecmp.c: Likewise.
60635         * lib/mbscasestr.c: Likewise.
60636         * lib/mbschr.c: Likewise.
60637         * lib/mbscspn.c: Likewise.
60638         * lib/mbslen.c: Likewise.
60639         * lib/mbsncasecmp.c: Likewise.
60640         * lib/mbsnlen.c: Likewise.
60641         * lib/mbspbrk.c: Likewise.
60642         * lib/mbspcasecmp.c: Likewise.
60643         * lib/mbsrchr.c: Likewise.
60644         * lib/mbssep.c: Likewise.
60645         * lib/mbsspn.c: Likewise.
60646         * lib/mbsstr.c: Likewise.
60647         * lib/mbstok_r.c: Likewise.
60648         * lib/mbswidth.c: Likewise.
60649         * lib/mbswidth.h: Likewise.
60650         * lib/mbuiter.h: Likewise.
60651         * lib/memcasecmp.c: Likewise.
60652         * lib/memcasecmp.h: Likewise.
60653         * lib/memchr.c: Likewise.
60654         * lib/memcmp.c: Likewise.
60655         * lib/memcoll.c: Likewise.
60656         * lib/memcoll.h: Likewise.
60657         * lib/memcpy.c: Likewise.
60658         * lib/memrchr.c: Likewise.
60659         * lib/mkancesdirs.c: Likewise.
60660         * lib/mkdir-p.c: Likewise.
60661         * lib/mkdir-p.h: Likewise.
60662         * lib/mkdir.c: Likewise.
60663         * lib/mkdirat.c: Likewise.
60664         * lib/mkdtemp.c: Likewise.
60665         * lib/mkstemp-safer.c: Likewise.
60666         * lib/mkstemp.c: Likewise.
60667         * lib/modechange.c: Likewise.
60668         * lib/modechange.h: Likewise.
60669         * lib/mountlist.c: Likewise.
60670         * lib/mountlist.h: Likewise.
60671         * lib/mpsort.c: Likewise.
60672         * lib/nanosleep.c: Likewise.
60673         * lib/obstack.c: Likewise.
60674         * lib/obstack.h: Likewise.
60675         * lib/open-safer.c: Likewise.
60676         * lib/open.c: Likewise.
60677         * lib/openat-die.c: Likewise.
60678         * lib/openat-priv.h: Likewise.
60679         * lib/openat-proc.c: Likewise.
60680         * lib/openat.c: Likewise.
60681         * lib/openat.h: Likewise.
60682         * lib/pagealign_alloc.c: Likewise.
60683         * lib/pagealign_alloc.h: Likewise.
60684         * lib/physmem.c: Likewise.
60685         * lib/physmem.h: Likewise.
60686         * lib/pipe-safer.c: Likewise.
60687         * lib/pipe.c: Likewise.
60688         * lib/pipe.h: Likewise.
60689         * lib/posixtm.c: Likewise.
60690         * lib/posixtm.h: Likewise.
60691         * lib/posixver.c: Likewise.
60692         * lib/printf-frexp.c: Likewise.
60693         * lib/printf-frexp.h: Likewise.
60694         * lib/printf-frexpl.c: Likewise.
60695         * lib/printf-frexpl.h: Likewise.
60696         * lib/printf.c: Likewise.
60697         * lib/progname.c: Likewise.
60698         * lib/progname.h: Likewise.
60699         * lib/progreloc.c: Likewise.
60700         * lib/putenv.c: Likewise.
60701         * lib/quote.c: Likewise.
60702         * lib/quote.h: Likewise.
60703         * lib/quotearg.c: Likewise.
60704         * lib/quotearg.h: Likewise.
60705         * lib/raise.c: Likewise.
60706         * lib/readline.c: Likewise.
60707         * lib/readline.h: Likewise.
60708         * lib/readlink.c: Likewise.
60709         * lib/readtokens.c: Likewise.
60710         * lib/readtokens.h: Likewise.
60711         * lib/readtokens0.c: Likewise.
60712         * lib/readtokens0.h: Likewise.
60713         * lib/readutmp.c: Likewise.
60714         * lib/readutmp.h: Likewise.
60715         * lib/realloc.c: Likewise.
60716         * lib/relocwrapper.c: Likewise.
60717         * lib/rename-dest-slash.c: Likewise.
60718         * lib/rename.c: Likewise.
60719         * lib/rmdir.c: Likewise.
60720         * lib/rpmatch.c: Likewise.
60721         * lib/safe-read.c: Likewise.
60722         * lib/safe-read.h: Likewise.
60723         * lib/safe-write.c: Likewise.
60724         * lib/safe-write.h: Likewise.
60725         * lib/same-inode.h: Likewise.
60726         * lib/same.c: Likewise.
60727         * lib/same.h: Likewise.
60728         * lib/save-cwd.c: Likewise.
60729         * lib/save-cwd.h: Likewise.
60730         * lib/savedir.c: Likewise.
60731         * lib/savedir.h: Likewise.
60732         * lib/savewd.c: Likewise.
60733         * lib/savewd.h: Likewise.
60734         * lib/search.in.h: Likewise.
60735         * lib/setenv.c: Likewise.
60736         * lib/setenv.h: Likewise.
60737         * lib/settime.c: Likewise.
60738         * lib/sh-quote.c: Likewise.
60739         * lib/sh-quote.h: Likewise.
60740         * lib/sig2str.c: Likewise.
60741         * lib/sig2str.h: Likewise.
60742         * lib/signal.in.h: Likewise.
60743         * lib/signbitd.c: Likewise.
60744         * lib/signbitf.c: Likewise.
60745         * lib/signbitl.c: Likewise.
60746         * lib/sigprocmask.c: Likewise.
60747         * lib/sincosl.c: Likewise.
60748         * lib/sleep.c: Likewise.
60749         * lib/sprintf.c: Likewise.
60750         * lib/sqrtl.c: Likewise.
60751         * lib/stat-time.h: Likewise.
60752         * lib/stdio--.h: Likewise.
60753         * lib/stdio-safer.h: Likewise.
60754         * lib/stdlib--.h: Likewise.
60755         * lib/stdlib-safer.h: Likewise.
60756         * lib/stdlib.in.h: Likewise.
60757         * lib/stpcpy.c: Likewise.
60758         * lib/stpncpy.c: Likewise.
60759         * lib/strchrnul.c: Likewise.
60760         * lib/strcspn.c: Likewise.
60761         * lib/strerror.c: Likewise.
60762         * lib/strftime.c: Likewise.
60763         * lib/strftime.h: Likewise.
60764         * lib/striconveh.c: Likewise.
60765         * lib/striconveh.h: Likewise.
60766         * lib/striconveha.c: Likewise.
60767         * lib/striconveha.h: Likewise.
60768         * lib/stripslash.c: Likewise.
60769         * lib/strnlen1.c: Likewise.
60770         * lib/strnlen1.h: Likewise.
60771         * lib/strtod.c: Likewise.
60772         * lib/strtoimax.c: Likewise.
60773         * lib/strtok_r.c: Likewise.
60774         * lib/strtol.c: Likewise.
60775         * lib/strtoll.c: Likewise.
60776         * lib/strtoul.c: Likewise.
60777         * lib/strtoull.c: Likewise.
60778         * lib/sysexits.in.h: Likewise.
60779         * lib/tempname.c: Likewise.
60780         * lib/tempname.h: Likewise.
60781         * lib/timespec.h: Likewise.
60782         * lib/tls.c: Likewise.
60783         * lib/tls.h: Likewise.
60784         * lib/tmpdir.c: Likewise.
60785         * lib/tmpdir.h: Likewise.
60786         * lib/tmpfile-safer.c: Likewise.
60787         * lib/tmpfile.c: Likewise.
60788         * lib/trigl.c: Likewise.
60789         * lib/trigl.h: Likewise.
60790         * lib/trim.c: Likewise.
60791         * lib/trim.h: Likewise.
60792         * lib/trunc.c: Likewise.
60793         * lib/truncf.c: Likewise.
60794         * lib/truncl.c: Likewise.
60795         * lib/tsearch.c: Likewise.
60796         * lib/unicodeio.c: Likewise.
60797         * lib/unicodeio.h: Likewise.
60798         * lib/unistd--.h: Likewise.
60799         * lib/unistd-safer.h: Likewise.
60800         * lib/unistdio/ulc-fprintf.c: Likewise.
60801         * lib/unistdio/ulc-vfprintf.c: Likewise.
60802         * lib/unlinkdir.c: Likewise.
60803         * lib/unlinkdir.h: Likewise.
60804         * lib/unlocked-io.h: Likewise.
60805         * lib/unsetenv.c: Likewise.
60806         * lib/userspec.c: Likewise.
60807         * lib/utime.c: Likewise.
60808         * lib/utimecmp.c: Likewise.
60809         * lib/utimecmp.h: Likewise.
60810         * lib/utimens.c: Likewise.
60811         * lib/verify.h: Likewise.
60812         * lib/verror.c: Likewise.
60813         * lib/verror.h: Likewise.
60814         * lib/version-etc-fsf.c: Likewise.
60815         * lib/version-etc.c: Likewise.
60816         * lib/version-etc.h: Likewise.
60817         * lib/vfprintf.c: Likewise.
60818         * lib/vprintf.c: Likewise.
60819         * lib/vsprintf.c: Likewise.
60820         * lib/w32spawn.h: Likewise.
60821         * lib/wait-process.c: Likewise.
60822         * lib/wait-process.h: Likewise.
60823         * lib/wcwidth.c: Likewise.
60824         * lib/write-any-file.c: Likewise.
60825         * lib/xalloc-die.c: Likewise.
60826         * lib/xalloc.h: Likewise.
60827         * lib/xasprintf.c: Likewise.
60828         * lib/xgetcwd.c: Likewise.
60829         * lib/xgetcwd.h: Likewise.
60830         * lib/xgetdomainname.c: Likewise.
60831         * lib/xgetdomainname.h: Likewise.
60832         * lib/xgethostname.c: Likewise.
60833         * lib/xmalloc.c: Likewise.
60834         * lib/xmalloca.c: Likewise.
60835         * lib/xmalloca.h: Likewise.
60836         * lib/xmemcoll.c: Likewise.
60837         * lib/xnanosleep.c: Likewise.
60838         * lib/xreadlink.c: Likewise.
60839         * lib/xreadlink.h: Likewise.
60840         * lib/xsetenv.c: Likewise.
60841         * lib/xsetenv.h: Likewise.
60842         * lib/xstriconv.c: Likewise.
60843         * lib/xstriconv.h: Likewise.
60844         * lib/xstrndup.c: Likewise.
60845         * lib/xstrndup.h: Likewise.
60846         * lib/xstrtod.c: Likewise.
60847         * lib/xstrtod.h: Likewise.
60848         * lib/xstrtol-error.c: Likewise.
60849         * lib/xstrtol.c: Likewise.
60850         * lib/xstrtol.h: Likewise.
60851         * lib/xtime.h: Likewise.
60852         * lib/xvasprintf.c: Likewise.
60853         * lib/xvasprintf.h: Likewise.
60854         * lib/yesno.c: Likewise.
60855         * lib/yesno.h: Likewise.
60856         * posix-modules: Likewise.
60857         * tests/test-alloca-opt.c: Likewise.
60858         * tests/test-arcfour.c: Likewise.
60859         * tests/test-arctwo.c: Likewise.
60860         * tests/test-argmatch.c: Likewise.
60861         * tests/test-argp-2.sh: Likewise.
60862         * tests/test-argp.c: Likewise.
60863         * tests/test-arpa_inet.c: Likewise.
60864         * tests/test-array_list.c: Likewise.
60865         * tests/test-array_oset.c: Likewise.
60866         * tests/test-atexit.c: Likewise.
60867         * tests/test-avltree_list.c: Likewise.
60868         * tests/test-avltree_oset.c: Likewise.
60869         * tests/test-avltreehash_list.c: Likewise.
60870         * tests/test-base64.c: Likewise.
60871         * tests/test-binary-io.c: Likewise.
60872         * tests/test-byteswap.c: Likewise.
60873         * tests/test-c-ctype.c: Likewise.
60874         * tests/test-c-strcasecmp.c: Likewise.
60875         * tests/test-c-strcasestr.c: Likewise.
60876         * tests/test-c-strncasecmp.c: Likewise.
60877         * tests/test-c-strstr.c: Likewise.
60878         * tests/test-canonicalize-lgpl.c: Likewise.
60879         * tests/test-canonicalize.c: Likewise.
60880         * tests/test-carray_list.c: Likewise.
60881         * tests/test-ceilf.c: Likewise.
60882         * tests/test-ceill.c: Likewise.
60883         * tests/test-count-one-bits.c: Likewise.
60884         * tests/test-crc.c: Likewise.
60885         * tests/test-dirname.c: Likewise.
60886         * tests/test-fbufmode.c: Likewise.
60887         * tests/test-fcntl.c: Likewise.
60888         * tests/test-fflush.c: Likewise.
60889         * tests/test-floorf.c: Likewise.
60890         * tests/test-floorl.c: Likewise.
60891         * tests/test-fopen.c: Likewise.
60892         * tests/test-fprintf-posix.c: Likewise.
60893         * tests/test-fprintf-posix.h: Likewise.
60894         * tests/test-fpurge.c: Likewise.
60895         * tests/test-freadable.c: Likewise.
60896         * tests/test-freadahead.c: Likewise.
60897         * tests/test-freading.c: Likewise.
60898         * tests/test-freopen.c: Likewise.
60899         * tests/test-frexp.c: Likewise.
60900         * tests/test-frexpl.c: Likewise.
60901         * tests/test-fseek.c: Likewise.
60902         * tests/test-fseeko.c: Likewise.
60903         * tests/test-fseterr.c: Likewise.
60904         * tests/test-fstrcmp.c: Likewise.
60905         * tests/test-ftell.c: Likewise.
60906         * tests/test-ftello.c: Likewise.
60907         * tests/test-fwritable.c: Likewise.
60908         * tests/test-fwriting.c: Likewise.
60909         * tests/test-getaddrinfo.c: Likewise.
60910         * tests/test-getpass.c: Likewise.
60911         * tests/test-gettimeofday.c: Likewise.
60912         * tests/test-hmac-md5.c: Likewise.
60913         * tests/test-hmac-sha1.c: Likewise.
60914         * tests/test-iconv.c: Likewise.
60915         * tests/test-iconvme.c: Likewise.
60916         * tests/test-inttypes.c: Likewise.
60917         * tests/test-isnan.c: Likewise.
60918         * tests/test-isnanf.c: Likewise.
60919         * tests/test-isnanl-nolibm.c: Likewise.
60920         * tests/test-isnanl.c: Likewise.
60921         * tests/test-isnanl.h: Likewise.
60922         * tests/test-ldexpl.c: Likewise.
60923         * tests/test-linked_list.c: Likewise.
60924         * tests/test-linkedhash_list.c: Likewise.
60925         * tests/test-locale.c: Likewise.
60926         * tests/test-localename.c: Likewise.
60927         * tests/test-lock.c: Likewise.
60928         * tests/test-lseek.c: Likewise.
60929         * tests/test-malloca.c: Likewise.
60930         * tests/test-math.c: Likewise.
60931         * tests/test-mbscasecmp.c: Likewise.
60932         * tests/test-mbscasestr1.c: Likewise.
60933         * tests/test-mbscasestr2.c: Likewise.
60934         * tests/test-mbscasestr3.c: Likewise.
60935         * tests/test-mbscasestr4.c: Likewise.
60936         * tests/test-mbschr.c: Likewise.
60937         * tests/test-mbscspn.c: Likewise.
60938         * tests/test-mbsncasecmp.c: Likewise.
60939         * tests/test-mbspbrk.c: Likewise.
60940         * tests/test-mbspcasecmp.c: Likewise.
60941         * tests/test-mbsrchr.c: Likewise.
60942         * tests/test-mbsspn.c: Likewise.
60943         * tests/test-mbsstr1.c: Likewise.
60944         * tests/test-mbsstr2.c: Likewise.
60945         * tests/test-mbsstr3.c: Likewise.
60946         * tests/test-md5.c: Likewise.
60947         * tests/test-memmem.c: Likewise.
60948         * tests/test-netinet_in.c: Likewise.
60949         * tests/test-open.c: Likewise.
60950         * tests/test-printf-frexp.c: Likewise.
60951         * tests/test-printf-frexpl.c: Likewise.
60952         * tests/test-printf-posix.c: Likewise.
60953         * tests/test-printf-posix.h: Likewise.
60954         * tests/test-rbtree_list.c: Likewise.
60955         * tests/test-rbtree_oset.c: Likewise.
60956         * tests/test-rbtreehash_list.c: Likewise.
60957         * tests/test-read-file.c: Likewise.
60958         * tests/test-rijndael.c: Likewise.
60959         * tests/test-search.c: Likewise.
60960         * tests/test-signbit.c: Likewise.
60961         * tests/test-sleep.c: Likewise.
60962         * tests/test-snprintf-posix.c: Likewise.
60963         * tests/test-snprintf-posix.h: Likewise.
60964         * tests/test-snprintf.c: Likewise.
60965         * tests/test-sprintf-posix.c: Likewise.
60966         * tests/test-sprintf-posix.h: Likewise.
60967         * tests/test-stat-time.c: Likewise.
60968         * tests/test-stdbool.c: Likewise.
60969         * tests/test-stdint.c: Likewise.
60970         * tests/test-stdio.c: Likewise.
60971         * tests/test-stdlib.c: Likewise.
60972         * tests/test-stpncpy.c: Likewise.
60973         * tests/test-strcasestr.c: Likewise.
60974         * tests/test-striconv.c: Likewise.
60975         * tests/test-striconveh.c: Likewise.
60976         * tests/test-striconveha.c: Likewise.
60977         * tests/test-string.c: Likewise.
60978         * tests/test-sys_select.c: Likewise.
60979         * tests/test-sys_socket.c: Likewise.
60980         * tests/test-sys_stat.c: Likewise.
60981         * tests/test-sys_time.c: Likewise.
60982         * tests/test-sysexits.c: Likewise.
60983         * tests/test-time.c: Likewise.
60984         * tests/test-tls.c: Likewise.
60985         * tests/test-trunc.c: Likewise.
60986         * tests/test-truncf.c: Likewise.
60987         * tests/test-truncl.c: Likewise.
60988         * tests/test-unistd.c: Likewise.
60989         * tests/test-vasnprintf-posix.c: Likewise.
60990         * tests/test-vasnprintf-posix2.c: Likewise.
60991         * tests/test-vasnprintf.c: Likewise.
60992         * tests/test-vasprintf-posix.c: Likewise.
60993         * tests/test-vasprintf.c: Likewise.
60994         * tests/test-verify.c: Likewise.
60995         * tests/test-vfprintf-posix.c: Likewise.
60996         * tests/test-vprintf-posix.c: Likewise.
60997         * tests/test-vsnprintf-posix.c: Likewise.
60998         * tests/test-vsnprintf.c: Likewise.
60999         * tests/test-vsprintf-posix.c: Likewise.
61000         * tests/test-wchar.c: Likewise.
61001         * tests/test-wctype.c: Likewise.
61002         * tests/test-wcwidth.c: Likewise.
61003         * tests/test-xstrtol.c: Likewise.
61004         * tests/test-xvasprintf.c: Likewise.
61005         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
61006         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
61007         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61008         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61009         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61010         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
61011         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61012         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61013         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61014         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
61015         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61016         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61017         * tests/uniname/test-uninames.c: Likewise.
61018         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
61019         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
61020         * tests/unistdio/test-u16-printf1.h: Likewise.
61021         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
61022         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
61023         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
61024         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
61025         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
61026         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
61027         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
61028         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
61029         * tests/unistdio/test-u32-printf1.h: Likewise.
61030         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
61031         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
61032         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
61033         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
61034         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
61035         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
61036         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
61037         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
61038         * tests/unistdio/test-u8-printf1.h: Likewise.
61039         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
61040         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
61041         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
61042         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
61043         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
61044         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
61045         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
61046         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
61047         * tests/unistdio/test-ulc-printf1.h: Likewise.
61048         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
61049         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
61050         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
61051         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
61052         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
61053         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
61054         * tests/uniwidth/test-u16-strwidth.c: Likewise.
61055         * tests/uniwidth/test-u16-width.c: Likewise.
61056         * tests/uniwidth/test-u32-strwidth.c: Likewise.
61057         * tests/uniwidth/test-u32-width.c: Likewise.
61058         * tests/uniwidth/test-u8-strwidth.c: Likewise.
61059         * tests/uniwidth/test-u8-width.c: Likewise.
61060         * tests/uniwidth/test-uc_width.c: Likewise.
61061         * config/srclist-update: Likewise.
61062         (fixlicense): Update to GPLv3+.
61063
61064         Change copyright notice from LGPLv2.1+ to LGPLv3+.
61065         * tests/test-tsearch.c: Change copyright notice.
61066
61067         Change copyright notice from LGPLv2.0+ to LGPLv3+.
61068         * lib/c-strcaseeq.h: Change copyright notice.
61069         * lib/streq.h: Likewise.
61070         * lib/uniconv.h: Likewise.
61071         * lib/uniconv/u-conv-from-enc.h: Likewise.
61072         * lib/uniconv/u-conv-to-enc.h: Likewise.
61073         * lib/uniconv/u-strconv-from-enc.h: Likewise.
61074         * lib/uniconv/u-strconv-to-enc.h: Likewise.
61075         * lib/uniconv/u16-conv-from-enc.c: Likewise.
61076         * lib/uniconv/u16-conv-to-enc.c: Likewise.
61077         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
61078         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
61079         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
61080         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
61081         * lib/uniconv/u32-conv-from-enc.c: Likewise.
61082         * lib/uniconv/u32-conv-to-enc.c: Likewise.
61083         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
61084         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
61085         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
61086         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
61087         * lib/uniconv/u8-conv-from-enc.c: Likewise.
61088         * lib/uniconv/u8-conv-to-enc.c: Likewise.
61089         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
61090         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
61091         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
61092         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
61093         * lib/uniname.h: Likewise.
61094         * lib/uniname/uniname.c: Likewise.
61095         * lib/unistdio.h: Likewise.
61096         * lib/unistdio/u-asnprintf.h: Likewise.
61097         * lib/unistdio/u-asprintf.h: Likewise.
61098         * lib/unistdio/u-printf-args.c: Likewise.
61099         * lib/unistdio/u-printf-args.h: Likewise.
61100         * lib/unistdio/u-printf-parse.h: Likewise.
61101         * lib/unistdio/u-snprintf.h: Likewise.
61102         * lib/unistdio/u-sprintf.h: Likewise.
61103         * lib/unistdio/u-vasprintf.h: Likewise.
61104         * lib/unistdio/u-vsnprintf.h: Likewise.
61105         * lib/unistdio/u-vsprintf.h: Likewise.
61106         * lib/unistdio/u16-asnprintf.c: Likewise.
61107         * lib/unistdio/u16-asprintf.c: Likewise.
61108         * lib/unistdio/u16-printf-parse.c: Likewise.
61109         * lib/unistdio/u16-snprintf.c: Likewise.
61110         * lib/unistdio/u16-sprintf.c: Likewise.
61111         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
61112         * lib/unistdio/u16-u16-asprintf.c: Likewise.
61113         * lib/unistdio/u16-u16-snprintf.c: Likewise.
61114         * lib/unistdio/u16-u16-sprintf.c: Likewise.
61115         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
61116         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
61117         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
61118         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
61119         * lib/unistdio/u16-vasnprintf.c: Likewise.
61120         * lib/unistdio/u16-vasprintf.c: Likewise.
61121         * lib/unistdio/u16-vsnprintf.c: Likewise.
61122         * lib/unistdio/u16-vsprintf.c: Likewise.
61123         * lib/unistdio/u32-asnprintf.c: Likewise.
61124         * lib/unistdio/u32-asprintf.c: Likewise.
61125         * lib/unistdio/u32-printf-parse.c: Likewise.
61126         * lib/unistdio/u32-snprintf.c: Likewise.
61127         * lib/unistdio/u32-sprintf.c: Likewise.
61128         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
61129         * lib/unistdio/u32-u32-asprintf.c: Likewise.
61130         * lib/unistdio/u32-u32-snprintf.c: Likewise.
61131         * lib/unistdio/u32-u32-sprintf.c: Likewise.
61132         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
61133         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
61134         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
61135         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
61136         * lib/unistdio/u32-vasnprintf.c: Likewise.
61137         * lib/unistdio/u32-vasprintf.c: Likewise.
61138         * lib/unistdio/u32-vsnprintf.c: Likewise.
61139         * lib/unistdio/u32-vsprintf.c: Likewise.
61140         * lib/unistdio/u8-asnprintf.c: Likewise.
61141         * lib/unistdio/u8-asprintf.c: Likewise.
61142         * lib/unistdio/u8-printf-parse.c: Likewise.
61143         * lib/unistdio/u8-snprintf.c: Likewise.
61144         * lib/unistdio/u8-sprintf.c: Likewise.
61145         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
61146         * lib/unistdio/u8-u8-asprintf.c: Likewise.
61147         * lib/unistdio/u8-u8-snprintf.c: Likewise.
61148         * lib/unistdio/u8-u8-sprintf.c: Likewise.
61149         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
61150         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
61151         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
61152         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
61153         * lib/unistdio/u8-vasnprintf.c: Likewise.
61154         * lib/unistdio/u8-vasprintf.c: Likewise.
61155         * lib/unistdio/u8-vsnprintf.c: Likewise.
61156         * lib/unistdio/u8-vsprintf.c: Likewise.
61157         * lib/unistdio/ulc-asnprintf.c: Likewise.
61158         * lib/unistdio/ulc-asprintf.c: Likewise.
61159         * lib/unistdio/ulc-printf-parse.c: Likewise.
61160         * lib/unistdio/ulc-snprintf.c: Likewise.
61161         * lib/unistdio/ulc-sprintf.c: Likewise.
61162         * lib/unistdio/ulc-vasnprintf.c: Likewise.
61163         * lib/unistdio/ulc-vasprintf.c: Likewise.
61164         * lib/unistdio/ulc-vsnprintf.c: Likewise.
61165         * lib/unistdio/ulc-vsprintf.c: Likewise.
61166         * lib/unistr.h: Likewise.
61167         * lib/unistr/u-cpy-alloc.h: Likewise.
61168         * lib/unistr/u-cpy.h: Likewise.
61169         * lib/unistr/u-endswith.h: Likewise.
61170         * lib/unistr/u-move.h: Likewise.
61171         * lib/unistr/u-set.h: Likewise.
61172         * lib/unistr/u-startswith.h: Likewise.
61173         * lib/unistr/u-stpcpy.h: Likewise.
61174         * lib/unistr/u-stpncpy.h: Likewise.
61175         * lib/unistr/u-strcat.h: Likewise.
61176         * lib/unistr/u-strcpy.h: Likewise.
61177         * lib/unistr/u-strcspn.h: Likewise.
61178         * lib/unistr/u-strdup.h: Likewise.
61179         * lib/unistr/u-strlen.h: Likewise.
61180         * lib/unistr/u-strncat.h: Likewise.
61181         * lib/unistr/u-strncpy.h: Likewise.
61182         * lib/unistr/u-strnlen.h: Likewise.
61183         * lib/unistr/u-strpbrk.h: Likewise.
61184         * lib/unistr/u-strspn.h: Likewise.
61185         * lib/unistr/u-strstr.h: Likewise.
61186         * lib/unistr/u-strtok.h: Likewise.
61187         * lib/unistr/u16-check.c: Likewise.
61188         * lib/unistr/u16-chr.c: Likewise.
61189         * lib/unistr/u16-cmp.c: Likewise.
61190         * lib/unistr/u16-cpy-alloc.c: Likewise.
61191         * lib/unistr/u16-cpy.c: Likewise.
61192         * lib/unistr/u16-endswith.c: Likewise.
61193         * lib/unistr/u16-mblen.c: Likewise.
61194         * lib/unistr/u16-mbsnlen.c: Likewise.
61195         * lib/unistr/u16-mbtouc-aux.c: Likewise.
61196         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
61197         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
61198         * lib/unistr/u16-mbtouc.c: Likewise.
61199         * lib/unistr/u16-mbtoucr.c: Likewise.
61200         * lib/unistr/u16-move.c: Likewise.
61201         * lib/unistr/u16-next.c: Likewise.
61202         * lib/unistr/u16-prev.c: Likewise.
61203         * lib/unistr/u16-set.c: Likewise.
61204         * lib/unistr/u16-startswith.c: Likewise.
61205         * lib/unistr/u16-stpcpy.c: Likewise.
61206         * lib/unistr/u16-stpncpy.c: Likewise.
61207         * lib/unistr/u16-strcat.c: Likewise.
61208         * lib/unistr/u16-strchr.c: Likewise.
61209         * lib/unistr/u16-strcmp.c: Likewise.
61210         * lib/unistr/u16-strcpy.c: Likewise.
61211         * lib/unistr/u16-strcspn.c: Likewise.
61212         * lib/unistr/u16-strdup.c: Likewise.
61213         * lib/unistr/u16-strlen.c: Likewise.
61214         * lib/unistr/u16-strmblen.c: Likewise.
61215         * lib/unistr/u16-strmbtouc.c: Likewise.
61216         * lib/unistr/u16-strncat.c: Likewise.
61217         * lib/unistr/u16-strncmp.c: Likewise.
61218         * lib/unistr/u16-strncpy.c: Likewise.
61219         * lib/unistr/u16-strnlen.c: Likewise.
61220         * lib/unistr/u16-strpbrk.c: Likewise.
61221         * lib/unistr/u16-strrchr.c: Likewise.
61222         * lib/unistr/u16-strspn.c: Likewise.
61223         * lib/unistr/u16-strstr.c: Likewise.
61224         * lib/unistr/u16-strtok.c: Likewise.
61225         * lib/unistr/u16-to-u32.c: Likewise.
61226         * lib/unistr/u16-to-u8.c: Likewise.
61227         * lib/unistr/u16-uctomb-aux.c: Likewise.
61228         * lib/unistr/u16-uctomb.c: Likewise.
61229         * lib/unistr/u32-check.c: Likewise.
61230         * lib/unistr/u32-chr.c: Likewise.
61231         * lib/unistr/u32-cmp.c: Likewise.
61232         * lib/unistr/u32-cpy-alloc.c: Likewise.
61233         * lib/unistr/u32-cpy.c: Likewise.
61234         * lib/unistr/u32-endswith.c: Likewise.
61235         * lib/unistr/u32-mblen.c: Likewise.
61236         * lib/unistr/u32-mbsnlen.c: Likewise.
61237         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
61238         * lib/unistr/u32-mbtouc.c: Likewise.
61239         * lib/unistr/u32-mbtoucr.c: Likewise.
61240         * lib/unistr/u32-move.c: Likewise.
61241         * lib/unistr/u32-next.c: Likewise.
61242         * lib/unistr/u32-prev.c: Likewise.
61243         * lib/unistr/u32-set.c: Likewise.
61244         * lib/unistr/u32-startswith.c: Likewise.
61245         * lib/unistr/u32-stpcpy.c: Likewise.
61246         * lib/unistr/u32-stpncpy.c: Likewise.
61247         * lib/unistr/u32-strcat.c: Likewise.
61248         * lib/unistr/u32-strchr.c: Likewise.
61249         * lib/unistr/u32-strcmp.c: Likewise.
61250         * lib/unistr/u32-strcpy.c: Likewise.
61251         * lib/unistr/u32-strcspn.c: Likewise.
61252         * lib/unistr/u32-strdup.c: Likewise.
61253         * lib/unistr/u32-strlen.c: Likewise.
61254         * lib/unistr/u32-strmblen.c: Likewise.
61255         * lib/unistr/u32-strmbtouc.c: Likewise.
61256         * lib/unistr/u32-strncat.c: Likewise.
61257         * lib/unistr/u32-strncmp.c: Likewise.
61258         * lib/unistr/u32-strncpy.c: Likewise.
61259         * lib/unistr/u32-strnlen.c: Likewise.
61260         * lib/unistr/u32-strpbrk.c: Likewise.
61261         * lib/unistr/u32-strrchr.c: Likewise.
61262         * lib/unistr/u32-strspn.c: Likewise.
61263         * lib/unistr/u32-strstr.c: Likewise.
61264         * lib/unistr/u32-strtok.c: Likewise.
61265         * lib/unistr/u32-to-u16.c: Likewise.
61266         * lib/unistr/u32-to-u8.c: Likewise.
61267         * lib/unistr/u32-uctomb.c: Likewise.
61268         * lib/unistr/u8-check.c: Likewise.
61269         * lib/unistr/u8-chr.c: Likewise.
61270         * lib/unistr/u8-cmp.c: Likewise.
61271         * lib/unistr/u8-cpy-alloc.c: Likewise.
61272         * lib/unistr/u8-cpy.c: Likewise.
61273         * lib/unistr/u8-endswith.c: Likewise.
61274         * lib/unistr/u8-mblen.c: Likewise.
61275         * lib/unistr/u8-mbsnlen.c: Likewise.
61276         * lib/unistr/u8-mbtouc-aux.c: Likewise.
61277         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
61278         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
61279         * lib/unistr/u8-mbtouc.c: Likewise.
61280         * lib/unistr/u8-mbtoucr.c: Likewise.
61281         * lib/unistr/u8-move.c: Likewise.
61282         * lib/unistr/u8-next.c: Likewise.
61283         * lib/unistr/u8-prev.c: Likewise.
61284         * lib/unistr/u8-set.c: Likewise.
61285         * lib/unistr/u8-startswith.c: Likewise.
61286         * lib/unistr/u8-stpcpy.c: Likewise.
61287         * lib/unistr/u8-stpncpy.c: Likewise.
61288         * lib/unistr/u8-strcat.c: Likewise.
61289         * lib/unistr/u8-strchr.c: Likewise.
61290         * lib/unistr/u8-strcmp.c: Likewise.
61291         * lib/unistr/u8-strcpy.c: Likewise.
61292         * lib/unistr/u8-strcspn.c: Likewise.
61293         * lib/unistr/u8-strdup.c: Likewise.
61294         * lib/unistr/u8-strlen.c: Likewise.
61295         * lib/unistr/u8-strmblen.c: Likewise.
61296         * lib/unistr/u8-strmbtouc.c: Likewise.
61297         * lib/unistr/u8-strncat.c: Likewise.
61298         * lib/unistr/u8-strncmp.c: Likewise.
61299         * lib/unistr/u8-strncpy.c: Likewise.
61300         * lib/unistr/u8-strnlen.c: Likewise.
61301         * lib/unistr/u8-strpbrk.c: Likewise.
61302         * lib/unistr/u8-strrchr.c: Likewise.
61303         * lib/unistr/u8-strspn.c: Likewise.
61304         * lib/unistr/u8-strstr.c: Likewise.
61305         * lib/unistr/u8-strtok.c: Likewise.
61306         * lib/unistr/u8-to-u16.c: Likewise.
61307         * lib/unistr/u8-to-u32.c: Likewise.
61308         * lib/unistr/u8-uctomb-aux.c: Likewise.
61309         * lib/unistr/u8-uctomb.c: Likewise.
61310         * lib/unitypes.h: Likewise.
61311         * lib/uniwidth.h: Likewise.
61312         * lib/uniwidth/cjk.h: Likewise.
61313         * lib/uniwidth/u16-strwidth.c: Likewise.
61314         * lib/uniwidth/u16-width.c: Likewise.
61315         * lib/uniwidth/u32-strwidth.c: Likewise.
61316         * lib/uniwidth/u32-width.c: Likewise.
61317         * lib/uniwidth/u8-strwidth.c: Likewise.
61318         * lib/uniwidth/u8-width.c: Likewise.
61319         * lib/uniwidth/width.c: Likewise.
61320
61321 2007-10-07  Bruno Haible  <bruno@clisp.org>
61322
61323         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
61324         The file is still under LGPL (see modules/inttypes).
61325
61326 2007-10-06  Bruno Haible  <bruno@clisp.org>
61327
61328         * modules/trunc (Dependencies): Add 'extensions'.
61329         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
61330         Reported by Ben Pfaff <blp@gnu.org>.
61331
61332 2007-10-06  Bruno Haible  <bruno@clisp.org>
61333
61334         * modules/freopen-tests: New file.
61335         * tests/test-freopen.c: New file.
61336
61337         * modules/fopen-tests: New file.
61338         * tests/test-fopen.c: New file.
61339
61340         * modules/fopen: New file.
61341         * lib/fopen.c: New file.
61342         * m4/fopen.m4: New file.
61343         * modules/freopen: New file.
61344         * lib/freopen.c: New file.
61345         * m4/freopen.m4: New file.
61346         * lib/stdio.in.h (fopen, freopen): New declarations.
61347         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
61348         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61349         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
61350         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61351         * doc/functions/fopen.texi: Mention the 'fopen' module.
61352         * doc/functions/freopen.texi: Mention the 'freopen' module.
61353
61354 2007-10-06  Bruno Haible  <bruno@clisp.org>
61355
61356         * modules/open-tests: New file.
61357         * tests/test-open.c: New file.
61358
61359         * modules/open: New file.
61360         * lib/open.c: New file.
61361         * m4/open.m4: New file.
61362         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
61363         lib/open.c does.
61364         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
61365         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
61366         macros.
61367         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
61368         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
61369         REPLACE_OPEN.
61370         * doc/functions/open.texi: Mention the 'open' module.
61371
61372 2007-10-04  Bruno Haible  <bruno@clisp.org>
61373
61374         * modules/ceill-tests: New file.
61375         * tests/test-ceill.c: New file.
61376
61377         * modules/ceill: New file.
61378         * lib/ceill.c: Replace entire file.
61379         * m4/ceill.m4: New file.
61380         * lib/math.in.h (ceill): Replace declaration.
61381         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
61382         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
61383         * doc/functions/ceill.texi: Mention the 'ceill' module.
61384         * modules/mathl (Files): Remove lib/ceill.c.
61385         (Depends-on): Add ceill.
61386
61387 2007-10-04  Bruno Haible  <bruno@clisp.org>
61388
61389         * modules/ceilf-tests: New file.
61390         * tests/test-ceilf.c: New file.
61391
61392         * modules/ceilf: New file.
61393         * lib/ceil.c: New file.
61394         * lib/ceilf.c: New file.
61395         * m4/ceilf.m4: New file.
61396         * lib/math.in.h (ceilf): New declaration.
61397         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
61398         HAVE_DECL_CEILF.
61399         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
61400         HAVE_DECL_CEILF.
61401         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
61402
61403 2007-10-04  Bruno Haible  <bruno@clisp.org>
61404
61405         * modules/floorl-tests: New file.
61406         * tests/test-floorl.c: New file.
61407
61408         * modules/floorl: New file.
61409         * lib/floorl.c: Replace entire file.
61410         * m4/floorl.m4: New file.
61411         * lib/math.in.h (floorl): Replace declaration.
61412         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
61413         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
61414         * doc/functions/floorl.texi: Mention the 'floorl' module.
61415         * modules/mathl (Files): Remove lib/floorl.c.
61416         (Depends-on): Add floorl.
61417
61418 2007-10-04  Bruno Haible  <bruno@clisp.org>
61419
61420         * modules/floorf-tests: New file.
61421         * tests/test-floorf.c: New file.
61422
61423         * modules/floorf: New file.
61424         * lib/floor.c: New file.
61425         * lib/floorf.c: New file.
61426         * m4/floorf.m4: New file.
61427         * lib/math.in.h (floorf): New declaration.
61428         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
61429         HAVE_DECL_FLOORF.
61430         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
61431         HAVE_DECL_FLOORF.
61432         * doc/functions/floorf.texi: Mention the 'floorf' module.
61433
61434 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
61435             Bruno Haible  <bruno@clisp.org>
61436
61437         Advertise for the Git server instead of the CVS server.
61438         * doc/gnulib-intro.texi (Steady Development): Mention the Git
61439         repository instead of the CVS one.
61440         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
61441         about all VCS systems generically.
61442         * doc/gnulib.texi (Introduction): Capitalize `Git'.
61443
61444 2007-10-04  Bruno Haible  <bruno@clisp.org>
61445
61446         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
61447         means.
61448         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
61449
61450 2007-10-04  Bruno Haible  <bruno@clisp.org>
61451
61452         * modules/truncl-tests: New file.
61453         * tests/test-truncl.c: New file.
61454
61455         * modules/truncl: New file.
61456         * lib/truncl.c: New file.
61457         * m4/truncl.m4: New file.
61458         * lib/math.in.h (truncl): New declaration.
61459         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
61460         HAVE_DECL_TRUNCL.
61461         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
61462         HAVE_DECL_TRUNCL.
61463         * doc/functions/truncl.texi: Mention the 'truncl' module.
61464
61465 2007-10-04  Bruno Haible  <bruno@clisp.org>
61466
61467         * modules/truncf-tests: New file.
61468         * tests/test-truncf.c: New file.
61469
61470         * modules/truncf: New file.
61471         * lib/trunc.c: Make paramerizable through USE_* macros.
61472         * lib/truncf.c: New file.
61473         * m4/truncf.m4: New file.
61474         * lib/math.in.h (truncf): New declaration.
61475         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
61476         HAVE_DECL_TRUNCF.
61477         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
61478         HAVE_DECL_TRUNCF.
61479         * doc/functions/truncf.texi: Mention the 'truncf' module.
61480
61481 2007-10-03  Bruno Haible  <bruno@clisp.org>
61482
61483         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
61484         augmentation also for tests modules.
61485         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
61486         * modules/atexit-tests (Makefile.am): Likewise.
61487         * modules/binary-io-tests (Makefile.am): Likewise.
61488         * modules/c-strcase-tests (Makefile.am): Likewise.
61489         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
61490         * modules/canonicalize-tests (Makefile.am): Likewise.
61491         * modules/closein-tests (Makefile.am): Likewise.
61492         * modules/fprintf-posix-tests (Makefile.am): Likewise.
61493         * modules/freadahead-tests (Makefile.am): Likewise.
61494         * modules/fseek-tests (Makefile.am): Likewise.
61495         * modules/fseeko-tests (Makefile.am): Likewise.
61496         * modules/ftell-tests (Makefile.am): Likewise.
61497         * modules/ftello-tests (Makefile.am): Likewise.
61498         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
61499         * modules/isnanl-tests (Makefile.am): Likewise.
61500         * modules/lseek-tests (Makefile.am): Likewise.
61501         * modules/mbscasecmp-tests (Makefile.am): Likewise.
61502         * modules/mbscasestr-tests (Makefile.am): Likewise.
61503         * modules/mbschr-tests (Makefile.am): Likewise.
61504         * modules/mbscspn-tests (Makefile.am): Likewise.
61505         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
61506         * modules/mbspbrk-tests (Makefile.am): Likewise.
61507         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
61508         * modules/mbsrchr-tests (Makefile.am): Likewise.
61509         * modules/mbsspn-tests (Makefile.am): Likewise.
61510         * modules/mbsstr-tests (Makefile.am): Likewise.
61511         * modules/printf-posix-tests (Makefile.am): Likewise.
61512         * modules/snprintf-posix-tests (Makefile.am): Likewise.
61513         * modules/sprintf-posix-tests (Makefile.am): Likewise.
61514         * modules/tsearch-tests (Makefile.am): Likewise.
61515         * modules/uniname/uniname-tests (Makefile.am): Likewise.
61516         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
61517         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
61518         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
61519         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
61520         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
61521         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
61522         * modules/vprintf-posix-tests (Makefile.am): Likewise.
61523         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
61524         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
61525         * modules/xstrtoimax-tests (Makefile.am): Likewise.
61526         * modules/xstrtol-tests (Makefile.am): Likewise.
61527         * modules/xstrtoumax-tests (Makefile.am): Likewise.
61528         * modules/yesno-tests (Makefile.am): Likewise.
61529
61530 2007-10-03  Bruno Haible  <bruno@clisp.org>
61531
61532         * modules/trunc-tests: New file.
61533         * tests/test-trunc.c: New file.
61534
61535         * modules/trunc: New file.
61536         * lib/trunc.c: New file.
61537         * m4/trunc.m4: New file.
61538         * lib/math.in.h (trunc): New declaration.
61539         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
61540         HAVE_DECL_TRUNC.
61541         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
61542         HAVE_DECL_TRUNC.
61543         * doc/functions/trunc.texi: Mention the 'trunc' module.
61544
61545 2007-10-03  Bruno Haible  <bruno@clisp.org>
61546
61547         * tests/test-fpending.c: New file, mostly copied
61548         from coreutils/lib/t-fpending.c.
61549         * modules/fpending-tests: New file.
61550
61551 2007-10-03  Bruno Haible  <bruno@clisp.org>
61552
61553         Port the stdio extensions to QNX (untested).
61554         * lib/fseterr.c (fseterr): Add support for QNX.
61555         * lib/fbufmode.c (fbufmode): Likewise.
61556         * lib/freadable.c (freadable): Likewise.
61557         * lib/fwritable.c (fwritable): Likewise.
61558         * lib/freading.c (freading): Likewise.
61559         * lib/fwriting.c (fwriting): Likewise.
61560         * lib/freadahead.c (freadahed): Likewise.
61561         * lib/fpurge.c (fpurge): Likewise.
61562         * lib/fseeko.c (rpl_fseeko): Likewise.
61563
61564 2007-10-03  Bruno Haible  <bruno@clisp.org>
61565             Jim Meyering  <jim@meyering.net>
61566             Eric Blake  <ebb9@byu.net>
61567
61568         * doc/relocatable.texi: Use @command instead of @program.
61569
61570 2007-10-02  Jim Meyering  <jim@meyering.net>
61571
61572         Perform one more "_.h" -> ".in.h" substitution.
61573         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
61574         instead of unistd_.h here, too.
61575
61576 2007-10-01  Bruno Haible  <bruno@clisp.org>
61577
61578         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
61579         Needed for the alloca-opt module.
61580
61581 2007-09-30  Bruno Haible  <bruno@clisp.org>
61582
61583         * lib/alloca.in.h: Renamed from lib/alloca_.h.
61584         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
61585         alloca_.h.
61586         * lib/argz.in.h: Renamed from lib/argz_.h.
61587         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
61588         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
61589         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
61590         byteswap_.h.
61591         * lib/dirent.in.h: Renamed from lib/dirent_.h.
61592         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
61593         dirent_.h.
61594         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
61595         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
61596         fcntl_.h.
61597         * lib/float.in.h: Renamed from lib/float_.h.
61598         * modules/float (Files, Makefile.am): Use float.in.h instead of
61599         float_.h.
61600         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
61601         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
61602         fnmatch_.h.
61603         * lib/getopt.in.h: Renamed from lib/getopt_.h.
61604         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
61605         getopt_.h.
61606         * lib/glob.in.h: Renamed from lib/glob_.h.
61607         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
61608         * lib/iconv.in.h: Renamed from lib/iconv_.h.
61609         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
61610         iconv_.h.
61611         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
61612         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
61613         inttypes_.h.
61614         * lib/locale.in.h: Renamed from lib/locale_.h.
61615         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
61616         locale_.h.
61617         * lib/math.in.h: Renamed from lib/math_.h.
61618         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
61619         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
61620         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
61621         of netinet_in_.h. Add dependency.
61622         * lib/poll.in.h: Renamed from lib/poll_.h.
61623         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
61624         * lib/search.in.h: Renamed from lib/search_.h.
61625         * modules/search (Files, Makefile.am): Use search.in.h instead of
61626         search_.h.
61627         * lib/signal.in.h: Renamed from lib/signal_.h.
61628         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
61629         _signal.h.
61630         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
61631         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
61632         stdbool_.h.
61633         * lib/stdint.in.h: Renamed from lib/stdint_.h.
61634         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
61635         stdint_.h.
61636         * lib/stdio.in.h: Renamed from lib/stdio_.h.
61637         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
61638         stdio_.h.
61639         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
61640         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
61641         stdlib_.h.
61642         * lib/string.in.h: Renamed from lib/string_.h.
61643         * modules/string (Files, Makefile.am): Use string.in.h instead of
61644         string_.h.
61645         * doc/gnulib-tool.texi (Initial import): Update.
61646         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
61647         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
61648         of sys_select_.h. Add dependency.
61649         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
61650         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
61651         of sys_socket_.h.
61652         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
61653         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
61654         sys_stat_.h.
61655         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
61656         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
61657         sys_time_.h.
61658         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
61659         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
61660         sysexits_.h.
61661         * lib/time.in.h: Renamed from lib/time_.h.
61662         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
61663         * lib/unistd.in.h: Renamed from lib/unistd_.h.
61664         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
61665         unistd_.h.
61666         * lib/wchar.in.h: Renamed from lib/wchar_.h.
61667         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
61668         wchar_.h.
61669         * lib/wctype.in.h: Renamed from lib/wctype_.h.
61670         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
61671         wctype_.h.
61672         * build-aux/bootstrap (slurp): Update.
61673         * lib/.cppi-disable: Update.
61674
61675 2007-09-30  Bruno Haible  <bruno@clisp.org>
61676
61677         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
61678         Needed on BeOS.
61679
61680 2007-09-30  Bruno Haible  <bruno@clisp.org>
61681
61682         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
61683
61684 2007-09-29  Bruno Haible  <bruno@clisp.org>
61685
61686         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
61687
61688 2007-09-29  Bruno Haible  <bruno@clisp.org>
61689
61690         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
61691         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
61692         * build-aux/install-reloc: Compile also areadlink.c.
61693         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
61694
61695 2007-09-29  Bruno Haible  <bruno@clisp.org>
61696
61697         * gnulib-tool (func_emit_initmacro_done): Indentation.
61698
61699 2007-09-29  Bruno Haible  <bruno@clisp.org>
61700
61701         * README: Add CVS checkout update instructions.
61702         Info from Bob Proulx <bob@proulx.com>.
61703
61704 2007-09-28  Eric Blake  <ebb9@byu.net>
61705
61706         Provide move-if-change.
61707         * build-aux/move-if-change: New file, based on best practice
61708         rather than any canonical upstream location.
61709
61710 2007-09-28  Jim Meyering  <jim@meyering.net>
61711
61712         Fix canonicalize loop-detection corner case.
61713         Do not attempt to stat the symlink values stored via seen_triple.
61714         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
61715         on linux-2.6.18, (but not 2.6.22).
61716         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
61717         triple_compare.  The former compares dev,ino,filename, while the latter
61718         would actually stat dirname(filename) when dev and ino were equal.
61719         * lib/hash-triple.c: Install <string.h>.
61720         (STREQ): Define.
61721         (triple_compare_ino_str): New function.
61722         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
61723
61724 2007-09-28  Eric Blake  <ebb9@byu.net>
61725
61726         Enforce that AC_REPLACE_FUNCS files exist.
61727         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
61728         override check for typos.
61729
61730         Fix test-closein on Solaris 10.
61731         * tests/test-closein.c (main): Don't assume stdin can be inherited
61732         closed on all systems.
61733         * tests/test-closein.sh: Likewise.
61734         Reported by Piotr Tarnowski.
61735
61736 2007-09-28  Jim Meyering  <jim@meyering.net>
61737
61738         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
61739
61740 2007-09-27  Jim Meyering  <jim@meyering.net>
61741
61742         canonicalize: Avoid a false-positive cycle failure.
61743         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
61744         Sort.  Remove cycle-check.
61745         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
61746         not cycle-check.h.
61747         (seen_triple): New function.
61748         (canonicalize_filename_mode): Use it instead of cycle-check.
61749         * tests/test-canonicalize.c: Add a test for this bug.
61750         * tests/test-canonicalize.sh: Set up and run the test.
61751
61752         New module, file-set, from coreutils.
61753         * modules/file-set: Define it.
61754         * lib/file-set.c, lib/file-set.h: Implement.
61755
61756         New module, hash-triple, from coreutils.
61757         * modules/hash-triple: Define it.
61758         * lib/hash-triple.c, lib/hash-triple.h: Implement.
61759
61760 2007-09-25  Eric Blake  <ebb9@byu.net>
61761
61762         Fix strerror on Interix.
61763         * lib/string_.h (strerror): Declare replacement.
61764         * doc/functions/strerror.texi (strerror): Document the Interix
61765         shortcoming.
61766         * modules/string (Makefile.am): Support new hooks.
61767         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
61768         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
61769         gl_FUNC_STRERROR_SEPARATE.
61770         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
61771         * lib/strerror.c (rpl_strerror): Provide replacement.
61772         * modules/strerror (Depends-on): Add string.
61773         (configure.ac): Detect use of module.
61774         * tests/test-strerror.c: New file.
61775         * modules/strerror-tests: New test module.
61776         * modules/argp (Depends-on): Add strerror.
61777         * modules/error (Depends-on): Likewise.
61778         Reported by Martin Koeppe.
61779
61780 2007-09-24  Bruno Haible  <bruno@clisp.org>
61781
61782         * README: Update git instructions.
61783
61784 2007-09-24  Eric Blake  <ebb9@byu.net>
61785
61786         Revert fpending breakage from 2007-09-08.
61787         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
61788         __fpending.c.
61789
61790 2007-09-24  Jim Meyering  <jim@meyering.net>
61791
61792         filenamecat.c: Add a test.
61793         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
61794         showing how the function works when DIR is the empty string.
61795
61796 2007-09-21  Simon Josefsson  <simon@josefsson.org>
61797
61798         * tests/test-canonicalize.sh: Turn on executable bit.
61799
61800 2007-09-19  Eric Blake  <ebb9@byu.net>
61801
61802         * README: Update CVS instructions.
61803
61804 2007-09-18  Bruno Haible  <bruno@clisp.org>
61805
61806         * modules/areadlink: New file.
61807         * lib/areadlink.h (areadlink): New declaration.
61808         * lib/areadlink.c: New file, based on lib/xreadlink.c.
61809
61810 2007-09-17  Jim Meyering  <jim@meyering.net>
61811
61812         * lib/savewd.c (ESTALE) [!defined]: Define.
61813         Reported to be required on Interix by Martin Koeppe.
61814
61815 2007-09-17  Bruno Haible  <bruno@clisp.org>
61816
61817         * gnulib-tool (func_version): Use $version.
61818
61819 2007-09-16  Bruno Haible  <bruno@clisp.org>
61820
61821         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
61822         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
61823         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
61824         Reported by Greg Schafer <gschafer@zip.com.au>.
61825
61826 2007-09-15  Bruno Haible  <bruno@clisp.org>
61827
61828         * gnulib-tool (sed): Try a little harder to make bash understand the
61829         alias.
61830         Reported by Bruce Korb <bruce.korb@gmail.com>.
61831
61832 2007-09-13  Eric Blake  <ebb9@byu.net>
61833
61834         * ChangeLog: Remove conflict markers.
61835
61836 2007-09-13  Simon Josefsson  <simon@josefsson.org>
61837
61838         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
61839         Reported by Bruno Haible <bruno@clisp.org>.
61840
61841 2007-09-12  Bruno Haible  <bruno@clisp.org>
61842
61843         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
61844         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
61845         is not defined.
61846
61847 2007-09-12  Eric Blake  <ebb9@byu.net>
61848
61849         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
61850         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
61851         Autoconf definition.
61852         * modules/euidaccess (Depends-on): Add extensions, for
61853         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
61854         * modules/fnmatch (Depends-on): Likewise.
61855         * modules/getaddrinfo (Depends-on): Likewise.
61856         * modules/getdelim (Depends-on): Likewise.
61857         * modules/getline (Depends-on): Likewise.
61858         * modules/getsubopt (Depends-on): Likewise.
61859         * modules/gettext (Depends-on): Likewise.
61860         * modules/group-member (Depends-on): Likewise.
61861         * modules/mbchar (Depends-on): Likewise.
61862         * modules/memmem (Depends-on): Likewise.
61863         * modules/mempcpy (Depends-on): Likewise.
61864         * modules/memrchr (Depends-on): Likewise.
61865         * modules/pagealign_alloc (Depends-on): Likewise.
61866         * modules/readutmp (Depends-on): Likewise.
61867         * modules/stpcpy (Depends-on): Likewise.
61868         * modules/stpncpy (Depends-on): Likewise.
61869         * modules/strchrnul (Depends-on): Likewise.
61870         * modules/strndup (Depends-on): Likewise.
61871         * modules/strsep (Depends-on): Likewise.
61872         * modules/strverscmp (Depends-on): Likewise.
61873         * modules/vasprintf (Depends-on): Likewise.
61874         * modules/wcwidth (Depends-on): Likewise.
61875         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
61876         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
61877         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
61878         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
61879         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
61880         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
61881         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
61882         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61883         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
61884         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
61885         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61886         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
61887         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
61888         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
61889         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
61890         * m4/readutmp.m4 (gl_READUTMP): Likewise.
61891         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61892         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
61893         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61894         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
61895         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
61896         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
61897         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
61898         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
61899         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
61900         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61901         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
61902         so that lock.m4 can be used in gettext without extensions module.
61903
61904 2007-09-11  Bruno Haible  <bruno@clisp.org>
61905
61906         * m4/isc-posix.m4: Remove file.
61907         Suggested by Eric Blake.
61908
61909 2007-09-11  Eric Blake  <ebb9@byu.net>
61910
61911         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
61912
61913 2007-09-10  Bruno Haible  <bruno@clisp.org>
61914
61915         * posix-modules: Fix typo in error message.
61916         Reported by Matt <mkraai@beckman.com>.
61917
61918 2007-09-09  Bruno Haible  <bruno@clisp.org>
61919
61920         * doc/functions/getdelim.texi: Update list of platforms lacking the
61921         function.
61922         * doc/functions/getline.texi: Likewise.
61923
61924 2007-09-09  Jim Meyering  <jim@meyering.net>
61925
61926         * lib/hash.c (hash_initialize): Detect calloc failure.
61927         Reported by Bruno Haible.
61928
61929 2007-09-09  Bruno Haible  <bruno@clisp.org>
61930
61931         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
61932         malloc or realloc fails.
61933
61934 2007-09-09  Bruno Haible  <bruno@clisp.org>
61935
61936         * modules/getcwd (Depends-on): Add malloc-posix.
61937         * modules/glob (Depends-on): Likewise.
61938         * modules/putenv (Depends-on): Likewise.
61939         * modules/strdup (Depends-on): Likewise.
61940         * modules/getdelim (Depends-on): Add realloc-posix.
61941         * modules/read-file (Depends-on): Likewise.
61942
61943 2007-09-09  Bruno Haible  <bruno@clisp.org>
61944
61945         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
61946         (gl_FUNC_MALLOC_POSIX): Require it.
61947         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
61948         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
61949         * modules/realloc (Files): Add m4/malloc.m4.
61950         * modules/calloc (Files): Likewise.
61951
61952 2007-09-09  Bruno Haible  <bruno@clisp.org>
61953
61954         * modules/malloc-posix: New file.
61955         * modules/malloc (Depends-on): Add malloc-posix.
61956         * lib/malloc.c: Include errno.h.
61957         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
61958         and a POSIX-compatible malloc into a single function. Set ENOMEM
61959         when returning NULL.
61960         * m4/malloc.m4: New file.
61961         * doc/functions/malloc.texi: Mention the malloc-posix module.
61962         * lib/stdlib_.h (malloc): New declaration.
61963         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61964         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
61965         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
61966         and HAVE_MALLOC_POSIX.
61967
61968 2007-09-09  Bruno Haible  <bruno@clisp.org>
61969
61970         * modules/realloc-posix: New file.
61971         * modules/realloc (Depends-on): Add realloc-posix.
61972         * lib/realloc.c: Include errno.h.
61973         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
61974         and a POSIX-compatible realloc into a single function. Set ENOMEM
61975         when returning NULL.
61976         * m4/realloc.m4: New file.
61977         * doc/functions/realloc.texi: Mention the realloc-posix module.
61978         * lib/stdlib_.h (realloc): New declaration.
61979         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61980         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
61981         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
61982         and HAVE_REALLOC_POSIX.
61983
61984 2007-09-09  Bruno Haible  <bruno@clisp.org>
61985
61986         * modules/calloc-posix: New file.
61987         * modules/calloc (Depends-on): Add calloc-posix.
61988         * lib/calloc.c: Include errno.h.
61989         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
61990         and a POSIX-compatible calloc into a single function. Set ENOMEM
61991         when returning NULL.
61992         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
61993         * doc/functions/calloc.texi: Mention the calloc-posix module.
61994         * lib/stdlib_.h (calloc): New declaration.
61995         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61996         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
61997         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
61998         and HAVE_CALLOC_POSIX.
61999
62000 2007-09-09  Bruno Haible  <bruno@clisp.org>
62001
62002         Allow for modules to show an arbitrary notice.
62003         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
62004         * gnulib-tool: New option --extract-notice.
62005         (func_usage): Document it.
62006         (sed_extract_prog): Update.
62007         (func_get_notice): New function.
62008         (func_modules_notice): New function.
62009         (func_import, func_create_testdir): Invoke it.
62010         Suggested by Jim Meyering.
62011
62012 2007-09-09  Bruno Haible  <bruno@clisp.org>
62013
62014         * gnulib-tool: New options --verbose, --quiet.
62015         (func_usage): Document them.
62016         (verbose): New variable.
62017         (func_execute_command): New function.
62018         (func_import): Don't show the module list and the file list if
62019         $verbose < 0.
62020         (func_create_testdir): Likewise. Use func_execute_command.
62021         (func_create_megatestdir): Use func_execute_command.
62022
62023 2007-09-08  Bruno Haible  <bruno@clisp.org>
62024
62025         * gnulib-tool (func_import): Prefer rsync over wget when available,
62026         for fetching the PO files.
62027
62028 2007-09-08  Bruno Haible  <bruno@clisp.org>
62029
62030         * posix-modules: New file. Portions copied from gnulib-tool.
62031         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
62032
62033 2007-09-08  Jim Meyering  <jim@meyering.net>
62034
62035         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
62036         * lib/fpending.h: Rename from __fpending.h.
62037         * lib/fpending.c: Rename from __fpending.c.
62038         Include "fpending.h", not "__fpending.h".
62039         * lib/__fpending.h, lib/__fpending.c: Remove files.
62040         * modules/fpending (Files): Reflect new file names.
62041         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
62042
62043 2007-09-08  Bruno Haible  <bruno@clisp.org>
62044
62045         * m4/inttypes-h.m4: Remove stub file.
62046
62047 2007-09-07  Simon Josefsson  <simon@josefsson.org>
62048
62049         * doc/headers/stdint.texi: Discuss #include_next issue.
62050
62051 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62052
62053         * build-aux/bootstrap: Remove obsolete comment about wget --help.
62054
62055 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62056
62057         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
62058         in variable name.
62059
62060 2007-09-03  Jim Meyering  <jim@meyering.net>
62061
62062         New module: git-version-gen.
62063         * modules/git-version-gen: New file.
62064
62065         Import changes from coreutils for bootstrap script.
62066
62067         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
62068
62069         bootstrap: uses rsync to download the .po files
62070         * build-aux/bootstrap (po_download_command_format): New global.
62071         (download_po_files): Use rsync.
62072         (update_po_files): Don't remove .po files after download,
62073         so future rsync runs can take advantage of the copies.
62074
62075         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
62076
62077         Solve the unnecessary-.po-file-regeneration problem once and for all.
62078         * build-aux/bootstrap (download_po_files): New function, renamed from
62079         get_translations.  Now, downloads, but doesn't update LINGUAS.
62080         (update_po_files): New function.
62081
62082         bootstrap: Ignore more.
62083         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
62084         uniwidth to e.g., lib/.gitignore.
62085         (slurp): Handle the sys_stat_.h -> sys mapping, too.
62086
62087         * build-aux/bootstrap: New setting: vc_ignore.
62088         (insert_sorted_if_absent): Create $file if absent.
62089         Adapt to new, possibly empty, list: $vc_ignore.
62090
62091         bootstrap: generate more ignorable names
62092         * build-aux/bootstrap (slurp): When generating ignorable names,
62093         also map .sin to .sed, .gperf to .c, and .y to .c.
62094
62095 2007-09-03  Jim Meyering  <jim@meyering.net>
62096
62097         * build-aux/git-version-gen: New file, from coreutils.  For details, see
62098         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
62099
62100 2007-09-02  Bruno Haible  <bruno@clisp.org>
62101
62102         Fix mis-recognition of 'mcs' on QNX 6.
62103         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
62104         output contains the string "Mono".
62105         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
62106         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
62107
62108 2007-09-01  Bruno Haible  <bruno@clisp.org>
62109
62110         Fix collision between uniwidth/* and linebreak modules.
62111         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
62112         u32_width): Remove declarations.
62113         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
62114         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
62115         streq3, streq2, streq1, streq0): Remove functions.
62116         (STREQ): Remove macro.
62117         (is_cjk_encoding): Remove function.
62118         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
62119         (uc_width, u8_width, u16_width, u32_width): Remove functions.
62120         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
62121         * NEWS: Document the change.
62122
62123 2007-09-01  Bruno Haible  <bruno@clisp.org>
62124
62125         * lib/streq.h: Add double-inclusion guard.
62126
62127 2007-09-01  Karl Berry  <karl@gnu.org>
62128
62129         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
62130
62131 2007-08-28  Jim Meyering  <jim@meyering.net>
62132
62133         Rename mreadlink_with_size to areadlink_with_size.
62134         * NEWS: Document the change.
62135         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
62136         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
62137         * lib/mreadlink.h: Rename this to...
62138         * lib/areadlink.h: ...this.
62139         * modules/mreadlink-with-size: Rename this to...
62140         * modules/areadlink-with-size: ...this.
62141         * lib/canonicalize.c: Reflect the renaming.
62142         * modules/canonicalize: Likewise.
62143
62144 2007-08-26  Bruno Haible  <bruno@clisp.org>
62145
62146         * gnulib-tool (func_import): When deciding which files to remove,
62147         consider also dangling symbolic links.
62148         Reported by Eric Blake.
62149
62150 2007-08-26  Bruno Haible  <bruno@clisp.org>
62151
62152         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
62153
62154 2007-08-23  Simon Josefsson  <simon@josefsson.org>
62155
62156         * lib/readline.c: Don't include getline.h, the prototype is now
62157         found in stdio.h.
62158
62159 2007-08-23  Jim Meyering  <jim@meyering.net>
62160
62161         Getdelim touchup.
62162         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
62163         around the funlockfile call, since funlockfile never sets errno.
62164         Don't set errno upon failed realloc.
62165
62166 2007-08-22  Eric Blake  <ebb9@byu.net>
62167
62168         Getline touchups.
62169         * lib/getdelim.c (getdelim): Revert regression that required *n to
62170         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
62171         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
62172         getdelim, rather than whether implementation is missing.
62173         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
62174         * lib/stdio_.h (getline): Also declare if replacement is
62175         required.
62176         * doc/functions/getdelim.texi: New file.
62177         * doc/functions/getline.texi: Likewise.
62178         * doc/gnulib.texi (Function Substitutes): Add new files.
62179         Reported by Bruno Haible.
62180
62181 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
62182
62183         * users.txt: Add Guile.
62184
62185 2007-08-22  Eric Blake  <ebb9@byu.net>
62186
62187         * tests/test-getdelim.c (main): Use remove, not unlink.
62188         * tests/test-getline.c (main): Likewise.
62189
62190         Move getline and getdelim into stdio.h, per POSIX 200x.
62191         * modules/getline (Files): Remove getline.h.
62192         (Depends-on): Add stdio.
62193         (configure.ac): Add module indicator.
62194         * modules/getdelim (Files): Remove getdelim.h.
62195         (Depends-on): Add stdio.
62196         (configure.ac): Add module indicator.
62197         * modules/stdio (Makefile.am): Work with new indicators.
62198         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
62199         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
62200         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62201         * lib/getdelim.h: Delete.
62202         * lib/getline.h: Delete.
62203         * lib/stdio_.h (getdelim, getline): Declare.
62204         * modules/getdelim-tests: New module.
62205         * modules/getline-tests: Likewise.
62206         * tests/test-getdelim.c: New file.
62207         * tests/test-getline.c: Likewise.
62208         * NEWS: Document the change.
62209         * lib/getline.c: Update choice of header.
62210         * lib/csharpcomp.c: Likewise.
62211         * lib/getpass.c: Likewise.
62212         * lib/javacomp.c: Likewise.
62213         * lib/javaversion.c: Likewise.
62214         * lib/yesno.c: Likewise.
62215         * lib/getdelim.c: Likewise.
62216         (getdelim): Set errno on failure, and avoid memory leak.
62217
62218 2007-08-19  Bruno Haible  <bruno@clisp.org>
62219
62220         * modules/closein (Depends-on): Add freadahead.
62221         * lib/closein.c: Include freadahead.h.
62222         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
62223         is zero.
62224
62225 2007-08-19  Bruno Haible  <bruno@clisp.org>
62226
62227         * modules/freadahead-tests: New file.
62228         * tests/test-freadahead.sh: New file.
62229         * tests/test-freadahead.c: New file.
62230
62231         * modules/freadahead: New file.
62232         * lib/freadahead.h: New file.
62233         * lib/freadahead.c: New file.
62234         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
62235         fbufmode, fpurge, freadable, fwritable.
62236
62237 2007-08-19  Eric Blake  <ebb9@byu.net>
62238
62239         Test yesno in combination with closein.
62240         * lib/yesno.c (yesno): Document use of stdin.
62241         * modules/yesno-tests (Files): New module.
62242         * tests/test-yesno.c (main): New file.
62243         * tests/test-yesno.sh: Likewise.
62244
62245 2007-08-19  Bruno Haible  <bruno@clisp.org>
62246
62247         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
62248         * lib/fseeko.c (rpl_fseeko): Likewise.
62249         * lib/fseterr.c (fseterr): Likewise.
62250
62251 2007-08-19  Bruno Haible  <bruno@clisp.org>
62252
62253         * tests/test-lseek.c (main): Disable a test for BeOS.
62254         * doc/functions/lseek.texi: Document the BeOS bug.
62255
62256 2007-08-19  Bruno Haible  <bruno@clisp.org>
62257             Eric Blake  <ebb9@byu.net>
62258
62259         * lib/lseek.c: Include <sys/stat.h>.
62260         (rpl_lseek): Add workaround code also for Unix platforms.
62261         Needed for BeOS.
62262         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
62263         * doc/functions/lseek.texi: Document BeOS definiency.
62264
62265 2007-08-18  Bruno Haible  <bruno@clisp.org>
62266
62267         * modules/fstrcmp-tests: New file.
62268         * tests/test-fstrcmp.c: New file.
62269
62270 2007-08-18  Bruno Haible  <bruno@clisp.org>
62271
62272         * modules/fstrcmp: New file, from GNU gettext with modifications.
62273         * lib/fstrcmp.h: New file, from GNU gettext.
62274         * lib/fstrcmp.c: New file, from GNU gettext.
62275         * MODULES.html.sh (String handling): Add fstrcmp.
62276
62277 2007-08-18  Bruno Haible  <bruno@clisp.org>
62278
62279         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
62280         'bool'.
62281         (diag, compareseq): Remove const from the ctxt argument.
62282         (USE_HEURISTIC): Undefine at the end.
62283
62284 2007-08-18  Jim Meyering  <jim@meyering.net>
62285
62286         New file: lib/idcache.h
62287         * NEWS: Mention the addition.
62288         * modules/idcache (Files): Add lib/idcache.h
62289         * lib/idcache.c: Include "idcache.h".
62290         Don't include <sys/types.h>.
62291         Add a FIXME comment.
62292         Move file-scoped "static" declarations to the top.
62293         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
62294
62295 2007-08-17  Bruno Haible  <bruno@clisp.org>
62296         and Paul Eggert  <eggert@cs.ucla.edu>
62297
62298         * MODULES.html.sh: Add diffseq.
62299         * modules/diffseq: New file.
62300         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
62301         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
62302
62303 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62304
62305         Import changes from coreutils for bootstrap script.
62306
62307         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
62308
62309         * build-aux/bootstrap (slurp): Work even in environments where
62310         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
62311         current code does not slurp files whose names start with ".", and
62312         this looks like it might be a troublesome area.
62313
62314         2007-07-11  Jim Meyering  <jim@meyering.net>
62315
62316         If there's a GPL vN copyright comment, require that N == 3.
62317
62318         2007-07-08  Jim Meyering  <jim@meyering.net>
62319
62320         Run the coreutils-specific code only if tests/Makefile.am.in exists.
62321         * build-aux/bootstrap (mam_template): Move definition out of loop.
62322
62323         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
62324
62325         * build-aux/bootstrap (symlink_to_dir): Rename function from
62326         symlink_to_gnulib.  Add a directory parameter.  Update all
62327         callers.
62328         (cp_mark_as_generated): Also check for -- and link to -- files in
62329         gl/.
62330
62331         2007-07-08  Jim Meyering  <jim@meyering.net>
62332
62333         Adapt to deeper hierarchy in gnulib.
62334         * build-aux/bootstrap (symlink_to_dir): If the destination
62335         directory doesn't exist, create it. This is required at least for
62336         "lib/uniwidth/cjk.h".
62337
62338         2007-05-15  Jim Meyering  <jim@meyering.net>
62339
62340         * build-aux/bootstrap: Now that generated Makefile.am files
62341         are no longer under version control, they must be created at
62342         bootstrap time.
62343
62344 2007-08-14  Ben Pfaff  <blp@gnu.org>
62345
62346         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
62347
62348 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62349
62350         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
62351         given the changes below.
62352         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
62353         even on hosts that have padding bits beyond the supported 64.
62354
62355 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62356
62357         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
62358         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
62359         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
62360         depends on it.
62361         (xstrtol_error): Remove.
62362         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
62363         but with a different signature.
62364         (ATTRIBUTE_NORETURN, __attribute__): New macros.
62365         * lib/xstrtol-error.c: Include exitfail.h.
62366         (xstrtol_fatal): New function, with a different signature from the
62367         old xstrtol_error, so that the caller need not worry about passing
62368         in an exit status, or about storage management of the option argument.
62369         (xstrtol_error): Now a static function.  Redo signature to
62370         implement xstrtol_fatal.  Output the correct number of hyphens in
62371         front of the option so that the caller need not worry about
62372         storage management.
62373         (N_): New macro.
62374         (_): Remove; not used now.
62375         * modules/xstrtol: Depend on getopt.
62376         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
62377         of old STRTOL_FATAL_ERROR macro.
62378         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
62379         of test program.
62380         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
62381         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
62382
62383 2007-08-08  Eric Blake  <ebb9@byu.net>
62384
62385         * lib/xstrtol-error.c: Add missing include.
62386
62387         Move xstrtol messages into gnulib domain, when --pobase is used.
62388         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
62389         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
62390         * modules/xstrtol (Files): Distribute new file.
62391         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
62392         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
62393         * tests/test-xstrtol.c: ...into new file.
62394         * tests/test-xstrtoul.c: Also test xstrtoul.
62395         * tests/test-xstrtoimax.c: Also test xstrtoimax.
62396         * tests/test-xstrtoumax.c: Also test xstrtoumax.
62397         * tests/test-xstrtol.sh: Drive the tests.
62398         * tests/test-xstrtoimax.sh: Likewise.
62399         * tests/test-xstrtoumax.sh: Likewise.
62400         * modules/xstrtol-tests: New module.
62401         * modules/xstrtoimax-tests: Likewise.
62402         * modules/xstrtoumax-tests: Likewise.
62403
62404 2007-08-08  Jim Meyering  <jim@meyering.net>
62405
62406         New function: mfile_name_concat.
62407         * lib/filenamecat.c (mfile_name_concat): New function, just like
62408         file_name_concat, but return NULL upon failure rather than exiting
62409         with a diagnostic.
62410         * lib/filenamecat.h: Declare it.
62411
62412 2007-08-07  Bruno Haible  <bruno@clisp.org>
62413
62414         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
62415         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
62416         warning from gcc.
62417         Reported by Eric Blake.
62418
62419 2007-08-07  Simon Josefsson  <simon@josefsson.org>
62420
62421         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
62422         * modules/crypto/arcfour (License): Likewise.
62423         * modules/crypto/des-tests (License): Likewise.
62424         * modules/crypto/gc-arctwo-tests (License): Likewise.
62425         * modules/crypto/gc-des-tests (License): Likewise.
62426         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
62427         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
62428         * modules/crypto/gc-md2-tests (License): Likewise.
62429         * modules/crypto/gc-md4-tests (License): Likewise.
62430         * modules/crypto/gc-md5-tests (License): Likewise.
62431         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
62432         * modules/crypto/gc-rijndael-tests (License): Likewise.
62433         * modules/crypto/gc-sha1-tests (License): Likewise.
62434         * modules/crypto/gc-tests (License): Likewise.
62435         * modules/crypto/hmac-md5 (License): Likewise.
62436         * modules/crypto/hmac-sha1 (License): Likewise.
62437         * modules/crypto/md2-tests (License): Likewise.
62438         * modules/crypto/md4-tests (License): Likewise.
62439         * modules/crypto/md5 (License): Likewise.
62440         * modules/crypto/rijndael (License): Likewise.
62441         * modules/crypto/sha1 (License): Likewise.
62442         * modules/memxor (License): Likewise.
62443
62444 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62445         and Bruno Haible  <bruno@clisp.org>
62446
62447         * NEWS: Describe interface changes to human, xstrtol.
62448         * lib/human.h: Include <xstrtol.h>.
62449         (human_options): Return enum strtol_error, not int.  Remove
62450         bool arg; take int * instead.
62451         * lib/human.c: Don't include "gettext.h".
62452         (_): Remove; no longer used.
62453         Don't include <xstrtol.h>, since human.h does it.
62454         (human_options): Adjust to abovementioned interface changes.
62455         Do not report error to stderr; that's now the caller's
62456         responsibility.
62457         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
62458         interface change.
62459         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
62460         Str, Argument_type_string.  All uses changed.  Put " argument"
62461         in diagnostics to make them clearer.  Change wording of suffix
62462         message for clarity.
62463         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
62464         Argument_type_string.
62465         (STRTOL_FATAL_WARN): Remove; no longer used.
62466         * modules/human (Depends-on): Remove gettext-h.
62467
62468 2007-08-06  Simon Josefsson  <simon@josefsson.org>
62469
62470         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
62471
62472 2007-07-31  Bruno Haible  <bruno@clisp.org>
62473
62474         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
62475         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
62476         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
62477
62478 2007-07-31  Bruno Haible  <bruno@clisp.org>
62479
62480         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
62481         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
62482
62483 2007-07-30  Bruno Haible  <bruno@clisp.org>
62484
62485         * modules/base64 (License): Use the synonymous term "LGPLv2+".
62486         * modules/c-ctype (License): Likewise.
62487         * modules/c-strcase (License): Likewise.
62488         * modules/check-version (License): Likewise.
62489         * modules/iconv (License): Likewise.
62490         * modules/iconv_open (License): Likewise.
62491         * modules/read-file (License): Likewise.
62492         * modules/striconv (License): Likewise.
62493         * modules/strverscmp (License): Likewise.
62494         * modules/vasprintf (License): Likewise.
62495         * modules/crypto/des (License): Likewise.
62496         * modules/crypto/gc (License): Likewise.
62497         * modules/crypto/gc-arcfour (License): Likewise.
62498         * modules/crypto/gc-arctwo (License): Likewise.
62499         * modules/crypto/gc-des (License): Likewise.
62500         * modules/crypto/gc-hmac-md5 (License): Likewise.
62501         * modules/crypto/gc-hmac-sha1 (License): Likewise.
62502         * modules/crypto/gc-md2 (License): Likewise.
62503         * modules/crypto/gc-md4 (License): Likewise.
62504         * modules/crypto/gc-md5 (License): Likewise.
62505         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
62506         * modules/crypto/gc-random (License): Likewise.
62507         * modules/crypto/gc-rijndael (License): Likewise.
62508         * modules/crypto/gc-sha1 (License): Likewise.
62509         * modules/crypto/md2 (License): Likewise.
62510         * modules/crypto/md4 (License): Likewise.
62511
62512 2007-07-30  Jim Meyering  <jim@meyering.net>
62513
62514         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
62515         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
62516         it has valid stat data.  This bug would cause du not to count the
62517         sizes of inaccessible directories.
62518         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
62519         in <http://bugzilla.redhat.com/250077>.
62520
62521 2007-07-25  Peter O'Gorman  <peter@pogma.com>
62522             Bruno Haible  <bruno@clisp.org>
62523
62524         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
62525         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
62526         #include_next, gives a diagnostic about it, but reports no error in
62527         the exit code.
62528         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
62529
62530 2007-07-24  Ben Pfaff  <blp@gnu.org>
62531
62532         Improve name: "count-one-bits" is better than "popcount".
62533         * MODULES.html.sh: Update name.
62534         * lib/popcount.h: Renamed lib/count-one-bits.h.
62535         (popcount): Renamed count_one_bits.
62536         (popcountl): Renamed count_one_bits_l.
62537         (popcountll): Renamed count_one_bits_ll.
62538         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
62539         * modules/popcount: Renamed module/count-one-bits.
62540         * modules/popcount-tests: Renamed module/count-one-bits-tests.
62541         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
62542
62543 2007-07-23  Ben Pfaff  <blp@gnu.org>
62544
62545         * lib/popcount.h (popcount32): Reduce size of constants, to allow
62546         better code generation, and add U to large constants to avoid
62547         warnings, in non-GCC case.
62548         Suggested by Bruno Haible.
62549
62550 2007-07-23  Ben Pfaff  <blp@gnu.org>
62551
62552         * lib/popcount.h: Use verify_true instead of if...abort.
62553         * modules/popcount: Depend on verify module.
62554         Suggested by Jim Meyering.
62555
62556 2007-07-23  Bruno Haible  <bruno@clisp.org>
62557
62558         * gnulib-tool (func_import): Create a .cvsignore file also when the
62559         directory is not yet in CVS but the toplevel directory is. When
62560         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
62561         Reported by Karl Berry.
62562
62563 2007-07-22  Ben Pfaff  <blp@gnu.org>
62564
62565         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
62566         case.
62567         Suggested by Eric Blake.
62568
62569 2007-07-22  Ben Pfaff  <blp@gnu.org>
62570
62571         New module: popcount.
62572         * MODULES.html.sh: Add popcount.
62573         * modules/popcount: New file.
62574         * modules/popcount-tests: New file.
62575         * tests/test-popcount.c: New file.
62576         * lib/popcount.h: New file.
62577         * m4/popcount.m4: New file.
62578
62579 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62580
62581         * build-aux/announce-gen: Update to GPLv3.
62582
62583         * build-aux/config.guess: Update from config.
62584
62585 2007-07-21  Bruno Haible  <bruno@clisp.org>
62586
62587         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
62588         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
62589
62590 2007-07-20  Jim Meyering  <jim@meyering.net>
62591
62592         * check-module: Diagnose a self-dependency.
62593
62594 2007-07-19  Bruno Haible  <bruno@clisp.org>
62595
62596         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
62597         empty.
62598         Reported by Eric Blake.
62599
62600 2007-07-18  Bruno Haible  <bruno@clisp.org>
62601
62602         * gnulib-tool: New options --po-base, --po-domain.
62603         (func_usage): Document them.
62604         (pobase, po_domain): New variables.
62605         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
62606         DEFAULT_TEXT_DOMAIN.
62607         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
62608         (func_import): Consider pobase and po_domain. Create a po/ directory.
62609         (func_create_testdir): Set pobase and po_domain to empty.
62610         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
62611         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
62612
62613 2007-07-18  Bruno Haible  <bruno@clisp.org>
62614
62615         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62616         EXTRA_DIST augmentation for files in build-aux/.
62617
62618 2007-07-16  Bruno Haible  <bruno@clisp.org>
62619
62620         * modules/lseek (License): Use the synonymous term "LGPLv2+".
62621         * modules/getdelim (License): Likewise.
62622
62623 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62624
62625         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
62626         * modules/d-type (License): Likewise.
62627         * modules/extensions (License): Likewise.
62628         * modules/fnmatch (License): Likewise.
62629         * modules/fseeko (License): Likewise.
62630         * modules/getaddrinfo (License): Likewise.
62631         * modules/getline (License): Likewise.
62632         * modules/getlogin_r (License): Likewise.
62633         * modules/getpass (License): Likewise.
62634         * modules/gettimeofday (License): Likewise.
62635         * modules/glob (License): Likewise.
62636         * modules/inet_ntop (License): Likewise.
62637         * modules/malloc (License): Likewise.
62638         * modules/malloca (License): Likewise.
62639         * modules/memmem (License): Likewise.
62640         * modules/mempcpy (License): Likewise.
62641         * modules/memset (License): Likewise.
62642         * modules/minmax (License): Likewise.
62643         * modules/mktime (License): Likewise.
62644         * modules/netinet_in (License): Likewise.
62645         * modules/pathmax (License): Likewise.
62646         * modules/poll (License): Likewise.
62647         * modules/regex (License): Likewise.
62648         * modules/snprintf (License): Likewise.
62649         * modules/stdbool (License): Likewise.
62650         * modules/stdint (License): Likewise.
62651         * modules/stdio (License): Likewise.
62652         * modules/strcase (License): Likewise.
62653         * modules/strcasestr (License): Likewise.
62654         * modules/strdup (License): Likewise.
62655         * modules/string (License): Likewise.
62656         * modules/strndup (License): Likewise.
62657         * modules/strnlen (License): Likewise.
62658         * modules/strpbrk (License): Likewise.
62659         * modules/strptime (License): Likewise.
62660         * modules/strsep (License): Likewise.
62661         * modules/sys_select (License): Likewise.
62662         * modules/sys_socket (License): Likewise.
62663         * modules/sys_stat (License): Likewise.
62664         * modules/sys_time (License): Likewise.
62665         * modules/time (License): Likewise.
62666         * modules/time_r (License): Likewise.
62667         * modules/timegm (License): Likewise.
62668         * modules/unistd (License): Likewise.
62669         * modules/vsnprintf (License): Likewise.
62670         * modules/wctype (License): Likewise.
62671
62672 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62673
62674         * modules/argz (License): LGPLv2+.
62675
62676 2007-07-15  Karl Berry  <karl@gnu.org>
62677
62678         * doc/gnulib.texi: revise node structure per new fdl.texi.
62679
62680 2007-07-14  Bruno Haible  <bruno@clisp.org>
62681
62682         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
62683         the output file.
62684         * lib/uniname/uninames.h: Regenerated.
62685
62686 2007-07-14  Karl Berry  <karl@gnu.org>
62687
62688         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
62689         omitting sectioning and index commands.
62690
62691 2007-07-13  Bruno Haible  <bruno@clisp.org>
62692
62693         New gnulib-tool option --more-symlinks.
62694         * gnulib-tool (func_usage): Document --more-symlinks.
62695         (do_copyrights): New variable.
62696         Recognize option --more-symlinks.
62697         (func_import): Don't add a copyright notice transform to
62698         sed_transform_lib_file if do_copyrights is empty.
62699
62700 2007-07-13  Bruno Haible  <bruno@clisp.org>
62701
62702         * lib/vasnprintf.c (decimal_point_char): Define also if
62703         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
62704         && !NEED_PRINTF_DIRECTIVE_A.
62705         Reported by Clemens Koller <clemens.koller@anagramm.de> via
62706         Gary V. Vaughan <gary@gnu.org>.
62707
62708 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
62709
62710         * lib/inttypes_.h: Undo previous change, since it was fixed
62711         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
62712
62713 2007-07-13  Bruno Haible  <bruno@clisp.org>
62714
62715         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
62716         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
62717
62718 2007-07-13  Jim Meyering  <jim@meyering.net>
62719
62720         df: Don't fail for Tru64's "file-on-file mount".
62721         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
62722         so we fall through and use statfs instead.  Details here:
62723         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
62724         Reported by Albert Chin.
62725
62726 2007-07-13  Bruno Haible  <bruno@clisp.org>
62727
62728         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
62729         * modules/configmake (License): Likewise.
62730         * modules/gettext (License): Likewise.
62731         * modules/gettext-h (License): Likewise.
62732         * modules/include_next (License): Likewise.
62733         * modules/link-warning (License): Likewise.
62734         * modules/localcharset (License): Likewise.
62735         * modules/localename (License): Likewise.
62736         * modules/lock (License): Likewise.
62737         * modules/relocatable-lib-lgpl (License): Likewise.
62738         * modules/size_max (License): Likewise.
62739         * modules/vasnprintf (License): Likewise.
62740         * modules/wchar (License): Likewise.
62741         * modules/xsize (License): Likewise.
62742
62743 2007-07-13  Bruno Haible  <bruno@clisp.org>
62744
62745         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
62746         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
62747
62748 2007-07-12  Bruno Haible  <bruno@clisp.org>
62749
62750         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
62751         in the modules files.
62752
62753 2007-07-11  Karl Berry  <karl@gnu.org>
62754
62755         * MODULES.html.sh (func_module): use
62756          sed -e '\|^'"${includefile}"'$|d'
62757          instead of /.../d, to avoid errors on $includefile's containing /.
62758
62759 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62760
62761         * gnulib-tool (func_import): Avoid duplication of --avoid
62762         statements
62763         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
62764         names to `_' in variable names.
62765
62766 2007-07-10  Eric Blake  <ebb9@byu.net>
62767
62768         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
62769         * NEWS: Document this change.
62770
62771 2007-07-08  Bruno Haible  <bruno@clisp.org>
62772
62773         Update to Unicode 5.0.
62774         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
62775         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
62776         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
62777         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
62778         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
62779         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
62780         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
62781         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
62782         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
62783         U+10A3F, U+1D242..U+1D244.
62784         (nonspacing_table_ind): Update.
62785         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
62786         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
62787
62788 2007-07-08  Bruno Haible  <bruno@clisp.org>
62789
62790         Update to Unicode 5.0.
62791         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
62792         code transform. Extend the name index field of unicode_name_to_code and
62793         unicode_code_to_name from 16 to 24 bits.
62794         * lib/uniname/uniname.c (unicode_character_name,
62795         unicode_name_character): Add the range 0x12xxx to the code transform.
62796         * lib/uniname/uninames.h: Regenerated.
62797         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
62798
62799 2007-07-07  Bruno Haible  <bruno@clisp.org>
62800
62801         * modules/wcwidth-tests: New file.
62802         * tests/test-wcwidth.c: New file.
62803
62804         Work around MacOS X wcwidth() bug.
62805         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
62806         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
62807         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
62808         original wcwidth in non-UTF-8 locales.
62809         * modules/wcwidth (Depends-on): Add localcharset, streq,
62810         uniwidth/width.
62811         * doc/functions/wcwidth.texi: Update.
62812
62813 2007-07-07  Bruno Haible  <bruno@clisp.org>
62814
62815         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
62816         (wcwidth): New declaration.
62817         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
62818         macros.
62819         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
62820         here. Prepare for creating <wchar.h> unconditionally.
62821         * modules/wchar (Depends-on): Add link-warning.
62822         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
62823         REPLACE_WCWIDTH, and GL_LINK_WARNING.
62824         * lib/wcwidth.h: Remove file.
62825         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
62826         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
62827         * modules/wcwidth (Files): Remove lib/wcwidth.h.
62828         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
62829         (Include): Replace wcwidth.h with <wchar.h>.
62830         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
62831         * lib/mbchar.h: Don't include wcwidth.h.
62832         * lib/mbswidth.c: Likewise.
62833         * NEWS: Mention the change.
62834
62835 2007-07-07  Bruno Haible  <bruno@clisp.org>
62836
62837         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
62838         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
62839         definition with an external declaration.
62840         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
62841         defined as a function. Remove AC_C_INLINE requirement.
62842         * modules/wcwidth (Files): Add lib/wcwidth.c.
62843         (Makefile.am): Remove redundant statement.
62844
62845 2007-07-07  Bruno Haible  <bruno@clisp.org>
62846
62847         * MODULES.html.sh (Unicode string functions): Add the new modules.
62848
62849         * tests/uniwidth/test-u32-strwidth.c: New file.
62850         * modules/uniwidth/u32-strwidth-tests: New file.
62851
62852         * lib/uniwidth/u32-strwidth.c: New file.
62853         * modules/uniwidth/u32-strwidth: New file.
62854
62855         * tests/uniwidth/test-u16-strwidth.c: New file.
62856         * modules/uniwidth/u16-strwidth-tests: New file.
62857
62858         * lib/uniwidth/u16-strwidth.c: New file.
62859         * modules/uniwidth/u16-strwidth: New file.
62860
62861         * tests/uniwidth/test-u8-strwidth.c: New file.
62862         * modules/uniwidth/u8-strwidth-tests: New file.
62863
62864         * lib/uniwidth/u8-strwidth.c: New file.
62865         * modules/uniwidth/u8-strwidth: New file.
62866
62867         * tests/uniwidth/test-u32-width.c: New file.
62868         * modules/uniwidth/u32-width-tests: New file.
62869
62870         * lib/uniwidth/u32-width.c: New file.
62871         * modules/uniwidth/u32-width: New file.
62872
62873         * tests/uniwidth/test-u16-width.c: New file.
62874         * modules/uniwidth/u16-width-tests: New file.
62875
62876         * lib/uniwidth/u16-width.c: New file.
62877         * modules/uniwidth/u16-width: New file.
62878
62879         * tests/uniwidth/test-u8-width.c: New file.
62880         * modules/uniwidth/u8-width-tests: New file.
62881
62882         * lib/uniwidth/u8-width.c: New file.
62883         * modules/uniwidth/u8-width: New file.
62884
62885         * tests/uniwidth/test-uc_width.c: New file.
62886         * modules/uniwidth/width-tests: New file.
62887
62888         * lib/uniwidth/width.c: New file, from GNU libiconv.
62889         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
62890         * modules/uniwidth/width: New file.
62891
62892         * lib/uniwidth.h: New file, from GNU libiconv.
62893         * modules/uniwidth/base: New file.
62894
62895 2007-07-07  Bruno Haible  <bruno@clisp.org>
62896
62897         * lib/uniname.h: New file, from GNU gettext.
62898         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
62899         * lib/uniname/uninames.h: New file, from GNU gettext.
62900         * lib/uniname/uniname.c: New file, from GNU gettext.
62901         * tests/uniname/test-uninames.sh: New file.
62902         * tests/uniname/test-uninames.c: New file, from GNU gettext.
62903         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
62904         * modules/uniname/base: New file.
62905         * modules/uniname/uniname: New file.
62906         * modules/uniname/uniname-tests: New file.
62907         * MODULES.html.sh (Unicode string functions): Add the new modules.
62908
62909 2007-07-06  Bruno Haible  <bruno@clisp.org>
62910
62911         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
62912
62913 2007-07-06  Bruno Haible  <bruno@clisp.org>
62914
62915         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
62916         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
62917         includes <cygwin/sys_time.h> which includes <sys/select.h> which
62918         include <sys/time.h>.
62919         Reported by Eric Blake.
62920
62921 2007-07-06  Eric Blake  <ebb9@byu.net>
62922
62923         Fix testing canonicalize on cygwin.
62924         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
62925         Revert patch from 2007-06-19.
62926         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
62927         canonicalize module is also in use.
62928         * tests/test-canonicalize.c: New file.
62929         * tests/test-canonicalize.sh: Likewise.
62930         * modules/canonicalize-tests: Likewise.
62931
62932 2007-07-06  Jim Meyering  <jim@meyering.net>
62933
62934         * lib/getugroups.c (getugroups): Detect getgrent failure.
62935         Adjust comment to reflect reality: this function may return -1.
62936
62937 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
62938
62939         * build-aux/bootstrap (TP_URL,get_translations): Update to use
62940         the new TP address.
62941         (usage): Fix typo
62942         (gnulib_mk): New variable.
62943
62944 2007-07-05  Jim Meyering  <jim@meyering.net>
62945
62946         Don't let endgrent clobber errno, no matter how improbable.
62947         * lib/getugroups.c (getugroups): Save and restore errno around
62948         endgrent call.
62949
62950         Close the group DB even when failing with 2^31 or more members.
62951         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
62952
62953 2007-07-04  Jim Meyering  <jim@meyering.net>
62954
62955         * lib/getugroups.h: New file.
62956         * lib/getugroups.c: Include "getugroups.h".
62957         Remove uses of "register" keyword.
62958         Move local variable, "cp", down into scope where used.
62959         Give "username" parameter the "const" attribute.
62960         * modules/getugroups (Files): Add lib/getugroups.h
62961
62962 2007-07-04  Karl Berry  <karl@gnu.org>
62963
62964         * MODULES.html.sh (func_all_modules): Complete rename of
62965         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
62966
62967 2007-07-02  Bruno Haible  <bruno@clisp.org>
62968
62969         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
62970         mode, when inttypes.h comes from gnulib.
62971         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
62972
62973 2007-07-02  Simon Josefsson  <simon@josefsson.org>
62974
62975         * NEWS: Mention lgpl module name change.
62976
62977         * modules/lgpl-2.1: Renamed from lgpl.
62978
62979         * NEWS: Mention gpl module name change.
62980
62981         * modules/gpl-3.0: New file, based on gpl-2.0.
62982
62983         * modules/gpl-2.0: Renamed from gpl.
62984
62985         * modules/gpl: Fix filename, doc/gpl.texi is now found at
62986         doc/gpl-2.0.texi.
62987
62988 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62989
62990         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
62991         #define __STDC_LIMIT_MACROS temporarily while including
62992         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
62993         Problem reported by Joel E. Denny in
62994         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
62995
62996 2007-07-01  Bruno Haible  <bruno@clisp.org>
62997
62998         * lib/unistdio.h: New file.
62999         * lib/unistdio/u-asnprintf.h: New file.
63000         * lib/unistdio/u-asprintf.h: New file.
63001         * lib/unistdio/u-printf-args.c: New file.
63002         * lib/unistdio/u-printf-args.h: New file.
63003         * lib/unistdio/u-printf-parse.h: New file.
63004         * lib/unistdio/u-snprintf.h: New file.
63005         * lib/unistdio/u-sprintf.h: New file.
63006         * lib/unistdio/u-vasprintf.h: New file.
63007         * lib/unistdio/u-vsnprintf.h: New file.
63008         * lib/unistdio/u-vsprintf.h: New file.
63009         * lib/unistdio/ulc-asnprintf.c: New file.
63010         * lib/unistdio/ulc-asprintf.c: New file.
63011         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
63012         * lib/unistdio/ulc-printf-parse.c: New file.
63013         * lib/unistdio/ulc-snprintf.c: New file.
63014         * lib/unistdio/ulc-sprintf.c: New file.
63015         * lib/unistdio/ulc-vasnprintf.c: New file.
63016         * lib/unistdio/ulc-vasprintf.c: New file.
63017         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
63018         * lib/unistdio/ulc-vsnprintf.c: New file.
63019         * lib/unistdio/ulc-vsprintf.c: New file.
63020         * lib/unistdio/u8-asnprintf.c: New file.
63021         * lib/unistdio/u8-asprintf.c: New file.
63022         * lib/unistdio/u8-printf-parse.c: New file.
63023         * lib/unistdio/u8-snprintf.c: New file.
63024         * lib/unistdio/u8-sprintf.c: New file.
63025         * lib/unistdio/u8-vasnprintf.c: New file.
63026         * lib/unistdio/u8-vasprintf.c: New file.
63027         * lib/unistdio/u8-vsnprintf.c: New file.
63028         * lib/unistdio/u8-vsprintf.c: New file.
63029         * lib/unistdio/u8-u8-asnprintf.c: New file.
63030         * lib/unistdio/u8-u8-asprintf.c: New file.
63031         * lib/unistdio/u8-u8-snprintf.c: New file.
63032         * lib/unistdio/u8-u8-sprintf.c: New file.
63033         * lib/unistdio/u8-u8-vasnprintf.c: New file.
63034         * lib/unistdio/u8-u8-vasprintf.c: New file.
63035         * lib/unistdio/u8-u8-vsnprintf.c: New file.
63036         * lib/unistdio/u8-u8-vsprintf.c: New file.
63037         * lib/unistdio/u16-asnprintf.c: New file.
63038         * lib/unistdio/u16-asprintf.c: New file.
63039         * lib/unistdio/u16-printf-parse.c: New file.
63040         * lib/unistdio/u16-snprintf.c: New file.
63041         * lib/unistdio/u16-sprintf.c: New file.
63042         * lib/unistdio/u16-vasnprintf.c: New file.
63043         * lib/unistdio/u16-vasprintf.c: New file.
63044         * lib/unistdio/u16-vsnprintf.c: New file.
63045         * lib/unistdio/u16-vsprintf.c: New file.
63046         * lib/unistdio/u16-u16-asnprintf.c: New file.
63047         * lib/unistdio/u16-u16-asprintf.c: New file.
63048         * lib/unistdio/u16-u16-snprintf.c: New file.
63049         * lib/unistdio/u16-u16-sprintf.c: New file.
63050         * lib/unistdio/u16-u16-vasnprintf.c: New file.
63051         * lib/unistdio/u16-u16-vasprintf.c: New file.
63052         * lib/unistdio/u16-u16-vsnprintf.c: New file.
63053         * lib/unistdio/u16-u16-vsprintf.c: New file.
63054         * lib/unistdio/u32-asnprintf.c: New file.
63055         * lib/unistdio/u32-asprintf.c: New file.
63056         * lib/unistdio/u32-printf-parse.c: New file.
63057         * lib/unistdio/u32-snprintf.c: New file.
63058         * lib/unistdio/u32-sprintf.c: New file.
63059         * lib/unistdio/u32-vasnprintf.c: New file.
63060         * lib/unistdio/u32-vasprintf.c: New file.
63061         * lib/unistdio/u32-vsnprintf.c: New file.
63062         * lib/unistdio/u32-vsprintf.c: New file.
63063         * lib/unistdio/u32-u32-asnprintf.c: New file.
63064         * lib/unistdio/u32-u32-asprintf.c: New file.
63065         * lib/unistdio/u32-u32-snprintf.c: New file.
63066         * lib/unistdio/u32-u32-sprintf.c: New file.
63067         * lib/unistdio/u32-u32-vasnprintf.c: New file.
63068         * lib/unistdio/u32-u32-vasprintf.c: New file.
63069         * lib/unistdio/u32-u32-vsnprintf.c: New file.
63070         * lib/unistdio/u32-u32-vsprintf.c: New file.
63071         * tests/unistdio/test-ulc-asnprintf1.c: New file.
63072         * tests/unistdio/test-ulc-asnprintf1.h: New file.
63073         * tests/unistdio/test-ulc-printf1.h: New file.
63074         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
63075         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
63076         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
63077         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
63078         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
63079         * tests/unistdio/test-ulc-vasprintf1.c: New file.
63080         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
63081         * tests/unistdio/test-ulc-vsprintf1.c: New file.
63082         * tests/unistdio/test-u8-asnprintf1.c: New file.
63083         * tests/unistdio/test-u8-asnprintf1.h: New file.
63084         * tests/unistdio/test-u8-printf1.h: New file.
63085         * tests/unistdio/test-u8-vasnprintf1.c: New file.
63086         * tests/unistdio/test-u8-vasnprintf2.c: New file.
63087         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
63088         * tests/unistdio/test-u8-vasnprintf3.c: New file.
63089         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
63090         * tests/unistdio/test-u8-vasprintf1.c: New file.
63091         * tests/unistdio/test-u8-vsnprintf1.c: New file.
63092         * tests/unistdio/test-u8-vsprintf1.c: New file.
63093         * tests/unistdio/test-u16-asnprintf1.c: New file.
63094         * tests/unistdio/test-u16-asnprintf1.h: New file.
63095         * tests/unistdio/test-u16-printf1.h: New file.
63096         * tests/unistdio/test-u16-vasnprintf1.c: New file.
63097         * tests/unistdio/test-u16-vasnprintf2.c: New file.
63098         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
63099         * tests/unistdio/test-u16-vasnprintf3.c: New file.
63100         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
63101         * tests/unistdio/test-u16-vasprintf1.c: New file.
63102         * tests/unistdio/test-u16-vsnprintf1.c: New file.
63103         * tests/unistdio/test-u16-vsprintf1.c: New file.
63104         * tests/unistdio/test-u32-asnprintf1.c: New file.
63105         * tests/unistdio/test-u32-asnprintf1.h: New file.
63106         * tests/unistdio/test-u32-printf1.h: New file.
63107         * tests/unistdio/test-u32-vasnprintf1.c: New file.
63108         * tests/unistdio/test-u32-vasnprintf2.c: New file.
63109         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
63110         * tests/unistdio/test-u32-vasnprintf3.c: New file.
63111         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
63112         * tests/unistdio/test-u32-vasprintf1.c: New file.
63113         * tests/unistdio/test-u32-vsnprintf1.c: New file.
63114         * tests/unistdio/test-u32-vsprintf1.c: New file.
63115         * modules/unistdio/base: New file.
63116         * modules/unistdio/u-printf-args: New file.
63117         * modules/unistdio/ulc-asnprintf: New file.
63118         * modules/unistdio/ulc-asprintf: New file.
63119         * modules/unistdio/ulc-fprintf: New file.
63120         * modules/unistdio/ulc-printf-parse: New file.
63121         * modules/unistdio/ulc-snprintf: New file.
63122         * modules/unistdio/ulc-sprintf: New file.
63123         * modules/unistdio/ulc-vasnprintf: New file.
63124         * modules/unistdio/ulc-vasprintf: New file.
63125         * modules/unistdio/ulc-vfprintf: New file.
63126         * modules/unistdio/ulc-vsnprintf: New file.
63127         * modules/unistdio/ulc-vsprintf: New file.
63128         * modules/unistdio/u8-asnprintf: New file.
63129         * modules/unistdio/u8-asprintf: New file.
63130         * modules/unistdio/u8-printf-parse: New file.
63131         * modules/unistdio/u8-snprintf: New file.
63132         * modules/unistdio/u8-sprintf: New file.
63133         * modules/unistdio/u8-vasnprintf: New file.
63134         * modules/unistdio/u8-vasprintf: New file.
63135         * modules/unistdio/u8-vsnprintf: New file.
63136         * modules/unistdio/u8-vsprintf: New file.
63137         * modules/unistdio/u8-u8-asnprintf: New file.
63138         * modules/unistdio/u8-u8-asprintf: New file.
63139         * modules/unistdio/u8-u8-snprintf: New file.
63140         * modules/unistdio/u8-u8-sprintf: New file.
63141         * modules/unistdio/u8-u8-vasnprintf: New file.
63142         * modules/unistdio/u8-u8-vasprintf: New file.
63143         * modules/unistdio/u8-u8-vsnprintf: New file.
63144         * modules/unistdio/u8-u8-vsprintf: New file.
63145         * modules/unistdio/u16-asnprintf: New file.
63146         * modules/unistdio/u16-asprintf: New file.
63147         * modules/unistdio/u16-printf-parse: New file.
63148         * modules/unistdio/u16-snprintf: New file.
63149         * modules/unistdio/u16-sprintf: New file.
63150         * modules/unistdio/u16-vasnprintf: New file.
63151         * modules/unistdio/u16-vasprintf: New file.
63152         * modules/unistdio/u16-vsnprintf: New file.
63153         * modules/unistdio/u16-vsprintf: New file.
63154         * modules/unistdio/u16-u16-asnprintf: New file.
63155         * modules/unistdio/u16-u16-asprintf: New file.
63156         * modules/unistdio/u16-u16-snprintf: New file.
63157         * modules/unistdio/u16-u16-sprintf: New file.
63158         * modules/unistdio/u16-u16-vasnprintf: New file.
63159         * modules/unistdio/u16-u16-vasprintf: New file.
63160         * modules/unistdio/u16-u16-vsnprintf: New file.
63161         * modules/unistdio/u16-u16-vsprintf: New file.
63162         * modules/unistdio/u32-asnprintf: New file.
63163         * modules/unistdio/u32-asprintf: New file.
63164         * modules/unistdio/u32-printf-parse: New file.
63165         * modules/unistdio/u32-snprintf: New file.
63166         * modules/unistdio/u32-sprintf: New file.
63167         * modules/unistdio/u32-vasnprintf: New file.
63168         * modules/unistdio/u32-vasprintf: New file.
63169         * modules/unistdio/u32-vsnprintf: New file.
63170         * modules/unistdio/u32-vsprintf: New file.
63171         * modules/unistdio/u32-u32-asnprintf: New file.
63172         * modules/unistdio/u32-u32-asprintf: New file.
63173         * modules/unistdio/u32-u32-snprintf: New file.
63174         * modules/unistdio/u32-u32-sprintf: New file.
63175         * modules/unistdio/u32-u32-vasnprintf: New file.
63176         * modules/unistdio/u32-u32-vasprintf: New file.
63177         * modules/unistdio/u32-u32-vsnprintf: New file.
63178         * modules/unistdio/u32-u32-vsprintf: New file.
63179         * modules/unistdio/ulc-asnprintf-tests: New file.
63180         * modules/unistdio/ulc-vasnprintf-tests: New file.
63181         * modules/unistdio/ulc-vasprintf-tests: New file.
63182         * modules/unistdio/ulc-vsnprintf-tests: New file.
63183         * modules/unistdio/ulc-vsprintf-tests: New file.
63184         * modules/unistdio/u8-asnprintf-tests: New file.
63185         * modules/unistdio/u8-vasnprintf-tests: New file.
63186         * modules/unistdio/u8-vasprintf-tests: New file.
63187         * modules/unistdio/u8-vsnprintf-tests: New file.
63188         * modules/unistdio/u8-vsprintf-tests: New file.
63189         * modules/unistdio/u16-asnprintf-tests: New file.
63190         * modules/unistdio/u16-vasnprintf-tests: New file.
63191         * modules/unistdio/u16-vasprintf-tests: New file.
63192         * modules/unistdio/u16-vsnprintf-tests: New file.
63193         * modules/unistdio/u16-vsprintf-tests: New file.
63194         * modules/unistdio/u32-asnprintf-tests: New file.
63195         * modules/unistdio/u32-vasnprintf-tests: New file.
63196         * modules/unistdio/u32-vasprintf-tests: New file.
63197         * modules/unistdio/u32-vsnprintf-tests: New file.
63198         * modules/unistdio/u32-vsprintf-tests: New file.
63199         * MODULES.html.sh (Unicode string functions): Add the new modules.
63200
63201 2007-07-01  Bruno Haible  <bruno@clisp.org>
63202
63203         * lib/sprintf.c (sprintf): Limit the available length estimation,
63204         to avoid address wraparound.
63205         * lib/vsprintf.c (vsprintf): Likewise.
63206         * modules/sprintf-posix (Dependencies): Add stdint.
63207         * modules/vsprintf-posix (Dependencies): Likewise.
63208
63209 2007-07-01  Bruno Haible  <bruno@clisp.org>
63210
63211         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
63212         Windows PATH as well. Conservative double-quoting. Comments.
63213
63214 2007-07-01  Bruno Haible  <bruno@clisp.org>
63215             Eric Blake  <ebb9@byu.net>
63216             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63217
63218         * gnulib-tool (self_abspathname): Fix algorithm to cope with
63219         empty components in $PATH, denoting '.'.
63220
63221 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63222
63223         * gnulib-tool: Fix indentation.
63224         (func_create_megatestdir): Likewise.
63225         Report by Bruno Haible.
63226
63227 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63228
63229         Sync from Automake.
63230         * build-aux/gnupload: Fix shell portability issues with for loops.
63231         Report by Karl Berry.
63232
63233 2007-06-29  Simon Josefsson  <simon@josefsson.org>
63234
63235         * build-aux/maint.mk (POURL): Use translationproject.org.
63236
63237 2007-06-27  Simon Josefsson  <simon@josefsson.org>
63238             Bruno Haible  <bruno@clisp.org>
63239
63240         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
63241         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
63242         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
63243         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
63244         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
63245
63246 2007-06-27  Bruno Haible  <bruno@clisp.org>
63247
63248         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
63249         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
63250
63251 2007-06-26  Karl Berry  <karl@gnu.org>
63252
63253         * MODULES.html.sh: remove xreadlink-with-size.
63254
63255 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63256
63257         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
63258         method that I hope also handles the double-include problem noted
63259         by Bruno Haible in
63260         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
63261
63262 2007-06-23  Bruno Haible  <bruno@clisp.org>
63263
63264         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63265         Don't let the 'mostlyclean' target fail if the last subdirectory could
63266         not be removed.
63267         Reported by Karl Berry.
63268
63269 2007-06-23  Bruno Haible  <bruno@clisp.org>
63270
63271         * gnulib-tool (echo): Add a speedier workaround for ksh.
63272         * tests/test-echo.sh: Likewise.
63273
63274 2007-06-23  Bruno Haible  <bruno@clisp.org>
63275
63276         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
63277         * tests/test-echo.sh: Likewise.
63278
63279 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63280
63281         * gnulib-tool (IFS): Initialize early, so we don't set it to
63282         empty later.
63283         (self_abspathname): Rewrite algorithm to set it, reindent.
63284         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
63285         (func_create_megatestdir): Merge some sed scripts.
63286
63287 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63288
63289         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
63290         exposed by Sun Studio 11 cc on Solaris 8.
63291
63292 2007-06-22  Bruno Haible  <bruno@clisp.org>
63293
63294         * gnulib-tool (echo): Ensure the echo primitive does not interpret
63295         backslashes.
63296         * tests/test-echo.sh: New file.
63297
63298 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63299
63300         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
63301         simplify `sed_replace_build_aux' scripts, they are portable but
63302         echoing them with `echo' is not.
63303         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
63304
63305 2007-06-21  Karl Berry  <karl@gnu.org>
63306
63307         * config/srclist.txt: guess we can't handle the licenses via
63308         srclist at the moment.
63309
63310 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
63311
63312         * MODULES.html.sh: Add include_next.
63313         * modules/include_next: New file.
63314
63315 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
63316
63317         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
63318         INCLUDE_NEXT.
63319         (gl_CHECK_NEXT_HEADERS): New macro.
63320         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
63321         the obsolescent gl_ABSOLUTE_HEADER.
63322         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
63323         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
63324         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
63325         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
63326         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
63327         * m4/math_h.m4 (gl_MATH_H): Likewise.
63328         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
63329         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
63330         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
63331         * m4/stdint.m4 (gl_STDINT_H): Likewise.
63332         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
63333         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
63334         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
63335         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
63336         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
63337         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
63338         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
63339         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
63340         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
63341         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
63342         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
63343         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
63344         * m4/inttypes.m4 (gl_INTTYPES_H): Define
63345         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
63346         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
63347         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
63348         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
63349         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
63350         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
63351         * lib/float_.h: Likewise.
63352         * lib/inttypes_.h: Likewise.
63353         * lib/math_.h: Likewise.
63354         * lib/search_.h: Likewise.
63355         * lib/signal_.h: Likewise.
63356         * lib/stdint_.h: Likewise.
63357         * lib/stdio_.h: Likewise.
63358         * lib/stdlib_.h: Likewise.
63359         * lib/string_.h: Likewise.
63360         * lib/sys_stat_.h: Likewise.
63361         * lib/sys_time_.h: Likewise.
63362         * lib/time_.h: Likewise.
63363         * lib/unistd_.h: Likewise.
63364         * lib/wchar_.h: Likewise.
63365         * lib/wctype_.h: Likewise.
63366         * lib/dirent_.h: Likewise.
63367         * lib/iconv_.h: Likewise.
63368         * lib/locale_.h: Likewise.
63369         * lib/netinet_in_.h: Likewise.
63370         * lib/sys_select_.h: Likewise.
63371         * lib/sys_socket_.h: Likewise.
63372         * lib/sysexits_.h: Likewise.
63373         * modules/fcntl (Depends-on): Depend on include_next, not
63374         absolute_header.
63375         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
63376         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
63377         * modules/fchdir: Likewise.
63378         * modules/float: Likewise.
63379         * modules/iconv_open: Likewise.
63380         * modules/inttypes: Likewise.
63381         * modules/locale: Likewise.
63382         * modules/math: Likewise.
63383         * modules/netinet_in: Likewise.
63384         * modules/search: Likewise.
63385         * modules/signal: Likewise.
63386         * modules/stdint: Likewise.
63387         * modules/stdio: Likewise.
63388         * modules/stdlib: Likewise.
63389         * modules/string: Likewise.
63390         * modules/sys_select: Likewise.
63391         * modules/sys_socket: Likewise.
63392         * modules/sys_stat: Likewise.
63393         * modules/sys_time: Likewise.
63394         * modules/sysexits: Likewise.
63395         * modules/time: Likewise.
63396         * modules/unistd: Likewise.
63397         * modules/wchar: Likewise.
63398         * modules/wctype: Likewise.
63399         * modules/sys_stat: Change maintainer to "all".
63400         * modules/unistd: Likewise.
63401
63402 2007-06-20  Karl Berry  <karl@gnu.org>
63403
63404         * config/srclist.txt: track www changes in license files.
63405
63406 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
63407
63408         * build-aux/bootstrap: Remove stray dot.
63409         Make sure build_aux settings are honored when linking
63410         gnulib_extra_files.
63411
63412 2007-06-19  Eric Blake  <ebb9@byu.net>
63413
63414         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63415         Allow compilation on cygwin.
63416
63417 2007-06-19  Jim Meyering  <jim@meyering.net>
63418
63419         xreadlink-with-size: Remove module.  No longer used.
63420         Ex-callers now use xreadlink or mreadlink-with-size.
63421         * modules/xreadlink-with-size: Remove module.
63422         * lib/xreadlink-with-size.c: Remove file.
63423         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
63424         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
63425         just before the function definition *is* accurate.
63426
63427         Eliminate one way canonicalize_filename_mode could exit.
63428         * lib/canonicalize.c (canonicalize_filename_mode):
63429         Use mreadlink_with_size, not xreadlink_with_size.
63430
63431 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
63432
63433         Detect porting problems to FreeBSD/arm, which has time_t wider than
63434         long int.  Original problem reported for GNU diff by Xin Li in
63435         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
63436         * modules/getdate (Depends-on): Add intprops, verify.
63437         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
63438         is an integer type no wider than long int.
63439
63440 2007-06-18  Jim Meyering  <jim@meyering.net>
63441
63442         New module: mreadlink-with-size.
63443         * MODULES.html.sh: Add mreadlink-with-size.
63444         * modules/mreadlink-with-size: New module
63445         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
63446         not xreadlink-with-size.
63447         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
63448
63449 2007-06-16  Bruno Haible  <bruno@clisp.org>
63450
63451         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
63452         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
63453         Reported by Gary V. Vaughan <gary@gnu.org>.
63454
63455 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
63456
63457         Revamp lchown so that it lives in unistd.h where it belongs.
63458         * lib/lchown.h: Remove.
63459         * lib/dirchownmod.c: Don't include lib/lchown.h.
63460         * lib/fchownat.c: Likewise.
63461         * lib/openat.c: Likewise.
63462         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
63463         does not follow symlinks.
63464         (EOPNOTSUPP): Define if not defined.
63465         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
63466         is defined to 0.
63467         (lchown): New decl.
63468         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
63469         Do not check for lchown decl.
63470         Set REPLACE_LCHOWN.
63471         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
63472         REPLACE_LCHOWN.
63473         * modules/chown: Make it clear it follows symlinks.
63474         * modules/lchown: Make it clear it doesn't follow symlinks.
63475         (Files): Remove lib/lchown.h
63476         (Depends-on): Add unistd.
63477         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
63478         (Include): Include <unistd.h>, not "lchown.h".
63479         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
63480         REPLACE_LCHOWN.
63481
63482 2007-06-15  Jim Meyering  <jim@meyering.net>
63483
63484         Change license (GPL to LGPL) of fsusage and dependents.
63485         * modules/fsusage (License): Change to LGPL.
63486         * modules/full-read (License): Likewise.
63487         * modules/full-write (License): Likewise.
63488         * modules/safe-read (License): Likewise.
63489         * modules/safe-write (License): Likewise.
63490
63491 2007-06-14  Ben Pfaff  <blp@gnu.org>
63492
63493         Missing part of allocsa -> malloca transition.
63494         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
63495         gl_MALLOCA.
63496
63497 2007-06-12  Bruno Haible  <bruno@clisp.org>
63498
63499         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
63500         to ia64, x86_64, i386.
63501         Reported by Eric Blake.
63502
63503 2007-06-12  Bruno Haible  <bruno@clisp.org>
63504
63505         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
63506         cross-compiling to x86_64.
63507
63508 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
63509
63510         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
63511         glitch reported by Ralf Wildenhues in
63512         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
63513
63514         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
63515         Vin Shelton.
63516
63517 2007-06-11  Bruno Haible  <bruno@clisp.org>
63518
63519         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
63520         replacement string.
63521         Reported by Eric Blake.
63522
63523 2007-06-10  Bruno Haible  <bruno@clisp.org>
63524
63525         Prepare vasnprintf code for use with Unicode strings.
63526         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
63527         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
63528         TYPE_U32_STRING.
63529         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
63530         a_u32_string variants.
63531         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63532         * lib/printf-args.c: Don't include config.h and the specification
63533         header if PRINTF_FETCHARGS is already defined.
63534         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63535         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
63536         TYPE_U16_STRING, TYPE_U32_STRING.
63537         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
63538         u16_directive, u16_directives, u32_directive, u32_directives): New
63539         types.
63540         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
63541         New declarations.
63542         * lib/printf-parse.c: Don't include config.h and the specification
63543         header if PRINTF_PARSE is already defined. Eliminate the set of
63544         parameters for WIDE_CHAR_VERSION; the user of this file must provide
63545         them now. Include c-ctype.h.
63546         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
63547         directive and CHAR_T_ONLY_ASCII.
63548         * lib/vasnprintf.c: Don't include config.h and the specification header
63549         if VASNPRINTF is already defined.
63550         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
63551         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
63552         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
63553         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
63554         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
63555         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
63556         code accordingly.
63557         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
63558         pad_ourselves also in this case, with the 'c' and 's' directives, and
63559         with a different notion of "width".
63560         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
63561
63562 2007-06-10  Bruno Haible  <bruno@clisp.org>
63563
63564         * modules/unistr/u32-mbsnlen: New file.
63565         * lib/unistr/u32-mbsnlen.c: New file.
63566
63567         * modules/unistr/u16-mbsnlen: New file.
63568         * lib/unistr/u16-mbsnlen.c: New file.
63569
63570         * modules/unistr/u8-mbsnlen: New file.
63571         * lib/unistr/u8-mbsnlen.c: New file.
63572
63573         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
63574         declarations.
63575
63576 2007-06-10  Bruno Haible  <bruno@clisp.org>
63577
63578         * lib/string_.h (mbsnlen): New declaration.
63579         * lib/mbsnlen.c: New file.
63580         * m4/mbsnlen.m4: New file.
63581         * modules/mbsnlen: New file.
63582         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
63583         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
63584         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
63585
63586 2007-06-10  Bruno Haible  <bruno@clisp.org>
63587
63588         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
63589
63590 2007-06-10  Bruno Haible  <bruno@clisp.org>
63591
63592         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
63593         * lib/mbuiter.h: Likewise.
63594
63595 2007-06-10  Bruno Haible  <bruno@clisp.org>
63596
63597         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
63598         declaration.
63599
63600 2007-06-10  Karl Berry  <karl@gnu.org>
63601
63602         * config/srclist.txt: remove gettext entries, Bruno prefers
63603         to update individually.
63604
63605 2007-06-10  Bruno Haible  <bruno@clisp.org>
63606
63607         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
63608         'maxlen'. Ensure only length + width bytes are allocated, not
63609         length + 1 + width.
63610
63611 2007-06-09  Bruno Haible  <bruno@clisp.org>
63612
63613         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
63614         (CHAR_T): Remove macro.
63615         (VASNPRINTF): Update.
63616
63617 2007-06-09  Bruno Haible  <bruno@clisp.org>
63618
63619         * MODULES.html.sh (Unicode string functions): Add the new modules.
63620
63621         * modules/uniconv/u32-conv-to-enc: New file.
63622         * lib/uniconv/u32-conv-to-enc.c: New file.
63623         * modules/uniconv/u32-conv-to-enc-tests: New file.
63624         * tests/uniconv/test-u32-conv-to-enc.c: New file.
63625
63626         * modules/uniconv/u16-conv-to-enc: New file.
63627         * lib/uniconv/u16-conv-to-enc.c: New file.
63628         * lib/uniconv/u-conv-to-enc.h: New file.
63629         * modules/uniconv/u16-conv-to-enc-tests: New file.
63630         * tests/uniconv/test-u16-conv-to-enc.c: New file.
63631
63632         * modules/uniconv/u8-conv-to-enc: New file.
63633         * lib/uniconv/u8-conv-to-enc.c: New file.
63634         * modules/uniconv/u8-conv-to-enc-tests: New file.
63635         * tests/uniconv/test-u8-conv-to-enc.c: New file.
63636
63637         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
63638         u32_conv_to_encoding): New declarations.
63639
63640 2007-06-09  Bruno Haible  <bruno@clisp.org>
63641
63642         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
63643
63644 2007-06-09  Bruno Haible  <bruno@clisp.org>
63645
63646         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
63647         * modules/malloca: Renamed from modules/allocsa, updated.
63648         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
63649         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
63650         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
63651         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
63652         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
63653         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
63654         * modules/xmalloca: Renamed from modules/xallocsa, updated.
63655         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
63656         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
63657         * modules/c-strcasestr (Depends-on): Update.
63658         * lib/c-strcasestr.c: Update.
63659         * modules/c-strstr (Depends-on): Update.
63660         * lib/c-strstr.c: Update.
63661         * modules/canonicalize-lgpl (Depends-on): Update.
63662         * lib/canonicalize-lgpl.c: Update.
63663         * modules/clean-temp (Depends-on): Update.
63664         * lib/clean-temp.c: Update.
63665         * modules/csharpcomp (Depends-on): Update.
63666         * lib/csharpcomp.c: Update.
63667         * modules/csharpexec (Depends-on): Update.
63668         * lib/csharpexec.c: Update.
63669         * modules/javacomp (Depends-on): Update.
63670         * lib/javacomp.c: Update.
63671         * modules/javaexec (Depends-on): Update.
63672         * lib/javaexec.c: Update.
63673         * modules/mbscasestr (Depends-on): Update.
63674         * lib/mbscasestr.c: Update.
63675         * modules/mbsstr (Depends-on): Update.
63676         * lib/mbsstr.c: Update.
63677         * modules/setenv (Depends-on): Update.
63678         * lib/setenv.c: Update.
63679         * modules/strcasestr (Depends-on): Update.
63680         * lib/strcasestr.c: Update.
63681         * modules/striconveha (Depends-on): Update.
63682         * lib/striconveha.c: Update.
63683         * modules/relocatable-prog-wrapper (Files): Update.
63684         * lib/relocwrapper.c: Update.
63685         * build-aux/install-reloc: Update.
63686         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
63687
63688 2007-06-08  Bruno Haible  <bruno@clisp.org>
63689
63690         Port to uClibc.
63691         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
63692         * lib/fpurge.c (fpurge): Likewise.
63693         * lib/freading.c (freading): Likewise.
63694         * lib/fseeko.c (rpl_fseeko): Likewise.
63695         * lib/fseterr.c (fseterr): Likewise.
63696         * lib/fwriting.c (fwriting): Likewise.
63697         * tests/test-fflush.c (main): Avoid a failure on uClibc.
63698
63699 2007-06-08  Bruno Haible  <bruno@clisp.org>
63700
63701         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
63702         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
63703         * modules/gettext (Files): Add m4/intlmacosx.m4.
63704
63705 2007-06-07  Bruno Haible  <bruno@clisp.org>
63706
63707         * modules/localename-tests: New file.
63708         * tests/test-localename.c: New file.
63709
63710         New module 'localename'.
63711         * lib/localename.h: New file.
63712         * lib/localename.c: New file, from GNU gettext.
63713         * m4/localename.m4: New file.
63714         * modules/localename: New file.
63715
63716 2007-06-07  Bruno Haible  <bruno@clisp.org>
63717
63718         Work around the lack of <wchar.h> on some builds of uClibc.
63719         * doc/headers/wchar.texi: Update.
63720         * lib/wchar_.h: Include <wchar.h> only if it exists.
63721         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
63722         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
63723         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
63724         doesn't exist.
63725         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
63726         * modules/mbfile (Depends-on): Add wchar.
63727         * modules/mbiter (Depends-on): Likewise.
63728         * modules/mbuiter (Depends-on): Likewise.
63729         Reported by Simon Josefsson.
63730
63731 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
63732
63733         Work around problem reported by Steven M. Schweda in
63734         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
63735         Tru64 5.1B with the Compaq compiler environment installed declares
63736         an 'isblank' function but does not define it in the C library.
63737         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
63738         * lib/regex_internal.h (isblank): Likewise.
63739         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
63740         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63741
63742 2007-06-05  Bruno Haible  <bruno@clisp.org>
63743
63744         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
63745         ia64.
63746         * modules/printf-safe: New file.
63747         * modules/fprintf-posix (Depends-on): Add printf-safe.
63748         * modules/printf-posix (Depends-on): Likewise.
63749         * modules/snprintf-posix (Depends-on): Likewise.
63750         * modules/sprintf-posix (Depends-on): Likewise.
63751         * modules/vasnprintf-posix (Depends-on): Likewise.
63752         * modules/vasprintf-posix (Depends-on): Likewise.
63753         * modules/vfprintf-posix (Depends-on): Likewise.
63754         * modules/vprintf-posix (Depends-on): Likewise.
63755         * modules/vsnprintf-posix (Depends-on): Likewise.
63756         * modules/vsprintf-posix (Depends-on): Likewise.
63757         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
63758         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
63759         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
63760         "no" on i386, x86_64, ia64.
63761         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
63762         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63763         on i386, x86_64, ia64.
63764         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
63765         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63766         on i386, x86_64, ia64.
63767         * tests/test-vasnprintf-posix.c: Include float.h.
63768         (LDBL80_WORDS): New macro.
63769         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63770         on i386, x86_64, ia64.
63771         * tests/test-vasprintf-posix.c: Include float.h.
63772         (LDBL80_WORDS): New macro.
63773         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63774         on i386, x86_64, ia64.
63775         * tests/test-snprintf-posix.c: Include float.h.
63776         * tests/test-sprintf-posix.c: Likewise.
63777         * tests/test-vsnprintf-posix.c: Likewise.
63778         * tests/test-vsprintf-posix.c: Likewise.
63779
63780 2007-06-05  Bruno Haible  <bruno@clisp.org>
63781
63782         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
63783         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
63784         non-IEEE numbers on i386, x86_64, ia64.
63785         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
63786         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
63787         * tests/test-isnanl.h: Include float.h.
63788         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
63789
63790 2007-06-05  Bruno Haible  <bruno@clisp.org>
63791
63792         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
63793         also the %a / %A. Handle the %a / %A code before this extra handling.
63794
63795 2007-06-05  Bruno Haible  <bruno@clisp.org>
63796
63797         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
63798         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
63799
63800 2007-06-05  Bruno Haible  <bruno@clisp.org>
63801
63802         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
63803         typo in variable name.
63804
63805 2007-06-05  Eric Blake  <ebb9@byu.net>
63806
63807         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
63808         Reported by Simon Josefsson.
63809
63810 2007-06-04  Bruno Haible  <bruno@clisp.org>
63811
63812         Avoid test failures on some PowerPC platforms.
63813         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
63814         Define differently for PowerPC.
63815         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
63816         Reported by Gary V. Vaughan <gary@gnu.org>.
63817
63818 2007-06-02  Bruno Haible  <bruno@clisp.org>
63819
63820         Fix test-stdint failure on FreeBSD/ia64.
63821         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
63822         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
63823         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
63824         * doc/headers/stdint.texi: Update.
63825
63826 2007-06-01  Bruno Haible  <bruno@clisp.org>
63827
63828         * tests/test-binary-io.c (main): Pass a third argument to open().
63829         Reported by Gary V. Vaughan <gary@gnu.org>.
63830
63831 2007-06-01  Bruno Haible  <bruno@clisp.org>
63832
63833         * doc/functions/frexpl.texi: Update for mingw.
63834
63835 2007-06-01  Bruno Haible  <bruno@clisp.org>
63836
63837         * tests/test-lseek.c (main): Disable test of errno for invalid third
63838         argument.
63839         * doc/functions/lseek.texi: Update.
63840         Reported by Gary V. Vaughan <gary@gnu.org>.
63841
63842 2007-05-28  Bruno Haible  <bruno@clisp.org>
63843
63844         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
63845
63846 2007-05-31  Eric Blake  <ebb9@byu.net>
63847
63848         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
63849         cross compiling.
63850
63851 2007-05-30  Eric Blake  <ebb9@byu.net>
63852         and Bruno Haible  <bruno@clisp.org>
63853
63854         Work around mingw test failures exposed by m4-1.4.9b.
63855         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
63856         * tests/test-unistd.c: Disable uid_t and git_t tests for the
63857         moment.
63858
63859 2007-05-30  Bruno Haible  <bruno@clisp.org>
63860
63861         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
63862         assuming that they are closed. Needed on HP-UX 11.
63863
63864 2007-05-29  Bruno Haible  <bruno@clisp.org>
63865
63866         Fix a problem with #include_next.
63867         * lib/dirent_.h: Split the double-inclusion guard.
63868         * lib/fcntl_.h: Likewise.
63869         * lib/float_.h: Likewise.
63870         * lib/iconv_.h: Likewise.
63871         * lib/inttypes_.h: Likewise.
63872         * lib/locale_.h: Likewise.
63873         * lib/math_.h: Likewise.
63874         * lib/netinet_in_.h: Likewise.
63875         * lib/search_.h: Likewise.
63876         * lib/signal_.h: Likewise.
63877         * lib/stdint_.h: Likewise.
63878         * lib/stdio_.h: Likewise.
63879         * lib/stdlib_.h: Likewise.
63880         * lib/string_.h: Likewise.
63881         * lib/sys_select_.h: Likewise.
63882         * lib/sys_socket_.h: Likewise.
63883         * lib/sys_stat_.h: Likewise.
63884         * lib/sys_time_.h: Likewise.
63885         * lib/sysexits_.h: Likewise.
63886         * lib/time_.h: Likewise.
63887         * lib/unistd_.h: Likewise.
63888         * lib/wchar_.h: Likewise.
63889         * lib/wctype_.h: Likewise.
63890
63891 2007-05-29  Bruno Haible  <bruno@clisp.org>
63892
63893         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
63894         for the moment.
63895
63896 2007-05-29  Bruno Haible  <bruno@clisp.org>
63897
63898         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
63899         invocation.
63900         Reported by Eric Blake.
63901
63902 2007-05-29  Bruno Haible  <bruno@clisp.org>
63903
63904         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
63905         compiling case.
63906
63907 2007-05-29  Eric Blake  <ebb9@byu.net>
63908             Bruno Haible  <bruno@clisp.org>
63909
63910         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
63911         cross compiles.
63912
63913 2007-05-28  Eric Blake  <ebb9@byu.net>
63914
63915         * modules/closein-tests (test_closein_LDADD): Support test on
63916         cygwin with libtool.
63917
63918 2007-05-28  Bruno Haible  <bruno@clisp.org>
63919
63920         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
63921         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
63922         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
63923         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
63924         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
63925         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
63926         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
63927         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
63928         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
63929
63930 2007-05-28  Eric Blake  <ebb9@byu.net>
63931
63932         Unconditionally include <config.h> in unit tests.
63933         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
63934         * tests/test-allocsa.c, tests/test-arcfour.c,
63935         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
63936         tests/test-array_list.c, tests/test-array_oset.c,
63937         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
63938         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
63939         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
63940         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
63941         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
63942         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
63943         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
63944         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
63945         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
63946         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
63947         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
63948         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
63949         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
63950         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
63951         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
63952         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
63953         test-md5.c, test-memmem.c, test-printf-posix.c,
63954         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
63955         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
63956         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
63957         test-strcasestr.c, test-striconv.c, test-striconveh.c,
63958         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
63959         test-vasnprintf-posix2.c, test-vasnprintf.c,
63960         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
63961         test-vfprintf-posix.c, test-vprintf-posix.c,
63962         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
63963         test-xvasprintf.c: Likewise.
63964
63965 2007-05-28  Bruno Haible  <bruno@clisp.org>
63966
63967         * gnulib-tool (func_import): Remember the --with-tests command-line
63968         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
63969         Reported by Eric Blake.
63970
63971 2007-05-28  Bruno Haible  <bruno@clisp.org>
63972
63973         * modules/ftell-tests: New file.
63974         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
63975         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
63976
63977         * lib/ftell.c: New file.
63978         * modules/ftell: New file.
63979         * m4/ftell.m4: New file.
63980         * doc/functions/ftell.texi: Update.
63981         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
63982         REPLACE_FTELL.
63983         * lib/stdio_.h (rpl_ftell): New declaration.
63984         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
63985         REPLACE_FTELL.
63986
63987 2007-05-28  Eric Blake  <ebb9@byu.net>
63988
63989         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
63990
63991 2007-05-28  Bruno Haible  <bruno@clisp.org>
63992
63993         * modules/fseek-tests: New file.
63994         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
63995         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
63996
63997         * lib/fseek.c: New file.
63998         * modules/fseek: New file.
63999         * m4/fseek.m4: New file.
64000         * doc/functions/fseek.texi: Update.
64001         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
64002         REPLACE_FSEEK.
64003         * lib/stdio_.h (rpl_fseek): New declaration.
64004         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
64005         REPLACE_FSEEK.
64006
64007 2007-05-28  Bruno Haible  <bruno@clisp.org>
64008
64009         * lib/stdio_.h (fflush): More comments.
64010
64011 2007-05-28  Bruno Haible  <bruno@clisp.org>
64012
64013         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
64014         runtime test.
64015
64016 2007-05-28  Eric Blake  <ebb9@byu.net>
64017
64018         Improve lseek module.
64019         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
64020         * lib/unistd_.h (lseek): Scale back link warning message.
64021         * tests/test-lseek.c: Beef up test.
64022         * tests/test-lseek.sh: Exercise more facets of lseek.
64023         Reported by Bruno Haible.
64024
64025 2007-05-28  Bruno Haible  <bruno@clisp.org>
64026
64027         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
64028         to define.
64029
64030 2007-05-27  Bruno Haible  <bruno@clisp.org>
64031
64032         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
64033
64034 2007-05-27  Bruno Haible  <bruno@clisp.org>
64035
64036         * modules/openmp: New file.
64037         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
64038         Noah Misch.
64039
64040 2007-05-26  Bruno Haible  <bruno@clisp.org>
64041
64042         * modules/chdir-long (Depends-on): Add fchdir.
64043         * modules/chdir-safer (Depends-on): Likewise.
64044         * modules/fts (Depends-on): Likewise.
64045         * modules/fts-lgpl (Depends-on): Likewise.
64046         * modules/openat (Depends-on): Likewise.
64047         * modules/savewd (Depends-on): Likewise.
64048
64049 2007-05-24  Eric Blake  <ebb9@byu.net>
64050
64051         Fix lseek on mingw.
64052         * modules/lseek: New module.
64053         * m4/lseek.m4: New file.
64054         * lib/lseek.c: New file.
64055         * modules/lseek-tests: New file.
64056         * tests/test-lseek.c: New file.
64057         * tests/test-lseek.sh: New file.
64058         * MODULES.html.sh: Document lseek module.
64059         * modules/fflush (Depends-on): Add lseek, fseeko.
64060         * modules/fseeko (Depends-on): Likewise.
64061         * modules/ftello (Depends-on): Likewise.
64062         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
64063         broken.
64064         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
64065         broken.
64066         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
64067         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
64068         * lib/ftello.c (rpl_ftello): Likewise.
64069         * tests/test-fseeko.c (main): Test this.
64070         * tests/test-fseeko.sh: Likewise.
64071         * tests/test-ftello.c (main): Likewise.
64072         * tests/test-ftello.sh: Likewise.
64073         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
64074         implies replacing fseek.
64075         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
64076         HAVE_FTELLO.
64077         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
64078         * modules/unistd (Makefile.am): Likewise.
64079         * lib/unistd_.h (lseek): Declare a replacement.
64080         * doc/functions/lseek.texi (lseek): Document this fix.
64081         * doc/functions/fseek.texi (fseek): Likewise.
64082         * doc/functions/ftell.texi (ftell): Likewise.
64083
64084 2007-05-24  Bruno Haible  <bruno@clisp.org>
64085
64086         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
64087         in the printed representation of a NaN.
64088         * tests/test-vasprintf-posix.c (test_function): Likewise.
64089         * tests/test-snprintf-posix.h (test_function): Likewise.
64090         * tests/test-sprintf-posix.h (test_function): Likewise.
64091         Reported by Eric Blake.
64092
64093 2007-05-23  Eric Blake  <ebb9@byu.net>
64094
64095         Fix fseeko/ftello on cygwin 1.5.24.
64096         * doc/functions/fseeko.texi (fseeko): Document the fix.
64097         * doc/functions/ftello.texi (ftello): Document the fix.
64098         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
64099         * doc/functions/stdout.text (stdout): New file.
64100         * doc/functions/stderr.text (stderr): New file.
64101         * doc/gnulib.texi (Function Substitutes): Use new files.
64102         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
64103         prior to 1.7.0.
64104         * tests/test-ftello.c (main): Likewise for ftello.
64105         * tests/test-fseeko.sh: New file.
64106         * tests/test-ftello.sh: New file.
64107         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
64108         with seekable stdin.
64109         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
64110         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
64111         (gl_REPLACE_FSEEKO): New macro.
64112         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
64113         * modules/fseeko (Files): Distribute fseeko.c.
64114         * modules/ftello (Files): Distribute ftello.c.
64115         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
64116         mode.
64117         * lib/ftello.c (rpl_ftello): New file.
64118         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
64119         fseeko, ftello.
64120         (gl_STDIN_LARGE_OFFSET): New macro.
64121         * modules/stdio (Makefile.am): Perform the replacement.
64122         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
64123
64124 2007-05-23  Bruno Haible  <bruno@clisp.org>
64125
64126         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
64127         GNULIB_POSIXCHECK is defined.
64128
64129 2007-05-21  Bruno Haible  <bruno@clisp.org>
64130
64131         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
64132         Check also the output for NaN arguments. When cross-compiling, guess
64133         no on IRIX.
64134         * lib/vasnprintf.c: Update comments.
64135         * tests/test-vasnprintf-posix.c (strisnan): New function.
64136         (test_function): Use it.
64137         * tests/test-vasprintf-posix.c (strisnan): New function.
64138         (test_function): Use it.
64139         * tests/test-snprintf-posix.h (strisnan): New function.
64140         (test_function): Use it.
64141         * tests/test-sprintf-posix.h (strisnan): New function.
64142         (test_function): Use it.
64143         Reported by Eric Blake.
64144
64145 2007-05-20  Bruno Haible  <bruno@clisp.org>
64146
64147         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
64148         numbers that fails on BeOS.
64149         * doc/functions/frexpl.texi: Update.
64150
64151 2007-05-20  Jim Meyering  <jim@meyering.net>
64152
64153         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
64154         forced upon us by glibc-2.6.
64155
64156 2007-05-20  Bruno Haible  <bruno@clisp.org>
64157
64158         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
64159         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
64160         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
64161         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
64162         NEED_PRINTF_INFINITE.
64163         (is_infinitel): New function.
64164         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
64165         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
64166         gl_PREREQ_VASNPRINTF_INFINITE.
64167         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
64168         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64169         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
64170         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
64171         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
64172         gl_PREREQ_VASNPRINTF_INFINITE.
64173         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64174         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64175         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64176         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64177         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64178         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64179         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64180         * doc/functions/fprintf.texi: Update.
64181         * doc/functions/printf.texi: Update.
64182         * doc/functions/snprintf.texi: Update.
64183         * doc/functions/sprintf.texi: Update.
64184         * doc/functions/vfprintf.texi: Update.
64185         * doc/functions/vprintf.texi: Update.
64186         * doc/functions/vsnprintf.texi: Update.
64187         * doc/functions/vsprintf.texi: Update.
64188
64189 2007-05-20  Bruno Haible  <bruno@clisp.org>
64190
64191         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
64192         was not found in libc.
64193         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
64194
64195 2007-05-20  Bruno Haible  <bruno@clisp.org>
64196
64197         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64198         printed as "-nan" instead of "nan".
64199         * tests/test-vasprintf-posix.c (test_function): Likewise.
64200         * tests/test-snprintf-posix.h (test_function): Likewise.
64201         * tests/test-sprintf-posix.h (test_function): Likewise.
64202         Needed for HP-UX 11.
64203
64204 2007-05-20  Jim Meyering  <jim@meyering.net>
64205
64206         Fix buggy test for the fchownat-deref bug.
64207         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
64208         symlink required for the run-test.  Without it, this test would
64209         always declare that fchownat doesn't work, and client code would
64210         unnecessarily use the replacement function with fixed libc.
64211         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
64212         Reported by Greg Schafer.
64213
64214 2007-05-19  Bruno Haible  <bruno@clisp.org>
64215
64216         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
64217         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
64218         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
64219         Needed for IRIX 6.5 and Solaris 2.5.1.
64220
64221 2007-05-19  Bruno Haible  <bruno@clisp.org>
64222
64223         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
64224         (test_function): Skip tests involving -0.0 on platforms where
64225         -0.0 = 0.0.
64226         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
64227         (test_function): Skip tests involving -0.0 on platforms where
64228         -0.0 = 0.0.
64229         * tests/test-snprintf-posix.h (have_minus_zero): New function.
64230         (test_function): Skip tests involving -0.0 on platforms where
64231         -0.0 = 0.0.
64232         * tests/test-sprintf-posix.h (have_minus_zero): New function.
64233         (test_function): Skip tests involving -0.0 on platforms where
64234         -0.0 = 0.0.
64235         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
64236         tests.
64237         * tests/test-printf-posix.h (test_function): Likewise.
64238         * tests/test-printf-posix.output: Remove all -0.0 related results.
64239         Needed for IRIX 6.5.
64240
64241 2007-05-19  Bruno Haible  <bruno@clisp.org>
64242
64243         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64244         printed as "nan0x7fffffff" instead of "nan".
64245         * tests/test-vasprintf-posix.c (test_function): Likewise.
64246         * tests/test-snprintf-posix.h (test_function): Likewise.
64247         * tests/test-sprintf-posix.h (test_function): Likewise.
64248         * tests/test-fprintf-posix.h (NaN): Remove macro.
64249         (test_function): Remove all NaN related tests.
64250         * tests/test-printf-posix.h (NaN): Remove macro.
64251         (test_function): Remove all NaN related tests.
64252         * tests/test-printf-posix.output: Remove all NaN related results.
64253         Needed for IRIX 6.5.
64254
64255 2007-05-19  Bruno Haible  <bruno@clisp.org>
64256
64257         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
64258         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
64259
64260 2007-05-19  Bruno Haible  <bruno@clisp.org>
64261
64262         * lib/float_.h: New file.
64263         * m4/float_h.m4: New file.
64264         * modules/float: New file.
64265         * modules/isnanl (Dependencies): Add float.
64266         * modules/isnanl-nolibm (Dependencies): Likewise.
64267         * modules/mathl (Dependencies): Likewise.
64268         * modules/printf-frexpl (Dependencies): Likewise.
64269         * modules/signbit (Dependencies): Likewise.
64270         * modules/vasnprintf (Dependencies): Likewise.
64271         * doc/headers/float.texi: Update.
64272
64273 2007-05-19  Jim Meyering  <jim@meyering.net>
64274
64275         * lib/utimens.c (gl_futimens): Rename from futimens,
64276         now that glibc-2.6 declares futimens.
64277         * lib/utimens.h: Likewise.
64278
64279 2007-05-19  Bruno Haible  <bruno@clisp.org>
64280
64281         Avoid test failures on mingw.
64282         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
64283         * tests/test-printf-posix.sh: Likewise.
64284         * tests/test-vfprintf-posix.sh: Likewise.
64285         * tests/test-vprintf-posix.sh: Likewise.
64286
64287 2007-05-19  Bruno Haible  <bruno@clisp.org>
64288
64289         Fix *printf result for NaN, Inf, -0.0 on mingw.
64290         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
64291         * lib/vasnprintf.c: Include math.h and isnan.h.
64292         (is_infinite_or_zero): New function.
64293         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
64294         values in the %f, %F, %e, %E, %g, %G directives.
64295         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
64296         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64297         gl_PRINTF_INFINITE and test its result. Invoke
64298         gl_PREREQ_VASNPRINTF_INFINITE.
64299         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64300         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64301         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64302         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64303         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64304         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64305         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64306         * doc/functions/fprintf.texi: Update.
64307         * doc/functions/printf.texi: Update.
64308         * doc/functions/snprintf.texi: Update.
64309         * doc/functions/sprintf.texi: Update.
64310         * doc/functions/vfprintf.texi: Update.
64311         * doc/functions/vprintf.texi: Update.
64312         * doc/functions/vsnprintf.texi: Update.
64313         * doc/functions/vsprintf.texi: Update.
64314
64315 2007-05-19  Bruno Haible  <bruno@clisp.org>
64316
64317         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
64318         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
64319         Instead of multiplying with 10^k, set extra_zeroes to k.
64320         (scale10_round_long_double): Remove function.
64321
64322 2007-05-18  Bruno Haible  <bruno@clisp.org>
64323
64324         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
64325         introduced on 2007-05-06.
64326
64327 2007-05-18  Bruno Haible  <bruno@clisp.org>
64328
64329         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
64330         %g directives.
64331         * tests/test-vasprintf-posix.c (test_function): Likewise.
64332         * tests/test-snprintf-posix.h (test_function): Likewise.
64333         * tests/test-sprintf-posix.h (test_function): Likewise.
64334
64335 2007-05-18  Bruno Haible  <bruno@clisp.org>
64336
64337         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
64338         (strmatch): New function.
64339         (test_function): Test the %f directive on numbers of various exponents.
64340         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
64341         (strmatch): New function.
64342         (test_function): Test the %f directive on numbers of various exponents.
64343         * tests/test-snprintf-posix.h (strmatch): New function.
64344         (test_function): Test the %f directive on numbers of various exponents.
64345         * tests/test-sprintf-posix.h (strmatch): New function.
64346         (test_function): Test the %f directive on numbers of various exponents.
64347         * tests/test-snprintf-posix.c (SIZEOF): New macro.
64348         * tests/test-sprintf-posix.c (SIZEOF): New macro.
64349         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
64350         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
64351
64352 2007-05-18  Bruno Haible  <bruno@clisp.org>
64353
64354         Add support for 'long double' number output.
64355         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
64356         * lib/vasnprintf.c: Include math.h and float+.h.
64357         (mp_limb_t): New type.
64358         (GMP_LIMB_BITS): New macro.
64359         (mp_twolimb_t): New type.
64360         (GMP_TWOLIMB_BITS): New macro.
64361         (mpn_t): New type.
64362         (multiply, divide, convert_to_decimal, decode_long_double,
64363         scale10_round_long_double, scale10_round_decimal_long_double,
64364         floorlog10l): New functions.
64365         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
64366         for the %f, %F, %e, %E, %g, %G directives.
64367         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
64368         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64369         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
64370         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
64371         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64372         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64373         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64374         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64375         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64376         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64377         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64378         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
64379         * modules/snprintf-posix (Depends-on): Likewise.
64380         * modules/sprintf-posix (Depends-on): Likewise.
64381         * modules/vasnprintf-posix (Depends-on): Likewise.
64382         * modules/vasprintf-posix (Depends-on): Likewise.
64383         * modules/vfprintf-posix (Depends-on): Likewise.
64384         * modules/vsnprintf-posix (Depends-on): Likewise.
64385         * modules/vsprintf-posix (Depends-on): Likewise.
64386         * modules/vasnprintf (Files): Add lib/float+.h.
64387         * doc/functions/fprintf.texi: Update.
64388         * doc/functions/printf.texi: Update.
64389         * doc/functions/snprintf.texi: Update.
64390         * doc/functions/sprintf.texi: Update.
64391         * doc/functions/vfprintf.texi: Update.
64392         * doc/functions/vprintf.texi: Update.
64393         * doc/functions/vsnprintf.texi: Update.
64394         * doc/functions/vsprintf.texi: Update.
64395
64396 2007-05-18  Bruno Haible  <bruno@clisp.org>
64397
64398         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
64399
64400 2007-05-18  Bruno Haible  <bruno@clisp.org>
64401
64402         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
64403         for printing 64-bit integers. Needed for mingw.
64404
64405 2007-05-18  Bruno Haible  <bruno@clisp.org>
64406
64407         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
64408         gl_FUNC_FREXPL_WORKS.
64409         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
64410
64411 2007-05-18  Bruno Haible  <bruno@clisp.org>
64412
64413         * modules/frexpl-nolibm-tests: New file.
64414
64415         * modules/frexpl-nolibm: New file.
64416         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
64417
64418 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64419
64420         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
64421         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64422         GCC 4.2, which otherwise issues a lot of warnings.
64423         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
64424         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
64425         Likewise.
64426         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
64427         * modules/iconv_open (iconv.h): Likewise.
64428         * modules/locale (locale.h): Likewise.
64429         * modules/netinet_in (netinet/in.h): Likewise.
64430         * modules/sys_select (sys_select.h): Likewise.
64431         * modules/sys_socket (sys/socket.h): Likewise.
64432         * modules/sys_stat (sys/stat.h): Likewise.
64433         * modules/sysexits (sysexits.h): Likewise.
64434         * modules/unistd (unistd.h): Likewise.
64435
64436 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64437
64438         * modules/closein-tests (Makefile.am): Distribute
64439         `test-closein.sh'.
64440
64441 2007-05-17  Bruno Haible  <bruno@clisp.org>
64442
64443         * tests/test-printf-posix.output: Renamed from
64444         tests/test-fprintf-posix.out.
64445         * modules/fprintf-posix-tests: Update.
64446         * modules/printf-posix-tests: Update.
64447         * modules/vfprintf-posix-tests: Update.
64448         * modules/vprintf-posix-tests: Update.
64449         * tests/test-fprintf-posix.sh: Update.
64450         * tests/test-printf-posix.sh: Update.
64451         * tests/test-vfprintf-posix.sh: Update.
64452         * tests/test-vprintf-posix.sh: Update.
64453         Reported by Ralf Wildenhues.
64454
64455 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64456
64457         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
64458         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64459         GCC 4.2, which otherwise issues a lot of warnings.
64460         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
64461         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
64462         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
64463         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
64464         it should no longer be needed.
64465         * lib/string_.h: Likewise.
64466         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
64467         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
64468         * modules/inttypes (inttypes.h): Likewise.
64469         * modules/math (math.h): Likewise.
64470         * modules/search (search.h): Likewise.
64471         * modules/signal (signal.h): Likewise.
64472         * modules/stdint (stdint.h): Likewise.
64473         * modules/stdio (stdio.h): Likewise.
64474         * modules/stdlib (stdlib.h): Likewise.
64475         * modules/string (string.h): Likewise.
64476         * modules/sys_time (sys/time.h): Likewise.
64477         * modules/time (time.h): Likewise.
64478         * modules/wchar (wchar.h): Likewise.
64479         * modules/wctype (wtype.h): Likewise.
64480
64481 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
64482
64483         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
64484
64485 2007-05-13  Bruno Haible  <bruno@clisp.org>
64486
64487         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
64488         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64489         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
64490         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64491         (gl_PREREQ_STRTOK_R): Don't require it here.
64492
64493 2007-05-13  Bruno Haible  <bruno@clisp.org>
64494
64495         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
64496         when used in C++ mode.
64497
64498 2007-05-12  Bruno Haible  <bruno@clisp.org>
64499
64500         * lib/linebuffer.h: Tweak doc.
64501         * lib/linebuffer.c: Likewise.
64502
64503 2007-05-12  James Youngman  <jay@gnu.org>
64504
64505         * lib/linebuffer.c (readlinebuffer_delim): New function,
64506         like readlinebuffer, but use a caller-specified delimiter.
64507         (readlinebuffer): Just call readlinebuffer_delim with '\n'
64508         as the delimiter.
64509         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
64510
64511 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64512
64513         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
64514         * modules/openat (Files): Remove openat-die.c.
64515         (Depends-on): Add openat-die.
64516         * modules/openat-die: New module.
64517
64518 2007-05-06  Bruno Haible  <bruno@clisp.org>
64519
64520         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
64521         Update with info about Cygwin.
64522         * doc/functions/fprintf.texi: Update.
64523         * doc/functions/printf.texi: Update.
64524         * doc/functions/snprintf.texi: Update.
64525         * doc/functions/sprintf.texi: Update.
64526         * doc/functions/vfprintf.texi: Update.
64527         * doc/functions/vprintf.texi: Update.
64528         * doc/functions/vsnprintf.texi: Update.
64529         * doc/functions/vsprintf.texi: Update.
64530         Reported by Eric Blake.
64531
64532 2007-05-06  Bruno Haible  <bruno@clisp.org>
64533
64534         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
64535         padding ourselves for the floating-point directives.
64536         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
64537         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
64538         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64539         gl_PRINTF_FLAG_ZERO and test its result. Invoke
64540         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
64541         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64542         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64543         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64544         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64545         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64546         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64547         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64548         * tests/test-snprintf-posix.h (test_function): Also check the width
64549         and some flags in the %f directive.
64550         * tests/test-sprintf-posix.h (test_function): Likewise.
64551         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64552         * tests/test-vasprintf-posix.c (test_function): Likewise.
64553         * doc/functions/fprintf.texi: Update.
64554         * doc/functions/printf.texi: Update.
64555         * doc/functions/snprintf.texi: Update.
64556         * doc/functions/sprintf.texi: Update.
64557         * doc/functions/vfprintf.texi: Update.
64558         * doc/functions/vprintf.texi: Update.
64559         * doc/functions/vsnprintf.texi: Update.
64560         * doc/functions/vsprintf.texi: Update.
64561
64562 2007-05-06  Bruno Haible  <bruno@clisp.org>
64563
64564         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
64565         pass the ' flag character to sprintf or snprintf.
64566         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
64567         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
64568         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64569         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
64570         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
64571         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64572         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64573         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64574         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64575         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64576         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64577         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64578         * tests/test-snprintf-posix.h (test_function): Also check the grouping
64579         flag.
64580         * tests/test-sprintf-posix.h (test_function): Likewise.
64581         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64582         * tests/test-vasprintf-posix.c (test_function): Likewise.
64583         * doc/functions/fprintf.texi: Update.
64584         * doc/functions/printf.texi: Update.
64585         * doc/functions/snprintf.texi: Update.
64586         * doc/functions/sprintf.texi: Update.
64587         * doc/functions/vfprintf.texi: Update.
64588         * doc/functions/vprintf.texi: Update.
64589         * doc/functions/vsnprintf.texi: Update.
64590         * doc/functions/vsprintf.texi: Update.
64591
64592 2007-05-01  Bruno Haible  <bruno@clisp.org>
64593
64594         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
64595
64596 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
64597
64598         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
64599         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
64600
64601 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64602
64603         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
64604         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
64605         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
64606
64607 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
64608
64609         * lib/argp-help.c (struct hol_entry): New member `ord'.
64610         (HOL_ENTRY_PTRCMP): Use ord for comparison
64611         (hol_sort): Initialize ord.
64612
64613 2007-05-01  Bruno Haible  <bruno@clisp.org>
64614
64615         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
64616         Reported by Eric Blake.
64617         * doc/gnulib.texi (Function Substitutes): Update.
64618
64619 2007-05-01  Bruno Haible  <bruno@clisp.org>
64620
64621         * doc/functions.texi: Remove file, now redundant through
64622         doc/functions/*.texi.
64623
64624 2007-05-01  Bruno Haible  <bruno@clisp.org>
64625
64626         * modules/argp (Depends-on): Add sleep.
64627
64628 2007-05-01  Bruno Haible  <bruno@clisp.org>
64629
64630         * modules/sleep-tests: New file.
64631         * tests/test-sleep.c: New file.
64632
64633         * modules/sleep: New file.
64634         * lib/sleep.c: New file.
64635         * m4/sleep.m4: New file.
64636         * lib/unistd_.h (sleep): New declaration.
64637         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
64638         HAVE_SLEEP.
64639         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
64640         * doc/functions/sleep.texi: Document the sleep module.
64641
64642 2007-05-01  Bruno Haible  <bruno@clisp.org>
64643
64644         * lib/sigprocmask.h: Remove file.
64645         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
64646         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
64647         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
64648         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
64649         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
64650         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
64651         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
64652         HAVE_SIGSET_T as a shell variable.
64653         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
64654         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
64655         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
64656         (Depends-on): Add signal. Remove verify.
64657         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
64658         (Include): Mention <signal.h> instead of sigprocmask.h.
64659         * NEWS: Mention the change.
64660         * lib/fatal-signal.c: Don't include sigprocmask.h.
64661
64662 2007-05-01  Bruno Haible  <bruno@clisp.org>
64663
64664         * modules/signal: New file.
64665         * lib/signal_.h: New file.
64666         * m4/signal_h.m4: New file.
64667
64668 2007-05-01  Bruno Haible  <bruno@clisp.org>
64669
64670         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
64671         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
64672         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
64673         HAVE_WCTYPE_CTMP_BUG into wctype.h.
64674
64675 2007-05-01  Bruno Haible  <bruno@clisp.org>
64676
64677         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
64678         configure time.
64679         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
64680         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
64681         * modules/sys_stat (Makefile.am): Substitute their values into
64682         sys/stat.h.
64683
64684 2007-05-01  Bruno Haible  <bruno@clisp.org>
64685
64686         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
64687         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
64688         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
64689
64690 2007-05-01  Bruno Haible  <bruno@clisp.org>
64691
64692         * doc/header/assert.texi: Undo last change: don't mention the gnulib
64693         'assert' module here.
64694
64695 2007-05-01  Bruno Haible  <bruno@clisp.org>
64696
64697         * doc/functions/*.texi: New files.
64698         * doc/functions/google-ranking.txt: New file.
64699         * doc/gnulib.texi (Function Substitutes): New chapter.
64700         (ctime, inet_ntoa): Remove sections.
64701         * doc/ctime.texi: Remove file.
64702         * doc/inet_ntoa.texi: Remove file.
64703         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
64704         dependencies.
64705         (%.info): New rule, specifying a --reference-limit.
64706
64707 2007-05-01  Bruno Haible  <bruno@clisp.org>
64708
64709         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
64710
64711 2007-05-01  Bruno Haible  <bruno@clisp.org>
64712
64713         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
64714         the portability of 'mkdir' to mingw systems.
64715
64716 2007-05-01  Bruno Haible  <bruno@clisp.org>
64717
64718         * doc/headers/google-ranking.txt: New file.
64719
64720 2007-04-30  Eric Blake  <ebb9@byu.net>
64721
64722         Prefer fseeko to fseek.
64723         * modules/getpass (Depends-on): Add fseeko.
64724         * lib/getpass.c (getpass): Use fseeko, not fseek.
64725
64726 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
64727
64728         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
64729         assumes the sorting is stable, while most qsort implementations
64730         are not.  Use argument addresses to ensure they never compare as
64731         equal.
64732
64733         * tests/test-argp-2.sh (usage-indent test): Fix output
64734         (func_compare): Restore diff options
64735         * tests/test-argp.c: Restore #include "progname.h"
64736
64737 2007-04-29  Bruno Haible  <bruno@clisp.org>
64738
64739         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
64740         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64741         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
64742         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64743         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
64744         (configure.ac): Define CHECK_SNPRINTF_POSIX.
64745         (TESTS, check_PROGRAMS): Add test-snprintf.
64746         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
64747         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
64748         (TESTS, check_PROGRAMS): Add test-vsnprintf.
64749         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
64750         assertions that fail on HP-UX, OSF/1, or IRIX.
64751         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
64752
64753 2007-04-29  Bruno Haible  <bruno@clisp.org>
64754
64755         * MODULES.html.sh (posix_functions): Remove 'contents'.
64756
64757 2007-04-29  Karl Berry  <karl@gnu.org>
64758
64759         * config/srclist.txt (gendocs_template_min): new entry.
64760
64761 2007-04-29  Bruno Haible  <bruno@clisp.org>
64762
64763         Work around fpurge bug on BSD systems.
64764         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
64765         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
64766         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
64767         fpurge to rpl_fpurge if the system already has this function.
64768         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
64769         the case where the system already has this function. Correct invariants
64770         on BSD systems.
64771         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
64772         BSD systems.
64773
64774 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
64775
64776         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
64777         proposed by Sven Verdoolaege.
64778
64779         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
64780         options.
64781         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
64782         (usage and help tests): Update
64783
64784 2007-04-29  Bruno Haible  <bruno@clisp.org>
64785
64786         * tests/test-fflush.c (main): Use a file of size 17, not 10.
64787         Print more information in case of failure. Disable a test on BeOS.
64788
64789 2007-04-29  Bruno Haible  <bruno@clisp.org>
64790
64791         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
64792         This helps debugging on systems on which no gdb is available.
64793
64794 2007-04-29  Bruno Haible  <bruno@clisp.org>
64795
64796         * lib/freading.h: Improve comments.
64797         * lib/fwriting.h: Likewise.
64798         * tests/test-freading.c (main): Don't check freading immediately after
64799         repositioning. Needed for glibc.
64800
64801 2007-04-29  Bruno Haible  <bruno@clisp.org>
64802
64803         * lib/freading.c (freading): Trivial simplification.
64804
64805 2007-04-28  Bruno Haible  <bruno@clisp.org>
64806
64807         * tests/test-fwriting.c (main): Also test the interaction between
64808         fflush and fwriting.
64809         * modules/fwriting-tests (Depends-on): Add fflush.
64810
64811         * tests/test-freading.c (main): Also test the interaction between
64812         fflush and freading.
64813         * modules/freading-tests (Depends-on): Add fflush.
64814
64815 2007-04-28  Bruno Haible  <bruno@clisp.org>
64816
64817         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
64818         fseeko and ftello.
64819         Suggested by Eric Blake.
64820
64821 2007-04-28  Jim Meyering  <jim@meyering.net>
64822
64823         Avoid false-negative in gl_STDINT_H's C99 conformance test.
64824         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
64825         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
64826
64827 2007-04-27  Eric Blake  <ebb9@byu.net>
64828
64829         * doc/headers/assert.texi (assert.h): Document assert module use.
64830
64831 2007-04-27  Bruno Haible  <bruno@clisp.org>
64832
64833         * doc/headers/*.texi: New files.
64834         * doc/gnulib.texi (Header File Substitutes): New chapter.
64835         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
64836         dependencies.
64837         (standards.info ,standards.html, standards.dvi): Update dependencies.
64838         (mostlyclean, clean): New targets.
64839
64840 2007-04-27  Bruno Haible  <bruno@clisp.org>
64841
64842         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
64843         * modules/sysexits (Files, Makefile.am): Update.
64844
64845         * lib/sys_socket_.h: Renamed from lib/socket_.h.
64846         * modules/sys_socket (Files, Makefile.am): Update.
64847
64848         * lib/sys_stat_.h: Renamed from lib/stat_.h.
64849         * modules/sys_stat (Files, Makefile.am): Update.
64850
64851 2007-04-27  Eric Blake  <ebb9@byu.net>
64852
64853         * lib/freading.h: Improve comments.
64854         * lib/fwriting.h: Likewise.
64855         * lib/fflush.c: Likewise.
64856
64857         Fix closein for mingw.
64858         * modules/closein-tests: Add tests for closein.
64859         * tests/test-closein.c: New file.
64860         * tests/test-closein.sh: Likewise.
64861         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
64862         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
64863
64864 2007-04-27  Bruno Haible  <bruno@clisp.org>
64865
64866         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
64867         version is < 6.
64868         * lib/math_.h [__DECC]: Likewise.
64869         * lib/stdio_.h [__DECC]: Likewise.
64870         * lib/stdlib_.h [__DECC]: Likewise.
64871         * lib/string_.h [__DECC]: Likewise.
64872         * lib/time_.h [__DECC]: Likewise.
64873         * lib/wchar_.h [__DECC]: Likewise.
64874         * lib/wctype_.h [__DECC]: Likewise.
64875
64876 2007-04-27  Bruno Haible  <bruno@clisp.org>
64877
64878         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
64879
64880 2007-04-27  Bruno Haible  <bruno@clisp.org>
64881
64882         * lib/fflush.c: Add comments.
64883         * modules/fpurge-tests (Depends-on): Add fflush.
64884         * modules/freadable-tests (Depends-on): Likewise.
64885         * modules/fwritable-tests (Depends-on): Likewise.
64886
64887 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
64888
64889         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
64890         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
64891         Report by Bruno Haible <bruno@clisp.org>.
64892
64893 2007-04-26  Eric Blake  <ebb9@byu.net>
64894
64895         Fix fflush on mingw.
64896         * modules/fflush (Depends-on): Add freading.
64897         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
64898         but unread data.
64899
64900 2007-04-26  Eric Blake  <ebb9@byu.net>
64901         and Bruno Haible  <bruno@clisp.org>
64902
64903         Implement freading and fwriting.
64904         * lib/freading.c: New file.
64905         * lib/freading.h: Likewise.
64906         * m4/freading.m4: Likewise.
64907         * modules/freading: Likewise.
64908         * modules/freading-tests: Likewise.
64909         * tests/test-freading.c: Likewise.
64910         * lib/fwriting.c: New file.
64911         * lib/fwriting.h: Likewise.
64912         * m4/fwriting.m4: Likewise.
64913         * modules/fwriting: Likewise.
64914         * modules/fwriting-tests: Likewise.
64915         * tests/test-fwriting.c: Likewise.
64916         * MODULES.html.sh (File stream based Input/Output): Mention them.
64917
64918 2007-04-26  Bruno Haible  <bruno@clisp.org>
64919
64920         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
64921         'long' when we assume it.
64922         Suggested by Eric Blake.
64923
64924 2007-04-26  Bruno Haible  <bruno@clisp.org>
64925
64926         Ensure fseeko, ftello are declared on glibc systems.
64927         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
64928         * modules/fseeko (configure.ac-early): Likewise.
64929         * modules/ftello (configure.ac-early): Likewise.
64930         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
64931         AC_FUNC_FSEEKO for this.
64932         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
64933         (gl_CHECK_FSEEKO): Remove macro.
64934
64935 2007-04-26  Bruno Haible  <bruno@clisp.org>
64936
64937         * tests/test-fflush.c (main): Also check the ftell result after
64938         fflush and fseek/fseeko.
64939         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
64940         file descriptor position cache in the stream.
64941         * lib/fseeko.c (rpl_fseeko): Likewise.
64942
64943 2007-04-26  Bruno Haible  <bruno@clisp.org>
64944
64945         * modules/fflush-tests (Depends-on): Add fseeko.
64946
64947 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
64948             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64949
64950         * lib/argz_.h: ensure error_t definition is obtained in same
64951         mechanism system argz.h would have.
64952         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
64953         argz facilities are known bad.  Err on the side of caution if
64954         cross-compiling.
64955
64956 2007-04-25  Eric Blake  <ebb9@byu.net>
64957
64958         * lib/fpurge.c (includes): Use stdlib.h for free.
64959         * tests/test-fflush.c (main): Also test fflush-fseeko.
64960
64961 2007-04-25  Bruno Haible  <bruno@clisp.org>
64962
64963         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
64964         * lib/fseeko.c: New file.
64965         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
64966         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
64967         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
64968         gl_FUNC_FSEEKO.
64969         (gl_FUNC_FSEEKO): Invoke it.
64970         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
64971         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
64972         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
64973
64974 2007-04-25  Bruno Haible  <bruno@clisp.org>
64975
64976         * modules/fflush (Depends-on): Add ftello.
64977
64978 2007-04-25  Bruno Haible  <bruno@clisp.org>
64979
64980         * modules/ftello-tests: New file.
64981         * tests/test-ftello.c: New file.
64982
64983         * modules/ftello: New file.
64984         * m4/ftello.m4: New file.
64985         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
64986         HAVE_FTELLO.
64987         * lib/stdio_.h (ftello): New declaration.
64988         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
64989         HAVE_FTELLO.
64990
64991 2007-04-25  Bruno Haible  <bruno@clisp.org>
64992
64993         * modules/fseeko-tests: New file.
64994         * tests/test-fseeko.c: New file.
64995
64996         * modules/fseeko: New file.
64997         * m4/fseeko.m4: New file.
64998         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
64999         HAVE_FSEEKO.
65000         * lib/stdio_.h (fseeko): New declaration.
65001         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
65002         HAVE_FSEEKO.
65003
65004 2007-04-25  Bruno Haible  <bruno@clisp.org>
65005
65006         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
65007
65008 2007-04-25  Bruno Haible  <bruno@clisp.org>
65009
65010         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
65011         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
65012         * tests/test-unistd.c: Likewise.
65013         * tests/test-fcntl.c: Likewise.
65014
65015 2007-04-23  Eric Blake  <ebb9@byu.net>
65016
65017         * lib/fflush.c: Fix missing include.
65018         Reported by Bruno Haible.
65019
65020 2007-04-23  Bruno Haible  <bruno@clisp.org>
65021
65022         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
65023         Reported by Eric Blake.
65024
65025 2007-04-23  Bruno Haible  <bruno@clisp.org>
65026
65027         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
65028
65029 2007-04-23  Bruno Haible  <bruno@clisp.org>
65030
65031         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
65032
65033 2007-04-23  Bruno Haible  <bruno@clisp.org>
65034
65035         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
65036         Needed on HP-UX 11.
65037
65038 2007-04-16  Eric Blake  <ebb9@byu.net>
65039
65040         Make fflush rely on fpurge.
65041         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
65042         open coding all variants.
65043         * modules/fflush (Depends-on): Add fpurge and unistd.
65044         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
65045         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
65046
65047         Fix --with-tests compilation on cygwin.
65048         * modules/argmatch-tests (Makefile.am): List gnulib library first
65049         in LDADD.
65050         * modules/argp-tests (Makefile.am): Likewise.
65051         * modules/array-list-tests (Makefile.am): Likewise.
65052         * modules/array-oset-tests (Makefile.am): Likewise.
65053         * modules/avltree-list-tests (Makefile.am): Likewise.
65054         * modules/avltree-oset-tests (Makefile.am): Likewise.
65055         * modules/avltreehash-list-tests (Makefile.am): Likewise.
65056         * modules/carray-list-tests (Makefile.am): Likewise.
65057         * modules/dirname-tests (Makefile.am): Likewise.
65058         * modules/frexp-tests (Makefile.am): Likewise.
65059         * modules/isnanl-tests (Makefile.am): Likewise.
65060         * modules/linked-list-tests (Makefile.am): Likewise.
65061         * modules/linkedhash-list-tests (Makefile.am): Likewise.
65062         * modules/lock-tests (Makefile.am): Likewise.
65063         * modules/rbtree-list-tests (Makefile.am): Likewise.
65064         * modules/rbtree-oset-tests (Makefile.am): Likewise.
65065         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
65066         * modules/tls-tests (Makefile.am): Likewise.
65067         * modules/tsearch-tests (Makefile.am): Likewise.
65068         * modules/xvasprintf-tests (Makefile.am): Likewise.
65069
65070         Fix fpurge for cygwin.
65071         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
65072         value.
65073         * modules/fpurge-tests (Depends-on): Clean up trash.
65074
65075 2007-04-16  Simon Josefsson  <simon@josefsson.org>
65076
65077         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
65078
65079         * m4/autobuild.m4: Re-indent.
65080
65081 2007-04-13  Bruno Haible  <bruno@clisp.org>
65082
65083         * modules/fpurge-tests: New file.
65084         * tests/test-fpurge.c: New file.
65085
65086         * modules/fpurge: New file.
65087         * lib/fpurge.h: New file.
65088         * lib/fpurge.c: New file.
65089         * m4/fpurge.m4: New file.
65090
65091 2007-04-13  Bruno Haible  <bruno@clisp.org>
65092
65093         * modules/fbufmode-tests: New file.
65094         * tests/test-fbufmode.c: New file.
65095
65096         * modules/fbufmode: New file.
65097         * lib/fbufmode.h: New file.
65098         * lib/fbufmode.c: New file.
65099         * m4/fbufmode.m4: New file.
65100
65101 2007-04-13  Bruno Haible  <bruno@clisp.org>
65102
65103         * modules/fwritable-tests: New file.
65104         * tests/test-fwritable.c: New file.
65105
65106         * modules/fwritable: New file.
65107         * lib/fwritable.h: New file.
65108         * lib/fwritable.c: New file.
65109         * m4/fwritable.m4: New file.
65110
65111 2007-04-13  Bruno Haible  <bruno@clisp.org>
65112
65113         * modules/freadable-tests: New file.
65114         * tests/test-freadable.c: New file.
65115
65116         * modules/freadable: New file.
65117         * lib/freadable.h: New file.
65118         * lib/freadable.c: New file.
65119         * m4/freadable.m4: New file.
65120
65121 2007-04-13  Bruno Haible  <bruno@clisp.org>
65122
65123         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
65124         MOSTLYCLEANFILES.
65125
65126 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65127
65128         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
65129         gzip bootstrap.conf to avoid dragging in i18n machinery.
65130         (gnulib_tool_option): Use it.
65131
65132 2007-04-13  Bruno Haible  <bruno@clisp.org>
65133
65134         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
65135         %F directives.
65136         * tests/test-vasprintf-posix.c (test_function): Likewise.
65137         * tests/test-snprintf-posix.h (test_function): Likewise.
65138         * tests/test-sprintf-posix.h (test_function): Likewise.
65139         * tests/test-fprintf-posix.h (test_function): Likewise.
65140         * tests/test-printf-posix.h (test_function): Likewise.
65141         * tests/test-fprintf-posix.out: Likewise.
65142
65143 2007-04-13  Bruno Haible  <bruno@clisp.org>
65144
65145         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
65146         * modules/tls-tests (configure.ac): Likewise.
65147         Reported by Arto C. Nirkko <anirkko@insel.ch>.
65148
65149 2007-04-13  Bruno Haible  <bruno@clisp.org>
65150
65151         * lib/tls.c (glthread_tls_get): Fix return type.
65152         Patch by Arto C. Nirkko <anirkko@insel.ch>.
65153
65154 2007-04-12  Eric Blake  <ebb9@byu.net>
65155
65156         * modules/gettime (Depends-on): Remove gettime.
65157         Reported by Dmitry V. Levin.
65158
65159 2007-04-12  Bruno Haible  <bruno@clisp.org>
65160
65161         * modules/fflush (Include): Mention <stdio.h>.
65162         * modules/strtoimax (Include): Mention <inttypes.h>.
65163         * modules/strtoumax (Include): Likewise.
65164
65165 2007-04-12  Eric Blake  <ebb9@byu.net>
65166
65167         * .cvsignore: New file.
65168         * .gitignore: Likewise.
65169
65170 2007-04-12  Bruno Haible  <bruno@clisp.org>
65171
65172         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
65173         not before, since $(LDADD) often contains libgnu.a.
65174         * modules/striconv-tests (test_striconv_LDADD): Likewise.
65175         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
65176         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
65177         Needed on Cygwin.
65178
65179 2007-04-12  Eric Blake  <ebb9@byu.net>
65180
65181         Work around glibc's failure to flush stdin on fclose.
65182         * lib/closein.c (close_stdin): Flush stdin before closing.
65183
65184         Work around glibc's failure to reset seekable stdin on exit.
65185         * modules/closein: New module.
65186         * lib/closein.c: New file.
65187         * lib/closein.h: Likewise.
65188         * m4/closein.m4: Likewise.
65189         * MODULES.html.sh (File stream based Input/Output): Document it.
65190
65191 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65192
65193         * gnulib-tool: Rename generated 'autobuild' script to
65194         'do-autobuild' in --create-megatestdir output.
65195
65196         * doc/gnulib.texi (Build robot for gnulib): Fix.
65197
65198 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65199
65200         * modules/sysexits (Depends-on): Add absolute-header.
65201
65202 2007-04-12  Eric Blake  <ebb9@byu.net>
65203
65204         No need to preserve errno on success.
65205         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
65206         Reported by Bruno Haible.
65207
65208 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65209
65210         * MODULES.html.sh (Support for maintaining and releasing
65211         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
65212
65213 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65214
65215         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
65216
65217 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65218
65219         * modules/autobuild: New module.
65220
65221         * m4/autobuild.m4: New file.
65222
65223 2007-04-11  Bruno Haible  <bruno@clisp.org>
65224
65225         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
65226         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
65227         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
65228         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
65229         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65230         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65231         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65232         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65233         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65234         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65235         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
65236         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65237         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65238         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
65239         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65240         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65241         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
65242         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65243         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65244         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
65245         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65246         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65247         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
65248         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65249         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65250         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
65251         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65252         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65253         Reported by Eric Blake.
65254
65255 2007-04-11  Bruno Haible  <bruno@clisp.org>
65256
65257         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
65258
65259 2007-04-10  Bruno Haible  <bruno@clisp.org>
65260
65261         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
65262         for NaN and Infinity. Needed on FreeBSD 6.1.
65263         * tests/test-vasnprintf-posix.c (test_function): Undo last change
65264         regarding results for "%010a" of Infinity and NaN.
65265         * tests/test-vasprintf-posix.c (test_function): Likewise.
65266         * tests/test-snprintf-posix.h (test_function): Likewise.
65267         * tests/test-sprintf-posix.h (test_function): Likewise.
65268         * tests/test-fprintf-posix.h (test_function): Likewise.
65269         * tests/test-printf-posix.h (test_function): Likewise.
65270         * tests/test-fprintf-posix.out: Likewise.
65271
65272 2007-04-10  Bruno Haible  <bruno@clisp.org>
65273
65274         * modules/locale-tests: New file.
65275         * tests/test-locale.c: New file.
65276
65277         * modules/locale: New file.
65278         * lib/locale_.h: New file.
65279         * m4/locale_h.m4: New file.
65280
65281 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
65282             Bruno Haible  <bruno@clisp.org>
65283
65284         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
65285         be determined, test for availability of the copysignf, copysign,
65286         copysignl functions.
65287         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
65288         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
65289         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
65290
65291 2007-04-09  Eric Blake  <ebb9@byu.net>
65292
65293         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
65294         * modules/stdio (Makefile.am): Support fflush.
65295         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
65296         * modules/fflush: New file.
65297         * lib/fflush.c: Likewise.
65298         * m4/fflush.m4: Likewise.
65299         * modules/fflush-tests: New test.
65300         * tests/test-fflush.c: Likewise.
65301         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
65302
65303 2007-04-06  Bruno Haible  <bruno@clisp.org>
65304
65305         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
65306         (VASNPRINTF): Use signbit for faster determination whether to print a
65307         minus sign.
65308         * modules/vasnprintf (Files): Remove lib/float+.h.
65309         * modules/fprintf-posix (Depends-on): Add signbit.
65310         * modules/snprintf-posix (Depends-on): Likewise.
65311         * modules/sprintf-posix (Depends-on): Likewise.
65312         * modules/vasnprintf-posix (Depends-on): Likewise.
65313         * modules/vasprintf-posix (Depends-on): Likewise.
65314         * modules/vfprintf-posix (Depends-on): Likewise.
65315         * modules/vsnprintf-posix (Depends-on): Likewise.
65316         * modules/vsprintf-posix (Depends-on): Likewise.
65317
65318 2007-04-06  Bruno Haible  <bruno@clisp.org>
65319
65320         * tests/test-frexp.c (main): Test also the sign bit of zero results.
65321         * tests/test-frexpl.c (main): Likewise.
65322         * tests/test-ldexpl.c (main): Likewise.
65323         * modules/frexp-tests (Depends-on): Add signbit.
65324         * modules/frexpl-tests (Depdends-on): Likewise.
65325         * modules/ldexpl-tests (Depdends-on): Likewise.
65326
65327 2007-04-06  Bruno Haible  <bruno@clisp.org>
65328
65329         * modules/signbit-tests: New file.
65330         * tests/test-signbit.c: New file.
65331
65332         * modules/signbit: New file.
65333         * lib/signbitf.c: New file.
65334         * lib/signbitd.c: New file.
65335         * lib/signbitl.c: New file.
65336         * m4/signbit.m4: New file.
65337         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
65338         (signbit): New macro.
65339         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
65340         REPLACE_SIGNBIT.
65341         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
65342         REPLACE_FREXPL into math.h.
65343
65344 2007-04-06  Bruno Haible  <bruno@clisp.org>
65345
65346         * modules/isnanf-nolibm-tests: New file.
65347         * tests/test-isnanf.c: New file.
65348
65349         * modules/isnanf-nolibm: New file.
65350         * lib/isnanf.h: New file.
65351         * lib/isnanf.c: New file.
65352         * lib/isnan.c: Consider the USE_FLOAT macro.
65353         * m4/isnanf.m4: New file.
65354
65355 2007-04-06  Bruno Haible  <bruno@clisp.org>
65356
65357         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
65358         (Link): New section.
65359
65360         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
65361
65362 2007-04-06  Bruno Haible  <bruno@clisp.org>
65363
65364         Assume the 'long double' type.
65365         * m4/longdouble.m4: Remove file.
65366         * config/srclist.txt: Don't mention longdouble.m4.
65367         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
65368         * lib/float+.h: Likewise.
65369         * lib/frexp.c: Likewise.
65370         * lib/printf-args.h: Likewise.
65371         * lib/printf-args.c: Likewise.
65372         * lib/printf-frexp.c: Likewise.
65373         * lib/printf-parse.c: Likewise.
65374         * lib/vasnprintf.c: Likewise.
65375         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
65376         * m4/intl.m4: Likewise.
65377         * m4/isnanl.m4: Likewise.
65378         * m4/printf.m4: Likewise.
65379         * m4/printf-frexpl.m4: Likewise.
65380         * m4/vasnprintf.m4: Likewise.
65381         * modules/allocsa (Files): Remove m4/longdouble.m4.
65382         * modules/gettext (Files): Likewise.
65383         * modules/relocatable-prog-wrapper (Files): Likewise.
65384         * modules/vasnprintf (Files): Likewise.
65385         * modules/isnanl (Files): Likewise.
65386         (Include): Simplify.
65387         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
65388         (Include): Simplify.
65389         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
65390         (Include): Simplify.
65391         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
65392         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65393         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
65394         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65395         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65396         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65397         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
65398         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65399         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65400         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65401         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
65402         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65403         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
65404         * tests/test-isnanl.c: Likewise.
65405         * tests/test-snprintf-posix.h: Likewise.
65406         * tests/test-sprintf-posix.h: Likewise.
65407         * tests/test-vasnprintf-posix.c: Likewise.
65408         * tests/test-vasnprintf-posix2.c: Likewise.
65409         * tests/test-vasprintf-posix.c: Likewise.
65410
65411 2007-04-06  Bruno Haible  <bruno@clisp.org>
65412
65413         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
65414         * lib/math_.h [__DECC]: Include the overridden include file through
65415         #include_next, outside the double-inclusion guard.
65416         * lib/stdio_.h [__DECC]: Likewise.
65417         * lib/stdlib_.h [__DECC]: Likewise.
65418         * lib/string_.h [__DECC]: Likewise.
65419         * lib/time_.h [__DECC]: Likewise.
65420         * lib/wchar_.h [__DECC]: Likewise.
65421         * lib/wctype_.h [__DECC]: Likewise.
65422         * lib/inttypes_.h [__DECC]: Likewise.
65423         Reported by Albert Chin <china@thewrittenword.com> in
65424         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
65425
65426 2007-04-04  Eric Blake  <ebb9@byu.net>
65427
65428         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
65429         1.5.x.
65430
65431 2007-04-04  Bruno Haible  <bruno@clisp.org>
65432
65433         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
65434         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
65435
65436 2007-04-04  Bruno Haible  <bruno@clisp.org>
65437
65438         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
65439         results for "%010a" of Infinity and NaN.
65440         * tests/test-vasprintf-posix.c (test_function): Likewise.
65441         * tests/test-snprintf-posix.h (test_function): Likewise.
65442         * tests/test-sprintf-posix.h (test_function): Likewise.
65443         * tests/test-fprintf-posix.h (test_function): Remove these tests.
65444         * tests/test-printf-posix.h (test_function): Likewise.
65445         * tests/test-fprintf-posix.out: Update.
65446         Needed for FreeBSD 6.1.
65447
65448 2007-04-04  Bruno Haible  <bruno@clisp.org>
65449
65450         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
65451         directly used by the gnulib modules nor by gnulib-tool.
65452
65453 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
65454
65455         * DEPENDENCIES: Give overall description of version dependency
65456         desirability.  Use more-typical names for apps.
65457         Add shell, coreutils, diffutils, grep, tar, gzip.
65458
65459 2007-04-04  Simon Josefsson  <simon@josefsson.org>
65460
65461         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
65462
65463 2007-04-04  Karl Berry  <karl@gnu.org>
65464
65465         * MODULES.html.sh (func_module): missing '.
65466
65467 2007-04-03  Bruno Haible  <bruno@clisp.org>
65468
65469         * modules/argmatch-tests (Makefile.am): New variable
65470         test_argmatch_LDADD.
65471         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
65472         * modules/array-list-tests (Makefile.am): New variable
65473         test_array_list_LDADD.
65474         * modules/array-oset-tests (Makefile.am): New variable
65475         test_array_oset_LDADD.
65476         * modules/avltree-list-tests (Makefile.am): New variable
65477         test_avltree_list_LDADD.
65478         * modules/avltree-oset-tests (Makefile.am): New variable
65479         test_avltree_oset_LDADD.
65480         * modules/avltreehash-list-tests (Makefile.am): New variable
65481         test_avltreehash_list_LDADD.
65482         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
65483         test_canonicalize_lgpl_LDADD.
65484         * modules/carray-list-tests (Makefile.am): New variable
65485         test_carray_list_LDADD.
65486         * modules/dirname-tests (Makefile.am): New variable
65487         test_dirname_LDADD.
65488         * modules/linked-list-tests (Makefile.am): New variable
65489         test_linked_list_LDADD.
65490         * modules/linkedhash-list-tests (Makefile.am): New variable
65491         test_linkedhash_list_LDADD.
65492         * modules/rbtree-list-tests (Makefile.am): New variable
65493         test_rbtree_list_LDADD.
65494         * modules/rbtree-oset-tests (Makefile.am): New variable
65495         test_rbtree_oset_LDADD.
65496         * modules/rbtreehash-list-tests (Makefile.am): New variable
65497         test_rbtreehash_list_LDADD.
65498         * modules/xvasprintf-tests (Makefile.am): New variable
65499         test_xvasprintf_LDADD.
65500         Reported by Eric Blake.
65501
65502 2007-04-03  Eric Blake  <ebb9@byu.net>
65503
65504         * DEPENDENCIES: Weaken m4 requirements.
65505
65506 2007-04-03  Bruno Haible  <bruno@clisp.org>
65507
65508         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
65509         * modules/isnanl-tests (configure.ac): Likewise.
65510
65511 2007-04-03  Ben Pfaff  <blp@gnu.org>
65512
65513         * modules/iconv_open: Add $(srcdir)/ to source directory
65514         references in Makefile fragments that call gperf, to fix VPATH
65515         builds.
65516
65517 2007-04-03  Bruno Haible  <bruno@clisp.org>
65518
65519         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
65520         * lib/ldexpl.c: Undo last change.
65521
65522 2007-04-03  Bruno Haible  <bruno@clisp.org>
65523
65524         * modules/printf-frexpl (Depends-on): Undo last change.
65525         (Files): Add m4/ldexpl.m4.
65526
65527 2007-04-03  Bruno Haible  <bruno@clisp.org>
65528
65529         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
65530         * modules/isnanl (Link): New section.
65531
65532         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
65533         * modules/frexp (Link): New section.
65534
65535         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
65536         * modules/frexpl (Link): New section.
65537
65538         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
65539         * modules/ldexpl (Link): New section.
65540
65541 2007-04-03  Bruno Haible  <bruno@clisp.org>
65542
65543         * modules/TEMPLATE-EXTENDED: New file.
65544         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
65545
65546 2007-04-03  Bruno Haible  <bruno@clisp.org>
65547
65548         * DEPENDENCIES: New file.
65549         Suggested by Simon Josefsson.
65550
65551 2007-04-03  Bruno Haible  <bruno@clisp.org>
65552
65553         * doc/gnulib.texi: Escape @.
65554
65555 2007-04-03  James Youngman  <jay@gnu.org>
65556         and Paul Eggert  <eggert@cs.ucla.edu>
65557
65558         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
65559         birthtime on all systems that have birthtime, not just those which
65560         use st_birthtimensec rather than st_birthtim.  Putting zero in
65561         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
65562         that the birth time is not available for files on an NFS mount.
65563
65564 2007-04-03  Simon Josefsson  <simon@josefsson.org>
65565
65566         * modules/memxor: Move back from crypto/, suggested by Bruno.
65567         * modules/crypto/hmac-sha1: Fix memxor dependency.
65568
65569         * modules/crypto/gc: Moved from ../.
65570
65571 2007-04-02  Eric Blake  <ebb9@byu.net>
65572
65573         * lib/ldexpl.c (includes): Avoid libm.
65574
65575         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
65576
65577 2007-04-02  Bruno Haible  <bruno@clisp.org>
65578
65579         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
65580         on IRIX.
65581
65582 2007-04-02  Bruno Haible  <bruno@clisp.org>
65583
65584         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
65585         x86 or x86_64 platforms running MacOS X.
65586         Reported by Ryan Schmidt <@ryandesign.com>.
65587
65588 2007-04-02  Bruno Haible  <bruno@clisp.org>
65589
65590         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
65591         i386.
65592
65593 2007-04-01  Simon Josefsson  <simon@josefsson.org>
65594
65595         * modules/crypto/arcfour: Moved from ../.
65596         * modules/crypto/arcfour-tests: Moved from ../.
65597         * modules/crypto/arctwo: Moved from ../.
65598         * modules/crypto/arctwo-tests: Moved from ../.
65599         * modules/crypto/des: Moved from ../.
65600         * modules/crypto/des-tests: Moved from ../.
65601         * modules/crypto/gc-arcfour: Moved from ../.
65602         * modules/crypto/gc-arcfour-tests: Moved from ../.
65603         * modules/crypto/gc-arctwo: Moved from ../.
65604         * modules/crypto/gc-arctwo-tests: Moved from ../.
65605         * modules/crypto/gc-des: Moved from ../.
65606         * modules/crypto/gc-des-tests: Moved from ../.
65607         * modules/crypto/gc-hmac-md5: Moved from ../.
65608         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
65609         * modules/crypto/gc-hmac-sha1: Moved from ../.
65610         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
65611         * modules/crypto/gc-md2: Moved from ../.
65612         * modules/crypto/gc-md2-tests: Moved from ../.
65613         * modules/crypto/gc-md4: Moved from ../.
65614         * modules/crypto/gc-md4-tests: Moved from ../.
65615         * modules/crypto/gc-md5: Moved from ../.
65616         * modules/crypto/gc-md5-tests: Moved from ../.
65617         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
65618         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
65619         * modules/crypto/gc-random: Moved from ../.
65620         * modules/crypto/gc-rijndael: Moved from ../.
65621         * modules/crypto/gc-rijndael-tests: Moved from ../.
65622         * modules/crypto/gc-sha1: Moved from ../.
65623         * modules/crypto/gc-sha1-tests: Moved from ../.
65624         * modules/crypto/gc-tests: Moved from ../.
65625         * modules/crypto/hmac-md5: Moved from ../.
65626         * modules/crypto/hmac-md5-tests: Moved from ../.
65627         * modules/crypto/hmac-sha1: Moved from ../.
65628         * modules/crypto/hmac-sha1-tests: Moved from ../.
65629         * modules/crypto/md2: Moved from ../.
65630         * modules/crypto/md2-tests: Moved from ../.
65631         * modules/crypto/md4: Moved from ../.
65632         * modules/crypto/md4-tests: Moved from ../.
65633         * modules/crypto/md5: Moved from ../.
65634         * modules/crypto/md5-tests: Moved from ../.
65635         * modules/crypto/memxor: Moved from ../.
65636         * modules/crypto/rijndael: Moved from ../.
65637         * modules/crypto/rijndael-tests: Moved from ../.
65638         * modules/crypto/sha1: Moved from ../.
65639
65640 2007-03-30  James Youngman  <jay@gnu.org>
65641
65642         * tests/test-stat-time.c (prepare_test): use chmod() rather than
65643         rename() to change the ctime of a file (because ctime is unaffected
65644         by rename on jfs2 on AIX 5.1).
65645         (main): Start by doing cleanup, in case a previous run failed leaving
65646         test files behind.
65647
65648 2007-03-31  Bruno Haible  <bruno@clisp.org>
65649
65650         Support old proprietary implementations of iconv.
65651         * modules/iconv_open: New file.
65652         * lib/iconv_.h: New file.
65653         * m4/iconv_h.m4: New file.
65654         * lib/iconv_open.c: New file.
65655         * lib/iconv_open-aix.gperf: New file.
65656         * lib/iconv_open-hpux.gperf: New file.
65657         * lib/iconv_open-irix.gperf: New file.
65658         * lib/iconv_open-osf.gperf: New file.
65659         * m4/iconv_open.m4: New file.
65660         * modules/linebreak (Depends-on): Add iconv_open.
65661         * modules/striconv (Depends-on): Likewise.
65662         * modules/striconveh (Depends-on): Likewise.
65663         * modules/unicodeio (Depends-on): Likewise.
65664         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
65665         (iconv_t)(-1).
65666         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
65667         conversion if cd is (iconv_t)(-1).
65668         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
65669         is not possible.
65670
65671 2007-03-31  Bruno Haible  <bruno@clisp.org>
65672
65673         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
65674         work on Solaris either. Protect also second use of "autodetect_jp".
65675
65676 2007-03-31  Bruno Haible  <bruno@clisp.org>
65677
65678         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
65679         the function is not present.
65680
65681 2007-03-31  Bruno Haible  <bruno@clisp.org>
65682
65683         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
65684         the function is not present.
65685
65686 2007-03-31  Bruno Haible  <bruno@clisp.org>
65687
65688         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
65689         a bug in HP-UX iconv_open().
65690
65691 2007-03-31  Bruno Haible  <bruno@clisp.org>
65692
65693         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
65694         (Mathematics <math.h>): New section, add fpieee.
65695         (Input/output <stdio.h>): Add fseterr.
65696         (Mathematics <math.h>): New section, add printf-frexp.
65697         (Container data structures): Add sublist.
65698         (Core language properties): Add fpucw, inline.
65699         (Functions for greatest-width integer types <inttypes.h>): Add
65700         imaxabs, imaxdiv, inttypes.
65701         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
65702         isnanl-nolibm, ldexp.
65703         (Mathematics <math.h>): New section, add printf-frexpl.
65704         (Support for systems lacking POSIX:2001): Add fprintf-posix,
65705         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
65706         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
65707         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
65708         (Unicode string functions): Add unistr/u*-mbtoucr.
65709         (Java): Add javacomp-script, javaexec-script.
65710         (C#): Add csharpcomp-script, csharpexec-script.
65711         (Support for building libraries and executables): Add havelib,
65712         relocatable-*.
65713         (Support for maintaining and releasing projects): Renamed from
65714         'Support for maintaining and release projects'. Add announce-gen.
65715
65716 2007-03-31  Bruno Haible  <bruno@clisp.org>
65717
65718         * README: Talk primarily about git.
65719         (git and CVS): Renamed from CVS.
65720         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
65721         gnulib is available through git.
65722         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
65723
65724 2007-03-30  Bruno Haible  <bruno@clisp.org>
65725
65726         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
65727         * lib/poll_.h: Likewise.
65728         * lib/stat_.h: Likewise.
65729         * lib/sys_time_.h: Likewise.
65730         * lib/sysexit_.h: Likewise.
65731         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
65732         * lib/stdbool_.h: Likewise.
65733         * lib/byteswap_.h: Add double-inclusion guard.
65734
65735 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
65736
65737         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
65738
65739 2007-03-30  Karl Berry  <karl@gnu.org>
65740
65741         * config/srclist-update: double space after USA in the license
65742         substitution, since that's how it's usually (?) written.
65743
65744 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
65745
65746         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
65747         reported by Bruno Haible.
65748
65749 2007-03-29  Bruno Haible  <bruno@clisp.org>
65750
65751         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
65752         a bug in AIX iconv().
65753
65754 2007-03-29  Bruno Haible  <bruno@clisp.org>
65755
65756         * modules/ldexpl-tests: New file.
65757         * tests/test-ldexpl.c: New file.
65758
65759 2007-03-29  Bruno Haible  <bruno@clisp.org>
65760
65761         * lib/ldexpl.c: Include fpucw.h.
65762         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
65763         multiplication.
65764         * modules/ldexpl (Depends-on): Add fpucw.
65765
65766 2007-03-29  Bruno Haible  <bruno@clisp.org>
65767
65768         * modules/ldexpl: New file.
65769         * m4/ldexpl.m4: New file.
65770         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
65771         set.
65772         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
65773         REPLACE_LDEXPL.
65774         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
65775         REPLACE_LDEXPL.
65776         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65777         gl_FUNC_LDEXPL_WORKS.
65778         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
65779         * modules/mathl (Files): Remove lib/ldexpl.c.
65780         (Depends-on): Add ldexpl.
65781
65782 2007-03-29  Bruno Haible  <bruno@clisp.org>
65783
65784         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
65785
65786 2007-03-29  Bruno Haible  <bruno@clisp.org>
65787
65788         * tests/test-striconveh.c (main): Don't assume that a direct conversion
65789         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
65790         and possibly also HP-UX.
65791         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
65792         work on AIX, IRIX, HP-UX, OSF/1.
65793         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
65794         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
65795         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
65796         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
65797         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
65798         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
65799
65800 2007-03-29  Bruno Haible  <bruno@clisp.org>
65801
65802         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
65803
65804 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
65805
65806         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
65807         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
65808
65809 2007-03-29  Eric Blake  <ebb9@byu.net>
65810
65811         * lib/acl-internal.h: Remove redundant include.
65812         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
65813         Cygwin when a file is locked.
65814
65815 2007-03-29  Bruno Haible  <bruno@clisp.org>
65816
65817         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
65818         file.
65819         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
65820
65821 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
65822
65823         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
65824         try to remove a parent directory if the child couldn't be removed
65825         (except for the first rmdir, which could fail because the child
65826         doesn't exist).  Problem reported by Jeff Blaine in
65827         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
65828
65829 2007-03-28  Bruno Haible  <bruno@clisp.org>
65830
65831         * lib/striconveh.c (utf8conv_carefully): New function.
65832         (mem_cd_iconveh_internal): Invoke it.
65833
65834 2007-03-28  Bruno Haible  <bruno@clisp.org>
65835
65836         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
65837         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
65838         input.
65839         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
65840         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
65841         unistr/u8-uctomb.
65842
65843 2007-03-28  Bruno Haible  <bruno@clisp.org>
65844
65845         * modules/unistr/u8-mbtoucr: New file.
65846         * lib/unistr/u8-mbtoucr.c: New file.
65847         * modules/unistr/u16-mbtoucr: New file.
65848         * lib/unistr/u16-mbtoucr.c: New file.
65849         * modules/unistr/u16-mbtoucr: New file.
65850         * lib/unistr/u16-mbtoucr.c: New file.
65851         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
65852
65853 2007-03-27  Simon Josefsson  <simon@josefsson.org>
65854             Bruno Haible  <bruno@clisp.org>
65855
65856         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
65857         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
65858         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
65859
65860         * m4/stdio_h.m4: Add stubs for vasprintf too.
65861
65862         * modules/stdio: Support vasprintf in sed command.
65863
65864         * modules/vasprintf: Depend on stdio for prototypes.  Remove
65865         vasprintf.h.  Add stdio module indicator.
65866
65867         * lib/stdio_.h: Declare asprintf and vasprintf, based on
65868         vasprintf.h.
65869
65870         * lib/vasprintf.h: File removed.
65871
65872         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
65873         * lib/vasprintf.c: Ditto.
65874         * lib/xvasprintf.c: Ditto.
65875         * tests/test-vasprintf-posix.c: Ditto.
65876         * tests/test-vasprintf.c: Ditto.
65877
65878 2007-03-27  Bruno Haible  <bruno@clisp.org>
65879
65880         Make vasnprintf multithread-safe.
65881         * lib/vasnprintf.c (decimal_point_char): New function.
65882         (VASNPRINTF): Use it.
65883         Suggested by Simon Josefsson.
65884
65885 2007-03-27  Eric Blake  <ebb9@byu.net>
65886
65887         Support sub-second birthtime on cygwin.
65888         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
65889         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
65890         (get_stat_birthtime): Also work with st_birthtim.
65891
65892 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
65893
65894         * lib/stat-time.h (USE_BIRTHTIME): Remove.
65895         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
65896         (get_stat_birthtime_ns): Do not try to use "spare" fields.
65897         (get_stat_birthtime_ns): Simplify compile-time tests.
65898         (get_stat_birthtime): Change the API to look like
65899         get_stat_mtime etc., except return a negative tv_nsec on error.
65900         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
65901         Don't check for "spare" fields.
65902         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
65903         or for struct stat.st_birthtime, as these tests aren't used.
65904         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
65905
65906 2007-03-27  Bruno Haible  <bruno@clisp.org>
65907
65908         * lib/stat-time.h: Include <sys/stat.h>.
65909
65910 2007-03-27  James Youngman  <jay@gnu.org>
65911
65912         * lib/stat-time.h (get_stat_birthtime): New function for
65913           retrieving st_birthtime as provided by UFS2 (hence *BSD).
65914         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
65915           and its variants.
65916         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
65917         * modules/stat-time-test: New file.
65918         * tests/test-stat-time.c: New test, devised by Bruno Haible.
65919
65920 2007-03-26  Bruno Haible  <bruno@clisp.org>
65921
65922         Better support of signalling NaNs.
65923         * lib/atanl.c: Include isnanl.h.
65924         (atanl): Perform test for NaN at the beginning of the function and
65925         through a call to isnanl.
65926         * lib/cosl.c: Include isnanl.h.
65927         (cosl): Perform test for NaN at the beginning of the function and
65928         through a call to isnanl.
65929         * lib/ldexpl.c: Include isnanl.h.
65930         (ldexpl): Perform test for NaN through a call to isnanl.
65931         * lib/logl.c: Include isnanl.h.
65932         (logl): Perform test for NaN at the beginning of the function and
65933         through a call to isnanl.
65934         * lib/sinl.c: Include isnanl.h.
65935         (sinl): Perform test for NaN at the beginning of the function and
65936         through a call to isnanl.
65937         * lib/sqrtl.c: Include isnanl.h.
65938         (sqrtl): Perform test for NaN at the beginning of the function and
65939         through a call to isnanl.
65940         * lib/tanl.c: Include isnanl.h.
65941         (tanl): Perform test for NaN at the beginning of the function and
65942         through a call to isnanl.
65943         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
65944         * modules/mathl (Depends-on): Add isnanl.
65945
65946 2007-03-26  Eric Blake  <ebb9@byu.net>
65947
65948         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
65949         regression in logic sense of previous patch.
65950
65951 2007-03-26  Bruno Haible  <bruno@clisp.org>
65952
65953         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
65954         unportable shell command "if ! ...".
65955         Reported by Ralf Wildenhues.
65956
65957 2007-03-25  Bruno Haible  <bruno@clisp.org>
65958
65959         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
65960         <sysexits.h> file, and only add EX_CONFIG.
65961         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
65962         absolute file name and whether it is sufficient. Substitute also
65963         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
65964         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
65965         ABSOLUTE_SYSEXITS_H into sysexits.h.
65966
65967 2007-03-25  Bruno Haible  <bruno@clisp.org>
65968
65969         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
65970         hints is NULL.
65971
65972 2007-03-25  Bruno Haible  <bruno@clisp.org>
65973
65974         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
65975         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
65976
65977 2007-03-25  Bruno Haible  <bruno@clisp.org>
65978
65979         * lib/vasnprintf.c: Include langinfo.h.
65980         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
65981         multithread-safe.
65982         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
65983         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
65984         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65985         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65986         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65987         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65988         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65989         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
65990         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65991         Reported by Simon Josefsson.
65992
65993 2007-03-25  Bruno Haible  <bruno@clisp.org>
65994
65995         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
65996         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
65997         * modules/vasnprintf (Depends-on): Add stdint.
65998
65999 2007-03-25  Bruno Haible  <bruno@clisp.org>
66000
66001         * modules/fpieee: New file.
66002         * m4/fpieee.m4: New file.
66003         * modules/isnan-nolibm (Depends-on): Add fpieee.
66004         * modules/isnanl-nolibm (Depends-on): Add fpieee.
66005         * modules/isnanl (Depends-on): Add fpieee.
66006
66007 2007-03-25  Bruno Haible  <bruno@clisp.org>
66008
66009         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
66010
66011 2007-03-25  Bruno Haible  <bruno@clisp.org>
66012
66013         Avoid test failures on IRIX 6.5.
66014         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
66015         (main): Use it.
66016         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
66017         macros.
66018         (main): Use them.
66019
66020 2007-03-25  Bruno Haible  <bruno@clisp.org>
66021
66022         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
66023         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
66024         exists but doesn't work.
66025         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
66026         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
66027         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
66028         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
66029         math.h.
66030
66031 2007-03-25  Bruno Haible  <bruno@clisp.org>
66032
66033         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
66034         returns inf. Needed on IRIX 6.5.
66035
66036 2007-03-25  Bruno Haible  <bruno@clisp.org>
66037
66038         * tests/test-frexpl.c: Include isnanl-nolibm.h.
66039         (main): Use isnanl instead of x != x idiom.
66040         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
66041
66042         * tests/test-frexp.c: Include isnan.h.
66043         (main): Use isnan instead of x != x idiom.
66044         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
66045
66046 2007-03-25  Bruno Haible  <bruno@clisp.org>
66047
66048         * tests/test-frexp.c (NaN): New function/macro.
66049         (main): Use it instead of 0.0 / 0.0.
66050         * tests/test-isnan.c (NaN): New function/macro.
66051         (main): Use it instead of 0.0 / 0.0.
66052         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
66053         (test_function): Use it instead of 0.0 / 0.0.
66054         * tests/test-vasprintf-posix.c (NaN): New function/macro.
66055         (test_function): Use it instead of 0.0 / 0.0.
66056         * tests/test-snprintf-posix.h (NaN): New function/macro.
66057         (test_function): Use it instead of 0.0 / 0.0.
66058         * tests/test-sprintf-posix.h (NaN): New function/macro.
66059         (test_function): Use it instead of 0.0 / 0.0.
66060         * tests/test-fprintf-posix.h (NaN): New function/macro.
66061         (test_function): Use it instead of 0.0 / 0.0.
66062         * tests/test-printf-posix.h (NaN): New function/macro.
66063         (test_function): Use it instead of 0.0 / 0.0.
66064
66065         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
66066
66067 2007-03-25  Bruno Haible  <bruno@clisp.org>
66068
66069         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
66070
66071 2007-03-25  Bruno Haible  <bruno@clisp.org>
66072
66073         * lib/regexec.c (merge_state_with_log): Make static.
66074
66075 2007-03-25  Bruno Haible  <bruno@clisp.org>
66076
66077         * lib/trigl.c (kernel_rem_pio2): Make static.
66078
66079 2007-03-25  Bruno Haible  <bruno@clisp.org>
66080
66081         * lib/sincosl.c (sincosl_table): Make static.
66082
66083 2007-03-25  Bruno Haible  <bruno@clisp.org>
66084
66085         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
66086         if the compiler does not support C99.
66087
66088 2007-03-25  Bruno Haible  <bruno@clisp.org>
66089
66090         * modules/time (Makefile.am): Ensure all rule action lines start with a
66091         tab.
66092
66093 2007-03-24  Bruno Haible  <bruno@clisp.org>
66094
66095         * modules/tsearch-tests: New file.
66096         * tests/test-tsearch.sh: New file.
66097         * tests/test-tsearch.c: New file, mostly copied from glibc.
66098
66099         * modules/search-tests: New file.
66100         * tests/test-search.c: New file.
66101
66102         * modules/search: New file.
66103         * lib/search_.h: New file, incorporating lib/tsearch.h.
66104         * m4/search_h.m4: New file.
66105         * lib/tsearch.h: Remove file.
66106         * lib/tsearch.c: Include search.h instead of tsearch.h.
66107         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
66108         HAVE_TSEARCH.
66109         * modules/tsearch (Files): Remove lib/tsearch.h.
66110         (Depends-on): Add search.
66111         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
66112         (Include): Change tsearch.h into search.h.
66113
66114 2007-03-24  Bruno Haible  <bruno@clisp.org>
66115
66116         * modules/fpucw: New file.
66117         * lib/fpucw.h: New file.
66118         * lib/frexp.c: Include fpucw.h.
66119         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66120         (FUNC): Use them.
66121         * lib/printf-frexp.c: Include fpucw.h.
66122         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66123         (FUNC): Use them.
66124         * lib/vasnprintf.c: Include fpucw.h.
66125         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
66126         'long double' calculations.
66127         * tests/test-frexpl.c: Include fpucw.h.
66128         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66129         * tests/test-printf-frexpl.c: Include fpucw.h.
66130         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66131         * modules/frexpl (Depends-on): Add fpucw.
66132         * modules/printf-frexpl (Depends-on): Likewise.
66133         * modules/fprintf-posix (Depends-on): Likewise.
66134         * modules/snprintf-posix (Depends-on): Likewise.
66135         * modules/sprintf-posix (Depends-on): Likewise.
66136         * modules/vasnprintf-posix (Depends-on): Likewise.
66137         * modules/vasprintf-posix (Depends-on): Likewise.
66138         * modules/vfprintf-posix (Depends-on): Likewise.
66139         * modules/vsnprintf-posix (Depends-on): Likewise.
66140         * modules/vsprintf-posix (Depends-on): Likewise.
66141         * modules/frexpl-tests (Depends-on): Likewise.
66142         * modules/printf-frexpl-tests (Depends-on): Likewise.
66143
66144 2007-03-24  Bruno Haible  <bruno@clisp.org>
66145
66146         * lib/float+.h: New file.
66147         * lib/isnan.c: Include float+.h.
66148         (SIZE): New macro.
66149         (FUNC): Compare only SIZE bytes of the value.
66150         * lib/vasnprintf.c: Include float+.h.
66151         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
66152         SIZEOF_LDBL or SIZEOF_DBL bytes.
66153         * modules/isnan-nolibm (Files): Add lib/float+.h.
66154         * modules/isnanl-nolibm (Files): Add lib/float+.h.
66155         * modules/isnanl (Files): Add lib/float+.h.
66156         * modules/vasnprintf (Files): Add lib/float+.h.
66157
66158 2007-03-24  Bruno Haible  <bruno@clisp.org>
66159
66160         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
66161         include isnanl-nolibm.h.
66162
66163 2007-03-24  Bruno Haible  <bruno@clisp.org>
66164
66165         * tests/test-read-file.c (main): Don't produce spurious output for
66166         expected situations. Make the test fail if it encountered unexpected
66167         results.
66168
66169 2007-03-24  Bruno Haible  <bruno@clisp.org>
66170
66171         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
66172         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
66173
66174 2007-03-24  Bruno Haible  <bruno@clisp.org>
66175
66176         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
66177
66178 2007-03-24  Bruno Haible  <bruno@clisp.org>
66179
66180         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
66181         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
66182
66183         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
66184         * modules/utf8-ucs4: Turn into a symbolic link to module
66185         unistr/u8-mbtouc.
66186
66187         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
66188         utf8-ucs4-unsafe.
66189         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
66190         unistr/u8-mbtouc-unsafe.
66191
66192         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
66193         * modules/utf16-ucs4: Turn into a symbolic link to module
66194         unistr/u16-mbtouc.
66195
66196         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
66197         utf16-ucs4-unsafe.
66198         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
66199         unistr/u16-mbtouc-unsafe.
66200
66201         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
66202         * modules/ucs4-utf8: Turn into a symbolic link to module
66203         unistr/u8-ubtomb.
66204
66205         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
66206         * modules/ucs4-utf16: Turn into a symbolic link to module
66207         unistr/u16-ubtomb.
66208
66209 2007-03-24  Bruno Haible  <bruno@clisp.org>
66210
66211         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
66212         Enable the function only if HAVE_INLINE.
66213         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
66214         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66215         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
66216         Enable the function only if HAVE_INLINE.
66217         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
66218         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66219         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
66220         Enable the function only if HAVE_INLINE.
66221         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
66222         Enable the function only if HAVE_INLINE.
66223         * modules/utf8-ucs4: Update.
66224         * modules/utf8-ucs4-unsafe: Update.
66225         * modules/utf16-ucs4: Update.
66226         * modules/utf16-ucs4-unsafe: Update.
66227         * modules/ucs4-utf8: Update.
66228         * modules/ucs4-utf16: Update.
66229
66230 2007-03-24  Bruno Haible  <bruno@clisp.org>
66231
66232         * lib/utf8-ucs4.h: Remove file.
66233         * lib/utf8-ucs4-unsafe.h: Remove file.
66234         * lib/utf16-ucs4.h: Remove file.
66235         * lib/utf16-ucs4-unsafe.h: Remove file.
66236         * lib/ucs4-utf8.h: Remove file.
66237         * lib/ucs4-utf16.h: Remove file.
66238         * lib/unistr.h: Include their previous contents.
66239         * m4/utf-ucs4.m4: Remove file.
66240         * m4/ucs4-utf.m4: Remove file.
66241         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
66242         (Depends-on): Add unistr/base.
66243         (configure.ac): Remove gl_UTF_UCS4.
66244         (Makefile.am): Update.
66245         (Include): Change to unistr.h.
66246         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
66247         (Depends-on): Add unistr/base.
66248         (configure.ac): Remove gl_UTF_UCS4.
66249         (Makefile.am): Update.
66250         (Include): Change to unistr.h.
66251         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
66252         (Depends-on): Add unistr/base.
66253         (configure.ac): Remove gl_UTF_UCS4.
66254         (Makefile.am): Update.
66255         (Include): Change to unistr.h.
66256         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
66257         (Depends-on): Add unistr/base.
66258         (configure.ac): Remove gl_UTF_UCS4.
66259         (Makefile.am): Update.
66260         (Include): Change to unistr.h.
66261         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
66262         (Depends-on): Add unistr/base.
66263         (configure.ac): Remove gl_UCS4_UTF.
66264         (Makefile.am): Update.
66265         (Include): Change to unistr.h.
66266         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
66267         (Depends-on): Add unistr/base.
66268         (configure.ac): Remove gl_UCS4_UTF.
66269         (Makefile.am): Update.
66270         (Include): Change to unistr.h.
66271         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
66272         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
66273         utf8-ucs4-unsafe.h.
66274         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
66275         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
66276         utf16-ucs4-unsafe.h.
66277         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
66278         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
66279         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
66280         * lib/unistr/u8-strchr.c: Likewise.
66281         * lib/unistr/u8-strrchr.c: Likewise.
66282         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
66283         * lib/unistr/u16-strchr.c: Likewise.
66284         * lib/unistr/u16-strrchr.c: Likewise.
66285         * lib/striconveh.c: Update.
66286         * lib/linebreak.c: Update.
66287
66288 2007-03-24  Bruno Haible  <bruno@clisp.org>
66289
66290         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
66291         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
66292
66293 2007-03-22  Bruno Haible  <bruno@clisp.org>
66294
66295         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
66296
66297 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
66298
66299         * MODULES.html.sh (File system functions): New module write-any-file.
66300         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
66301         * m4/write-any-file.m4: New files.
66302
66303 2007-03-23  Eric Blake  <ebb9@byu.net>
66304
66305         * gnulib-tool: Rearrange space-tab sequences, since some editors
66306         like to eat them.
66307
66308 2007-03-23  Eric Blake  <ebb9@byu.net>
66309
66310         * lib/version-etc.c (version_etc_va): Update license wording to
66311         be more concise.  Recommended by Richard Stallman.
66312
66313 2007-03-22  Bruno Haible  <bruno@clisp.org>
66314
66315         * lib/poll.c (MSG_PEEK): New fallback definition.
66316
66317 2007-03-22  Bruno Haible  <bruno@clisp.org>
66318
66319         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
66320         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
66321         (main): Update.
66322         Fixes a compilation error on BeOS.
66323
66324 2007-03-22  Bruno Haible  <bruno@clisp.org>
66325
66326         * modules/frexpl-tests: New file.
66327         * tests/test-frexpl.c: New file.
66328
66329         * modules/frexpl: New file.
66330         * m4/frexpl.m4: New file.
66331         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
66332         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
66333         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
66334         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
66335         (Depends-on): Add frexpl. Remove isnanl-nolibm.
66336         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
66337
66338 2007-03-22  Bruno Haible  <bruno@clisp.org>
66339
66340         * lib/frexpl.c: Share code with lib/frexp.c.
66341         * modules/mathl (Files): Add lib/frexp.c.
66342         (Depends-on): Add isnanl-nolibm.
66343
66344 2007-03-22  Bruno Haible  <bruno@clisp.org>
66345
66346         * modules/printf-frexp (Files): Add m4/frexp.m4.
66347         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
66348         only if the found frexp function actually works.
66349
66350 2007-03-22  Bruno Haible  <bruno@clisp.org>
66351
66352         * lib/frexp.c: Remove older implementation that uses divisions.
66353
66354 2007-03-21  Bruno Haible  <bruno@clisp.org>
66355
66356         * modules/frexp-tests: New file.
66357         * tests/test-frexp.c: New file.
66358
66359         * modules/frexp: New file.
66360         * lib/frexp.c: New file.
66361         * m4/frexp.m4: New file.
66362         * lib/math_.h (frexp): New declaration.
66363         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
66364         REPLACE_FREXP.
66365         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
66366
66367 2007-03-21  Bruno Haible  <bruno@clisp.org>
66368
66369         * modules/isnanl-tests: New file.
66370         * tests/test-isnanl.c: New file.
66371
66372         * modules/isnanl: New file.
66373         * lib/isnanl.h: New file.
66374         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
66375         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
66376         gl_FUNC_ISNANL_WORKS.
66377         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
66378         New macros.
66379
66380 2007-03-21  Bruno Haible  <bruno@clisp.org>
66381
66382         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
66383         lib/isnanl.h.
66384         (Include): Update.
66385         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
66386         * lib/vasnprintf.c: Update.
66387         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
66388         tests/test-isnanl.h, remove tests/test-isnanl.c.
66389         (Makefile.am): Update.
66390         * tests/test-isnanl-nolibm.c: New file.
66391         * tests/test-isnanl.h: New file.
66392         * tests/test-isnanl.c: Remove file.
66393
66394 2007-03-21  Jim Meyering  <jim@meyering.net>
66395
66396         When trying to open ".", treat ESTALE like EACCES.
66397         * lib/savewd.c (savewd_save): Resort to forking not just upon
66398         failure with EACCES, but also when errno is ESTALE.
66399
66400 2007-03-20  Bruno Haible  <bruno@clisp.org>
66401
66402         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
66403         Needed on AIX 5.1. Reported by Matthew Woehlke.
66404
66405 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66406
66407         Suggestions by Bruno Haible:
66408         * lib/acl-internal.h: Include "gettext.h" rather than rolling
66409         our own.
66410         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
66411         * modules/acl (Depends-on): Add gettext.
66412
66413 2007-03-19  Bruno Haible  <bruno@clisp.org>
66414
66415         * modules/iconvme: Remove file.
66416         * lib/iconvme.h: Remove file.
66417         * lib/iconvme.c: Remove file.
66418         * m4/iconvme.m4: Remove file.
66419
66420 2007-03-19  Bruno Haible  <bruno@clisp.org>
66421
66422         * doc/relocatable-maint.texi: Break long shell script line.
66423         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66424
66425 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66426
66427         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
66428         handle file_has_acl.
66429         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
66430         * lib/acl.c: Move header inclusions and related macro defns into
66431         lib/acl-internal.h.
66432         (S_ISLNK): Remove defn, since that's now done for us.
66433         (file_has_acl): Move to lib/file-has-acl.c.
66434         Call acl_trivial if available.  This is the crucial part of the fix.
66435         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
66436         shared within the library.  Rewrite a bit, partly to make it compatible
66437         with the GNU coding style.
66438         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
66439         Remove unnecessary double-quotes.
66440         Don't test for acl_to_text; the build will catch that.
66441         Replace acl_entries if it doesn't exist and it is needed.
66442         Check for -lsec and acl_trivial (as used on Solaris 10).
66443         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
66444         lib/file-has-acl.c.
66445         (Depends-on): Add sys_stat, for S_ISLNK.
66446
66447 2007-03-19  Ben Pfaff  <blp@gnu.org>
66448
66449         * doc/gnulib.texi: Fix typos.
66450         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66451
66452 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66453
66454         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
66455         If size is zero here, buf must be zero.
66456
66457 2007-03-19  Simon Josefsson  <simon@josefsson.org>
66458
66459         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
66460         <bruno@clisp.org>.
66461
66462 2007-03-18  Bruno Haible  <bruno@clisp.org>
66463
66464         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
66465         Suggested by Eric Blake.
66466
66467 2007-03-18  Ben Pfaff  <blp@gnu.org>
66468
66469         * doc/relocatable.texi: Recommend using as prefix a directory
66470         that does not exist and will never be created.  Based on
66471         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
66472         and others.
66473
66474 2007-03-17  Bruno Haible  <bruno@clisp.org>
66475
66476         * lib/fchownat.c: Include lchown.h.
66477
66478 2007-03-17  Bruno Haible  <bruno@clisp.org>
66479
66480         Fix endless loop when the given allocated size was > INT_MAX.
66481         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
66482         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
66483         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
66484         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
66485         * lib/sprintf.c (sprintf): Likewise.
66486
66487 2007-03-17  Bruno Haible  <bruno@clisp.org>
66488
66489         * tests/test-argp-2.sh (func_compare): Output a context diff.
66490
66491 2007-03-17  Bruno Haible  <bruno@clisp.org>
66492
66493         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
66494         locale's decimal-point character.
66495
66496 2007-03-17  Bruno Haible  <bruno@clisp.org>
66497
66498         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
66499         before comparing it. Needed because on some platforms (e.g. x86) a
66500         'long double' occupies less bytes than sizeof (long double).
66501
66502 2007-03-17  Bruno Haible  <bruno@clisp.org>
66503
66504         * tests/test-crc.c (main): Make printf statements 64-bit clean.
66505         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
66506         * tests/test-getaddrinfo.c (simple): Likewise.
66507         * tests/test-read-file.c (main): Likewise.
66508
66509 2007-03-17  Bruno Haible  <bruno@clisp.org>
66510
66511         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
66512
66513 2007-03-17  Bruno Haible  <bruno@clisp.org>
66514
66515         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
66516         unused variable.
66517
66518 2007-03-17  Bruno Haible  <bruno@clisp.org>
66519
66520         * tests/test-c-strcasecmp.c: Include c-strcase.h.
66521         * tests/test-c-strncasecmp.c: Likewise.
66522
66523 2007-03-17  Bruno Haible  <bruno@clisp.org>
66524
66525         * modules/stdlib (Depends-on): Add unistd.
66526         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
66527         Needed for MacOS X 10.3.
66528
66529 2007-03-17  Bruno Haible  <bruno@clisp.org>
66530
66531         * lib/unistr/u-strdup.h: Include <stdlib.h>.
66532
66533 2007-03-17  Bruno Haible  <bruno@clisp.org>
66534
66535         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
66536
66537 2007-03-17  Bruno Haible  <bruno@clisp.org>
66538
66539         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
66540         to reflect files copied from gnulib (with or without modifications).
66541         Suggested by Jim Meyering.
66542
66543 2007-03-17  Eric Blake  <ebb9@byu.net>
66544
66545         * NEWS: Document stdlib change from 2007-02-18.
66546
66547 2007-03-17  Jim Meyering  <jim@meyering.net>
66548
66549         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
66550         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
66551         someone uses a name containing shell meta-characters.
66552         Reported by Alfred M. Szmidt.
66553
66554         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
66555
66556 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66557
66558         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
66559         and copy gettext configuration files only if configure.ac contains
66560         a use of AM_GNU_GETTEXT_VERSION.
66561
66562 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66563
66564         * build-aux/bootstrap (gnulib_name): New variable.
66565         (gnulib_tool_options): Use it.
66566
66567 2007-03-13  Simon Josefsson  <simon@josefsson.org>
66568
66569         * tests/test-des.c: Use new namespace.
66570
66571 2007-03-15  Bruno Haible  <bruno@clisp.org>
66572
66573         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
66574         Reported by James Youngman <jay@gnu.org>.
66575
66576 2007-03-15  Bruno Haible  <bruno@clisp.org>
66577
66578         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
66579         declared prototype. Needed with cc on OSF/1 5.1.
66580
66581 2007-03-15  Bruno Haible  <bruno@clisp.org>
66582
66583         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
66584         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
66585         (struct gl_list_implementation): Add dispose_fn argument to the
66586         'create_empty', 'create' methods.
66587         (struct gl_list_impl_base): Add field 'dispose_fn'.
66588         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
66589         argument.
66590         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
66591         dispose_fn argument.
66592         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
66593         dispose_fn on the dropped values.
66594         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
66595         dispose_fn argument.
66596         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
66597         dropped values.
66598         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
66599         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66600         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
66601         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66602         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
66603         argument.
66604         (gl_tree_list_free): Call dispose_fn on the dropped values.
66605         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
66606         the dropped values.
66607         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66608         Add dispose_fn argument.
66609         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
66610         Call dispose_fn on the dropped values.
66611         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
66612         Add dispose_fn argument.
66613         (gl_sublist_create): Initialize the 'dispose_fn' field.
66614         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
66615         * tests/test-array_list.c (main): Update.
66616         * tests/test-carray_list.c (main): Update.
66617         * tests/test-avltree_list.c (main): Update.
66618         * tests/test-rbtree_list.c (main): Update.
66619         * tests/test-avltreehash_list.c (main): Update.
66620         * tests/test-rbtreehash_list.c (main): Update.
66621         * tests/test-linked_list.c (main): Update.
66622         * tests/test-linkedhash_list.c (main): Update.
66623         * tests/test-array_oset.c (main): Update.
66624
66625 2007-03-15  Bruno Haible  <bruno@clisp.org>
66626
66627         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
66628         (gl_oset_create_empty): Add dispose_fn argument.
66629         (struct gl_oset_implementation): Add dispose_fn argument to
66630         'create_empty' method.
66631         (struct gl_oset_impl_base): Add dispose_fn field.
66632         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
66633         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
66634         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
66635         values.
66636         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
66637         (gl_tree_oset_free): Call dispose_fn on the dropped values.
66638         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66639         dropped value.
66640         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66641         dropped value.
66642         * tests/test-array_oset.c (main): Update.
66643         * tests/test-avltree_oset.c (main): Update.
66644         * tests/test-rbtree_oset.c (main): Update.
66645         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
66646
66647 2007-03-13  Bruno Haible  <bruno@clisp.org>
66648
66649         * tests/test-stdbool.c (i): Update after last patch.
66650
66651 2007-03-12  Bruno Haible  <bruno@clisp.org>
66652
66653         * lib/quotearg.c: Include <wctype.h> early, before the definition of
66654         the iswprint macro. Needed on Solaris 2.5.1.
66655
66656 2007-03-12  Bruno Haible  <bruno@clisp.org>
66657
66658         * tests/test-printf-frexp.c (main): Declare x as volatile.
66659
66660 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66661
66662         * doc/gnulib.texi (Build robot for gnulib): New section.
66663
66664 2007-03-12  Jim Meyering  <jim@meyering.net>
66665
66666         * build-aux/bootstrap: New file.
66667         * build-aux/bootstrap.conf: New file, from coreutils.
66668
66669 2007-03-11  Bruno Haible  <bruno@clisp.org>
66670
66671         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
66672
66673 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66674
66675         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
66676         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
66677         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
66678
66679 2007-03-11  Bruno Haible  <bruno@clisp.org>
66680
66681         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
66682         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
66683
66684 2007-03-11  Bruno Haible  <bruno@clisp.org>
66685
66686         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
66687         formula. Needed for SunPRO C 5.0.
66688
66689 2007-03-11  Bruno Haible  <bruno@clisp.org>
66690
66691         * modules/long-options (Depends-on): Add getopt.
66692
66693 2007-03-11  Bruno Haible  <bruno@clisp.org>
66694
66695         * modules/modechange (Depends-on): Add stdbool.
66696
66697 2007-03-11  Bruno Haible  <bruno@clisp.org>
66698
66699         * modules/i-ring (Depends-on): Add stdbool.
66700
66701 2007-03-11  Bruno Haible  <bruno@clisp.org>
66702
66703         * modules/gc-des (Depends-on): Add stdbool.
66704
66705 2007-03-11  Bruno Haible  <bruno@clisp.org>
66706
66707         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
66708
66709 2007-03-11  Bruno Haible  <bruno@clisp.org>
66710
66711         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
66712
66713 2007-03-11  Bruno Haible  <bruno@clisp.org>
66714
66715         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
66716
66717 2007-03-11  Bruno Haible  <bruno@clisp.org>
66718
66719         * lib/vasnprintf.c (sprintf): Undefine.
66720
66721 2007-03-11  Bruno Haible  <bruno@clisp.org>
66722
66723         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
66724         initializers in SunPRO C and Compaq C compilers.
66725
66726 2007-03-11  Bruno Haible  <bruno@clisp.org>
66727
66728         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
66729         decrementing code ANSI C compliant.
66730
66731 2007-03-11  Bruno Haible  <bruno@clisp.org>
66732
66733         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
66734         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
66735
66736 2007-03-11  Bruno Haible  <bruno@clisp.org>
66737
66738         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
66739         <stdbool.h> substitute doesn't pass.
66740
66741 2007-03-11  Bruno Haible  <bruno@clisp.org>
66742
66743         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
66744
66745 2007-03-11  Bruno Haible  <bruno@clisp.org>
66746
66747         * gnulib-tool (func_create_megatestdir): Create also an autobuild
66748         script, for submission to autobuild.josefsson.org.
66749
66750 2007-03-10  Bruno Haible  <bruno@clisp.org>
66751
66752         * modules/canonicalize-lgpl-tests: New file.
66753         * tests/test-canonicalize-lgpl.sh: New file.
66754         * tests/test-canonicalize-lgpl.c: New file.
66755
66756         * modules/c-strcase-tests: New file.
66757         * tests/test-c-strcase.sh: New file.
66758         * tests/test-c-strcasecmp.c: New file.
66759         * tests/test-c-strncasecmp.c: New file.
66760
66761         * modules/atexit-tests: New file.
66762         * tests/test-atexit.sh: New file.
66763         * tests/test-atexit.c: New file.
66764
66765 2007-03-10  Bruno Haible  <bruno@clisp.org>
66766
66767         * tests/test-binary-io.sh: Use temporary filenames that are not so
66768         likely to clash with those of other tests (in a parallel make).
66769         * tests/test-binary-io.c: Likewise.
66770
66771 2007-03-10  Bruno Haible  <bruno@clisp.org>
66772
66773         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
66774         fallback; use #error instead.
66775         Suggested by Simon Josefsson.
66776
66777 2007-03-10  Bruno Haible  <bruno@clisp.org>
66778
66779         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
66780         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
66781         first and the last.
66782
66783 2007-03-10  Bruno Haible  <bruno@clisp.org>
66784
66785         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
66786
66787 2007-03-10  Bruno Haible  <bruno@clisp.org>
66788
66789         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
66790         "make distcheck".
66791         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
66792         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
66793         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
66794
66795 2007-03-10  Bruno Haible  <bruno@clisp.org>
66796
66797         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
66798         variable.
66799         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
66800         variable.
66801
66802 2007-03-09  Eric Blake  <ebb9@byu.net>
66803         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
66804
66805         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
66806         types are not being provided by gnulib.
66807         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
66808         types are supported.
66809
66810 2007-03-10  Bruno Haible  <bruno@clisp.org>
66811
66812         * lib/stdio_.h (__attribute__): New macro.
66813         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
66814         vsprintf): Specify __attribute__ __format__ for GCC.
66815         Suggested by Eric Blake.
66816
66817 2007-03-09  Bruno Haible  <bruno@clisp.org>
66818
66819         * modules/printf-posix-tests: New file.
66820         * tests/test-printf-posix.sh: New file.
66821         * tests/test-printf-posix.c: New file.
66822
66823         * modules/printf-posix: New file.
66824         * lib/printf.c: New file.
66825         * m4/printf-posix-rpl.m4: New file.
66826         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
66827         REPLACE_PRINTF.
66828         * lib/stdio_.h (printf): New declaration.
66829         (format, __format__, ____printf____, ____scanf____, ____strftime____,
66830         ____strfmon____): New macros.
66831         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
66832         REPLACE_PRINTF.
66833
66834 2007-03-09  Bruno Haible  <bruno@clisp.org>
66835
66836         * tests/test-vasnprintf-posix2.sh: New file.
66837         * tests/test-vasnprintf-posix2.c: New file.
66838         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
66839         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
66840         (Makefile.am): Activate test-vasnprintf-posix2.sh.
66841
66842         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
66843         a locale dependent decimal point, rather than always '.'.
66844
66845 2007-03-09  Eric Blake  <ebb9@byu.net>
66846
66847         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
66848         spite of platforms like Tandem/NSK that define it to -1.
66849
66850 2007-03-08  Bruno Haible  <bruno@clisp.org>
66851
66852         * modules/vprintf-posix-tests: New file.
66853         * tests/test-vprintf-posix.sh: New file.
66854         * tests/test-vprintf-posix.c: New file.
66855         * tests/test-printf-posix.h: New file.
66856
66857         * modules/vprintf-posix: New file.
66858         * lib/vprintf.c: New file.
66859         * m4/vprintf-posix.m4: New file.
66860         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
66861         REPLACE_VPRINTF.
66862         * lib/stdio_.h (vprintf): New declaration.
66863         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
66864         REPLACE_VPRINTF.
66865
66866 2007-03-08  Bruno Haible  <bruno@clisp.org>
66867
66868         * modules/fprintf-posix-tests: New file.
66869         * tests/test-fprintf-posix.sh: New file.
66870         * tests/test-fprintf-posix.c: New file.
66871
66872         * modules/fprintf-posix: New file.
66873         * lib/fprintf.c: New file.
66874         * m4/fprintf-posix.m4: New file.
66875         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
66876         REPLACE_FPRINTF.
66877         * lib/stdio_.h (fprintf): New declaration.
66878         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
66879         REPLACE_FPRINTF.
66880
66881 2007-03-08  Bruno Haible  <bruno@clisp.org>
66882
66883         * modules/vfprintf-posix-tests: New file.
66884         * tests/test-vfprintf-posix.sh: New file.
66885         * tests/test-vfprintf-posix.c: New file.
66886         * tests/test-fprintf-posix.h: New file.
66887         * tests/test-fprintf-posix.out: New file.
66888
66889         * modules/vfprintf-posix: New file.
66890         * lib/vfprintf.c: New file.
66891         * m4/vfprintf-posix.m4: New file.
66892         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
66893         REPLACE_VFPRINTF.
66894         * lib/stdio_.h (vfprintf): New declaration.
66895         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
66896         REPLACE_VFPRINTF.
66897
66898 2007-03-08  Bruno Haible  <bruno@clisp.org>
66899
66900         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
66901
66902 2007-03-08  Bruno Haible  <bruno@clisp.org>
66903
66904         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
66905         instead of 'expr' invocations.
66906         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66907         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66908         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66909         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66910         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66911         Suggested by Paul Eggert.
66912
66913 2007-03-08  Bruno Haible  <bruno@clisp.org>
66914
66915         * modules/fseterr-tests: New file.
66916         * tests/test-fseterr.c: New file.
66917
66918         * modules/fseterr: New file.
66919         * lib/fseterr.h: New file.
66920         * lib/fseterr.c: New file.
66921
66922 2007-03-08  Bruno Haible  <bruno@clisp.org>
66923
66924         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
66925         * lib/getopt_.h: Likewise.
66926         * lib/mbswidth.h: Likewise.
66927         * lib/setenv.h: Likewise.
66928         * lib/vasnprintf.h: Likewise.
66929         * lib/vasprintf.h: Likewise.
66930         * lib/verror.h: Likewise.
66931         * lib/xsetenv.h: Likewise.
66932         * lib/xvasprintf.h: Likewise.
66933
66934 2007-03-08  Jim Meyering  <jim@meyering.net>
66935
66936         * users.txt: Add parted.
66937
66938         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
66939
66940 2007-03-07  Bruno Haible  <bruno@clisp.org>
66941
66942         * m4/printf.m4: Make the shell script snippets copy&pastable.
66943
66944 2007-03-02  Bruno Haible  <bruno@clisp.org>
66945
66946         * lib/netinet_in_.h: New file.
66947         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
66948         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
66949         * modules/netinet_in (Files): Add lib/netinet_in_.h.
66950         (Depends-on): Add absolute-header.
66951         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
66952         into netinet/in.h.
66953
66954 2007-03-03  Bruno Haible  <bruno@clisp.org>
66955
66956         * lib/sys_select_.h: New file.
66957         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
66958         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
66959         * modules/sys_select (Files): Add lib/sys_select_.h.
66960         (Depends-on): Add absolute-header.
66961         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
66962         into sys/select.h.
66963
66964 2007-03-02  Bruno Haible  <bruno@clisp.org>
66965
66966         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
66967         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
66968         values.
66969         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
66970         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
66971         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
66972         * modules/sys_socket (Depends-on): Add absolute-header.
66973         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
66974         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
66975         (Include): Remove requirement of inclusion of <sys/types.h>.
66976
66977 2007-03-02  Bruno Haible  <bruno@clisp.org>
66978
66979         * lib/byteswap_.h (bswap_32): Fix formula.
66980
66981 2007-03-06  Bruno Haible  <bruno@clisp.org>
66982
66983         * modules/sprintf-posix-tests: New file.
66984         * tests/test-sprintf-posix.c: New file.
66985
66986         * modules/sprintf-posix: New file.
66987         * lib/sprintf.c: New file.
66988         * m4/sprintf-posix.m4: New file.
66989         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
66990         REPLACE_SPRINTF.
66991         * lib/stdio_.h (sprintf): New declaration.
66992         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
66993         REPLACE_SPRINTF.
66994
66995 2007-03-06  Bruno Haible  <bruno@clisp.org>
66996
66997         * modules/vsprintf-posix-tests: New file.
66998         * tests/test-vsprintf-posix.c: New file.
66999         * tests/test-sprintf-posix.h: New file.
67000
67001         * modules/vsprintf-posix: New file.
67002         * lib/vsprintf.c: New file.
67003         * m4/vsprintf-posix.m4: New file.
67004         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
67005         REPLACE_VSPRINTF.
67006         * lib/stdio_.h (vsprintf): New declaration.
67007         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
67008         REPLACE_VSPRINTF.
67009
67010 2007-03-06  Bruno Haible  <bruno@clisp.org>
67011
67012         * modules/vsnprintf (Depend-on): Remove minmax.
67013
67014 2007-03-06  Bruno Haible  <bruno@clisp.org>
67015
67016         * modules/snprintf-posix-tests: New file.
67017         * tests/test-snprintf-posix.c: New file.
67018
67019         * modules/snprintf-posix: New file.
67020         * m4/snprintf-posix.m4: New file.
67021         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
67022         gl_FUNC_SNPRINTF.
67023         (gl_FUNC_SNPRINTF): Invoke it.
67024         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
67025         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
67026         is set.
67027         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
67028
67029 2007-03-06  Bruno Haible  <bruno@clisp.org>
67030
67031         * modules/vsnprintf-posix-tests: New file.
67032         * tests/test-vsnprintf-posix.c: New file.
67033         * tests/test-snprintf-posix.h: New file.
67034
67035         * modules/vsnprintf-posix: New file.
67036         * m4/vsnprintf-posix.m4: New file.
67037         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
67038         gl_FUNC_VSNPRINTF.
67039         (gl_FUNC_VSNPRINTF): Invoke it.
67040         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
67041         * lib/stdio_.h (vsnprintf): Define as a replacement if
67042         REPLACE_VSNPRINTF is set.
67043         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
67044
67045 2007-03-06  Bruno Haible  <bruno@clisp.org>
67046
67047         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
67048         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
67049
67050 2007-03-06  Bruno Haible  <bruno@clisp.org>
67051
67052         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
67053         (asinl): Declare also if HAVE_DECL_ASINL is set.
67054         (atanl): Declare also if HAVE_DECL_ATANL is set.
67055         (ceill): Declare also if HAVE_DECL_CEILL is set.
67056         (cosl): Declare also if HAVE_DECL_COSL is set.
67057         (expl): Declare also if HAVE_DECL_EXPL is set.
67058         (floorl): Declare also if HAVE_DECL_FLOORL is set.
67059         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
67060         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
67061         (logl): Declare also if HAVE_DECL_LOGL is set.
67062         (sinl): Declare also if HAVE_DECL_SINL is set.
67063         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
67064         (tanl): Declare also if HAVE_DECL_TANL is set.
67065         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
67066         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
67067         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
67068         declaration of frexpl, ldexpl.
67069         * modules/printf-frexpl (Depends-on): Add math.
67070         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
67071
67072 2007-03-05  Bruno Haible  <bruno@clisp.org>
67073
67074         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
67075         frexpl and ldexpl are declared.
67076         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
67077
67078 2007-03-05  Bruno Haible  <bruno@clisp.org>
67079
67080         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
67081         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
67082
67083 2007-03-05  Bruno Haible  <bruno@clisp.org>
67084
67085         * lib/stdio_.h: Include <stddef.h>.
67086
67087 2007-03-05  Bruno Haible  <bruno@clisp.org>
67088
67089         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
67090
67091 2007-03-05  Bruno Haible  <bruno@clisp.org>
67092
67093         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
67094         NetBSD 4, from Ralf Wildenhues.
67095
67096 2007-03-04  Bruno Haible  <bruno@clisp.org>
67097
67098         * lib/vasprintf.h: Update #if logic for the case when the functions
67099         exist but are overridden.
67100
67101 2007-03-04  Bruno Haible  <bruno@clisp.org>
67102
67103         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
67104         implementations: glibc-2.4 and MacOS X 10.3.
67105         * tests/test-vasnprintf-posix.c (test_function): Test also the case
67106         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
67107         * tests/test-vasprintf-posix.c (test_function): Likewise.
67108
67109 2007-03-04  Bruno Haible  <bruno@clisp.org>
67110
67111         * modules/vasprintf-posix-tests: New file.
67112         * tests/test-vasprintf-posix.c: New file.
67113
67114         * modules/vasprintf-posix: New file.
67115         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
67116         defined.
67117         * m4/vasprintf-posix.m4: New file.
67118         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
67119         gl_FUNC_VASPRINTF.
67120         (gl_FUNC_VASPRINTF): Invoke it.
67121         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
67122         here.
67123         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
67124
67125 2007-03-04  Bruno Haible  <bruno@clisp.org>
67126
67127         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
67128         REPLACE_GETTIMEOFDAY.
67129         * modules/sys_time (Makefile.am): Likewise.
67130         * m4/sys_time_h.m4: Likewise.
67131         * m4/gettimeofday.m4: Likewise.
67132
67133 2007-03-04  Bruno Haible  <bruno@clisp.org>
67134
67135         * modules/vasnprintf-posix-tests: New file.
67136         * tests/test-vasnprintf-posix.c: New file.
67137
67138         * modules/vasnprintf-posix: New file.
67139         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
67140         printf-frexpl.h.
67141         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
67142         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
67143         REPLACE_VASNPRINTF is defined.
67144         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
67145         gl_FUNC_VASNPRINTF.
67146         (gl_FUNC_VASNPRINTF): Invoke it.
67147         * m4/vasnprintf-posix.m4: New file.
67148         * m4/printf.m4: New file.
67149
67150 2007-03-04  Bruno Haible  <bruno@clisp.org>
67151
67152         Compile progreloc.c only if --enable-relocatable is specified.
67153         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
67154         if --enable-relocatable was specified.
67155         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
67156         lib_SOURCES.
67157
67158 2007-03-04  Jim Meyering  <jim@meyering.net>
67159
67160         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
67161         Use it consistently, rather than enumerating errno constants.
67162
67163 2007-03-04  Bruno Haible  <bruno@clisp.org>
67164
67165         * modules/xvasprintf-tests: New file.
67166         * tests/test-xvasprintf.c: New file.
67167
67168         * modules/vasprintf-tests: New file.
67169         * tests/test-vasprintf.c: New file.
67170
67171         * modules/vasnprintf-tests: New file.
67172         * tests/test-vasnprintf.c: New file.
67173
67174         * modules/vsnprintf-tests: New file.
67175         * tests/test-vsnprintf.c: New file.
67176
67177         * modules/snprintf-tests: New file.
67178         * tests/test-snprintf.c: New file.
67179
67180 2007-03-04  Bruno Haible  <bruno@clisp.org>
67181
67182         Compile relocatable.c only if --enable-relocatable is specified.
67183         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
67184         gl_RELOCATABLE_LIBRARY.
67185         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
67186         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
67187         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
67188         gl_RELOCATABLE_LIBRARY.
67189         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
67190         (Makefile.am): Remove lib_SOURCES.
67191         * modules/relocatable-lib-lgpl (configure.ac): Invoke
67192         gl_RELOCATABLE_LIBRARY.
67193         (Makefile.am): Remove lib_SOURCES.
67194         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
67195         always.
67196         * modules/relocatable-prog-wrapper (configure.ac): Invoke
67197         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
67198
67199 2007-03-04  Bruno Haible  <bruno@clisp.org>
67200
67201         * modules/argmatch-tests: New file.
67202         * tests/test-argmatch.c: New file.
67203
67204         * tests/test-allocsa.c (main): Halve the number of loop runs.
67205
67206         * modules/alloca-opt-tests: New file.
67207         * tests/test-alloca-opt.c: New file.
67208
67209 2007-03-04  Jim Meyering  <jim@meyering.net>
67210
67211         Work around difference between Linux ACLs and Solaris 10 ZFS.
67212         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
67213         for EINVAL.
67214
67215 2007-03-03  Bruno Haible  <bruno@clisp.org>
67216
67217         * modules/relocatable-prog (Depends-on): Add back progreloc's
67218         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
67219
67220 2007-03-03  Bruno Haible  <bruno@clisp.org>
67221
67222         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
67223         * modules/relocatable-lib: New file.
67224
67225 2007-03-03  Bruno Haible  <bruno@clisp.org>
67226
67227         * modules/relocatable-prog: Renamed from modules/relocatable.
67228         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
67229
67230 2007-03-03  Bruno Haible  <bruno@clisp.org>
67231
67232         * modules/relocatable-script (Files): Add doc/relocatable.texi,
67233         m4/relocatable-lib.m4.
67234         (Depends-on): Remove 'relocatable'.
67235         (configure.ac): Add gl_RELOCATABLE_NOP.
67236
67237 2007-03-03  Bruno Haible  <bruno@clisp.org>
67238
67239         * modules/relocatable-prog-wrapper: New file.
67240         * modules/relocatable (Depends-on): Add it. Remove all other
67241         dependencies except progname.
67242         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
67243
67244         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
67245         (gl_FUNC_STRERROR): Nop.
67246         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
67247
67248         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
67249         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
67250
67251         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
67252         (gl_FUNC_READLINK): Update.
67253
67254         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
67255
67256 2007-03-03  Bruno Haible  <bruno@clisp.org>
67257
67258         * lib/xreadlink.c: Include <unistd.h> unconditionally.
67259         * modules/xreadlink (Depends-on): Add unistd.
67260         * modules/xreadlink-with-size (Depends-on): Likewise.
67261
67262 2007-03-03  Bruno Haible  <bruno@clisp.org>
67263
67264         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
67265         extracted from gt_FUNC_SETENV.
67266         (gt_FUNC_SETENV): Remove macro.
67267         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
67268         remove gt_FUNC_SETENV.
67269
67270 2007-03-03  Bruno Haible  <bruno@clisp.org>
67271
67272         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
67273         ENABLE_RELOCATABLE here.
67274         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
67275
67276 2007-03-03  Bruno Haible  <bruno@clisp.org>
67277
67278         * modules/rbtreehash-list-tests (Depends-on): Add progname.
67279         * tests/test-rbtreehash_list.c: Include progname.h.
67280         (main): Call set_program_name.
67281
67282         * modules/rbtree-oset-tests (Depends-on): Add progname.
67283         * tests/test-rbtree_oset.c: Include progname.h.
67284         (main): Call set_program_name.
67285
67286         * modules/rbtree-list-tests (Depends-on): Add progname.
67287         * tests/test-rbtree_list.c: Include progname.h.
67288         (main): Call set_program_name.
67289
67290         * modules/linked-list-tests (Depends-on): Add progname.
67291         * tests/test-linked_list.c: Include progname.h.
67292         (main): Call set_program_name.
67293
67294 2007-03-03  Bruno Haible  <bruno@clisp.org>
67295
67296         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
67297         All uses of __restrict changed to _Restrict_.
67298         * lib/glob_.h (__restrict): Remove macro.
67299
67300 2007-03-02  Bruno Haible  <bruno@clisp.org>
67301
67302         * modules/gettext (configure.ac): Require gettext infrastructure
67303         from version 0.16.1.
67304
67305 2007-03-02  Bruno Haible  <bruno@clisp.org>
67306
67307         * modules/linkedhash-list-tests (Depends-on): Add progname.
67308         * tests/test-linkedhash_list.c: Include progname.h.
67309         (main): Call set_program_name.
67310
67311         * modules/carray-list-tests (Depends-on): Add progname.
67312         * tests/test-carray_list.c: Include progname.h.
67313         (main): Call set_program_name.
67314
67315         * modules/avltreehash-list-tests (Depends-on): Add progname.
67316         * tests/test-avltreehash_list.c: Include progname.h.
67317         (main): Call set_program_name.
67318
67319         * modules/avltree-oset-tests (Depends-on): Add progname.
67320         * tests/test-avltree_oset.c: Include progname.h.
67321         (main): Call set_program_name.
67322
67323         * modules/avltree-list-tests (Depends-on): Add progname.
67324         * tests/test-avltree_list.c: Include progname.h.
67325         (main): Call set_program_name.
67326
67327         * modules/array-oset-tests (Depends-on): Add progname.
67328         * tests/test-array_oset.c: Include progname.h.
67329         (main): Call set_program_name.
67330
67331         * modules/array-list-tests (Depends-on): Add progname.
67332         * tests/test-array_list.c: Include progname.h.
67333         (main): Call set_program_name.
67334
67335         * modules/argp-tests (Depends-on): Add progname.
67336         * tests/test-argp.c: Include argp.h first. Include progname.h.
67337         (main): Call set_program_name.
67338
67339 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
67340
67341         * doc/gnulib-tool.texi (Initial import): Reword description of
67342         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
67343         limited effect even if defined after the first system include.
67344
67345 2007-03-01  Bruno Haible  <bruno@clisp.org>
67346
67347         * build-aux/config.libpath: Update to libtool-1.5.22.
67348         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
67349
67350 2007-03-01  Bruno Haible  <bruno@clisp.org>
67351
67352         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
67353         foo_CFLAGS.
67354         Reported by Ralf Wildenhues.
67355
67356 2007-03-01  Bruno Haible  <bruno@clisp.org>
67357
67358         * build-aux/install-reloc: Remove object files left over by some
67359         compilers.
67360         Reported by Ralf Wildenhues.
67361
67362 2007-03-01  Bruno Haible  <bruno@clisp.org>
67363
67364         * build-aux/install-reloc: Break long lines.
67365
67366 2007-03-01  Bruno Haible  <bruno@clisp.org>
67367
67368         * doc/relocatable.texi: Document that it may not work on OpenBSD.
67369         Reported by Ralf Wildenhues.
67370
67371 2007-03-01  Bruno Haible  <bruno@clisp.org>
67372
67373         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
67374         include ordering constraints.
67375
67376 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67377
67378         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
67379         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
67380         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
67381         as another example.
67382         * lib/time_.h: Fix misspelling.
67383         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67384         Require gl_HEADER_TIME_H_DEFAULTS.
67385         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
67386         * m4/time_r.m4 (gl_TIME_R): Likewise.
67387         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
67388
67389 2007-03-01  Bruno Haible  <bruno@clisp.org>
67390
67391         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
67392         * m4/utimens.m4 (gl_UTIMENS): Likewise.
67393
67394 2007-03-01  Jim Meyering  <jim@meyering.net>
67395
67396         * modules/xreadlink (Maintainer): Add my name.
67397         * modules/xreadlink-with-size (Depends-on): Alphabetize.
67398
67399 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
67400             Bruno Haible  <bruno@clisp.org>
67401
67402         * build-aux/install-reloc: Compile also c-ctype.c.
67403         * build-aux/relocatable.sh.in: New file.
67404         * doc/relocatable.texi: New file.
67405         * doc/relocatable-maint.texi: New file.
67406         * doc/gnulib.texi: Include relocatable-maint.texi.
67407         * lib/progreloc.c: Include unistd.h unconditionally.
67408         * lib/relocwrapper.c: Include unistd.h unconditionally.
67409         Include c-ctype.h.
67410         (add_dotbin): Use c_tolower.
67411         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
67412         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
67413         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
67414         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
67415         to m4/relocatable-lib.m4.
67416         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
67417         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
67418         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
67419         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
67420         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
67421         * modules/relocatable: New file.
67422         * modules/relocatable-lib: New file.
67423         * modules/relocatable-script: New file.
67424
67425 2007-02-28  Bruno Haible  <bruno@clisp.org>
67426
67427         Import --enable-relocatable infrastructure.
67428         * build-aux/config.libpath: New file, from GNU gettext.
67429         * build-aux/install-reloc: New file, from GNU gettext.
67430         * build-aux/reloc-ldflags: New file, from GNU gettext.
67431         * lib/relocatable.h: New file, from GNU gettext.
67432         * lib/relocatable.c: New file, from GNU gettext.
67433         * lib/relocwrapper.c: New file, from GNU gettext.
67434         * m4/relocatable.m4: New file, from GNU gettext.
67435
67436 2007-02-28  Bruno Haible  <bruno@clisp.org>
67437
67438         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
67439
67440         * modules/xreadlink: New file, from GNU gettext with modifications.
67441         * lib/xreadlink.c: New file, from GNU gettext.
67442         * lib/xreadlink.h: Add comments.
67443         (xreadlink): New declaration.
67444
67445         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
67446         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
67447         lib/xreadlink-with-size.c.
67448         (configure.ac): Remove gl_XREADLINK invocation.
67449         (Makefile.am): Augment lib_SOURCES.
67450         * m4/xreadlink.m4: Remove file.
67451         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
67452         (xreadlink_with_size): Renamed from xreadink.
67453         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
67454         * modules/canonicalize (Depends-on): Replace xreadlink with
67455         xreadlink-with-size.
67456         * lib/canonicalize.c (canonicalize_filename_mode): Update.
67457
67458 2007-02-25  Jim Meyering  <jim@meyering.net>
67459
67460         * build-aux/announce-gen: When complaining about excess arguments,
67461         list them.
67462
67463 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67464
67465         * README: Document signed integer overflow situation more
67466         accurately.
67467
67468 2007-02-25  Bruno Haible  <bruno@clisp.org>
67469
67470         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
67471         'a' or 'A' conversion.
67472
67473 2007-02-25  Bruno Haible  <bruno@clisp.org>
67474
67475         * modules/filename: Renamed from modules/pathname.
67476         (Files): Replace lib/pathname.h with lib/filename.h. Replace
67477         lib/concatpath.c with lib/concat-filename.c.
67478         (Makefile.am): Update.
67479         (Include): Replace pathname.h with filename.h.
67480         * lib/filename.h: Renamed from lib/pathname.h.
67481         (concatenated_filename): Renamed from concatenated_pathname.
67482         * lib/concat-filename.c: Renamed from lib/concatpath.c.
67483         (concatenated_filename): Renamed from concatenated_pathname.
67484         * lib/findprog.c: Include filename.h instead of pathname.h.
67485         (find_in_path): Update.
67486         * lib/javacomp.c: Include filename.h instead of pathname.h.
67487         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
67488         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
67489         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
67490         is_oldgcj_14_13_usable, is_javac_usable): Update.
67491         * lib/javaexec.c: Include filename.h instead of pathname.h.
67492         (execute_java_class): Update.
67493         * modules/findprog: Update.
67494         * modules/javacomp: Update.
67495         * modules/javaexec: Update.
67496         * MODULES.html.sh (File system functions): Add 'filename', remove
67497         'pathname'.
67498
67499 2007-02-25  Bruno Haible  <bruno@clisp.org>
67500
67501         * modules/printf-frexpl-tests: New file.
67502         * tests/test-printf-frexpl.c: New file.
67503
67504         * modules/printf-frexpl: New file.
67505         * lib/printf-frexpl.h: New file.
67506         * lib/printf-frexpl.c: New file.
67507         * m4/printf-frexpl.m4: New file.
67508
67509 2007-02-25  Bruno Haible  <bruno@clisp.org>
67510
67511         * modules/printf-frexp-tests: New file.
67512         * tests/test-printf-frexp.c: New file.
67513
67514         * modules/printf-frexp: New file.
67515         * lib/printf-frexp.h: New file.
67516         * lib/printf-frexp.c: New file.
67517         * m4/printf-frexp.m4: New file.
67518
67519 2007-02-25  Bruno Haible  <bruno@clisp.org>
67520
67521         Assume automake >= 1.10 for the tests.
67522         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
67523         * modules/arctwo-tests: Likewise.
67524         * modules/argp-tests: Likewise.
67525         * modules/avltree-list-tests: Likewise.
67526         * modules/avltree-oset-tests: Likewise.
67527         * modules/avltreehash-list-tests: Likewise.
67528         * modules/carray-list-tests: Likewise.
67529         * modules/crc-tests: Likewise.
67530         * modules/des-tests: Likewise.
67531         * modules/gc-arcfour-tests: Likewise.
67532         * modules/gc-arctwo-tests: Likewise.
67533         * modules/gc-des-tests: Likewise.
67534         * modules/gc-hmac-md5-tests: Likewise.
67535         * modules/gc-hmac-sha1-tests: Likewise.
67536         * modules/gc-md2-tests: Likewise.
67537         * modules/gc-md4-tests: Likewise.
67538         * modules/gc-md5-tests: Likewise.
67539         * modules/gc-pbkdf2-sha1-tests: Likewise.
67540         * modules/gc-rijndael-tests: Likewise.
67541         * modules/gc-sha1-tests: Likewise.
67542         * modules/gc-tests: Likewise.
67543         * modules/getaddrinfo-tests: Likewise.
67544         * modules/hmac-md5-tests: Likewise.
67545         * modules/hmac-sha1-tests: Likewise.
67546         * modules/linked-list-tests: Likewise.
67547         * modules/linkedhash-list-tests: Likewise.
67548         * modules/lock-tests: Likewise.
67549         * modules/md2-tests: Likewise.
67550         * modules/md4-tests: Likewise.
67551         * modules/md5-tests: Likewise.
67552         * modules/rbtree-list-tests: Likewise.
67553         * modules/rbtree-oset-tests: Likewise.
67554         * modules/rbtreehash-list-tests: Likewise.
67555         * modules/read-file-tests: Likewise.
67556         * modules/rijndael-tests: Likewise.
67557         * modules/stdint-tests: Likewise.
67558         * modules/tls-tests: Likewise.
67559
67560 2007-02-24  Bruno Haible  <bruno@clisp.org>
67561
67562         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
67563         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
67564         function; instead check whether isnan with a double argument links.
67565         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
67566         function; instead check whether isnan with a 'long double' argument
67567         links.
67568         Reported by Eric Blake <ebb9@byu.net>.
67569
67570 2007-02-24  Bruno Haible  <bruno@clisp.org>
67571
67572         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
67573         defined.
67574         * lib/isnanl.c: Remove all code. Just include isnan.c.
67575         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
67576
67577 2007-02-25  Jim Meyering  <jim@meyering.net>
67578
67579         Avoid conflicting types for 'unsetenv' on FreeBSD.
67580         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
67581         conflicting with FreeBSD's (5.0 and 6.1) function declaration
67582         in stdlib.h.
67583
67584 2007-02-24  Bruno Haible  <bruno@clisp.org>
67585
67586         * modules/isnanl-nolibm-tests: New file.
67587         * tests/test-isnanl.c: New file.
67588
67589         * modules/isnanl-nolibm: New file.
67590         * lib/isnanl.h: New file.
67591         * lib/isnanl.c: New file.
67592         * m4/isnanl.m4: New file.
67593
67594 2007-02-24  Bruno Haible  <bruno@clisp.org>
67595
67596         * modules/isnan-nolibm-tests: New file.
67597         * tests/test-isnan.c: New file.
67598
67599         * modules/isnan-nolibm: New file.
67600         * lib/isnan.h: New file.
67601         * lib/isnan.c: New file.
67602         * m4/isnan.m4: New file.
67603
67604 2007-02-24  Bruno Haible  <bruno@clisp.org>
67605
67606         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
67607         assume that an exponent fits in 20 bits.
67608
67609 2007-02-24  Jim Meyering  <jim@meyering.net>
67610
67611         * m4/regex.m4: Update the description of the configure-time option,
67612         --without-included-regex, to state accurately what the defaults are,
67613         and perhaps to give people an idea why using this option is risky.
67614
67615 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
67616
67617         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
67618         loops on small arguments.  This attempts to avoid the problem
67619         Bruno Haible reported for AIX 4.3.2 in
67620         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
67621
67622 2007-02-23  Bruno Haible  <bruno@clisp.org>
67623
67624         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
67625         Needed for help2man.
67626
67627 2007-02-23  Karl Berry  <karl@gnu.org>
67628
67629         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
67630         exists, foo.h should be cvs-ignored, not committed.
67631
67632 2007-02-23  Eric Blake  <ebb9@byu.net>
67633
67634         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
67635         * lib/stat-time.h (includes): Likewise.
67636         * lib/utimecmp.c (includes): Likewise.
67637         * lib/utimens.h (includes): Likewise.
67638         * lib/getdate.y (includes): Also include "timespec.h" for use
67639         internal to the module.
67640         * modules/utimens (Depends-on): Revert yesterday's patch.
67641         * modules/nanosleep (Depends-on): Add missing dependency.
67642
67643 2007-02-22  Bruno Haible  <bruno@clisp.org>
67644
67645         * lib/glob.c: Don't include getlogin_r.h.
67646
67647 2007-02-22  Jim Meyering  <jim@meyering.net>
67648
67649         * modules/utimens (Depends-on): Add timespec, required for
67650         utimens.h's inclusion of timespec.h.
67651
67652 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
67653
67654         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
67655         long unreadable paths in GNU/Linux.  Problem reported by Andreas
67656         Schwab in
67657         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
67658         I'll try to think of a better way to fix the Solaris problem.
67659
67660         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
67661         like glibc; on Solaris 10, it fails with errno == EINVAL.
67662         POSIX says the behavior is unspecified if the first argument is NULL,
67663         so play it safe and never pass NULL to the system getcwd.
67664
67665 2007-02-21  Jim Meyering  <jim@meyering.net>
67666
67667         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
67668         of gettimeofday.  It would conflict with the one now always
67669         provided via sys_time_.h.  Reported by Matthew Woehlke, as
67670         an IRIX 6.5 build failure.
67671
67672 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
67673
67674         Minor fixups to port to Solaris 10 with Sun C 5.8.
67675         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
67676         * modules/getcwd (Depends-on): Add dirfd.
67677         * lib/putenv.c (putenv): #undef it.
67678         (rpl_putenv): New decl.
67679         (malloc, free): Include <stdlib.h> rather than prototyping separately.
67680
67681 2007-02-20  Bruno Haible  <bruno@clisp.org>
67682
67683         * modules/stdio-tests: New file.
67684         * tests/test-stdio.c: New file.
67685
67686         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
67687         (Depends-on): Add stdio.
67688         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67689         (Include): Use <stdio.h> instead of vsnprintf.h.
67690         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67691         HAVE_DECL_VSNPRINTF.
67692         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
67693
67694         * modules/snprintf (Files): Remove lib/snprintf.h.
67695         (Depends-on): Add stdio.
67696         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67697         (Include): Use <stdio.h> instead of snprintf.h.
67698         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67699         HAVE_DECL_SNPRINTF.
67700         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
67701         * lib/getaddrinfo.c: Likewise.
67702
67703         * modules/stdio: New file.
67704         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
67705         * lib/snprintf.h: Remove file.
67706         * lib/vsnprintf.h: Remove file.
67707         * lib/.cppi-disable: Remove snprintf.h.
67708         * m4/stdio_h.m4: New file.
67709         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
67710
67711 2007-02-20  Jim Meyering  <jim@meyering.net>
67712
67713         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
67714         used by e.g., mingw.  From Bruno Haible.
67715
67716 2007-02-19  Bruno Haible  <bruno@clisp.org>
67717
67718         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
67719         warnings.
67720         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67721
67722 2007-02-19  Bruno Haible  <bruno@clisp.org>
67723
67724         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
67725         from mingw users.
67726
67727 2007-02-19  Bruno Haible  <bruno@clisp.org>
67728
67729         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
67730         warnings.
67731         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
67732
67733 2007-02-19  Jim Meyering  <jim@meyering.net>
67734
67735         Don't use FD after a successful "fdopendir (fd)".
67736         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
67737         Reset it by calling dirfd on the just-obtained DIR*.
67738
67739         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
67740         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
67741
67742 2007-02-18  Bruno Haible  <bruno@clisp.org>
67743
67744         * lib/readlink.c: Include <unistd.h>.
67745         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
67746         HAVE_READLINK.
67747         * modules/readlink (Depends-on): Add unistd.
67748         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67749         (Include): Add <unistd.h>.
67750
67751         * lib/getlogin_r.h: Remove file.
67752         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
67753         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
67754         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
67755         HAVE_DECL_GETLOGIN_R.
67756         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
67757         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67758         (Include): Use <unistd.h> instead of getlogin_r.h.
67759
67760         * lib/getcwd.h: Remove file.
67761         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
67762         * lib/xgetcwd.c: Likewise.
67763         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
67764         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
67765         * modules/getcwd (Files): Remove lib/getcwd.h.
67766         (Depends-on): Add unistd.
67767         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67768         (Include): Use <unistd.h> instad of getcwd.h.
67769
67770         * lib/ftruncate.c: Include <unistd.h> first.
67771         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
67772         Set HAVE_FTRUNCATE.
67773         * modules/ftruncate (Depends-on): Add unistd.
67774         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67775
67776         * lib/fchdir.c: Include <unistd.h> first.
67777         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
67778         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
67779         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
67780         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67781         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
67782
67783         * lib/dup2.c: Include <unistd.h> first.
67784         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
67785         HAVE_DUP2.
67786         * modules/dup2 (Depends-on): Add unistd.
67787         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67788
67789         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
67790         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
67791         REPLACE_CHOWN. Don't define chown as a macro here.
67792         * modules/chown (Depends-on): Add unistd.
67793         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67794
67795         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
67796         Add definition for GL_LINK_WARNING.
67797         (chown, dup2): New declarations.
67798         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
67799         link warning.
67800         (ftruncate): New declaration.
67801         (getcwd): New declaration, taken from old getcwd.h.
67802         (getlogin_r): New declaration, taken from old getlogin_r.h.
67803         (readlink): New declaration.
67804         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
67805         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
67806         (gl_PREREQ_UNISTD): Remove macro.
67807         (gl_UNISTD_MODULE_INDICATOR): New macro.
67808         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
67809         many new variables. Don't set UNISTD_H.
67810         * modules/unistd (Description): Change.
67811         (Depends-on): Add link-warning.
67812         (configure.ac): Update.
67813         (Makefile.am): Create unistd.h always. Substitute many new variables
67814         into it.
67815
67816 2007-02-18  Bruno Haible  <bruno@clisp.org>
67817
67818         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
67819         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
67820         HAVE_GETSUBOPT.
67821         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
67822         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
67823         * lib/getsubopt.h: Remove file.
67824         * modules/getsubopt (Files): Remove lib/getsubopt.h.
67825         (Depends-on): Add stdlib.
67826         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67827         (Includes): Use <stdlib.h> instead of getsubopt.h.
67828         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
67829         Set HAVE_GETSUBOPT.
67830         * lib/getsubopt.c: Don't include getsubopt.h.
67831
67832 2007-02-18  Bruno Haible  <bruno@clisp.org>
67833
67834         * modules/fchdir (Depends-on): Add dup2.
67835
67836 2007-02-18  Bruno Haible  <bruno@clisp.org>
67837
67838         * lib/stdlib_.h: Handle glibc's special invocation convention
67839         specially.
67840
67841 2007-02-18  Bruno Haible  <bruno@clisp.org>
67842
67843         * modules/stdlib-tests: New file.
67844         * tests/test-stdlib.c: New file.
67845
67846         * modules/mkstemp (Files): Remove lib/mkstemp.h.
67847         (Depends-on): Add stdlib.
67848         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67849         (Includes): Use <stdlib.h> instead of mkstemp.h.
67850         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
67851         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
67852         * lib/mkstemp.c: Don't include mkstemp.h.
67853         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
67854         * lib/stdlib--.h: Don't include mkstemp.h.
67855
67856         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
67857         (Depends-on): Add stdlib.
67858         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67859         (Includes): Use <stdlib.h> instead of mkdtemp.h.
67860         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
67861         HAVE_MKDTEMP.
67862         * lib/mkdtemp.c: Don't include mkdtemp.h.
67863         * lib/clean-temp.c: Don't include mkdtemp.h.
67864
67865         * modules/exit (Files): Remove lib/exit.h.
67866         (Depends-on): Add stdlib.
67867         (Makefile.am): Remove lib_SOURCES.
67868         (Include): Use <stdlib.h> instead of exit.h.
67869         * lib/argmatch.c: Don't include exit.h.
67870         * lib/execute.c: Likewise.
67871         * lib/pagealign_alloc.c: Likewise.
67872         * lib/pipe.c: Likewise.
67873         * lib/wait-process.c: Likewise.
67874         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
67875         * lib/exitfail.c: Likewise.
67876         * lib/savewd.c: Likewise.
67877         * lib/xsetenv.c: Likewise.
67878
67879         * modules/stdlib: New file.
67880         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
67881         and extra comments about mkstemp().
67882         * lib/exit.h: Remove file.
67883         * lib/mkdtemp.h: Remove file.
67884         * lib/mkstemp.h: Remove file.
67885         * m4/stdlib_h.m4: New file.
67886         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
67887
67888 2007-02-18  Bruno Haible  <bruno@clisp.org>
67889
67890         * modules/math-tests: New file.
67891         * tests/test-math.c: New file.
67892
67893         * modules/math: New file.
67894         * modules/mathl (Files): Remove lib/mathl.h.
67895         (Depends-on): Add math.
67896         (Makefile.am): Don't mention mathl.h.
67897         (Include): Use <math.h> instead of mathl.h.
67898         * lib/math_.h: New file.
67899         * lib/mathl.h: Remove file.
67900         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
67901         mathl.h.
67902         * lib/asinl.c: Likewise.
67903         * lib/atanl.c: Likewise.
67904         * lib/ceill.c: Likewise.
67905         * lib/cosl.c: Likewise.
67906         * lib/expl.c: Likewise.
67907         * lib/floorl.c: Likewise.
67908         * lib/frexpl.c: Likewise.
67909         * lib/ldexpl.c: Likewise.
67910         * lib/logl.c: Likewise.
67911         * lib/sincosl.c: Likewise.
67912         * lib/sinl.c: Likewise.
67913         * lib/sqrtl.c: Likewise.
67914         * lib/tanl.c: Likewise.
67915         * lib/trigl.c: Likewise.
67916         * m4/math_h.m4: New file.
67917         * MODULES.html.sh (Mathematics): Add math.
67918
67919 2007-02-17  Bruno Haible  <bruno@clisp.org>
67920
67921         * modules/wctype-tests: New file.
67922         * tests/test-wctype.c: New file.
67923
67924         * modules/wchar-tests: New file.
67925         * tests/test-wchar.c: New file.
67926
67927         * modules/unistd-tests: New file.
67928         * tests/test-unistd.c: New file.
67929
67930         * modules/time-tests: New file.
67931         * tests/test-time.c: New file.
67932
67933         * modules/sysexits-tests: New file.
67934         * tests/test-sysexits.c: New file.
67935
67936         * modules/sys_time-tests: New file.
67937         * tests/test-sys_time.c: New file.
67938
67939         * modules/sys_stat-tests: New file.
67940         * tests/test-sys_stat.c: New file.
67941
67942         * modules/sys_socket-tests: New file.
67943         * tests/test-sys_socket.c: New file.
67944
67945         * modules/sys_select-tests: New file.
67946         * tests/test-sys_select.c: New file.
67947
67948         * modules/string-tests: New file.
67949         * tests/test-string.c: New file.
67950
67951         * modules/stdbool-tests: New file.
67952         * tests/test-stdbool.c: New file.
67953
67954         * modules/netinet_in-tests: New file.
67955         * tests/test-netinet_in.c: New file.
67956
67957         * modules/inttypes-tests: New file.
67958         * tests/test-inttypes.c: New file.
67959
67960         * modules/fcntl-tests: New file.
67961         * tests/test-fcntl.c: New file.
67962
67963         * modules/byteswap-tests: New file.
67964         * tests/test-byteswap.c: New file.
67965
67966         * modules/arpa_inet-tests: New file.
67967         * tests/test-arpa_inet.c: New file.
67968
67969 2007-02-17  Bruno Haible  <bruno@clisp.org>
67970
67971         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
67972         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
67973         if the corresponding module is not enabled. Emit link warnings if
67974         the function is used nevertheless.
67975         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
67976         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
67977         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
67978         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
67979         * modules/inttypes (Depends-on): Add link-warning.
67980         (Makefile.am): Copy the contents of build-aux/link-warning.h into
67981         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
67982         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
67983         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
67984         * modules/imaxdiv (configure.ac): Likewise.
67985         * modules/strtoimax (configure.ac): Likewise.
67986         * modules/strtoumax (configure.ac): Likewise.
67987
67988 2007-02-17  Bruno Haible  <bruno@clisp.org>
67989
67990         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
67991         gl_STRING_MODULE_INDICATOR_DEFAULTS.
67992         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
67993         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
67994
67995 2007-02-17  Bruno Haible  <bruno@clisp.org>
67996
67997         * modules/link-warning: New file.
67998         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
67999         * lib/string_.h (GL_LINK_WARNING): Remove definition.
68000         * modules/string (Depends-on): Add link-warning.
68001         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68002         string.h.
68003         * MODULES.html.sh (Support for building libraries and executables): Add
68004         link-warning.
68005
68006 2007-02-17  Bruno Haible  <bruno@clisp.org>
68007
68008         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
68009         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
68010         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
68011         long lines.
68012
68013 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
68014             Bruno Haible  <bruno@clisp.org>
68015
68016         * modules/tmpfile: New file.
68017         * lib/tmpfile.c: New file.
68018         * m4/tmpfile.m4: New file.
68019         * MODULES.html.sh (func_all_modules): New section "Input/output".
68020
68021 2007-02-15  Bruno Haible  <bruno@clisp.org>
68022
68023         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
68024         (supports_delete_on_close): New function.
68025         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
68026
68027 2007-02-14  Bruno Haible  <bruno@clisp.org>
68028
68029         * modules/mbspcasecmp-tests: New file.
68030         * tests/test-mbspcasecmp.sh: New file.
68031         * tests/test-mbspcasecmp.c: New file.
68032
68033         New module mbspcasecmp.
68034         * modules/mbspcasecmp: New file.
68035         * lib/mbspcasecmp.c: New file.
68036         * lib/string_.h (strncasecmp): Change warning message.
68037         (mbspcasecmp): New declaration.
68038         * m4/mbspcasecmp.m4: New file.
68039         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68040         GNULIB_MBSPCASECMP.
68041         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
68042         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
68043
68044 2007-02-14  Bruno Haible  <bruno@clisp.org>
68045
68046         * modules/mbsncasecmp-tests: New file.
68047         * tests/test-mbsncasecmp.sh: New file.
68048         * tests/test-mbsncasecmp.c: New file.
68049
68050         New module mbsncasecmp.
68051         * modules/mbsncasecmp: New file.
68052         * lib/mbsncasecmp.c: New file.
68053         * lib/string_.h (mbsncasecmp): New declaration.
68054         * m4/mbsncasecmp.m4: New file.
68055         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68056         GNULIB_MBSNCASECMP.
68057         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
68058         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
68059
68060 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68061
68062         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
68063         Verify that it doesn't overlap with our flags.
68064         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
68065         do not have the desired effect in multibyte locales; instead, use
68066         mbscasecmp.
68067         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
68068         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
68069         we don't require GNU fnmatch ourselves (if our users require it, they
68070         should do so explicitly).
68071
68072         Fix regex code so it doesn't rely on strcasecmp.
68073         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
68074         Otherwise, include gnulib's langinfo.h.
68075         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
68076         undesirable behavior in non-C locales.  Instead, rely on localecharset.
68077         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
68078         * modules/regex (FILES): Remove m4/codeset.m4.
68079         (Depends-on): Add localcharset.  Remove strcase.
68080
68081 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68082
68083         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
68084         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
68085
68086 2007-02-13  Bruno Haible  <bruno@clisp.org>
68087
68088         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
68089         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68090
68091 2007-02-12  Bruno Haible  <bruno@clisp.org>
68092
68093         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68094         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
68095         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
68096         time warning rather than a link error.
68097
68098 2007-02-12  Bruno Haible  <bruno@clisp.org>
68099
68100         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
68101         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
68102         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68103
68104 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68105
68106         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
68107         args, not 2.
68108
68109 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68110
68111         New module 'time', so that apps can include <time.h> as per
68112         POSIX and GNU instead of separate include files like time_r.h
68113         and timegm.h.  This implementation tries out a simpler approach
68114         for replacing decls in standard include files (as compared to
68115         the string module), somewhat as an experiment.
68116
68117         * config/srclist.txt: Comment out mktime.c for now.
68118         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
68119         since it doesn't apply any more.  Use generic wording instead.
68120         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
68121         'time'.
68122         * lib/time_.h, m4/time_h.m4, modules/time: New files.
68123         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
68124         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
68125         Don't include <sys/types.h>; no longer needed since we assume C89.
68126         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
68127         * lib/strftime.c: Likewise.
68128         * lib/time_r.c: Likewise.
68129         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
68130         * lib/nanosleep.c: Include <time.h> first, to check interface.
68131         * lib/strptime.c: Likewise.
68132         * lib/time_r.c: Likewise.
68133         * lib/timegm.c: Likewise.
68134         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
68135         needed.
68136         * lib/timegm.c: Don't include timegm.h; no longer needed.
68137         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
68138         time.h now handles any problems in that area.
68139         (struct timespec, nanosleep): Remove; time.h now arranges for these.
68140         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
68141         that time.h defines struct timespec.
68142         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
68143         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
68144         handles that.
68145         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
68146         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
68147         needed.  Set REPLACE_LOCALTIME.
68148         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
68149         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
68150         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
68151         nanosleep; time_h.m4 now does that.  Don't require
68152         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
68153         module handles this now.
68154         * modules/getdate (Depends-on): Remove timespec.  Add time.
68155         * modules/nanosleep (Depends-on): Likewise.
68156         * modules/stat-time (Depends-on): Likewise.
68157         * modules/nanosleep (Include): Include time.h, not timespec.h.
68158         * modules/strptime (Files): Remove lib/strptime.h.
68159         (Depends-on): Add extensions, time.
68160         (Include): Include time.h, not strptime.h.
68161         * modules/time_r (Files): Remove lib/time_r.h.
68162         (Depends-on): Add time.
68163         (Include): Include time.h, not time_r.h.
68164         * modules/timegm: Likewise.
68165         * modules/timespec (Description): Now does timespec-related decls
68166         of our own, instead of struct timespec itself.
68167         (Depends-on): Add time; remove extensions.
68168         (Maintainer): Add self.
68169         * modules/utimecmp (Depends-on): Add time; remove timespec.
68170         * modules/utimens (Depends-on): Likewise.
68171         * modules/xnanosleep (Depends-on): Likewise.
68172
68173 2007-02-11  Bruno Haible  <bruno@clisp.org>
68174
68175         * lib/c-strstr.c: Include allocsa.h.
68176         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68177         * lib/c-strcasestr.c: Include allocsa.h.
68178         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68179         * lib/strcasestr.c: Include allocsa.h.
68180         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68181         * lib/mbsstr.c: Include allocsa.h.
68182         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68183         allocsa/freesa instead of malloc/free.
68184         * lib/mbscasestr.c: Include allocsa.h.
68185         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68186         allocsa/freesa instead of malloc/free.
68187         * modules/c-strstr (Depends-on): Add allocsa.
68188         * modules/c-strcasestr (Depends-on): Likewise.
68189         * modules/strcasestr (Depends-on): Likewise.
68190         * modules/mbsstr (Depends-on): Likewise.
68191         * modules/mbscasestr (Depends-on): Likewise.
68192
68193 2007-02-11  Bruno Haible  <bruno@clisp.org>
68194
68195         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
68196
68197         * modules/mbsspn-tests: New file.
68198         * tests/test-mbsspn.sh: New file.
68199         * tests/test-mbsspn.c: New file.
68200
68201 2007-02-11  Bruno Haible  <bruno@clisp.org>
68202
68203         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
68204
68205         * modules/mbspbrk-tests: New file.
68206         * tests/test-mbspbrk.sh: New file.
68207         * tests/test-mbspbrk.c: New file.
68208
68209 2007-02-11  Bruno Haible  <bruno@clisp.org>
68210
68211         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
68212         unneeded cast.
68213
68214         * modules/mbscspn-tests: New file.
68215         * tests/test-mbscspn.sh: New file.
68216         * tests/test-mbscspn.c: New file.
68217
68218 2007-02-11  Bruno Haible  <bruno@clisp.org>
68219
68220         * modules/mbscasecmp-tests: New file.
68221         * tests/test-mbscasecmp.sh: New file.
68222         * tests/test-mbscasecmp.c: New file.
68223
68224 2007-02-11  Bruno Haible  <bruno@clisp.org>
68225
68226         Ensure O(n) worst-case complexity of mbscasestr.
68227         * lib/mbscasestr.c: Include stdbool.h.
68228         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68229         functions.
68230         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
68231         the bookkeeping indicates that it's worth it.
68232         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
68233
68234         * modules/mbscasestr-tests: New file.
68235         * tests/test-mbscasestr1.c: New file.
68236         * tests/test-mbscasestr2.sh: New file.
68237         * tests/test-mbscasestr2.c: New file.
68238         * tests/test-mbscasestr3.sh: New file.
68239         * tests/test-mbscasestr3.c: New file.
68240         * tests/test-mbscasestr4.sh: New file.
68241         * tests/test-mbscasestr4.c: New file.
68242         * m4/locale-tr.m4: New file.
68243
68244 2007-02-11  Bruno Haible  <bruno@clisp.org>
68245
68246         Ensure O(n) worst-case complexity of mbsstr.
68247         * lib/mbsstr.c: Include stdbool.h.
68248         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68249         functions.
68250         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
68251         bookkeeping indicates that it's worth it.
68252         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
68253
68254         * modules/mbsstr-tests: New file.
68255         * tests/test-mbsstr1.c: New file.
68256         * tests/test-mbsstr2.sh: New file.
68257         * tests/test-mbsstr2.c: New file.
68258         * tests/test-mbsstr3.sh: New file.
68259         * tests/test-mbsstr3.c: New file.
68260         * m4/locale-fr.m4: New file.
68261
68262 2007-02-11  Bruno Haible  <bruno@clisp.org>
68263
68264         * lib/mbsrchr.c (mbsrchr): Fix bug.
68265
68266         * modules/mbsrchr-tests: New file.
68267         * tests/test-mbsrchr.sh: New file.
68268         * tests/test-mbsrchr.c: New file.
68269
68270 2007-02-11  Bruno Haible  <bruno@clisp.org>
68271
68272         * lib/mbschr.c (mbschr): Fix bug.
68273
68274         * modules/mbschr-tests: New file.
68275         * tests/test-mbschr.sh: New file.
68276         * tests/test-mbschr.c: New file.
68277         * m4/locale-zh.m4: New file.
68278
68279 2007-02-11  Bruno Haible  <bruno@clisp.org>
68280
68281         Support for copying multibyte string iterators.
68282         * lib/mbiter.h: Include <string.h>.
68283         (mbiter_multi_copy): New function.
68284         (mbi_copy): New macro.
68285         * lib/mbuiter.h: Include <string.h>.
68286         (mbuiter_multi_copy): New function.
68287         (mbui_copy): New macro.
68288
68289 2007-02-11  Bruno Haible  <bruno@clisp.org>
68290
68291         New module mbslen.
68292         * modules/mbslen: New file.
68293         * lib/mbslen.c: New file.
68294         * lib/string_.h (mbslen): New declaration.
68295         * m4/mbslen.m4: New file.
68296         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68297         GNULIB_MBSLEN.
68298         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
68299         * MODULES.html.sh (Internationalization functions): Add mbslen.
68300
68301 2007-02-11  Bruno Haible  <bruno@clisp.org>
68302
68303         Ensure O(n) worst-case complexity of strcasestr substitute.
68304         * lib/strcasestr.c: Include stdbool.h.
68305         (knuth_morris_pratt): New function.
68306         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68307         bookkeeping indicates that it's worth it.
68308         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
68309
68310         * modules/strcasestr-tests: New file.
68311         * tests/test-strcasestr.c: New file.
68312
68313 2007-02-11  Bruno Haible  <bruno@clisp.org>
68314
68315         Ensure O(n) worst-case complexity of c_strcasestr.
68316         * lib/c-strcasestr.c: Include stdbool.h, string.h.
68317         (knuth_morris_pratt): New function.
68318         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
68319         the bookkeeping indicates that it's worth it.
68320         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
68321
68322         * modules/c-strcasestr-tests: New file.
68323         * tests/test-c-strcasestr.c: New file.
68324
68325 2007-02-11  Bruno Haible  <bruno@clisp.org>
68326
68327         Ensure O(n) worst-case complexity of c_strstr.
68328         * lib/c-strstr.c: Include stdbool.h, string.h.
68329         (knuth_morris_pratt): New function.
68330         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68331         bookkeeping indicates that it's worth it.
68332         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
68333
68334         * lib/c-strstr.c: Complete rewrite for maintainability.
68335
68336         * modules/c-strstr-tests: New file.
68337         * tests/test-c-strstr.c: New file.
68338
68339 2007-02-11  Bruno Haible  <bruno@clisp.org>
68340
68341         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
68342         5.2.1 and earlier, whereby \055 was treated just like the range
68343         delimiter '-'.
68344         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68345
68346 2007-02-08  Bruno Haible  <bruno@clisp.org>
68347
68348         * modules/regex (Depends-on): Add stdbool.
68349         Reported by Dalibor Topic <robilad@kaffe.org>.
68350
68351 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68352
68353         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
68354         Prefer returning from main to exiting from it.
68355         Remove unnecessary parens after sizeof.
68356
68357 2007-02-05  Bruno Haible  <bruno@clisp.org>
68358
68359         New module mbssep.
68360         * modules/mbssep: New file.
68361         * lib/mbssep.c: New file.
68362         * lib/string_.h (strsep): Add a conditional link warning.
68363         (mbssep): New declaration.
68364         * m4/mbssep.m4: New file.
68365         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68366         GNULIB_MBSSEP.
68367         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
68368         * MODULES.html.sh (Internationalization functions): Add mbssep.
68369
68370 2007-02-05  Bruno Haible  <bruno@clisp.org>
68371
68372         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
68373         Optimize search in case of 1 delimiter.
68374
68375 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68376
68377         * lib/acl.h: Include sys/types.h before sys/acl.h.
68378
68379 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68380
68381         Merge upstream fix for glibc bugzilla #3957:
68382
68383         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
68384
68385         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
68386         bit for RE_HAT_LISTS_NOT_NEWLINE.
68387         (build_charclass_op): Remove bogus comment.
68388
68389 2007-02-05  Simon Josefsson  <simon@josefsson.org>
68390
68391         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
68392
68393 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68394
68395         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
68396         * lib/memmem.c [!defined _LIBC]: Include config.h.
68397
68398 2007-02-04  Bruno Haible  <bruno@clisp.org>
68399
68400         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
68401         warning message.
68402
68403 2007-02-04  Bruno Haible  <bruno@clisp.org>
68404
68405         New module mbstok_r.
68406         * modules/mbstok_r: New file.
68407         * lib/mbstok_r.c: New file.
68408         * lib/string_.h (strtok_r): Change argument names to match the
68409         comments. Add a conditional link warning.
68410         (mbstok_r): New declaration.
68411         * m4/mbstok_r.m4: New file.
68412         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68413         GNULIB_MBSTOK_R.
68414         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
68415         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
68416
68417 2007-02-04  Bruno Haible  <bruno@clisp.org>
68418
68419         New module mbsspn.
68420         * modules/mbsspn: New file.
68421         * lib/mbsspn.c: New file.
68422         * lib/string_.h (strspn): Add a conditional link warning.
68423         (mbsspn): New declaration.
68424         * m4/mbsspn.m4: New file.
68425         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68426         GNULIB_MBSSPN.
68427         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
68428         * MODULES.html.sh (Internationalization functions): Add mbsspn.
68429
68430 2007-02-04  Bruno Haible  <bruno@clisp.org>
68431
68432         New module mbspbrk.
68433         * modules/mbspbrk: New file.
68434         * lib/mbspbrk.c: New file.
68435         * lib/string_.h (strpbrk): Add a conditional link warning.
68436         (mbspbrk): New declaration.
68437         * m4/mbspbrk.m4: New file.
68438         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68439         GNULIB_MBSPBRK.
68440         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
68441         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
68442
68443 2007-02-04  Bruno Haible  <bruno@clisp.org>
68444
68445         New module mbscspn.
68446         * modules/mbscspn: New file.
68447         * lib/mbscspn.c: New file.
68448         * lib/string_.h (strcspn): Add a conditional link warning.
68449         (mbscspn): New declaration.
68450         * m4/mbscspn.m4: New file.
68451         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68452         GNULIB_MBSCSPN.
68453         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
68454         * MODULES.html.sh (Internationalization functions): Add mbscspn.
68455
68456 2007-02-04  Bruno Haible  <bruno@clisp.org>
68457
68458         New module mbscasestr, reduced goal of strcasestr.
68459         * modules/mbscasestr: New file.
68460         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
68461         (mbscasestr): Renamed from strcasestr.
68462         * lib/strcasestr.c: Don't include mbuiter.h.
68463         (strcasestr): Remove support for multibyte locales.
68464         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
68465         Change the conditional link warning.
68466         (mbscasestr): New declaration.
68467         * m4/mbscasestr.m4: New file.
68468         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
68469         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
68470         REPLACE_STRCASESTR.
68471         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
68472         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68473         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68474         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
68475         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
68476         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68477         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
68478         (Depends-on): Remove mbuiter.
68479         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
68480
68481 2007-02-04  Bruno Haible  <bruno@clisp.org>
68482
68483         Simplify handling of strncasecmp.
68484         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
68485         the conditional link warning.
68486         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68487         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
68488         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
68489         * modules/strcase (configure.ac): Don't invoke
68490         gl_STRING_MODULE_INDICATOR.
68491         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
68492
68493 2007-02-04  Bruno Haible  <bruno@clisp.org>
68494
68495         New module mbscasecmp, reduced goal of strcasecmp.
68496         * modules/mbscasecmp: New file.
68497         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
68498         (mbscasecmp): Renamed from strcasecmp.
68499         * lib/strcasecmp.c: Don't include mbuiter.h.
68500         (strcasecmp): Remove support for multibyte locales.
68501         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
68502         Change the conditional link warning.
68503         (mbscasecmp): New declaration.
68504         * m4/mbscasecmp.m4: New file.
68505         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
68506         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
68507         REPLACE_STRCASECMP.
68508         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
68509         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68510         GNULIB_MBSCASECMP.
68511         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
68512         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
68513         * modules/strcase (Files): Remove m4/mbrtowc.m4.
68514         (Depends-on): Remove mbuiter.
68515         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
68516
68517 2007-02-04  Bruno Haible  <bruno@clisp.org>
68518
68519         New module mbsstr. Remove module strstr.
68520         * modules/mbsstr: New file.
68521         * modules/strstr: Remove file.
68522         * lib/mbsstr.c: Renamed from lib/strstr.c.
68523         (mbsstr): Renamed from strstr.
68524         * lib/string_.h (strstr): Remove declaration. Change the conditional
68525         link warning.
68526         (mbsstr): New declaration.
68527         * m4/mbsstr.m4: New file.
68528         * m4/strstr.m4: Remove file.
68529         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
68530         REPLACE_STRSTR.
68531         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
68532         Don't initialize GNULIB_STRSTR.
68533         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
68534         substitute GNULIB_STRSTR and REPLACE_STRSTR.
68535         * MODULES.html.sh (Internationalization functions): Add mbsstr.
68536         (Support for systems lacking ANSI C 89): Remove strstr.
68537
68538 2007-02-04  Bruno Haible  <bruno@clisp.org>
68539
68540         New module mbsrchr.
68541         * modules/mbsrchr: New file.
68542         * lib/mbsrchr.c: New file.
68543         * lib/string_.h (strrchr): Add a conditional link warning.
68544         (mbsrchr): New declaration.
68545         * m4/mbsrchr.m4: New file.
68546         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68547         GNULIB_MBSRCHR.
68548         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
68549         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
68550
68551 2007-02-04  Bruno Haible  <bruno@clisp.org>
68552
68553         New module mbschr.
68554         * modules/mbschr: New file.
68555         * lib/mbschr.c: New file.
68556         * lib/string_.h (strchr): Add a conditional link warning.
68557         (mbschr): New declaration.
68558         * m4/mbschr.m4: New file.
68559         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68560         GNULIB_MBSCHR.
68561         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
68562         * MODULES.html.sh (Internationalization functions): Add mbschr.
68563
68564 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68565
68566         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
68567
68568         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
68569
68570 2007-02-04  Bruno Haible  <bruno@clisp.org>
68571
68572         New module description section 'configure.ac-early'.
68573         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
68574         (func_get_autoconf_early_snippet): New function.
68575         (func_import, func_create_testdir): Use it. Remove special cases for
68576         modules 'extensions' and 'lock'.
68577         * modules/extensions (configure.ac-early): Require
68578         gl_USE_SYSTEM_EXTENSIONS.
68579         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
68580
68581 2007-02-04  Bruno Haible  <bruno@clisp.org>
68582
68583         Make use of gcj-4.3's -fsource and -ftarget option.
68584         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
68585         and if so try the options -fsource and -ftarget.
68586         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
68587         source_version, ftarget_option, target_version arguments.
68588         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
68589         (is_envjavac_oldgcj_14_14_usable): Renamed from
68590         is_envjavac_gcj_14_14_usable.
68591         (is_envjavac_oldgcj_14_13_usable): Renamed from
68592         is_envjavac_gcj_14_13_usable.
68593         (is_gcj_present): Update.
68594         (is_gcj_43, is_gcj43_usable): New functions.
68595         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
68596         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
68597         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
68598         try the options -fsource and -ftarget.
68599
68600 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68601
68602         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
68603         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
68604         larger value.
68605
68606 2007-02-03  Jim Meyering  <jim@meyering.net>
68607
68608         Give tools a better chance to allocate space for very large buffers.
68609         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
68610
68611         Make pwd and readlink work also when run with an unreadable parent dir
68612         on systems with openat support.
68613         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
68614         provided getcwd function, even when we have openat support.
68615         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
68616
68617 2007-02-02  Bruno Haible  <bruno@clisp.org>
68618
68619         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68620         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
68621         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
68622         portability problems if one of these functions is only used on specific
68623         platforms.
68624         Reported by Paul Eggert.
68625
68626 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
68627
68628         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
68629         is causing more trouble than it's curing.
68630         * lib/regex_internal.h (__mempcpy): Remove.
68631         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
68632         (and make the code a tad smaller to boot).
68633         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
68634
68635 2007-02-02  Jim Meyering  <jim@meyering.net>
68636
68637         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
68638         section, not in the Makefile.am: one.
68639
68640 2007-02-02  Eric Blake  <ebb9@byu.net>
68641
68642         * lib/strchrnul.c: Always include config.h first.
68643
68644         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
68645         gnulib strstr is not necessary here.
68646
68647 2007-02-02  Simon Josefsson  <simon@josefsson.org>
68648
68649         * m4/socklen.m4: Fix typo.
68650
68651 2007-02-02  Eric Blake  <ebb9@byu.net>
68652
68653         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
68654         * modules/netinet_in (Makefile.am): Likewise.
68655
68656 2007-02-01  Bruno Haible  <bruno@clisp.org>
68657
68658         * lib/string_.h (GL_LINK_WARNING): New macro.
68659         (strcasecmp, strstr, strcasestr): If provided by the system,
68660         conditionally define as a macro that leads to a warning instead of to
68661         an error.
68662         (strncasecmp): Conditionally define as a macro that leads to a warning.
68663
68664 2007-02-01  Karl Berry  <karl@gnu.org>
68665
68666         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
68667
68668 2007-02-01  Bruno Haible  <bruno@clisp.org>
68669
68670         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
68671         renamings.
68672
68673 2007-02-01  Eric Blake  <ebb9@byu.net>
68674
68675         * modules/regex (Depends-on): Revert dependence on mempcpy.
68676         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
68677         module's definition of mempcpy.
68678         Reported by Paul Eggert.
68679
68680 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
68681
68682         * lib/string_.h: If the gnulib module XYZ is not present, undefine
68683         the symbol XYZ before redefining it.  This fixes a problem with
68684         programs that don't use XYZ, when compiled on systems that define
68685         XYZ to something else.
68686
68687 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
68688
68689         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
68690         occurs when "mkdir -m foo" creates a setgid directory that is (1)
68691         writeable to group or other and (2) is intended to have a special
68692         mode bit that is set or cleared.  In such a case, the directory
68693         should be neither group- nor other-writeable until the special
68694         mode bits are right.
68695
68696 2007-01-31  Eric Blake  <ebb9@byu.net>
68697
68698         * modules/mountlist (Depends-on): Add strstr.
68699
68700         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
68701         bug.
68702         * modules/string (Makefile.am): Remove redundant replacement.
68703         * modules/regex (Depends-on): Add mempcpy.
68704
68705 2007-01-31  Bruno Haible  <bruno@clisp.org>
68706
68707         New module description field 'Link'.
68708         * gnulib-tool (func_usage): Document --extract-link-directive.
68709         (sed_extract_prog): Recognize 'Link' directive.
68710         (func_get_link_directive): New function.
68711         (func_import): Show summary of link directives.
68712         Handle --extract-link-directive option.
68713         * modules/acl (Link): New section.
68714         * modules/clock-time (Link): New section.
68715         * modules/euidaccess (Link): New section.
68716         * modules/gettext (Link): New section.
68717         * modules/iconv (Link): New section.
68718         * modules/lock (Link): New section.
68719         * modules/nanosleep (Link): New section.
68720         * modules/readline (Link): New section.
68721
68722 2007-01-27  Bruno Haible  <bruno@clisp.org>
68723
68724         Enforce the use of gnulib modules for unportable <string.h> functions.
68725         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
68726         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
68727         (gl_HEADER_STRING_H_BODY): Require it.
68728         * lib/string_.h: If the gnulib module XYZ is not present, redefine
68729         the symbol XYZ to one that gives a link error.
68730         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
68731         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
68732         * modules/mempcpy (configure.ac): Likewise.
68733         * modules/memrchr (configure.ac): Likewise.
68734         * modules/stpcpy (configure.ac): Likewise.
68735         * modules/stpncpy (configure.ac): Likewise.
68736         * modules/strcase (configure.ac): Likewise.
68737         * modules/strcasestr (configure.ac): Likewise.
68738         * modules/strchrnul (configure.ac): Likewise.
68739         * modules/strdup (configure.ac): Likewise.
68740         * modules/strndup (configure.ac): Likewise.
68741         * modules/strnlen (configure.ac): Likewise.
68742         * modules/strpbrk (configure.ac): Likewise.
68743         * modules/strsep (configure.ac): Likewise.
68744         * modules/strstr (configure.ac): Likewise.
68745         * modules/strtok_r (configure.ac): Likewise.
68746
68747 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
68748
68749         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
68750
68751 2007-01-30  Jim Meyering  <jim@meyering.net>
68752
68753         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
68754
68755 2007-01-29  Bruno Haible  <bruno@clisp.org>
68756
68757         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
68758         * lib/execute.c: Likewise.
68759         * lib/pipe.c: Likewise.
68760         * lib/printf-args.h: Likewise.
68761         * lib/printf-args.c: Likewise.
68762         * lib/printf-parse.c: Likewise.
68763         * lib/vasnprintf.c: Likewise.
68764
68765 2007-01-29  Eric Blake  <ebb9@byu.net>
68766
68767         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
68768         declaration.
68769
68770 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
68771
68772         * lib/strptime.h (strptime): Use 'restrict' for args where
68773         POSIX requires this.
68774         * lib/strptime.c (strptime): Likewise.
68775         Change license notice from LGPL to GPL, since gnulib-tool will
68776         change this as needed.
68777         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
68778         defined.
68779         Include "strptime.h" first, to check interface.
68780         Do not #undef _LIBC and _NL_CURRENT.
68781         Do not include <stdlib.h>; no longer needed.
68782         Include "time_r.h" and declare ptime_locale_status
68783         only if _LIBC is not defined.
68784         (__P): Remove unused macro.
68785         (match_string): Bring back glibc version, but use it only if _LIBC
68786         is defined.
68787         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
68788         Remove unnecessary assertion and abort() call.
68789         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
68790         * m4/strptime.m4: Fix serial number comment.
68791         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
68792         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
68793         (Depends-on): Add time_r.
68794
68795 2007-01-29  Bruno Haible  <bruno@clisp.org>
68796
68797         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68798         strptime.
68799         * modules/strptime (Depends-on): Add stdbool.
68800         * lib/strptime.h: Include <time.h> always. Add comments.
68801
68802 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68803
68804         * modules/strptime: New file.
68805         * lib/strptime.h: New file.
68806         * lib/strptime.c: New file.
68807         * m4/strptime.m4: New file.
68808
68809 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68810
68811         * MODULES.html.sh: New module mpsort.
68812         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
68813
68814         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
68815         a circularity problem with HP-UX ia64 reported by Bob Proulx in
68816         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
68817         All uses changed.
68818         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
68819         All uses changed.
68820         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
68821         to _Restrict_.
68822         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
68823         the parameter matches the prototype.
68824
68825 2007-01-28  Jim Meyering  <jim@meyering.net>
68826
68827         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
68828         sys/time.h here, reverting that part of the previous patch:
68829         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
68830
68831 2007-01-28  Bruno Haible  <bruno@clisp.org>
68832
68833         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
68834         value of $(SYS_TIME_H).
68835         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
68836         remove it conditionally, too. [added by Jim Meyering]
68837         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
68838         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
68839         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
68840         GETTIMEOFDAY_REPLACEMENT to 1.
68841
68842 2007-01-28  Bruno Haible  <bruno@clisp.org>
68843
68844         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
68845         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
68846         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
68847         Set UNISTD_H instead of UNISTD_H2.
68848         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
68849
68850 2007-01-28  Bruno Haible  <bruno@clisp.org>
68851
68852         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
68853         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
68854
68855 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68856
68857         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
68858         (func_create_testdir): Ensure C locale for `grep' and `tr'
68859         character ranges.
68860         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
68861         ACLOCAL_AMFLAGS parsing state machine.
68862
68863 2007-01-27  Bruno Haible  <bruno@clisp.org>
68864
68865         * modules/unistr/base: Update.
68866
68867 2007-01-27  Bruno Haible  <bruno@clisp.org>
68868
68869         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
68870         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
68871         * modules/unistr/u32-mbtouc-unsafe: Renamed from
68872         modules/unistr/u32-mbtouc.
68873         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
68874         * lib/unistr.h: Update.
68875         * lib/linebreak.c: Update.
68876         * modules/unistr/u32-mbtouc: Renamed from
68877         modules/unistr/u32-mbtouc-safe.
68878         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
68879         * lib/unistr.h: Update.
68880         * lib/unistr/u32-to-u8.c: Update.
68881         * lib/unistr/u32-to-u16.c: Update.
68882
68883 2007-01-27  Bruno Haible  <bruno@clisp.org>
68884
68885         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
68886         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
68887         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
68888         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
68889         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
68890         * modules/unistr/u16-mbtouc-unsafe: Renamed from
68891         modules/unistr/u16-mbtouc.
68892         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
68893         * lib/unistr.h: Update.
68894         * lib/linebreak.c: Update.
68895         * modules/linebreak: Update.
68896         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
68897         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
68898         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
68899         * modules/unistr/u16-mbtouc: Renamed from
68900         modules/unistr/u16-mbtouc-safe.
68901         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
68902         * lib/unistr.h: Update.
68903         * lib/unistr/u16-to-u8.c: Update.
68904         * modules/unistr/u16-to-u8: Update.
68905         * lib/unistr/u16-to-u32.c: Update.
68906         * modules/unistr/u16-to-u32: Update.
68907
68908 2007-01-27  Bruno Haible  <bruno@clisp.org>
68909
68910         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
68911         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
68912         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
68913         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
68914         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
68915         * modules/unistr/u8-mbtouc-unsafe: Renamed from
68916         modules/unistr/u8-mbtouc.
68917         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
68918         * lib/unistr.h: Update.
68919         * lib/striconveh.c: Update.
68920         * modules/striconveh: Update.
68921         * lib/linebreak.c: Update.
68922         * modules/linebreak: Update.
68923         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
68924         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
68925         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
68926         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
68927         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
68928         * lib/unistr.h: Update.
68929         * lib/striconveh.c: Update.
68930         * modules/striconveh: Update.
68931         * lib/unistr/u8-to-u16.c: Update.
68932         * modules/unistr/u8-to-u16: Update.
68933         * lib/unistr/u8-to-u32.c: Update.
68934         * modules/unistr/u8-to-u32: Update.
68935
68936 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68937
68938         Sync from Libtool.
68939         * lib/argz.c: Do not include strings.h nor memory.h, include
68940         string.h unconditionally.  Patch by Simon Josefsson.
68941
68942 2007-01-27  Bruno Haible  <bruno@clisp.org>
68943
68944         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
68945         from gl_HEADER_STRING_H_BODY.
68946         (gl_HEADER_STRING_H_BODY): Require it.
68947         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
68948         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
68949         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
68950         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
68951         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
68952         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
68953         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
68954         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
68955         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
68956         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
68957         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
68958         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
68959         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
68960         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
68961         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68962
68963 2007-01-27  Bruno Haible  <bruno@clisp.org>
68964
68965         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
68966         check_PROGRAMS into noinst_PROGRAMS.
68967         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
68968         check_PROGRAMS in this case.
68969         (func_import): Set for_test to false.
68970         (func_create_testdir): Set for_test to true.
68971
68972 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
68973             Bruno Haible  <bruno@clisp.org>
68974
68975         * modules/strcasestr (Files): Remove lib/strcasestr.h.
68976         (Depends-on): Add string.
68977         (Includes): Use <string.h> instead of strcasestr.h.
68978         * modules/string (Makefile.am): Also substitute the value of
68979         REPLACE_STRCASESTR.
68980         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
68981         assume strcasestr is declared in <string.h> not <strings.h>. Also
68982         set REPLACE_STRCASESTR.
68983         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
68984         REPLACE_STRCASESTR.
68985         * lib/strcasestr.h: Remove file.
68986         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
68987         * lib/string_.h (strcasestr): New declaration.
68988
68989 2007-01-27  Bruno Haible  <bruno@clisp.org>
68990
68991         * lib/string_.h: Use 'extern'.
68992
68993 2007-01-27  Jim Meyering  <jim@meyering.net>
68994
68995         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
68996         of set-but-not-used local, "q".
68997
68998         * lib/mempcpy.c: Include <config.h> before <string.h>.
68999         This fixes a compilation error on HP-UX, due to the system's
69000         "restrict"-using mempcpy prototype.
69001
69002 2007-01-26  Bruno Haible  <bruno@clisp.org>
69003
69004         Small optimization.
69005         * lib/javacomp.c: Include c-strstr.h.
69006          (is_envjavac_gcj): Use c_strstr instead of strstr.
69007         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
69008
69009 2007-01-26  Bruno Haible  <bruno@clisp.org>
69010
69011         * MODULES.html.sh (Unicode string functions): Add the new modules.
69012
69013         * modules/uniconv/u32-strconv-to-locale: New file.
69014         * lib/uniconv/u32-strconv-to-locale.c: New file.
69015
69016         * modules/uniconv/u16-strconv-to-locale: New file.
69017         * lib/uniconv/u16-strconv-to-locale.c: New file.
69018
69019         * modules/uniconv/u8-strconv-to-locale: New file.
69020         * lib/uniconv/u8-strconv-to-locale.c: New file.
69021
69022         * modules/uniconv/u32-strconv-from-locale: New file.
69023         * lib/uniconv/u32-strconv-from-locale.c: New file.
69024
69025         * modules/uniconv/u16-strconv-from-locale: New file.
69026         * lib/uniconv/u16-strconv-from-locale.c: New file.
69027
69028         * modules/uniconv/u8-strconv-from-locale: New file.
69029         * lib/uniconv/u8-strconv-from-locale.c: New file.
69030
69031         * modules/uniconv/u32-strconv-to-enc: New file.
69032         * lib/uniconv/u32-strconv-to-enc.c: New file.
69033         * modules/uniconv/u32-strconv-to-enc-tests: New file.
69034         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
69035
69036         * modules/uniconv/u16-strconv-to-enc: New file.
69037         * lib/uniconv/u16-strconv-to-enc.c: New file.
69038         * lib/uniconv/u-strconv-to-enc.h: New file.
69039         * modules/uniconv/u16-strconv-to-enc-tests: New file.
69040         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
69041
69042         * modules/uniconv/u8-strconv-to-enc: New file.
69043         * lib/uniconv/u8-strconv-to-enc.c: New file.
69044         * modules/uniconv/u8-strconv-to-enc-tests: New file.
69045         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
69046
69047         * modules/uniconv/u32-strconv-from-enc: New file.
69048         * lib/uniconv/u32-strconv-from-enc.c: New file.
69049         * modules/uniconv/u32-strconv-from-enc-tests: New file.
69050         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
69051
69052         * modules/uniconv/u16-strconv-from-enc: New file.
69053         * lib/uniconv/u16-strconv-from-enc.c: New file.
69054         * modules/uniconv/u16-strconv-from-enc-tests: New file.
69055         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
69056
69057         * modules/uniconv/u8-strconv-from-enc: New file.
69058         * lib/uniconv/u8-strconv-from-enc.c: New file.
69059         * lib/uniconv/u-strconv-from-enc.h: New file.
69060         * modules/uniconv/u8-strconv-from-enc-tests: New file.
69061         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
69062
69063         * modules/uniconv/u32-conv-from-enc: New file.
69064         * lib/uniconv/u32-conv-from-enc.c: New file.
69065         * modules/uniconv/u32-conv-from-enc-tests: New file.
69066         * tests/uniconv/test-u32-conv-from-enc.c: New file.
69067
69068         * modules/uniconv/u16-conv-from-enc: New file.
69069         * lib/uniconv/u16-conv-from-enc.c: New file.
69070         * lib/uniconv/u-conv-from-enc.h: New file.
69071         * modules/uniconv/u16-conv-from-enc-tests: New file.
69072         * tests/uniconv/test-u16-conv-from-enc.c: New file.
69073
69074         * modules/uniconv/u8-conv-from-enc: New file.
69075         * lib/uniconv/u8-conv-from-enc.c: New file.
69076         * modules/uniconv/u8-conv-from-enc-tests: New file.
69077         * tests/uniconv/test-u8-conv-from-enc.c: New file.
69078
69079         * modules/uniconv/base: New file.
69080         * lib/uniconv.h: New file.
69081
69082 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69083
69084         * doc/gnulib-tool.texi (Initial import): Update to match current
69085         behavior with strdup module.
69086         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
69087         * lib/memmem.h: Remove; all uses removed.  This is now done
69088         by <string.h>.
69089         * lib/mempcpy.h: Likewise.
69090         * lib/memrchr.h: Likewise.
69091         * lib/stpcpy.h: Likewise.
69092         * lib/stpncpy.h: Likewise.
69093         * lib/strcase.h: Likewise.
69094         * lib/strchrnul.h: Likewise.
69095         * lib/strdup.h: Likewise.
69096         * lib/strndup.h: Likewise.
69097         * lib/strnlen.h: Likewise.
69098         * lib/strpbrk.h: Likewise.
69099         * lib/strsep.h: Likewise.
69100         * lib/strstr.h: Likewise.
69101         * lib/strtok_r.h: Likewise.
69102         * lib/string_.h: New file.
69103         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
69104         Rely on <string.h> instead.
69105         * lib/canon-host.c: Likewise.
69106         * lib/chdir-long.c: Likewise.
69107         * lib/concatpath.c: Likewise.
69108         * lib/exclude.c: Likewise.
69109         * lib/fchdir.c: Likewise.
69110         * lib/getaddrinfo.c: Likewise.
69111         * lib/getcwd.c: Likewise.
69112         * lib/getsubopt.c: Likewise.
69113         * lib/glob.c: Likewise.
69114         * lib/hard-locale.c: Likewise.
69115         * lib/iconvme.c: Likewise.
69116         * lib/javacomp.c: Likewise.
69117         * lib/mempcpy.c: Likewise.
69118         * lib/memrchr.c: Likewise.
69119         * lib/regex_internal.h: Likewise.
69120         * lib/stpncpy.c: Likewise.
69121         * lib/strcasecmp.c: Likewise.
69122         * lib/strchrnul.c: Likewise.
69123         * lib/strdup.c: Likewise.
69124         * lib/striconv.c: Likewise.
69125         * lib/striconveh.c: Likewise.
69126         * lib/striconveha.c: Likewise.
69127         * lib/strncasecmp.c: Likewise.
69128         * lib/strndup.c: Likewise.
69129         * lib/strnlen.c: Likewise.
69130         * lib/strsep.c: Likewise.
69131         * lib/strstr.c: Likewise.
69132         * lib/strtok_r.c: Likewise.
69133         * lib/userspec.c: Likewise.
69134         * lib/w32spawn.h: Likewise.
69135         * lib/xstrndup.c: Likewise.
69136         * lib/mountlist.c (strstr): Remove decl.
69137         * m4/string_h.m4: New file.
69138         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
69139         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
69140         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
69141         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
69142         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
69143         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
69144         Set REPLACE_STRCASECMP if necessary.
69145         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
69146         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
69147         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
69148         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
69149         HAVE_DECL_STRDUP if necessary.
69150         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
69151         since gl_FUNC_STRNDUP does that now.
69152         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
69153         Check for decl here...
69154         (gl_PREREQ_STRNLEN): ... not here.
69155         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
69156         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
69157         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
69158         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
69159         necessary.
69160         * modules/string: New file.
69161         * modules/memmem (Files): Remove special-purpose include file.
69162         (Depends-on): Add string.
69163         (Include): Include <string.h>, not the removed file.
69164         * modules/mempcpy: Likewise.
69165         * modules/memrchr: Likewise.
69166         * modules/stpcpy: Likewise.
69167         * modules/stpncpy: Likewise.
69168         * modules/strcase: Likewise.
69169         * modules/strchrnul: Likewise.
69170         * modules/strdup: Likewise.
69171         * modules/strndup: Likewise.
69172         * modules/strnlen: Likewise.
69173         * modules/strpbrk: Likewise.
69174         * modules/strsep: Likewise.
69175         * modules/strstr: Likewise.
69176         * modules/strtok_r: Likewise.
69177         * tests/test-dirname.c: Don't include "strdup.h", since
69178         <string.h> now suffices.
69179         * tests/test-memmem.c: Don't include "memmem.h", since
69180         <string.h> now suffices.
69181
69182 2007-01-25  Bruno Haible  <bruno@clisp.org>
69183
69184         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
69185         *resultp is 0.
69186
69187         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
69188         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
69189         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
69190         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
69191
69192         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
69193         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
69194         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
69195         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
69196         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
69197         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
69198
69199 2007-01-24  Bruno Haible  <bruno@clisp.org>
69200
69201         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
69202         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
69203         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
69204         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
69205         gl_FUNC_FTS_CORE.
69206         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
69207         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
69208         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69209         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
69210         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
69211         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
69212         gl_FUNC_FCHOWNAT.
69213         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
69214         gl_FUNC_STRFTIME.
69215         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
69216         Reported by Ralf Wildenhues.
69217
69218 2007-01-24  Bruno Haible  <bruno@clisp.org>
69219
69220         Drop AC_REQUIRE calls that are redundant with the module dependencies.
69221         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
69222         gl_GETADDRINFO.
69223         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
69224         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
69225         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
69226
69227 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
69228
69229         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
69230         Don't use 'exit'; just return from 'main'.
69231         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
69232
69233         * lib/fnmatch_.h: Readjust white space and comments to match
69234         glibc, to avoid spurious diffs.
69235
69236 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69237
69238         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
69239         2004-12-01 change by Jakub Jelinek, since this code won't compile
69240         if !LIBC.  Problem reported by Bob Proulx.
69241
69242 2007-01-23  Bruno Haible  <bruno@clisp.org>
69243
69244         * lib/striconveh.c: Include c-strcaseeq.h.
69245         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
69246         * modules/striconveh (Depends-on): Add c-strcaseeq.
69247
69248 2007-01-23  Bruno Haible  <bruno@clisp.org>
69249
69250         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
69251
69252         * modules/c-strcaseeq: New file.
69253         * lib/c-strcaseeq.h: New file.
69254
69255         * modules/streq: New file.
69256         * lib/streq.h: New file.
69257
69258 2007-01-23  Bruno Haible  <bruno@clisp.org>
69259
69260         * modules/striconveha-tests: New file.
69261         * tests/test-striconveha.c: New file.
69262
69263         * lib/striconveha.h: Include <stdbool.h>.
69264         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
69265         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
69266         (mem_iconveha_notranslit): Renamed from mem_iconveha.
69267         (mem_iconveha): New function.
69268         (str_iconveha_notranslit): Renamed from str_iconveha.
69269         (str_iconveha): New function.
69270         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
69271         c-strcase.
69272
69273 2007-01-23  Bruno Haible  <bruno@clisp.org>
69274
69275         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
69276         encodings without forgiving before trying any encoding with handler.
69277         (str_iconveha): Try all encodings without forgiving before trying any
69278         encoding with handler.
69279
69280 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69281
69282         Import the following changes from libc.
69283
69284         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
69285
69286         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
69287
69288         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69289
69290         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
69291         normal_bracket label.
69292
69293         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
69294
69295         [BZ #361]
69296         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
69297         to normal_bracket after fetching the next character.
69298
69299 2007-01-22  Bruno Haible  <bruno@clisp.org>
69300
69301         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
69302         argument.
69303         * lib/striconveh.c (iconv_carefully_1): New function.
69304         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
69305         argument.
69306         (str_cd_iconveh): Update.
69307         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
69308         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
69309         * tests/test-striconveh.c (MAGIC): New macro.
69310         (new_offsets): New function.
69311         (main): Test call with and without offsets.
69312
69313 2007-01-22  Bruno Haible  <bruno@clisp.org>
69314
69315         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
69316         * modules/sys_select (Makefile.am): Likewise.
69317         * modules/sys_socket (Makefile.am): Likewise.
69318         * modules/sys_time (Makefile.am): Likewise.
69319
69320 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69321
69322         * modules/gettimeofday (License): Change from GPL to LGPL, since
69323         gettimeofday is a library function.
69324
69325 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69326
69327         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
69328
69329 2007-01-21  Bruno Haible  <bruno@clisp.org>
69330
69331         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
69332
69333 2007-01-21  Bruno Haible  <bruno@clisp.org>
69334
69335         * modules/striconveha: New file.
69336         * lib/striconveha.h: New file.
69337         * lib/striconveha.c: New file.
69338         * MODULES.html.sh (Internationalization functions): Add striconveha.
69339         * lib/striconv.c (str_iconv): Optimize the case of an empty input
69340         string.
69341         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
69342
69343 2007-01-21  Bruno Haible  <bruno@clisp.org>
69344
69345         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
69346         * lib/striconveh.c (str_iconveh): Likewise.
69347
69348 2007-01-21  Bruno Haible  <bruno@clisp.org>
69349
69350         * lib/striconveh.h (mem_iconveh): New declaration.
69351         * lib/striconveh.c (mem_iconveh): New function.
69352         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
69353
69354 2007-01-21  Bruno Haible  <bruno@clisp.org>
69355
69356         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
69357
69358         * lib/striconveh.h (mem_cd_iconveh): Change specification.
69359         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
69360         original result buffer.
69361         (str_cd_iconveh): Update.
69362         * tests/test-striconveh.c (main): Update.
69363
69364         * lib/striconv.h (mem_cd_iconv): Change specification.
69365         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
69366         result buffer.
69367         (str_cd_iconv): Update.
69368         * tests/test-striconv.c (main): Update.
69369
69370 2007-01-21  Bruno Haible  <bruno@clisp.org>
69371
69372         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
69373
69374 2007-01-20  Jim Meyering  <jim@meyering.net>
69375
69376         * lib/userspec.c (parse_with_separator): If a user or group string
69377         starts with "+", skip the corresponding name-to-ID look-up, since
69378         such a look-up must fail: user and group names may not include "+".
69379
69380 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69381
69382         * lib/poll.c: Include sys/time.h and time.h unconditionally,
69383         since we now assume the sys_time module.
69384         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
69385         check for sys/time.h; no longer needed.
69386         * modules/poll (Depends-on): Depend on sys_time.
69387
69388 2007-01-18  Bruno Haible  <bruno@clisp.org>
69389
69390         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
69391         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69392
69393         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
69394         gettimeofday.
69395
69396         * tests/test-gettimeofday.c: Include <time.h>.
69397         (dummy): Remove variable.
69398
69399         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
69400         gl_HEADER_SYS_TIME_H.
69401         (gl_HEADER_SYS_TIME_H): New macro.
69402
69403         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
69404         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69405         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
69406         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
69407         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69408         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
69409         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
69410         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69411         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
69412         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
69413         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69414
69415         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
69416         last change; it caused a compilation error when cross-compiling to
69417         Cygwin.
69418
69419 2007-01-18  Jim Meyering  <jim@meyering.net>
69420
69421         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
69422         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
69423         than the race-prone "test -d sys || mkdir sys".
69424         (configure.ac): Use AC_PROG_MKDIR_P.
69425         * modules/sys_select: Likewise.
69426         * modules/sys_socket: Likewise.
69427         * modules/sys_time: Likewise.
69428
69429 2007-01-18  Eric Blake  <ebb9@byu.net>
69430
69431         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
69432         replace gettimeofday.
69433         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
69434         name, to avoid infinite recursion.
69435
69436 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
69437
69438         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
69439         module sys_time.
69440         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
69441         assume timespec.h defines struct timeval.
69442         * lib/settime.c: Likewise.
69443         * lib/utimens.c: Likewise.
69444         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
69445         since we now assume the gettimeofday module.
69446         * lib/tempname.c (__gen_tempname): Likewise.
69447         * lib/gettimeofday.h: Remove.
69448         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
69449         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
69450         Include <time.h>, for 'time()'.
69451         (localtime_buffer_addr): Also use this workaround if
69452         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
69453         to simplify the uses.  All uses changed.
69454         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
69455         that #undef is inside {}, and 'const' follows type name consistently.
69456         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
69457         (gettimeofday): Do not use the maximum possible value for
69458         tv->tv_usec, since that might break usages other than ls.c.
69459         Instead, we'll leave ls.c alone.  This undoes today's patch
69460         by Bruno.  Add a compile-time warning for 1s-clock resolution;
69461         we've never observed the problem but might as well keep the
69462         canary.
69463         * lib/nanosleep.c: Include timespec.h first, for interface check.
69464         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
69465         now assume the sys_time module.
69466         * lib/tempname.c: Likewise.
69467         * lib/timespec.h: Likewise.
69468         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
69469         needed.
69470         * lib/strftime.c: Likewise.
69471         * lib/timespec.h: Likewise.
69472         * lib/posixtm.c: Include posixtm.h first, for interface check.
69473         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
69474         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
69475         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
69476         * lib/sys_time_.h: New file.
69477         * lib/timespec.h (struct timespec): Use long int, not long.
69478         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69479         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
69480         Remove obsolescent call to AC_HEADER_TIME.
69481         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
69482         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69483         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69484         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
69485         Likewise.
69486         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
69487         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
69488         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
69489         into the sys_time module.  Check for gettimeofday just once.
69490         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
69491         for gettimeofday signature to just check the signature.  Merely
69492         compile it, since linking doesn't test signature.  Improve test for
69493         whether gettimeofday.o is actually needed.
69494         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
69495         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
69496         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
69497         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69498         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
69499         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
69500         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
69501         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
69502         than worrying about sys/time.h.
69503         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69504         Don't bother worrying about TIME_WITH_SYS_TIME.
69505         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
69506         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
69507         * m4/sys_time_h.m4: New file.
69508         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
69509         Don't include sys/time.h.  Return from main rather than exiting.
69510         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
69511         all uses changed.
69512         * modules/gethrxtime (Depends-on): Add sys_time.
69513         * modules/gettime (Depends-on): Likewise.
69514         * modules/gettimeofday (Depends-on): Likewise.
69515         * modules/nanosleep (Depends-on): Likewise.
69516         * modules/settime (Depends-on): Likewise.
69517         * modules/tempname (Depends-on): Likewise.
69518         * modules/utimens (Depends-on): Likewise.
69519         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
69520         (Include): Change back to <sys/time.h>.
69521         (Maintainer): Add self.
69522         * modules/sys_time: New file.
69523         * modules/tempname (Depends-on): Add gettimeofday.
69524         * tests/test-gettimeofday.c: Include <sys/time.h>
69525         rather than gettimeofday.h.
69526
69527 2007-01-17  Bruno Haible  <bruno@clisp.org>
69528
69529         * gnulib-tool (func_get_license): Revert last patch. Instead, let
69530         the license default to GPL.
69531         (func_create_testdir): Don't complain if a module is LGPL and its
69532         tests module depends on GPLed modules.
69533
69534 2007-01-17  Bruno Haible  <bruno@clisp.org>
69535
69536         * lib/gettimeofday.c (gettimeofday): Add code for the case
69537         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
69538         maximum possible value for tv->tv_usec, rather than the minimum one.
69539
69540 2005-10-08  Martin Lambers  <marlam@marlam.de>
69541 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
69542 2007-01-16  Bruno Haible  <bruno@clisp.org>
69543
69544         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
69545         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
69546         gl_FUNC_GETTIMEOFDAY.
69547         (Include): Add gettimeofday.h.
69548         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
69549         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
69550         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
69551         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
69552         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
69553         * lib/gettimeofday.h: New file.
69554         * lib/gettimeofday.c: Include <sys/timeb.h>.
69555         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
69556         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69557         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
69558         fall back on time().
69559
69560         * tests/test-gettimeofday.c: New file.
69561         * modules/gettimeofday-tests: New file.
69562
69563 2007-01-16  Eric Blake  <ebb9@byu.net>
69564
69565         * modules/fnmatch (Depends-on): Depend on wchar.
69566         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
69567         * m4/fnmatch.m4: Likewise.
69568         * modules/mbchar (Makefile.am): Assume <wchar.h>.
69569         * m4/mbchar.m4: Likewise.
69570         * modules/mbswidth (Depends-on): Depend on wchar.
69571         * lib/mbswidth.c: Assume <wchar.h>.
69572         * m4/mbswidth.m4: Likewise.
69573         * modules/quotearg (Depends-on): Depend on wchar.
69574         * lib/quotearg.c: Assume <wchar.h>.
69575         * m4/quotearg.m4: Likewise.
69576         * modules/regex (Depends-on): Depend on wchar.
69577         * lib/regex_internal.h: Assume <wchar.h>.
69578         * m4/regex.m4: Likewise.
69579         * modules/stdint (Depends-on): Depend on wchar.
69580         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
69581         * m4/stdint.m4: Likewise.
69582         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
69583         * modules/strftime (Depends-on): Depend on wchar.
69584         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
69585         * modules/strtol (Depends-on): Depend on wchar.
69586         * lib/strtol.c: Assume <wchar.h>.
69587         * modules/wcwidth (Depends-on): Depend on wchar.
69588         * lib/wcwidth.h: Assume <wchar.h>.
69589         * m4/wcwidth.m4: Likewise.
69590
69591 2007-01-16  Bruno Haible  <bruno@clisp.org>
69592
69593         * modules/csharpexec-script: New, created from...
69594         * modules/csharpexec: ... this.
69595
69596 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
69597
69598         * modules/javaexec-script: New, created from...
69599         * modules/javaexec: ... this.
69600
69601 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69602
69603         * modules/poll (Dependencies): Add sys_select.
69604
69605 2007-01-15  Jim Meyering  <jim@meyering.net>
69606
69607         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
69608         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
69609         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
69610         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
69611
69612 2007-01-15  Bruno Haible  <bruno@clisp.org>
69613
69614         * modules/striconveh: New file.
69615         * lib/striconveh.h: New file.
69616         * lib/striconveh.c: New file.
69617         * MODULES.html.sh (Internationalization functions): Add striconveh.
69618
69619         * modules/striconveh-tests: New file.
69620         * tests/test-striconveh.c: New file.
69621
69622 2007-01-15  Bruno Haible  <bruno@clisp.org>
69623
69624         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
69625         not from GNU libiconv or GNU libc.
69626
69627 2007-01-15  Bruno Haible  <bruno@clisp.org>
69628
69629         * doc/gnulib-intro.texi (Copyright): Explain the different license
69630         terms for module descriptions, autoconf macros, tests, documentation.
69631
69632 2007-01-14  Bruno Haible  <bruno@clisp.org>
69633
69634         * modules/striconv-tests: New file.
69635         * tests/test-striconv.c: New file.
69636
69637 2007-01-14  Bruno Haible  <bruno@clisp.org>
69638
69639         * modules/iconv-tests: New file.
69640         * tests/test-iconv.c: New file.
69641
69642 2007-01-14  Bruno Haible  <bruno@clisp.org>
69643
69644         * gnulib-tool (func_get_license): For test modules, use the license of
69645         the main module.
69646
69647 2007-01-14  Bruno Haible  <bruno@clisp.org>
69648
69649         * modules/iconv (Include): Clarify that <iconv.h> can only be included
69650         if iconv is found to exist.
69651
69652 2007-01-14  Bruno Haible  <bruno@clisp.org>
69653
69654         * modules/c-ctype-tests: New file.
69655         * tests/test-c-ctype.c: New file.
69656
69657 2007-01-14  Bruno Haible  <bruno@clisp.org>
69658
69659         * modules/binary-io-tests: New file.
69660         * tests/test-binary-io.sh: New file.
69661         * tests/test-binary-io.c: New file.
69662
69663 2007-01-14  Bruno Haible  <bruno@clisp.org>
69664
69665         * modules/array-oset-tests: New file.
69666         * tests/test-array_oset.c: New file.
69667
69668 2007-01-14  Bruno Haible  <bruno@clisp.org>
69669
69670         * modules/array-list-tests: New file.
69671         * tests/test-array_list.c: New file.
69672
69673 2007-01-14  Bruno Haible  <bruno@clisp.org>
69674
69675         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
69676         and make.
69677         Reported by Simon Josefsson in
69678         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
69679
69680 2007-01-14  Bruno Haible  <bruno@clisp.org>
69681
69682         * modules/allocsa-tests: New file.
69683         * tests/test-allocsa.c: New file.
69684
69685 2007-01-14  Bruno Haible  <bruno@clisp.org>
69686
69687         * modules/fchdir (Depends-on): Add absolute-header.
69688         * modules/unistd (Depends-on): Likewise.
69689
69690 2006-12-30  Bruno Haible  <bruno@clisp.org>
69691
69692         * modules/fchdir: New file.
69693         * modules/unistd (Files): Add lib/unistd_.h.
69694         (Makefile.am): Generate unistd.h from unistd_.h.
69695         * lib/fchdir.c: New file.
69696         * lib/dirent_.h: New file.
69697         * lib/unistd_.h: New file.
69698         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
69699         * m4/fchdir.m4: New file.
69700         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
69701         (gl_HEADER_UNISTD): Invoke it.
69702         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
69703         function.
69704         * lib/backupfile.c (opendir, closedir): Undefine.
69705         * lib/chown.c (open, close): Undefine.
69706         * lib/clean-temp.c (open, close): Undefine.
69707         * lib/copy-file.c (open, close): Undefine.
69708         * lib/execute.c (open, close): Undefine.
69709         * lib/fsusage.c (open, close): Undefine.
69710         * lib/gc-gnulib.c (open, close): Undefine.
69711         * lib/getcwd.c (opendir, closedir): Undefine.
69712         * lib/glob.c (opendir, closedir): Undefine.
69713         * lib/javacomp.c (open, close): Undefine.
69714         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
69715         * lib/openat-proc.c (open, close): Undefine.
69716         * lib/pagealign_alloc.c (open, close): Undefine.
69717         * lib/pipe.c (open, close): Undefine.
69718         * lib/progreloc.c (open, close): Undefine.
69719         * lib/savedir.c (opendir, closedir): Undefine.
69720         * lib/utime.c (open, close): Undefine.
69721         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
69722
69723 2007-01-10  Bruno Haible  <bruno@clisp.org>
69724
69725         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
69726
69727 2007-01-12  Eric Blake  <ebb9@byu.net>
69728
69729         Provide a robust <wchar.h>.  Further simplifications are now
69730         possible in other modules, but not included here.
69731         * modules/wchar: New module.
69732         * m4/wchar.m4: New file.
69733         * lib/wchar_.h: Likewise.
69734         * modules/mbchar (Depends-on): Depend on wchar, as the first use
69735         of the new module.
69736         * MODULES.html.sh (Extended multibyte and wide character utilities):
69737         New section.
69738
69739 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
69740
69741         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
69742         to a reasonable default for memory allocation.
69743         (xreadlink): Don't allocate a huge buffer, to work around a buggy
69744         file system that reports garbage st_size values for symlinks.
69745         Problem reported by Liyang Hu.
69746
69747 2007-01-11  Simon Josefsson  <simon@josefsson.org>
69748
69749         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
69750         Emacs .#* auto-save files).
69751
69752 2007-01-11  Bruno Haible  <bruno@clisp.org>
69753
69754         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
69755         directory.
69756
69757 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69758
69759         Use @...@ consistently in lib/wctype_.h.
69760         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
69761         on it being set to 1 or 0.
69762         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
69763         go back to AC_SUBSTing it.
69764         * modules/wctype (Makefile.am): Undo previous change.
69765
69766 2007-01-10  Eric Blake  <ebb9@byu.net>
69767
69768         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
69769         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
69770         * modules/wctype (Makefile.am): Likewise.
69771         Reported by Chris McGuire.
69772
69773 2007-01-10  Jim Meyering  <jim@meyering.net>
69774
69775         fts.c: a small readability/maintainability improvement
69776         * lib/fts.c (fts_read): Make this code slightly more readable and
69777         maintainable by hoisting the "sp->fts_cur = p" assignments to
69778         immediately follow the statements that set P.  Derived from
69779         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
69780
69781 2007-01-10  Eric Blake  <ebb9@byu.net>
69782
69783         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
69784         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
69785         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
69786         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
69787         Reported by Chris McGuire.
69788
69789 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69790
69791         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
69792         in sed script.
69793
69794 2007-01-09  Bruno Haible  <bruno@clisp.org>
69795
69796         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
69797         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
69798         variables.
69799         (func_module): Use them.
69800
69801 2007-01-09  Bruno Haible  <bruno@clisp.org>
69802
69803         * modules/unistr/base: New file.
69804         * lib/unistr.h: New file.
69805
69806         * modules/unistr/u8-to-u16: New file.
69807         * lib/unistr/u8-to-u16.c: New file.
69808
69809         * modules/unistr/u8-to-u32: New file.
69810         * lib/unistr/u8-to-u32.c: New file.
69811
69812         * modules/unistr/u16-to-u8: New file.
69813         * lib/unistr/u16-to-u8.c: New file.
69814
69815         * modules/unistr/u16-to-u32: New file.
69816         * lib/unistr/u16-to-u32.c: New file.
69817
69818         * modules/unistr/u32-to-u8: New file.
69819         * lib/unistr/u32-to-u8.c: New file.
69820
69821         * modules/unistr/u32-to-u16: New file.
69822         * lib/unistr/u32-to-u16.c: New file.
69823
69824         * modules/unistr/u8-check: New file.
69825         * modules/unistr/u16-check: New file.
69826         * modules/unistr/u32-check: New file.
69827         * lib/unistr/u8-check.c: New file.
69828         * lib/unistr/u16-check.c: New file.
69829         * lib/unistr/u32-check.c: New file.
69830
69831         * modules/unistr/u8-chr: New file.
69832         * modules/unistr/u16-chr: New file.
69833         * modules/unistr/u32-chr: New file.
69834         * lib/unistr/u8-chr.c: New file.
69835         * lib/unistr/u16-chr.c: New file.
69836         * lib/unistr/u32-chr.c: New file.
69837
69838         * modules/unistr/u8-cmp: New file.
69839         * modules/unistr/u16-cmp: New file.
69840         * modules/unistr/u32-cmp: New file.
69841         * lib/unistr/u8-cmp.c: New file.
69842         * lib/unistr/u16-cmp.c: New file.
69843         * lib/unistr/u32-cmp.c: New file.
69844
69845         * modules/unistr/u8-cpy: New file.
69846         * modules/unistr/u16-cpy: New file.
69847         * modules/unistr/u32-cpy: New file.
69848         * lib/unistr/u8-cpy.c: New file.
69849         * lib/unistr/u16-cpy.c: New file.
69850         * lib/unistr/u32-cpy.c: New file.
69851         * lib/unistr/u-cpy.h: New file.
69852
69853         * modules/unistr/u8-cpy-alloc: New file.
69854         * modules/unistr/u16-cpy-alloc: New file.
69855         * modules/unistr/u32-cpy-alloc: New file.
69856         * lib/unistr/u8-cpy-alloc.c: New file.
69857         * lib/unistr/u16-cpy-alloc.c: New file.
69858         * lib/unistr/u32-cpy-alloc.c: New file.
69859         * lib/unistr/u-cpy-alloc.h: New file.
69860
69861         * modules/unistr/u8-endswith: New file.
69862         * modules/unistr/u16-endswith: New file.
69863         * modules/unistr/u32-endswith: New file.
69864         * lib/unistr/u8-endswith.c: New file.
69865         * lib/unistr/u16-endswith.c: New file.
69866         * lib/unistr/u32-endswith.c: New file.
69867         * lib/unistr/u-endswith.h: New file.
69868
69869         * modules/unistr/u8-mblen: New file.
69870         * modules/unistr/u16-mblen: New file.
69871         * modules/unistr/u32-mblen: New file.
69872         * lib/unistr/u8-mblen.c: New file.
69873         * lib/unistr/u16-mblen.c: New file.
69874         * lib/unistr/u32-mblen.c: New file.
69875
69876         * modules/unistr/u8-mbtouc: New file.
69877         * modules/unistr/u16-mbtouc: New file.
69878         * modules/unistr/u32-mbtouc: New file.
69879         * lib/unistr/u8-mbtouc.c: New file.
69880         * lib/unistr/u16-mbtouc.c: New file.
69881         * lib/unistr/u32-mbtouc.c: New file.
69882
69883         * modules/unistr/u8-mbtouc-safe: New file.
69884         * modules/unistr/u16-mbtouc-safe: New file.
69885         * modules/unistr/u32-mbtouc-safe: New file.
69886         * lib/unistr/u8-mbtouc-safe.c: New file.
69887         * lib/unistr/u16-mbtouc-safe.c: New file.
69888         * lib/unistr/u32-mbtouc-safe.c: New file.
69889
69890         * modules/unistr/u8-move: New file.
69891         * modules/unistr/u16-move: New file.
69892         * modules/unistr/u32-move: New file.
69893         * lib/unistr/u8-move.c: New file.
69894         * lib/unistr/u16-move.c: New file.
69895         * lib/unistr/u32-move.c: New file.
69896         * lib/unistr/u-move.h: New file.
69897
69898         * modules/unistr/u8-next: New file.
69899         * modules/unistr/u16-next: New file.
69900         * modules/unistr/u32-next: New file.
69901         * lib/unistr/u8-next.c: New file.
69902         * lib/unistr/u16-next.c: New file.
69903         * lib/unistr/u32-next.c: New file.
69904
69905         * modules/unistr/u8-prev: New file.
69906         * modules/unistr/u16-prev: New file.
69907         * modules/unistr/u32-prev: New file.
69908         * lib/unistr/u8-prev.c: New file.
69909         * lib/unistr/u16-prev.c: New file.
69910         * lib/unistr/u32-prev.c: New file.
69911
69912         * modules/unistr/u8-set: New file.
69913         * modules/unistr/u16-set: New file.
69914         * modules/unistr/u32-set: New file.
69915         * lib/unistr/u8-set.c: New file.
69916         * lib/unistr/u16-set.c: New file.
69917         * lib/unistr/u32-set.c: New file.
69918         * lib/unistr/u-set.h: New file.
69919
69920         * modules/unistr/u8-startswith: New file.
69921         * modules/unistr/u16-startswith: New file.
69922         * modules/unistr/u32-startswith: New file.
69923         * lib/unistr/u8-startswith.c: New file.
69924         * lib/unistr/u16-startswith.c: New file.
69925         * lib/unistr/u32-startswith.c: New file.
69926         * lib/unistr/u-startswith.h: New file.
69927
69928         * modules/unistr/u8-stpcpy: New file.
69929         * modules/unistr/u16-stpcpy: New file.
69930         * modules/unistr/u32-stpcpy: New file.
69931         * lib/unistr/u8-stpcpy.c: New file.
69932         * lib/unistr/u16-stpcpy.c: New file.
69933         * lib/unistr/u32-stpcpy.c: New file.
69934         * lib/unistr/u-stpcpy.h: New file.
69935
69936         * modules/unistr/u8-stpncpy: New file.
69937         * modules/unistr/u16-stpncpy: New file.
69938         * modules/unistr/u32-stpncpy: New file.
69939         * lib/unistr/u8-stpncpy.c: New file.
69940         * lib/unistr/u16-stpncpy.c: New file.
69941         * lib/unistr/u32-stpncpy.c: New file.
69942         * lib/unistr/u-stpncpy.h: New file.
69943
69944         * modules/unistr/u8-strcat: New file.
69945         * modules/unistr/u16-strcat: New file.
69946         * modules/unistr/u32-strcat: New file.
69947         * lib/unistr/u8-strcat.c: New file.
69948         * lib/unistr/u16-strcat.c: New file.
69949         * lib/unistr/u32-strcat.c: New file.
69950         * lib/unistr/u-strcat.h: New file.
69951
69952         * modules/unistr/u8-strchr: New file.
69953         * modules/unistr/u16-strchr: New file.
69954         * modules/unistr/u32-strchr: New file.
69955         * lib/unistr/u8-strchr.c: New file.
69956         * lib/unistr/u16-strchr.c: New file.
69957         * lib/unistr/u32-strchr.c: New file.
69958
69959         * modules/unistr/u8-strcmp: New file.
69960         * modules/unistr/u16-strcmp: New file.
69961         * modules/unistr/u32-strcmp: New file.
69962         * lib/unistr/u8-strcmp.c: New file.
69963         * lib/unistr/u16-strcmp.c: New file.
69964         * lib/unistr/u32-strcmp.c: New file.
69965
69966         * modules/unistr/u8-strcpy: New file.
69967         * modules/unistr/u16-strcpy: New file.
69968         * modules/unistr/u32-strcpy: New file.
69969         * lib/unistr/u8-strcpy.c: New file.
69970         * lib/unistr/u16-strcpy.c: New file.
69971         * lib/unistr/u32-strcpy.c: New file.
69972         * lib/unistr/u-strcpy.h: New file.
69973
69974         * modules/unistr/u8-strcspn: New file.
69975         * modules/unistr/u16-strcspn: New file.
69976         * modules/unistr/u32-strcspn: New file.
69977         * lib/unistr/u8-strcspn.c: New file.
69978         * lib/unistr/u16-strcspn.c: New file.
69979         * lib/unistr/u32-strcspn.c: New file.
69980         * lib/unistr/u-strcspn.h: New file.
69981
69982         * modules/unistr/u8-strdup: New file.
69983         * modules/unistr/u16-strdup: New file.
69984         * modules/unistr/u32-strdup: New file.
69985         * lib/unistr/u8-strdup.c: New file.
69986         * lib/unistr/u16-strdup.c: New file.
69987         * lib/unistr/u32-strdup.c: New file.
69988         * lib/unistr/u-strdup.h: New file.
69989
69990         * modules/unistr/u8-strlen: New file.
69991         * modules/unistr/u16-strlen: New file.
69992         * modules/unistr/u32-strlen: New file.
69993         * lib/unistr/u8-strlen.c: New file.
69994         * lib/unistr/u16-strlen.c: New file.
69995         * lib/unistr/u32-strlen.c: New file.
69996         * lib/unistr/u-strlen.h: New file.
69997
69998         * modules/unistr/u8-strmblen: New file.
69999         * modules/unistr/u16-strmblen: New file.
70000         * modules/unistr/u32-strmblen: New file.
70001         * lib/unistr/u8-strmblen.c: New file.
70002         * lib/unistr/u16-strmblen.c: New file.
70003         * lib/unistr/u32-strmblen.c: New file.
70004
70005         * modules/unistr/u8-strmbtouc: New file.
70006         * modules/unistr/u16-strmbtouc: New file.
70007         * modules/unistr/u32-strmbtouc: New file.
70008         * lib/unistr/u8-strmbtouc.c: New file.
70009         * lib/unistr/u16-strmbtouc.c: New file.
70010         * lib/unistr/u32-strmbtouc.c: New file.
70011
70012         * modules/unistr/u8-strncat: New file.
70013         * modules/unistr/u16-strncat: New file.
70014         * modules/unistr/u32-strncat: New file.
70015         * lib/unistr/u8-strncat.c: New file.
70016         * lib/unistr/u16-strncat.c: New file.
70017         * lib/unistr/u32-strncat.c: New file.
70018         * lib/unistr/u-strncat.h: New file.
70019
70020         * modules/unistr/u8-strncmp: New file.
70021         * modules/unistr/u16-strncmp: New file.
70022         * modules/unistr/u32-strncmp: New file.
70023         * lib/unistr/u8-strncmp.c: New file.
70024         * lib/unistr/u16-strncmp.c: New file.
70025         * lib/unistr/u32-strncmp.c: New file.
70026
70027         * modules/unistr/u8-strncpy: New file.
70028         * modules/unistr/u16-strncpy: New file.
70029         * modules/unistr/u32-strncpy: New file.
70030         * lib/unistr/u8-strncpy.c: New file.
70031         * lib/unistr/u16-strncpy.c: New file.
70032         * lib/unistr/u32-strncpy.c: New file.
70033         * lib/unistr/u-strncpy.h: New file.
70034
70035         * modules/unistr/u8-strnlen: New file.
70036         * modules/unistr/u16-strnlen: New file.
70037         * modules/unistr/u32-strnlen: New file.
70038         * lib/unistr/u8-strnlen.c: New file.
70039         * lib/unistr/u16-strnlen.c: New file.
70040         * lib/unistr/u32-strnlen.c: New file.
70041         * lib/unistr/u-strnlen.h: New file.
70042
70043         * modules/unistr/u8-strpbrk: New file.
70044         * modules/unistr/u16-strpbrk: New file.
70045         * modules/unistr/u32-strpbrk: New file.
70046         * lib/unistr/u8-strpbrk.c: New file.
70047         * lib/unistr/u16-strpbrk.c: New file.
70048         * lib/unistr/u32-strpbrk.c: New file.
70049         * lib/unistr/u-strpbrk.h: New file.
70050
70051         * modules/unistr/u8-strrchr: New file.
70052         * modules/unistr/u16-strrchr: New file.
70053         * modules/unistr/u32-strrchr: New file.
70054         * lib/unistr/u8-strrchr.c: New file.
70055         * lib/unistr/u16-strrchr.c: New file.
70056         * lib/unistr/u32-strrchr.c: New file.
70057
70058         * modules/unistr/u8-strspn: New file.
70059         * modules/unistr/u16-strspn: New file.
70060         * modules/unistr/u32-strspn: New file.
70061         * lib/unistr/u8-strspn.c: New file.
70062         * lib/unistr/u16-strspn.c: New file.
70063         * lib/unistr/u32-strspn.c: New file.
70064         * lib/unistr/u-strspn.h: New file.
70065
70066         * modules/unistr/u8-strstr: New file.
70067         * modules/unistr/u16-strstr: New file.
70068         * modules/unistr/u32-strstr: New file.
70069         * lib/unistr/u8-strstr.c: New file.
70070         * lib/unistr/u16-strstr.c: New file.
70071         * lib/unistr/u32-strstr.c: New file.
70072         * lib/unistr/u-strstr.h: New file.
70073
70074         * modules/unistr/u8-strtok: New file.
70075         * modules/unistr/u16-strtok: New file.
70076         * modules/unistr/u32-strtok: New file.
70077         * lib/unistr/u8-strtok.c: New file.
70078         * lib/unistr/u16-strtok.c: New file.
70079         * lib/unistr/u32-strtok.c: New file.
70080         * lib/unistr/u-strtok.h: New file.
70081
70082         * modules/unistr/u8-uctomb: New file.
70083         * modules/unistr/u16-uctomb: New file.
70084         * modules/unistr/u32-uctomb: New file.
70085         * lib/unistr/u8-uctomb.c: New file.
70086         * lib/unistr/u16-uctomb.c: New file.
70087         * lib/unistr/u32-uctomb.c: New file.
70088
70089         * MODULES.html.sh (Unicode string functions): Add the new modules.
70090
70091 2007-01-08  Bruno Haible  <bruno@clisp.org>
70092
70093         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
70094         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
70095         subdirectories.
70096
70097 2007-01-08  Karl Berry  <karl@gnu.org>
70098
70099         * doc/error.texi: mention that main() fns must set program_name
70100         when progname is used.
70101
70102 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
70103
70104         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
70105         WCTYPE_H is empty, for the benefit of builds from non-distclean
70106         directories.  Problem reported by Eric Blake in
70107         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
70108
70109 2007-01-08  Bruno Haible  <bruno@clisp.org>
70110
70111         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
70112         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
70113         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
70114         PROVIDE_CANONICALIZE_FILENAME_MODE.
70115         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
70116
70117 2007-01-08  Bruno Haible  <bruno@clisp.org>
70118
70119         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
70120         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
70121         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
70122         * lib/fts.c: Likewise.
70123         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
70124
70125 2006-12-25  Bruno Haible  <bruno@clisp.org>
70126
70127         * modules/utf8-ucs4-safe: New file.
70128         * lib/utf8-ucs4-safe.h: New file.
70129         * lib/unistr/utf8-ucs4-safe.c: New file.
70130
70131         * modules/utf16-ucs4-safe: New file.
70132         * lib/utf16-ucs4-safe.h: New file.
70133         * lib/unistr/utf16-ucs4-safe.c: New file.
70134
70135         * MODULES.html.sh (Unicode string functions): Add the new modules.
70136
70137 2007-01-08  Bruno Haible  <bruno@clisp.org>
70138
70139         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
70140         (Depends-on): Add unitypes.
70141         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70142         (u8_mbtouc_aux): Move out to separate file.
70143         (u8_mbtouc): Use ucs4_t, uint8_t types.
70144         * lib/unistr/utf8-ucs4.c: New file.
70145
70146         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
70147         (Depends-on): Add unitypes.
70148         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70149         (u16_mbtouc_aux): Move out to separate file.
70150         (u16_mbtouc): Use ucs4_t, uint16_t types.
70151         * lib/unistr/utf16-ucs4.c: New file.
70152
70153         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
70154         (Depends-on): Add unitypes.
70155         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
70156         (u8_uctomb_aux): Move out to separate file.
70157         (u8_uctomb): Use ucs4_t, uint8_t types.
70158         * lib/unistr/ucs4-utf8.c: New file.
70159
70160         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
70161         (Depends-on): Add unitypes.
70162         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
70163         (u16_uctomb_aux): Move out to separate file.
70164         (u16_uctomb): Use ucs4_t, uint16_t types.
70165         * lib/unistr/ucs4-utf16.c: New file.
70166
70167 2006-12-25  Bruno Haible  <bruno@clisp.org>
70168
70169         * modules/unitypes: New file.
70170         * lib/unitypes.h: New file.
70171         * MODULES.html.sh (func_all_modules): New section "Unicode string
70172         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
70173         this section. Add unitypes.
70174
70175 2007-01-08  Bruno Haible  <bruno@clisp.org>
70176
70177         Avoid variable names that conflict with those from libtool.
70178         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
70179         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
70180         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
70181         library_names_spec to acl_library_names_spec, hardcode_* to
70182         acl_hardcode_*.
70183         Reported by Ralf Wildenhues.
70184
70185 2007-01-08  Bruno Haible  <bruno@clisp.org>
70186
70187         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
70188         definition.
70189         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
70190         definition.
70191         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
70192         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
70193         definition.
70194         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
70195         definition.
70196         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
70197         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
70198         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
70199         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
70200         definition.
70201         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
70202         definition.
70203         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
70204         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
70205         GC_USE_<algorithm>.
70206         * lib/gc-libgcrypt.c: Likewise.
70207         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
70208         * modules/gc-arctwo (configure.ac): Likewise.
70209         * modules/gc-des (configure.ac): Likewise.
70210         * modules/gc-hmac-md5 (configure.ac): Likewise.
70211         * modules/gc-hmac-sha1 (configure.ac): Likewise.
70212         * modules/gc-md2 (configure.ac): Likewise.
70213         * modules/gc-md4 (configure.ac): Likewise.
70214         * modules/gc-md5 (configure.ac): Likewise.
70215         * modules/gc-random (configure.ac): Likewise.
70216         * modules/gc-rijndael (configure.ac): Likewise.
70217         * modules/gc-sha1 (configure.ac): Likewise.
70218
70219 2007-01-08  Bruno Haible  <bruno@clisp.org>
70220
70221         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
70222         macro definition.
70223         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
70224         definition.
70225         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
70226         definition.
70227         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
70228         * modules/fcntl-safer (configure.ac): Likewise.
70229         * modules/fopen-safer (configure.ac): Likewise.
70230         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
70231         GNULIB_FWRITEERROR macro definition.
70232
70233 2007-01-08  Bruno Haible  <bruno@clisp.org>
70234
70235         * m4/gnulib-common.m4: New file.
70236         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
70237         (func_get_filelist): Add m4/gnulib-common.m4.
70238
70239 2007-01-08  Bruno Haible  <bruno@clisp.org>
70240
70241         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
70242         command.
70243
70244 2007-01-08  Jim Meyering  <jim@meyering.net>
70245
70246         Use a more robust test for a "can't happen" condition.
70247         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
70248         narrowed the st_size value.  Presuming the "can't happen" condition
70249         is true, that narrowing could conceivably convert an invalid st_size
70250         value into a valid one.  Instead, use a change based on Matthew
70251         Woehlke's original patch.
70252
70253         Slight readability improvement: use an assert-like macro
70254         in place of literal "abort ()" uses.
70255         * lib/fts.c (fts_assert): Define.
70256         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
70257         Use this macro instead of a bare 'abort'.
70258
70259 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
70260
70261         Don't worry about using IRIX 5.3's wctype.h broken definitions;
70262         simply work around them.
70263         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
70264         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
70265         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
70266         declaring.
70267         Don't bother to define as macros, since the standard doesn't require it.
70268         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
70269         longer worry about IRIX 5.3.
70270         (HAVE_WCTYPE_CTMP_BUG): Remove.
70271
70272 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70273
70274         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
70275         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
70276         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
70277         Problems reported by Georg Schwarz for IRIX 5.3.
70278
70279         * gnulib-tool (autoconf_minversion): Take the maximum version number
70280         found, not the minimum.  Problem reported by James Youngman.
70281
70282 2007-01-03  Karl Berry  <karl@gnu.org>
70283
70284         * doc/error.texi: new file, explaining interaction with progname.
70285         * doc/gnulib.texi: include it.  Update copyright.
70286
70287 2007-01-03  Simon Josefsson  <simon@josefsson.org>
70288
70289         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
70290         AC_CANONICAL_HOST, to improve autobuild outputs.
70291
70292 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
70293             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70294
70295         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
70296         sockets, server sockets, and other file descriptors.  Count errors
70297         to compute the return value.  Reorder the code a bit to be easier
70298         to follow.  Don't set event bits that were not requested (except
70299         POLLERR and POLLHUP).
70300
70301 2007-01-01  Bruno Haible  <bruno@clisp.org>
70302
70303         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
70304
70305 2007-01-03  Jim Meyering  <jim@meyering.net>
70306
70307         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
70308
70309 2007-01-02  Bruno Haible  <bruno@clisp.org>
70310
70311         * modules/settime (Include): Require timespec.h.
70312         * modules/nanosleep (Include): Likewise.
70313
70314 2007-01-01  Bruno Haible  <bruno@clisp.org>
70315
70316         * gnulib-tool (func_emit_copyright_notice): Bump year.
70317         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
70318
70319 2007-01-01  Bruno Haible  <bruno@clisp.org>
70320
70321         Improve support for OpenBSD.
70322         * build-aux/config.rpath (libname_spec): Export.
70323         (library_names_spec): New variable. Export.
70324         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
70325         library_names_spec from the config.rpath output. Locate shared library
70326         through the name pattern in library_names_spec.
70327
70328 2007-01-01  Eric Blake  <ebb9@byu.net>
70329
70330         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
70331
70332 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
70333
70334         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
70335         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
70336         assume the C locale, and avoid an "eval" that could cause trouble.
70337         Problem with SORT reported by Bob Proulx.
70338
70339         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
70340         Define.  Trivial patch from Henning Nielsen Lund, originally
70341         sent to bug-grep@gnu.org today.
70342
70343 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
70344
70345         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
70346         struct stat.  Problem reported by Henning Nielsen Lund.
70347         * lib/acl.c: Include acl.h first, to check interface.  Don't
70348         bother to include sys/types.h and sys/stat.h again.
70349
70350 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70351
70352         Import the following change from libc; problem reported by
70353         Sven Verdoolaege.
70354
70355         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
70356
70357         [BZ #1373]
70358         * lib/argp.h: Remove __NTH for __argp_usage inline function.
70359
70360 2006-12-28  Jim Meyering  <jim@meyering.net>
70361
70362         * build-aux/announce-gen: Do not assume that the package
70363         builds any of tar.gz, tar.bz2, and .xdelta files.
70364         Suggestion from Simon Josefsson.
70365
70366 2006-12-28  Simon Josefsson  <simon@josefsson.org>
70367
70368         * modules/announce-gen: New file.
70369
70370 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
70371
70372         * lib/mbchar.h: Just include <wctype.h>; the wctype module
70373         handles its gotchas now.
70374         * lib/mbswidth.c: Likewise.
70375         * lib/wcwidth.h: Likewise.
70376         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
70377         and iswcntrl; the wctype module does this stuff now.
70378         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70379         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70380         * modules/mbchar (Depends-on): Add wctype.
70381         * modules/mbswidth (Depends-on): Likewise.
70382         * modules/wcwidth (Depends-on): Likewise.
70383
70384 2006-12-27  Eric Blake  <ebb9@byu.net>
70385
70386         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
70387         module uses more than what <wctype.h> is required to provide.
70388
70389 2006-12-26  Eric Blake  <ebb9@byu.net>
70390
70391         * gnulib-tool (sed_extract_prog): Avoid space-tab.
70392
70393 2006-12-26  Eric Blake  <ebb9@byu.net>
70394
70395         * modules/absolute-header: New module.
70396         * modules/fcntl (Depends-on): Depend on it.
70397         * modules/inttypes (Depends-on): Likewise.
70398         * modules/stdint (Depends-on): Likewise.
70399         * modules/sys_stat (Depends-on): Likewise.
70400         * modules/wctype (Depends-on): Likewise.
70401         * MODULES.html.sh (Support for building libraries and
70402         executables): Document it.
70403
70404 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
70405
70406         * gnulib-tool (SED): Remove, undoing previous change.
70407         The problem was that it broke coreutils on Solaris, because
70408         "sed --posix" leaked into a makefile.
70409         (sed): New alias, if 'alias' and GNU sed.
70410
70411 2006-12-24  Jim Meyering  <jim@meyering.net>
70412
70413         Work around an fchownat bug in glibc-2.4:
70414         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
70415         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
70416         in spite of the -P option.
70417         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
70418         New macros.
70419         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
70420         * modules/openat (Files): Add lib/fchownat.c.
70421         * lib/openat.c (fchownat): Don't define here.  Move to...
70422         * lib/fchownat.c: ...this new file.
70423
70424 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70425
70426         Fix bug reported by Bruno Haible in
70427         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
70428         where quotearg.c didn't compile on Mac OS X 10.2 because it
70429         lacks <wchar.h> and wint_t.
70430         * lib/wctype_.h (__wctype_wint_t): New type.
70431         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
70432         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
70433         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
70434         Arg is now of type __wctype_wint_t, not wint_t.
70435         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
70436         substitute HAVE_WINT_T.
70437         * modules/wctype (Files): Add m4/wint_t.m4.
70438         (wctype.h): Substitute HAVE_WINT_T.
70439
70440 2006-12-23  Bruno Haible  <bruno@clisp.org>
70441
70442         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
70443
70444 2006-12-23  Bruno Haible  <bruno@clisp.org>
70445
70446         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
70447         S_ISLNK.
70448         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
70449         mingw.
70450
70451 2006-12-22  Bruno Haible  <bruno@clisp.org>
70452
70453         * lib/copy-file.c: Include acl.h.
70454         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
70455         Close the file descriptors only after being done with copy_acl.
70456         * modules/copy-file (Depends-on): Add acl.
70457
70458 2006-12-22  Bruno Haible  <bruno@clisp.org>
70459
70460         * gnulib-tool (SED): New variable.
70461         Use $SED instead of sed everywhere.
70462
70463 2006-12-22  Bruno Haible  <bruno@clisp.org>
70464
70465         * modules/no-c++: New file.
70466         * m4/no-c++.m4: New file.
70467         * MODULES.html.sh (Support for building libraries and executables):
70468         Add no-c++.
70469
70470 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
70471
70472         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
70473         Include <limits.h>, and use its INT_MAX to rewrite the
70474         j loop so that it does not overflow 'int'.  Problem reported by
70475         Ralf Wildenhues in
70476         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
70477         Play it safe by shifting left by 1 rather than multiplying by 2,
70478         as GCC is less likely to optimize this away when the value
70479         is signed (when it assumes overflow leads to undefined behavior).
70480         Also, don't assume time_t uses two's complement.
70481
70482 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
70483
70484         * MODULES.html.sh: New module wctype.
70485         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
70486         * lib/fnmatch.c: Don't bother to include <wchar.h> before
70487         <wctype.h>, since the new wctype module should fix this.
70488         * lib/quotearg.c: Include <wctype.h> unconditionally, since
70489         the wctype module should arrange for it.
70490         * lib/regex_internal.h: Likewise.
70491         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
70492         since the wctype module should handle this now.
70493         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
70494         * modules/fnmatch (Depends-on): Add wctype.
70495         * modules/quotearg (Depends-on): Likewise.
70496         * modules/regex (Depends-on): Likewise.
70497
70498 2006-12-19  Bruno Haible  <bruno@clisp.org>
70499
70500         * lib/strdup.h [C++]: Wrap definitions in extern "C".
70501         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
70502
70503 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70504
70505         * modules/savewd (Depends-on): Fix dependency on fcntl.
70506
70507 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70508
70509         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
70510         conforms to C99, rather than relying on the user's environment
70511         setting of STDINT_H.
70512
70513 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70514         and Eric Blake  <ebb9@byu.net>
70515
70516         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
70517         This is more consistent with the other defines here.
70518         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
70519         Port to z/OS.  Problem reported by Paul Gilmartin.
70520         Change local vars to use gl_ prefix rather than ac_.
70521         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
70522         with other defines.
70523         * modules/double-slash-root: New module.
70524         * modules/dirname (Files): Remove m4/double-slash-root.m4.
70525         (Depends-on): Add double-slash-root.
70526         * MODULES.html.sh (File system functions): Mention new module.
70527
70528 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
70529
70530         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
70531         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
70532         This is for the benefit of gzip, which doesn't do i18n.
70533
70534 2006-12-12  Jim Meyering  <jim@meyering.net>
70535
70536         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
70537         Reported by Andreas Schwab <schwab@suse.de>.
70538
70539 2006-12-12  Bruno Haible  <bruno@clisp.org>
70540
70541         Merge these changes.
70542         2006-09-05  Bruno Haible  <bruno@clisp.org>
70543         * lib/iconvme.c (iconv_string): No need to save and restore errno when
70544         iconv_alloc succeeded.
70545         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
70546         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
70547         test for " && dest " at the end - dest is always != NULL there. Call
70548         iconv with 4xNULL arguments initially, to reset the state. Call iconv
70549         with 2xNULL arguments, also to flush the state storage. Handle the
70550         IRIX iconv behaviour. Realloc the final result, to throw away unused
70551         memory.
70552
70553 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
70554
70555         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
70556         and fchmodat unconditionally, since glibc 2.4 has them.
70557         Problem reported by Arkadiusz Miskiewicz.
70558
70559 2006-12-10  Bruno Haible  <bruno@clisp.org>
70560
70561         * gnulib-tool (func_import): Show the include files only for those
70562         modules that are copied and specified.
70563         Reported by Karl Berry.
70564
70565 2006-12-08  Jim Meyering  <jim@meyering.net>
70566
70567         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
70568         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
70569
70570         * build-aux/announce-gen: Add two new options, both optional:
70571         --bootstrap-tools=TOOL_LIST
70572               a comma-separated list of tools, e.g.,
70573               autoconf,automake,bison,gnulib
70574         --gnulib-snapshot-date=DATE
70575               if gnulib is in the bootstrap tool list,
70576               then report this as the snapshot date.
70577               If not specified, use the current date/time.
70578               If you specify a date here, be sure it's UTC.
70579
70580 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70581
70582         * tests/test-argp-2.sh: Fix test to match actual output.
70583         (func_compare): Fix sed script to be portable.
70584
70585 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
70586
70587         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
70588         workaround for this case.  It is not autoconfigured now; offhand
70589         it's hard to see how to autoconfigure it.
70590
70591 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
70592
70593         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
70594         a directory that is about to be chowned.  Such a directory's
70595         initial file permissions should permit the owner only and this
70596         should not be changed until after the chown, since the group and
70597         other bits would be incorrect if they granted permission before
70598         the chown.
70599
70600         Fix porting problem for iswctype reported by Georg Schwarz in:
70601         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
70602         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
70603         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
70604         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
70605         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
70606
70607 2006-12-03  Jim Meyering  <jim@meyering.net>
70608
70609         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
70610         p->fts_statp may not yet be defined.
70611         (fts_read): Instead, set it in the caller, once p->fts_statp is
70612         sure to be defined, and corresponds to a top-level directory.
70613         This bug made du -x fail.  Here's the coreutils test case:
70614         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
70615         Reported by Mike Frysinger.
70616
70617 2006-12-01  Jim Meyering  <jim@meyering.net>
70618
70619         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
70620         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
70621         Reported by Simon Josefsson.
70622
70623 2006-11-30  Jim Meyering  <jim@meyering.net>
70624
70625         * m4/warning.m4: Use the all-permissive copyright notice
70626         recommended by RMS (rather than LGPL).
70627         * m4/vararrays.m4: Likewise.
70628         * m4/flexmember.m4: Likewise.
70629
70630 2006-11-29  Bruno Haible  <bruno@clisp.org>
70631
70632         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70633         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
70634         using +=.
70635         Reported by Simon Josefsson <simon@josefsson.org>.
70636
70637 2006-11-28  James Youngman <jay@gnu.org>
70638
70639         * README: Advise users that they might find the bug-gnulib@gnu.org
70640         and autotools-announce@gnu.org mailing lists useful.
70641
70642 2006-11-28  Bruno Haible  <bruno@clisp.org>
70643
70644         * m4/ptrdiff_max.m4: Remove file.
70645
70646 2006-11-21  Bruno Haible  <bruno@clisp.org>
70647
70648         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
70649         _AC_COMPUTE_INT.
70650         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70651         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
70652         _AC_COMPUTE_INT.
70653         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70654         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
70655         _AC_COMPUTE_INT.
70656         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70657
70658 2006-11-28  Jim Meyering  <jim@meyering.net>
70659
70660         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
70661         warning from "gcc -Wshadow" about shadowing the builtin.
70662
70663 2006-11-27  Bruno Haible  <bruno@clisp.org>
70664
70665         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
70666         _AC_COMPUTE_INT.
70667         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70668
70669 2006-11-27  Bruno Haible  <bruno@clisp.org>
70670             Paul Eggert  <eggert@cs.ucla.edu>
70671
70672         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
70673
70674 2006-11-26  Bruno Haible  <bruno@clisp.org>
70675
70676         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70677         noinst_LTLIBRARIES.
70678
70679 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
70680             Bruno Haible  <bruno@clisp.org>
70681
70682         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
70683         if compiling with "gcc -ansi".
70684
70685 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
70686
70687         Fix some incompatibilities with gcc -ansi -pedantic.
70688         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
70689         if compiling pedantically with GCC, unless it's C99 or later.
70690         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
70691         it mishandles gcc -ansi -pedantic as well.
70692         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
70693         if gcc -pedantic.
70694         * lib/regexec.c (check_node_accept_bytes): Don't use auto
70695         initializers for struct if -pedantic, unless it's C99 or later.
70696
70697 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
70698
70699         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
70700         Don't close an fd more than once. Identical atimes indicate
70701         success, not failure.
70702
70703 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
70704
70705         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
70706
70707 2006-11-23  Jim Meyering  <jim@meyering.net>
70708
70709         * build-aux/announce-gen: New file.  From coreutils.
70710
70711 2006-11-22  Jim Meyering  <jim@meyering.net>
70712
70713         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
70714         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
70715         (fts_read): Use a temporary to narrow the overused st_size member
70716         before using it in a switch statement.  Reported by Matthew Woehlke.
70717
70718         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
70719         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
70720
70721 2006-11-20  Bruno Haible  <bruno@clisp.org>
70722
70723         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
70724         changequote instead of pairs of brackets.
70725         Reported by Andreas Schwab <schwab@suse.de>.
70726
70727 2006-11-21  Jim Meyering  <jim@meyering.net>
70728
70729         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
70730         so as to remain compatible with older compilers.
70731         Patch from Michael Deutschmann.
70732
70733 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70734
70735         * MODULES.html.sh (File system functions): Add openat.
70736
70737         * lib/openat.h (rpl_fstatat): New macro, if
70738         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
70739         (fstatat): Define to rpl_fstatat under the same conditions,
70740         unless COMPILING_FSTATAT.
70741         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
70742         seems to have the bug.
70743         * lib/fstatat.c: New file.
70744         * modules/openat (Files): Add it.
70745
70746 2006-11-20  Bruno Haible  <bruno@clisp.org>
70747
70748         * Makefile: New file.
70749
70750 2006-11-20  Jim Meyering  <jim@meyering.net>
70751
70752         The beginnings of syntax-related checks for gnulib.
70753         * lib/Makefile: New file.
70754         * lib/t-idcache: New script.  Ensure that the two halves of
70755         idcache.c stay in sync.
70756
70757         * lib/idcache.c: Adjust comments in user- and group- portions to
70758         be more accurate, and to be consistent with one another.
70759
70760 2006-11-20  Jim Meyering  <jim@meyering.net>
70761
70762         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
70763         continue using the flexible array member (thus, this module performs
70764         half as many malloc calls), with the addition that...
70765         (getgroup, getuser): Consistently record a non-match via an empty
70766         "name" string, and map an empty string match to a NULL return value.
70767         * modules/idcache (Depends-on): Re-add flexmember.
70768
70769         * lib/idcache.c (getuser): Remove all uses of the register keyword.
70770         (getuidbyname, getgroup, getgidbyname): Likewise.
70771
70772         Use cleaner syntax: NULL rather than 0.
70773         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
70774
70775 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70776
70777         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
70778         It mishandled the case where the group was missing.
70779         Problem reported by Greg Schafer.
70780         * modules/idcache: Likewise.
70781
70782 2006-11-18  Jim Meyering  <jim@meyering.net>
70783
70784         * check-module (%exempt_header): Add exception for some
70785         conditionally-included headers.
70786
70787         * modules/i-ring (Depends-on): Add verify.
70788         (License): Change to LGPL.
70789
70790 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70791
70792         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
70793         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
70794         and inttostr.h.  Use snprintf rather than uinttostr, so that
70795         LGPLed code doesn't depend on GPLed.
70796
70797 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70798
70799         * modules/inline (License): Change from GPL to LGPL.
70800
70801 2006-11-17  Jim Meyering  <jim@meyering.net>
70802
70803         * modules/d-type (License): Switch to LGPL.
70804
70805 2006-11-15  Bruno Haible  <bruno@clisp.org>
70806
70807         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
70808
70809 2006-11-15  Eric Blake  <ebb9@byu.net>
70810
70811         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
70812         the module dependency.
70813
70814 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70815             Bruno Haible  <bruno@clisp.org>
70816
70817         * gnulib-tool (func_create_testdir): Add license consistency check.
70818
70819 2006-11-15  Eric Blake  <ebb9@byu.net>
70820
70821         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
70822         random "(cached)" in configure output.
70823
70824 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70825
70826         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
70827         test for conforming inttypes.h is both announced and cached.
70828
70829         * MODULES.html.sh (seen_modules, seen_files): New variables.
70830         (func_module): Rewrite to use a few less gnulib-tool and sed
70831         invocations.  Avoid a couple of quadratic algorithms for ...
70832         (missed_modules, missed_files): ... these, with ...
70833         (func_append, func_tmpdir): ... these new functions, from
70834         gnulib-tool.  Analogously, install traps for cleanup.
70835
70836         * tests/test-gc.c (main): Remove unused variables.
70837         * tests/test-read-file.c: Include stdlib.h, for 'free'.
70838
70839 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
70840
70841         * modules/inttostr (License): Change to LGPL.
70842
70843 2006-11-14  Eric Blake  <ebb9@byu.net>
70844
70845         * modules/tempname (License): Change to LGPL.
70846
70847 2006-11-14  Eric Blake  <ebb9@byu.net>
70848
70849         * doc/functions.texi (Function Portability): *printf functions on
70850         Cygwin now understand all POSIX size specifiers.
70851
70852 2006-11-14  Bruno Haible  <bruno@clisp.org>
70853
70854         * modules/c-ctype (License): Change to LGPL.
70855
70856 2006-11-12  Bruno Haible  <bruno@clisp.org>
70857
70858         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
70859         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
70860         for GNOME libraries, for which the include files are installed in
70861         subdirectories of $prefix/include.
70862
70863 2006-11-12  Bruno Haible  <bruno@clisp.org>
70864
70865         * m4/lib-link.m4: Require at least autoconf-2.54.
70866         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
70867         name to underscores for the --with option.
70868
70869 2006-11-13  Bruno Haible  <bruno@clisp.org>
70870
70871         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
70872         the tests directory.
70873         Reported by Ralf Wildenhues.
70874
70875 2006-11-13  Bruno Haible  <bruno@clisp.org>
70876
70877         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
70878         (func_emit_initmacro_end): Undo the override here.
70879         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
70880         Works around the famous automake error in coreutils.
70881
70882 2006-11-13  Eric Blake  <ebb9@byu.net>
70883
70884         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
70885         element, not its node.
70886
70887 2006-11-12  Bruno Haible  <bruno@clisp.org>
70888
70889         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
70890         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
70891
70892 2006-11-12  Bruno Haible  <bruno@clisp.org>
70893
70894         * gnulib-tool: New option --local-symlink.
70895         (func_usage): Document it.
70896         (lsymbolic): New variable.
70897         (func_import, func_create_testdir): If --symlink was not specified,
70898         test whether --local-symlink was specified and the file comes from
70899         the local_gnulib_dir.
70900
70901 2006-11-12  Bruno Haible  <bruno@clisp.org>
70902
70903         * gnulib-tool (func_ln): New function.
70904         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
70905
70906 2006-11-12  Bruno Haible  <bruno@clisp.org>
70907
70908         Finish support for source files in subdirectories.
70909         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
70910         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
70911         AUTOMAKE_OPTIONS.
70912         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
70913
70914 2006-11-12  Bruno Haible  <bruno@clisp.org>
70915
70916         * gnulib-tool (func_get_automake_snippet): Synthesize also an
70917         EXTRA_lib_SOURCES augmentation.
70918         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
70919
70920 2006-11-12  Jim Meyering  <jim@meyering.net>
70921
70922         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
70923         file descriptors.  This also averts a failure on systems with
70924         native openat support when a traversed directory lacks "x" access.
70925         * lib/fts_.h: Include "i-ring.h"
70926         (struct FTS) [fts_fd_ring]: New member.
70927         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
70928         (FCHDIR): Add parentheses.
70929         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
70930         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
70931         When descending, rather than simply closing the previous
70932         fts_cwd_fd value, push that file descriptor onto the ring.
70933         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
70934         (fts_open): Initialize the new fd_ring member.
70935         (fts_close): Clear the ring.
70936         (fts_safe_changedir): When possible, use our new fd_ring to skip
70937         the diropen and fstat and dev/ino comparison that would normally
70938         accompany a virtual `chdir ("..")'.
70939
70940         * modules/fts (Depends-on): Add i-ring.
70941         * modules/i-ring: New module.
70942         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
70943         * m4/i-ring.m4: New file.
70944
70945 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70946
70947         * gnulib-tool (func_create_testdir): Fix replacement of
70948         `build-aux' in configure.ac.  Run autotools in gltests
70949         subdirectory.
70950         (func_create_testdir, func_create_megatestdir, test): There is
70951         no need for '--force' in most autotool invocations in a new
70952         tree.  Actually fail the whole test if any of the tools, or the
70953         configure or make stages fail.
70954
70955         Sync from Automake.
70956         * build-aux/gnupload: Revert last change.  Add pointer to upload
70957         instructions of the GNU Maintenance Instructions.
70958         Suggestion by Karl Berry.
70959
70960 2006-11-10  Jim Meyering  <jim@meyering.net>
70961
70962         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
70963
70964 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70965
70966         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
70967         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
70968         (bind_textdomain_codeset) [! ENABLE_NLS]:
70969         Evaluate all the arguments.  That way, callers get compatible behavior
70970         if the arguments have side effects.  Also, it avoids some GCC
70971         diagnostics in some cases; Joel E. Denny reported problems when Bison
70972         was configured with --enable-gcc-warnigs.
70973
70974 2006-11-10  Jim Meyering  <jim@meyering.net>
70975
70976         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
70977         relevant options in CFLAGS (like -O, -fno-inline) are taken into
70978         account.
70979
70980 2006-11-10  Jim Meyering  <jim@meyering.net>
70981
70982         * modules/inline: New file/module.
70983         * modules/xalloc (Files): Remove m4/inline.m4.
70984         (Depends-on): Add inline, instead.
70985         * modules/oset: Likewise.
70986         * modules/list: Likewise.
70987
70988 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70989
70990         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
70991         Problem reported by Matthew Woehlke.
70992
70993 2006-11-09  Bruno Haible  <bruno@clisp.org>
70994
70995         * lib/tempname.c (gen_tempname): Remove variant that invokes
70996         __gen_tempname.
70997         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
70998         __gen_tempname.
70999
71000 2006-11-08  Bruno Haible  <bruno@clisp.org>
71001
71002         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
71003         to 'yes' instead of 'cross-compiling'.
71004
71005 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
71006
71007         * lib/quotearg.h (quotearg_free): New decl.
71008         * lib/quotearg.c (quotearg_free): New function.
71009         (slot0, nslots, slotvec0, slotvec):
71010         Now file-scope so that quotearg_free can get at them.
71011
71012 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71013
71014         Sync from Automake.
71015         * build-aux/gnupload: Add missing 'gnu' to example URL.
71016         Report by Karl Berry.
71017
71018 2006-11-08  Bruno Haible  <bruno@clisp.org>
71019
71020         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
71021         Suggested by Paul Eggert.
71022
71023 2006-11-08  Jim Meyering  <jim@meyering.net>
71024
71025         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
71026         It's already included if !_LIBC.
71027         (fts_safe_changedir): Add a comment.
71028
71029 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71030
71031         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
71032         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
71033         Matthew Woehlke.
71034
71035         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
71036         definitions up, to avoid colliding with change below.
71037         (static_inline) [HAVE_INLINE]: New macro.
71038         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
71039         Provide extern decls when !HAVE_INLINE.  Do not define unless
71040         static_inline is defined, either by us or by xmalloc.c.  Use
71041         static_inline rather than static inline.
71042         (XCALLOC): Optimize sizeof(T) = 1 case.
71043         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
71044
71045 2006-11-07  Bruno Haible  <bruno@clisp.org>
71046
71047         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
71048         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
71049         AC_C_INLINE.
71050         * modules/xalloc (Files): Add m4/inline.m4.
71051
71052 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71053
71054         * README: Fix typo.
71055         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
71056         (Miscellanous Notes): ...from this.
71057
71058 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71059
71060         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
71061         Mention that offsetof should be used instead of sizeof.
71062         From Bruno Haible.
71063
71064 2006-11-07  Bruno Haible  <bruno@clisp.org>
71065
71066         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
71067
71068 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71069
71070         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71071         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
71072         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71073         (gl_tree_add_before, gl_tree_add_after):
71074         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
71075         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
71076         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71077         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
71078         (gl_linked_add_after, gl_linked_add_at): Likewise.
71079         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
71080         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71081         (gl_tree_add_before, gl_tree_add_after): Likewise.
71082         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
71083         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
71084         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
71085
71086 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71087
71088         * lib/gl_oset.h: Use C comment style, not C++ comment style.
71089
71090 2006-11-06  Bruno Haible  <bruno@clisp.org>
71091
71092         * m4/inline.m4: New file.
71093         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
71094         * modules/list (Files): Add m4/inline.m4.
71095         * modules/oset (Files): Likewise.
71096
71097 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71098
71099         * lib/idcache.c: Include <stddef.h>, for offsetof.
71100         (struct userid.name): Change from char * to a flexible array member.
71101         All uses changed.
71102         * modules/idcache (Depends-on): Add flexmember.
71103
71104         * MODULES.html.sh (Core language properties): New module flexmember.
71105         * modules/flexmember, m4/flexmember.m4: New files.
71106
71107         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
71108         inline functions that are identical with the old xnmalloc_inline,
71109         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
71110         that we can avoid some unnecessary integer multiplications and
71111         divisions in the common case where the element size is known at
71112         compile time.
71113         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
71114         needed.
71115         (xnboundedmalloc): Remove.
71116         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
71117         arguments, for consistency with rest of this header.
71118         (xcharalloc): Rewrite using XNMALLOC.
71119         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
71120         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
71121         versions have been moved to lib/xalloc.h and renamed to be the
71122         non-*_inline versions.
71123         (xmalloc, xrealloc): Implement without reference to the xnmalloc
71124         and xnrealloc functions, since those functions are now inline and
71125         now call us.
71126         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
71127         renaming described above.
71128         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
71129         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
71130         captures the dependency in AC_C_INLINE.
71131
71132         New module canonicalize-lgpl, proposed by Charles Wilson in
71133         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
71134         with a few small changes afterwards.
71135         * MODULES.html.sh (File system functions): New module
71136         canonicalize-lgpl.
71137         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
71138         and canonicalize_file_name.
71139         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
71140         * modules/canonicalize-lgpl: New files.
71141
71142 2006-11-05  Bruno Haible  <bruno@clisp.org>
71143
71144         * gnulib-tool (func_import, func_create_testdir): Create directories
71145         also for files in subdirectories of lib/.
71146
71147 2006-11-05  Bruno Haible  <bruno@clisp.org>
71148
71149         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
71150         ANSI C compliant.
71151
71152 2006-11-03  Bruno Haible  <bruno@clisp.org>
71153
71154         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71155         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
71156         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
71157         (xnboundedmalloc): New inline function.
71158         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
71159         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
71160         xmalloc.
71161         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
71162         xmalloc.
71163         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
71164         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
71165         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
71166         xmalloc.
71167         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71168         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
71169         xmalloc.
71170         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
71171         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71172         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
71173         xmalloc.
71174         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71175         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
71176         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71177         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
71178         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
71179         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
71180         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
71181
71182 2006-11-03  Bruno Haible  <bruno@clisp.org>
71183
71184         * lib/c-ctype.h [C++]: Define functions without name mangling.
71185         * lib/fwriteerror.h [C++]: Likewise.
71186         * lib/gcd.h [C++]: Likewise.
71187         * lib/linebreak.h [C++]: Likewise.
71188
71189 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
71190
71191         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
71192         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
71193         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
71194         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
71195         Check for functions and headers just once.
71196         Check for declaration of canonicalize_file_name.
71197         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
71198
71199 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71200
71201         * gnulib-tool (func_import): Fix typo in actioncmd.
71202
71203 2006-11-02  Bruno Haible  <bruno@clisp.org>
71204
71205         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
71206         newline sequence in the Makefile.am snippet as a space, like "make"
71207         does.
71208         Reported by Roger Persson <perrog@gmail.com>.
71209
71210 2006-11-01  Bruno Haible  <bruno@clisp.org>
71211
71212         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
71213         already declared in <string.h>.
71214         * lib/strcase.h (strncasecmp): Don't declare it if yes.
71215
71216 2006-11-01  Bruno Haible  <bruno@clisp.org>
71217
71218         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
71219         * lib/strcase.h: Include <string.h>.
71220         (strcasecmp): Define to rpl_strcasecmp here.
71221
71222 2006-11-01  Bruno Haible  <bruno@clisp.org>
71223
71224         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
71225
71226 2006-11-01  Eric Blake  <ebb9@byu.net>
71227
71228         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
71229
71230         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
71231
71232 2006-10-29  Bruno Haible  <bruno@clisp.org>
71233
71234         Make it compile in C++ mode.
71235         * lib/full-write.c (full_rw): Add a cast.
71236
71237 2006-11-01  Bruno Haible  <bruno@clisp.org>
71238
71239         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
71240         be POSIX compliant.
71241         Reported by Roger Persson <perrog@gmail.com>.
71242
71243 2006-11-01  Eric Blake  <ebb9@byu.net>
71244
71245         * lib/getopt_.h: Fix comments.
71246
71247 2006-10-31  Eric Blake  <ebb9@byu.net>
71248
71249         * modules/tmpdir (Depends-on): Add sys_stat.
71250         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
71251         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
71252         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
71253         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
71254         tempname.
71255
71256 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
71257
71258         Avoid some C++ diagnostics reported by Bruno Haible.
71259         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
71260         xmalloc.
71261         (quotearg_alloc): Use xcharalloc rather than xmalloc.
71262         (struct slotvec): Move to top level.
71263         (quotearg_n_options): Rewrite to avoid xmalloc.
71264         * lib/xalloc.h (xcharalloc): New function.
71265         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
71266         [defined __cplusplus]: Add function template that provides result
71267         type propagation.  This part of the change is from Bruno Haible.
71268
71269 2006-10-29  Bruno Haible  <bruno@clisp.org>
71270
71271         Make it compile in C++ mode.
71272         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
71273         * lib/strnlen1.c (strnlen1): Cast memchr result.
71274         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
71275         * lib/clean-temp.c (string_equals, string_hash): Add casts.
71276         (create_temp_dir): Rename local variable 'template'.
71277         (compile_csharp_using_sscli): Add cast.
71278         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
71279         * lib/findprog.c (find_in_path): Likewise.
71280         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
71281         * lib/wait-process.c (register_slave_subprocess): Likewise.
71282
71283 2006-10-22  Bruno Haible  <bruno@clisp.org>
71284
71285         * modules/tsearch: New file.
71286         * lib/tsearch.h: New file.
71287         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
71288         * m4/tsearch.m4: New file.
71289         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
71290
71291 2006-10-29  Eric Blake  <ebb9@byu.net>
71292
71293         * lib/arcfour.c: Assume config.h.
71294         * lib/arctwo.c: Likewise.
71295         * lib/base64.c: Likewise.
71296         * lib/check-version.c: Likewise.
71297         * lib/crc.c: Likewise.
71298         * lib/des.c: Likewise.
71299         * lib/gc-gnulib.c: Likewise.
71300         * lib/gc-libgcrypt.c: Likewise.
71301         * lib/gc-pbkdf2-sha1.c: Likewise.
71302         * lib/getaddrinfo.c: Likewise.
71303         * lib/getdelim.c: Likewise.
71304         * lib/getline.c: Likewise.
71305         * lib/hmac-md5.c: Likewise.
71306         * lib/hmac-sha1.c: Likewise.
71307         * lib/iconvme.c: Likewise.
71308         * lib/md2.c: Likewise.
71309         * lib/md4.c: Likewise.
71310         * lib/memxor.c: Likewise.
71311         * lib/read-file.c: Likewise.
71312         * lib/readline.c: Likewise.
71313         * lib/rijndael-alg-fst.c: Likewise.
71314         * lib/rijndael-api-fst.c: Likewise.
71315         * lib/xgetdomainname.c: Likewise.
71316
71317 2006-10-28  Eric Blake  <ebb9@byu.net>
71318
71319         * lib/xstrndup.c: Assume config.h.
71320
71321 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
71322
71323         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
71324         stat-macros.h is now for our own macros, whereas stat_h is for
71325         macros in the <sys/stat.h> name space.
71326         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
71327         (STAT_MACROS_H): Remove.
71328         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
71329         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
71330         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
71331         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
71332         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
71333         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
71334         Move these macros to ...
71335         * lib/stat_.h: here.  Don't include stat-macros.h.
71336         * lib/canonicalize.c: Don't include stat-macros.h.
71337         * lib/chown.c: Likewise.
71338         * lib/euidaccess.c: Likewise.
71339         * lib/file-type.c: Likewise.
71340         * lib/filemode.c: Likewise.
71341         * lib/glob.c: Likewise.
71342         * lib/isapipe.c: Likewise.
71343         * lib/lchown.c: Likewise.
71344         * lib/lstat.c: Likewise.
71345         * lib/mkdir-p.c: Likewise.
71346         * lib/rmdir.c: Likewise.
71347         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
71348         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
71349         unless mkdir isn't declared, to speed up 'configure'.
71350         Always create sys/stat.h, since it's unlikely any real sys/stat.h
71351         would define all the S_* symbols.
71352         * modules/canonicalize (Depends-on):
71353         Depend on sys_stat, not stat-macros.
71354         * modules/chown: Likewise.
71355         * modules/euidaccess: Likewise.
71356         * modules/filemode: Likewise.
71357         * modules/file-type: Likewise.
71358         * modules/glob: Likewise.
71359         * modules/isapipe: Likewise.
71360         * modules/lchown: Likewise.
71361         * modules/lstat: Likewise.
71362         * modules/mkancesdirs: Likewise.
71363         * modules/rmdir: Likewise.
71364         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
71365         * modules/modechange: Likewise.
71366         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
71367         (configure.ac): Remove gl_STAT_MACROS.
71368         * modules/sys_stat (Depends-on): Remove stat-macros.
71369
71370 2006-10-27  Bruno Haible  <bruno@clisp.org>
71371
71372         * m4/signed.m4: Remove file.
71373         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
71374         invocation.
71375         * modules/vasnprintf (Files): Remove m4/signed.m4.
71376
71377 2006-10-27  Bruno Haible  <bruno@clisp.org>
71378
71379         Update to GNU gettext 0.16.
71380         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
71381         m4/inttypes-h.m4, m4/signed.m4.
71382         * m4/gettext.m4: Update to GNU gettext 0.16.
71383         * m4/intl.m4: New file, from GNU gettext.
71384         * m4/intldir.m4: New file, from GNU gettext.
71385         * config/srclist.txt: Update
71386
71387 2006-10-27  Eric Blake  <ebb9@byu.net>
71388
71389         * MODULES.html.sh: Document tempname.
71390         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
71391         dependencies.
71392         (Files): Move lib/tempname.c...
71393         * modules/tempname: ...to this new module.
71394         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
71395         (gl_PREREQ_TEMPNAME): Move...
71396         * m4/tempname.m4: ...to this new file.
71397         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
71398         * modules/sys_stat (Depends-on): Add stat-macros.
71399         * lib/stat_.h (includes): Pick up stat macros.
71400         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
71401         if stat macros are broken.
71402         * lib/tempname.c (includes): No need to include "stat-macros.h".
71403         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
71404         (direxists, __path_search) [!_LIBC]: Don't compile these in
71405         gnulib; the tmpdir module covers that.
71406         * lib/tempname.h: New file.
71407
71408 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
71409
71410         * COPYING: Explain how gnulib-tool converts licence headers.
71411         Almost all wording by Eric Blake.
71412
71413 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
71414
71415         * lib/mbchar.h (is_basic_table): Make read-only.
71416         * lib/mbchar.c (is_basic_table): Likewise.
71417         Reported by John Darrington.
71418
71419 2006-10-25  Bruno Haible  <bruno@clisp.org>
71420
71421         * lib/progname.h (set_program_name): Undefine before defining.
71422
71423 2006-10-25  Bruno Haible  <bruno@clisp.org>
71424
71425         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
71426         false for non-gcc C++ compilers.
71427         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
71428
71429 2006-10-24  Bruno Haible  <bruno@clisp.org>
71430
71431         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
71432         iconv implementations like Irix iconv.
71433
71434 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71435
71436         * modules/vararrays: New file.
71437         * m4/vararrays.m4: New file, taken from diffutils.
71438         * MODULES.html.sh: New module vararrays.
71439
71440 2006-10-24  Karl Berry  <karl@gnu.org>
71441
71442         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
71443         Don't call GNU Unix.
71444
71445 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71446
71447         * users.txt: Add Libtool.
71448
71449         Sync from Libtool:
71450
71451         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71452
71453         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
71454         to gnulib's policy of including config.h unconditionally.
71455
71456 2006-10-24  Bruno Haible  <bruno@clisp.org>
71457
71458         * modules/wcwidth (Files): Add m4/wint_t.m4.
71459         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
71460         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
71461
71462 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71463
71464         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
71465         to pacify GCC with some -W flags enabled.  Problem reported by
71466         Bruno Haible.
71467
71468 2006-10-24  Jim Meyering  <jim@meyering.net>
71469
71470         * MODULES.html.sh: Remove uinttostr.  It's not a module.
71471         Reported by Karl Berry.
71472
71473 2006-10-23  Bruno Haible  <bruno@clisp.org>
71474
71475         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
71476
71477 2006-10-24  Bruno Haible  <bruno@clisp.org>
71478
71479         * lib/gl_list.h: Use C comment style, not C++ comment style.
71480
71481 2006-10-23  Eric Blake  <ebb9@byu.net>
71482
71483         * lib/getaddrinfo.c (includes): Add missing include.
71484
71485 2006-10-23  Bruno Haible  <bruno@clisp.org>
71486             Paul Eggert  <eggert@cs.ucla.edu>
71487
71488         Ability to rename obstack_free.
71489         * lib/obstack.h (__obstack_free): New macro. Declare instead of
71490         obstack_free.
71491         (obstack_free): Invoke the __obstack_free macro.
71492         * lib/obstack.c (obstack_free): Use __obstack_free macro.
71493
71494 2006-10-23  Bruno Haible  <bruno@clisp.org>
71495             Paul Eggert  <eggert@cs.ucla.edu>
71496
71497         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
71498         __argc, __argv from the declaration. (They are defined as macros on
71499         mingw.)
71500
71501 2006-10-22  Bruno Haible  <bruno@clisp.org>
71502
71503         * doc/gnulib-intro.texi: New file.
71504         * doc/gnulib.texi: Include it.
71505
71506 2006-10-21  Bruno Haible  <bruno@clisp.org>
71507
71508         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
71509         "Introduction", "Miscellanous Notes", "Particular Modules".
71510
71511 2006-10-21  Bruno Haible  <bruno@clisp.org>
71512
71513         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71514         Change mostlyclean-local rule to avoid sh syntax error from bash
71515         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
71516
71517 2006-10-23  Jim Meyering  <jim@meyering.net>
71518
71519         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
71520         in place of snprintf.
71521
71522         * modules/inttostr (Files): Add lib/uinttostr.c.
71523         * lib/uinttostr.c (inttostr): New file/function.
71524         * lib/inttostr.h (uinttostr): Declare.
71525         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
71526         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
71527         Add uinttostr.
71528         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
71529
71530 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71531
71532         * lib/canonicalize.c (ELOOP): Define if not already defined.
71533         Problem reported by Bruno Haible in
71534         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
71535
71536 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71537
71538         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
71539         Problem reported by Perry Smith and Ville Laurikari.
71540
71541         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
71542         uses.
71543
71544 2006-10-19  Bruno Haible  <bruno@clisp.org>
71545
71546         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
71547         for mingw.
71548
71549 2006-10-19  Bruno Haible  <bruno@clisp.org>
71550
71551         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
71552         Needed for mingw.
71553
71554 2006-10-19  Bruno Haible  <bruno@clisp.org>
71555
71556         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
71557
71558 2006-10-19  Bruno Haible  <bruno@clisp.org>
71559
71560         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
71561         it.
71562
71563 2006-10-19  Bruno Haible  <bruno@clisp.org>
71564
71565         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
71566         invocation.
71567
71568 2006-10-19  Bruno Haible  <bruno@clisp.org>
71569
71570         * gnulib-tool (func_create_testdir): Don't include ftruncate and
71571         mountlist by default.
71572
71573 2006-10-16  Bruno Haible  <bruno@clisp.org>
71574
71575         * lib/c-strstr.c: Include c-strstr.h.
71576
71577 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71578
71579         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
71580         in a slash.
71581
71582 2006-10-18  Bruno Haible  <bruno@clisp.org>
71583
71584         * lib/lock.h [C++]: Wrap definitions in extern "C".
71585
71586 2006-10-18  Bruno Haible  <bruno@clisp.org>
71587
71588         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
71589         gl_LIBOBJS list.
71590
71591 2006-10-18  Bruno Haible  <bruno@clisp.org>
71592
71593         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
71594
71595 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
71596
71597         * lib/xstrtol.h: Include gettext.h.
71598         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
71599         Problem reported by Eric Blake.
71600         * modules/xstrtol (Depends-on): Add gettext-h.
71601
71602 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
71603
71604         * lib/strftime.c (advance): New macro.
71605         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
71606         incomplete type, so you can't add 0 to it.  Problem and patch
71607         reported by Eelco Dolstra for dietlibc.
71608
71609 2006-10-18  Jim Meyering  <jim@meyering.net>
71610
71611         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
71612         type for a local, and rename it: s/up/user_proc/.
71613
71614 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
71615
71616         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
71617         READ_UTMP_USER_PROCESS.
71618         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
71619
71620 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
71621
71622         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
71623         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
71624
71625 2006-10-17  Eric Blake  <ebb9@byu.net>
71626
71627         * lib/sigprocmask.c (sigprocmask): Fix typo.
71628
71629         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
71630
71631         * modules/clean-temp (Makefile.am): Don't add to make output...
71632         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
71633         config.h.
71634
71635 2006-10-17  Bruno Haible  <bruno@clisp.org>
71636
71637         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
71638         differently if DEFAULT_TEXT_DOMAIN is set.
71639
71640 2006-10-16  Bruno Haible  <bruno@clisp.org>
71641
71642         * lib/clean-temp.c: Include fwriteerror.h.
71643
71644 2006-10-16  Bruno Haible  <bruno@clisp.org>
71645
71646         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
71647
71648 2006-10-16  Bruno Haible  <bruno@clisp.org>
71649
71650         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
71651         * lib/sigprocmask.h: Include <sys/types.h>.
71652         (sigset_t): Use the system's definition if present.
71653
71654 2006-10-17  Eric Blake  <ebb9@byu.net>
71655
71656         * lib/xvasprintf.c (includes): Assume config.h.
71657         * lib/xasprintf.c (includes): Likewise.
71658
71659 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
71660
71661         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
71662         at least as wide as intmax_t.
71663
71664 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
71665
71666         (Imported from Automake.)
71667         * build-aux/gnupload: Update to version 1.1 of directive file.
71668
71669 2006-10-16  Eric Blake  <ebb9@byu.net>
71670
71671         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
71672         match Automake 1.10a.
71673
71674 2006-10-14  Bruno Haible  <bruno@clisp.org>
71675
71676         * modules/sigprocmask: New file.
71677         * lib/sigprocmask.h: New file.
71678         * lib/sigprocmask.c: New file.
71679         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
71680         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
71681         request sigprocmask.o.
71682         (gl_PREREQ_SIGPROCMASK): New macro.
71683         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
71684         (Depends-on): Add sigprocmask.
71685         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
71686         gt_SIGNALBLOCKING. Test for 'raise' only once.
71687         * lib/fatal-signal.c: Include sigprocmask.h.
71688         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
71689         unblock_fatal_signals): Define always.
71690         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71691         sigprocmask.
71692
71693 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
71694
71695         Sync from Automake.
71696         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
71697         which incorrectly sets the mode of an existing destination
71698         directory.  In some cases the unpatched install-sh could do the
71699         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
71700         system.  We hope this is rare in practice, but it's clearly worth
71701         fixing.  Problem reported by Alex Unleashed in
71702         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
71703         Also, don't bother to check for -m bugs unless we're using -m;
71704         suggested by Stepan Kasal.
71705
71706 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71707
71708         Sync from Automake.
71709         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
71710         `-c' flag, so they appear at the same position as in %FASTDEP%
71711         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
71712         which ignores unknown options only after the first non-option.
71713         Bug report against M4 by Nelson H. F. Beebe.
71714
71715 2006-10-13  Jim Meyering  <jim@meyering.net>
71716
71717         Fix a bug in yesterday's change.
71718         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
71719         p->fts_statp->st_dev would be used uninitialized.
71720         Ensures that we always call fts_stat on the very first entry.
71721         Miklos Szeredi reported that find -xdev stopped working.
71722
71723 2006-10-12  Bruno Haible  <bruno@clisp.org>
71724
71725         * gnulib-tool (func_get_automake_snippet): Append an automatically
71726         computed EXTRA_DIST augmentation.
71727         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
71728         * modules/alloca-opt (Makefile.am): Likewise.
71729         * modules/allocsa (Makefile.am): Likewise.
71730         * modules/arcfour (Makefile.am): Likewise.
71731         * modules/arctwo (Makefile.am): Likewise.
71732         * modules/argmatch (Makefile.am): Likewise.
71733         * modules/argz (Makefile.am): Likewise.
71734         * modules/atexit (Makefile.am): Likewise.
71735         * modules/backupfile (Makefile.am): Likewise.
71736         * modules/byteswap (Makefile.am): Likewise.
71737         * modules/c-strtod (Makefile.am): Likewise.
71738         * modules/c-strtold (Makefile.am): Likewise.
71739         * modules/calloc (Makefile.am): Likewise.
71740         * modules/canon-host (Makefile.am): Likewise.
71741         * modules/canonicalize (Makefile.am): Likewise.
71742         * modules/chdir-long (Makefile.am): Likewise.
71743         * modules/chdir-safer (Makefile.am): Likewise.
71744         * modules/check-version (Makefile.am): Likewise.
71745         * modules/chown (Makefile.am): Likewise.
71746         * modules/cloexec (Makefile.am): Likewise.
71747         * modules/close-stream (Makefile.am): Likewise.
71748         * modules/closeout (Makefile.am): Likewise.
71749         * modules/crc (Makefile.am): Likewise.
71750         * modules/csharpexec (Makefile.am): Likewise.
71751         * modules/cycle-check (Makefile.am): Likewise.
71752         * modules/des (Makefile.am): Likewise.
71753         * modules/dev-ino (Makefile.am): Likewise.
71754         * modules/dirfd (Makefile.am): Likewise.
71755         * modules/dirname (Makefile.am): Likewise.
71756         * modules/dup2 (Makefile.am): Likewise.
71757         * modules/eealloc (Makefile.am): Likewise.
71758         * modules/error (Makefile.am): Likewise.
71759         * modules/euidaccess (Makefile.am): Likewise.
71760         * modules/exclude (Makefile.am): Likewise.
71761         * modules/exitfail (Makefile.am): Likewise.
71762         * modules/fcntl-safer (Makefile.am): Likewise.
71763         * modules/fcntl (Makefile.am): Likewise.
71764         * modules/file-type (Makefile.am): Likewise.
71765         * modules/fileblocks (Makefile.am): Likewise.
71766         * modules/filemode (Makefile.am): Likewise.
71767         * modules/filenamecat (Makefile.am): Likewise.
71768         * modules/fnmatch (Makefile.am): Likewise.
71769         * modules/fopen-safer (Makefile.am): Likewise.
71770         * modules/fpending (Makefile.am): Likewise.
71771         * modules/fprintftime (Makefile.am): Likewise.
71772         * modules/free (Makefile.am): Likewise.
71773         * modules/fsusage (Makefile.am): Likewise.
71774         * modules/ftruncate (Makefile.am): Likewise.
71775         * modules/fts (Makefile.am): Likewise.
71776         * modules/gc-arcfour (Makefile.am): Likewise.
71777         * modules/gc-des (Makefile.am): Likewise.
71778         * modules/gc-hmac-md5 (Makefile.am): Likewise.
71779         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
71780         * modules/gc-md4 (Makefile.am): Likewise.
71781         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
71782         * modules/gc-sha1 (Makefile.am): Likewise.
71783         * modules/gc (Makefile.am): Likewise.
71784         * modules/getaddrinfo (Makefile.am): Likewise.
71785         * modules/getcwd (Makefile.am): Likewise.
71786         * modules/getdelim (Makefile.am): Likewise.
71787         * modules/getdomainname (Makefile.am): Likewise.
71788         * modules/getgroups (Makefile.am): Likewise.
71789         * modules/gethostname (Makefile.am): Likewise.
71790         * modules/gethrxtime (Makefile.am): Likewise.
71791         * modules/getline (Makefile.am): Likewise.
71792         * modules/getloadavg (Makefile.am): Likewise.
71793         * modules/getlogin_r (Makefile.am): Likewise.
71794         * modules/getndelim2 (Makefile.am): Likewise.
71795         * modules/getopt (Makefile.am): Likewise.
71796         * modules/getpagesize (Makefile.am): Likewise.
71797         * modules/getpass-gnu (Makefile.am): Likewise.
71798         * modules/getpass (Makefile.am): Likewise.
71799         * modules/getsubopt (Makefile.am): Likewise.
71800         * modules/gettime (Makefile.am): Likewise.
71801         * modules/gettimeofday (Makefile.am): Likewise.
71802         * modules/getugroups (Makefile.am): Likewise.
71803         * modules/getusershell (Makefile.am): Likewise.
71804         * modules/glob (Makefile.am): Likewise.
71805         * modules/group-member (Makefile.am): Likewise.
71806         * modules/hard-locale (Makefile.am): Likewise.
71807         * modules/hash (Makefile.am): Likewise.
71808         * modules/hmac-md5 (Makefile.am): Likewise.
71809         * modules/hmac-sha1 (Makefile.am): Likewise.
71810         * modules/human (Makefile.am): Likewise.
71811         * modules/idcache (Makefile.am): Likewise.
71812         * modules/imaxabs (Makefile.am): Likewise.
71813         * modules/imaxdiv (Makefile.am): Likewise.
71814         * modules/inet_ntop (Makefile.am): Likewise.
71815         * modules/inet_pton (Makefile.am): Likewise.
71816         * modules/intprops (Makefile.am): Likewise.
71817         * modules/inttostr (Makefile.am): Likewise.
71818         * modules/inttypes (Makefile.am): Likewise.
71819         * modules/isapipe (Makefile.am): Likewise.
71820         * modules/javaversion (Makefile.am): Likewise.
71821         * modules/lchmod (Makefile.am): Likewise.
71822         * modules/lchown (Makefile.am): Likewise.
71823         * modules/localcharset (Makefile.am): Likewise.
71824         * modules/long-options (Makefile.am): Likewise.
71825         * modules/lstat (Makefile.am): Likewise.
71826         * modules/malloc (Makefile.am): Likewise.
71827         * modules/mathl (Makefile.am): Likewise.
71828         * modules/mbchar (Makefile.am): Likewise.
71829         * modules/md2 (Makefile.am): Likewise.
71830         * modules/md4 (Makefile.am): Likewise.
71831         * modules/md5 (Makefile.am): Likewise.
71832         * modules/memcasecmp (Makefile.am): Likewise.
71833         * modules/memchr (Makefile.am): Likewise.
71834         * modules/memcmp (Makefile.am): Likewise.
71835         * modules/memcoll (Makefile.am): Likewise.
71836         * modules/memcpy (Makefile.am): Likewise.
71837         * modules/memmem (Makefile.am): Likewise.
71838         * modules/memmove (Makefile.am): Likewise.
71839         * modules/mempcpy (Makefile.am): Likewise.
71840         * modules/memrchr (Makefile.am): Likewise.
71841         * modules/memset (Makefile.am): Likewise.
71842         * modules/memxor (Makefile.am): Likewise.
71843         * modules/mkancesdirs (Makefile.am): Likewise.
71844         * modules/mkdir-p (Makefile.am): Likewise.
71845         * modules/mkdir (Makefile.am): Likewise.
71846         * modules/mkdtemp (Makefile.am): Likewise.
71847         * modules/mkstemp (Makefile.am): Likewise.
71848         * modules/mktime (Makefile.am): Likewise.
71849         * modules/modechange (Makefile.am): Likewise.
71850         * modules/mountlist (Makefile.am): Likewise.
71851         * modules/nanosleep (Makefile.am): Likewise.
71852         * modules/obstack (Makefile.am): Likewise.
71853         * modules/openat (Makefile.am): Likewise.
71854         * modules/pagealign_alloc (Makefile.am): Likewise.
71855         * modules/pathmax (Makefile.am): Likewise.
71856         * modules/physmem (Makefile.am): Likewise.
71857         * modules/poll (Makefile.am): Likewise.
71858         * modules/posixtm (Makefile.am): Likewise.
71859         * modules/posixver (Makefile.am): Likewise.
71860         * modules/putenv (Makefile.am): Likewise.
71861         * modules/quote (Makefile.am): Likewise.
71862         * modules/quotearg (Makefile.am): Likewise.
71863         * modules/raise (Makefile.am): Likewise.
71864         * modules/read-file (Makefile.am): Likewise.
71865         * modules/readline (Makefile.am): Likewise.
71866         * modules/readlink (Makefile.am): Likewise.
71867         * modules/readtokens (Makefile.am): Likewise.
71868         * modules/readutmp (Makefile.am): Likewise.
71869         * modules/realloc (Makefile.am): Likewise.
71870         * modules/regex (Makefile.am): Likewise.
71871         * modules/rename-dest-slash (Makefile.am): Likewise.
71872         * modules/rename (Makefile.am): Likewise.
71873         * modules/rijndael (Makefile.am): Likewise.
71874         * modules/rmdir (Makefile.am): Likewise.
71875         * modules/rpmatch (Makefile.am): Likewise.
71876         * modules/safe-read (Makefile.am): Likewise.
71877         * modules/safe-write (Makefile.am): Likewise.
71878         * modules/same-inode (Makefile.am): Likewise.
71879         * modules/same (Makefile.am): Likewise.
71880         * modules/save-cwd (Makefile.am): Likewise.
71881         * modules/savedir (Makefile.am): Likewise.
71882         * modules/setenv (Makefile.am): Likewise.
71883         * modules/settime (Makefile.am): Likewise.
71884         * modules/sha1 (Makefile.am): Likewise.
71885         * modules/sig2str (Makefile.am): Likewise.
71886         * modules/snprintf (Makefile.am): Likewise.
71887         * modules/stat-macros (Makefile.am): Likewise.
71888         * modules/stat-time (Makefile.am): Likewise.
71889         * modules/stdbool (Makefile.am): Likewise.
71890         * modules/stdint (Makefile.am): Likewise.
71891         * modules/stdlib-safer (Makefile.am): Likewise.
71892         * modules/stpcpy (Makefile.am): Likewise.
71893         * modules/stpncpy (Makefile.am): Likewise.
71894         * modules/strcase (Makefile.am): Likewise.
71895         * modules/strcasestr (Makefile.am): Likewise.
71896         * modules/strchrnul (Makefile.am): Likewise.
71897         * modules/strcspn (Makefile.am): Likewise.
71898         * modules/strdup (Makefile.am): Likewise.
71899         * modules/strerror (Makefile.am): Likewise.
71900         * modules/strftime (Makefile.am): Likewise.
71901         * modules/strndup (Makefile.am): Likewise.
71902         * modules/strnlen (Makefile.am): Likewise.
71903         * modules/strpbrk (Makefile.am): Likewise.
71904         * modules/strsep (Makefile.am): Likewise.
71905         * modules/strstr (Makefile.am): Likewise.
71906         * modules/strtod (Makefile.am): Likewise.
71907         * modules/strtoimax (Makefile.am): Likewise.
71908         * modules/strtok_r (Makefile.am): Likewise.
71909         * modules/strtol (Makefile.am): Likewise.
71910         * modules/strtoll (Makefile.am): Likewise.
71911         * modules/strtoul (Makefile.am): Likewise.
71912         * modules/strtoull (Makefile.am): Likewise.
71913         * modules/strtoumax (Makefile.am): Likewise.
71914         * modules/strverscmp (Makefile.am): Likewise.
71915         * modules/sys_socket (Makefile.am): Likewise.
71916         * modules/sys_stat (Makefile.am): Likewise.
71917         * modules/sysexits (Makefile.am): Likewise.
71918         * modules/time_r (Makefile.am): Likewise.
71919         * modules/timegm (Makefile.am): Likewise.
71920         * modules/timespec (Makefile.am): Likewise.
71921         * modules/tmpfile-safer (Makefile.am): Likewise.
71922         * modules/trim (Makefile.am): Likewise.
71923         * modules/unistd-safer (Makefile.am): Likewise.
71924         * modules/unlinkdir (Makefile.am): Likewise.
71925         * modules/unlocked-io (Makefile.am): Likewise.
71926         * modules/userspec (Makefile.am): Likewise.
71927         * modules/utime (Makefile.am): Likewise.
71928         * modules/utimecmp (Makefile.am): Likewise.
71929         * modules/utimens (Makefile.am): Likewise.
71930         * modules/vasnprintf (Makefile.am): Likewise.
71931         * modules/vasprintf (Makefile.am): Likewise.
71932         * modules/vsnprintf (Makefile.am): Likewise.
71933         * modules/xalloc (Makefile.am): Likewise.
71934         * modules/xgetcwd (Makefile.am): Likewise.
71935         * modules/xnanosleep (Makefile.am): Likewise.
71936         * modules/xreadlink (Makefile.am): Likewise.
71937         * modules/xstrtod (Makefile.am): Likewise.
71938         * modules/xstrtol (Makefile.am): Likewise.
71939         * modules/xstrtold (Makefile.am): Likewise.
71940         * modules/yesno (Makefile.am): Likewise.
71941         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
71942
71943 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
71944
71945         * modules/error (Makefile.am): Distribute files through
71946         EXTRA_DIST, not lib_SOURCES.
71947
71948 2006-10-12  Eric Blake  <ebb9@byu.net>
71949
71950         * modules/error (Makefile.am): Distribute files in /lib.
71951         * modules/obstack (Makefile.am): Likewise.
71952
71953 2006-10-12  Bruno Haible  <bruno@clisp.org>
71954
71955         * modules/acl (Makefile.am): Distribute all files in lib/ through
71956         EXTRA_DIST.
71957         * modules/arcfour (Makefile.am): Likewise.
71958         * modules/arctwo (Makefile.am): Likewise.
71959         * modules/argmatch (Makefile.am): Likewise.
71960         * modules/argz (Makefile.am): Likewise.
71961         * modules/atexit (Makefile.am): Likewise.
71962         * modules/backupfile (Makefile.am): Likewise.
71963         * modules/c-strtod (Makefile.am): Likewise.
71964         * modules/c-strtold (Makefile.am): Likewise.
71965         * modules/calloc (Makefile.am): Likewise.
71966         * modules/canon-host (Makefile.am): Likewise.
71967         * modules/canonicalize (Makefile.am): Likewise.
71968         * modules/chdir-long (Makefile.am): Likewise.
71969         * modules/chdir-safer (Makefile.am): Likewise.
71970         * modules/check-version (Makefile.am): Likewise.
71971         * modules/chown (Makefile.am): Likewise.
71972         * modules/cloexec (Makefile.am): Likewise.
71973         * modules/close-stream (Makefile.am): Likewise.
71974         * modules/closeout (Makefile.am): Likewise.
71975         * modules/crc (Makefile.am): Likewise.
71976         * modules/cycle-check (Makefile.am): Likewise.
71977         * modules/des (Makefile.am): Likewise.
71978         * modules/dirfd (Makefile.am): Likewise.
71979         * modules/dirname (Makefile.am): Likewise.
71980         * modules/dup2 (Makefile.am): Likewise.
71981         * modules/euidaccess (Makefile.am): Likewise.
71982         * modules/exclude (Makefile.am): Likewise.
71983         * modules/exitfail (Makefile.am): Likewise.
71984         * modules/fcntl-safer (Makefile.am): Likewise.
71985         * modules/file-type (Makefile.am): Likewise.
71986         * modules/fileblocks (Makefile.am): Likewise.
71987         * modules/filemode (Makefile.am): Likewise.
71988         * modules/filenamecat (Makefile.am): Likewise.
71989         * modules/fnmatch (Makefile.am): Likewise.
71990         * modules/fopen-safer (Makefile.am): Likewise.
71991         * modules/fpending (Makefile.am): Likewise.
71992         * modules/fprintftime (Makefile.am): Likewise.
71993         * modules/free (Makefile.am): Likewise.
71994         * modules/fsusage (Makefile.am): Likewise.
71995         * modules/ftruncate (Makefile.am): Likewise.
71996         * modules/fts (Makefile.am): Likewise.
71997         * modules/gc (Makefile.am): Likewise.
71998         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
71999         * modules/getaddrinfo (Makefile.am): Likewise.
72000         * modules/getcwd (Makefile.am): Likewise.
72001         * modules/getdelim (Makefile.am): Likewise.
72002         * modules/getdomainname (Makefile.am): Likewise.
72003         * modules/getgroups (Makefile.am): Likewise.
72004         * modules/gethostname (Makefile.am): Likewise.
72005         * modules/gethrxtime (Makefile.am): Likewise.
72006         * modules/getline (Makefile.am): Likewise.
72007         * modules/getloadavg (Makefile.am): Likewise.
72008         * modules/getlogin_r (Makefile.am): Likewise.
72009         * modules/getopt (Makefile.am): Likewise.
72010         * modules/getpass (Makefile.am): Likewise.
72011         * modules/getpass-gnu (Makefile.am): Likewise.
72012         * modules/getsubopt (Makefile.am): Likewise.
72013         * modules/gettime (Makefile.am): Likewise.
72014         * modules/gettimeofday (Makefile.am): Likewise.
72015         * modules/getugroups (Makefile.am): Likewise.
72016         * modules/getusershell (Makefile.am): Likewise.
72017         * modules/glob (Makefile.am): Likewise.
72018         * modules/group-member (Makefile.am): Likewise.
72019         * modules/hard-locale (Makefile.am): Likewise.
72020         * modules/hash (Makefile.am): Likewise.
72021         * modules/hmac-md5 (Makefile.am): Likewise.
72022         * modules/hmac-sha1 (Makefile.am): Likewise.
72023         * modules/human (Makefile.am): Likewise.
72024         * modules/idcache (Makefile.am): Likewise.
72025         * modules/imaxabs (Makefile.am): Likewise.
72026         * modules/imaxdiv (Makefile.am): Likewise.
72027         * modules/inet_ntop (Makefile.am): Likewise.
72028         * modules/inet_pton (Makefile.am): Likewise.
72029         * modules/inttostr (Makefile.am): Likewise.
72030         * modules/isapipe (Makefile.am): Likewise.
72031         * modules/lchown (Makefile.am): Likewise.
72032         * modules/long-options (Makefile.am): Likewise.
72033         * modules/lstat (Makefile.am): Likewise.
72034         * modules/malloc (Makefile.am): Likewise.
72035         * modules/mathl (Makefile.am): Likewise.
72036         * modules/mbchar (Makefile.am): Likewise.
72037         * modules/md2 (Makefile.am): Likewise.
72038         * modules/md4 (Makefile.am): Likewise.
72039         * modules/md5 (Makefile.am): Likewise.
72040         * modules/memcasecmp (Makefile.am): Likewise.
72041         * modules/memchr (Makefile.am): Likewise.
72042         * modules/memcmp (Makefile.am): Likewise.
72043         * modules/memcoll (Makefile.am): Likewise.
72044         * modules/memcpy (Makefile.am): Likewise.
72045         * modules/memmem (Makefile.am): Likewise.
72046         * modules/memmove (Makefile.am): Likewise.
72047         * modules/mempcpy (Makefile.am): Likewise.
72048         * modules/memrchr (Makefile.am): Likewise.
72049         * modules/memset (Makefile.am): Likewise.
72050         * modules/memxor (Makefile.am): Likewise.
72051         * modules/mkancesdirs (Makefile.am): Likewise.
72052         * modules/mkdir (Makefile.am): Likewise.
72053         * modules/mkdir-p (Makefile.am): Likewise.
72054         * modules/mkdtemp (Makefile.am): Likewise.
72055         * modules/mkstemp (Makefile.am): Likewise.
72056         * modules/mktime (Makefile.am): Likewise.
72057         * modules/modechange (Makefile.am): Likewise.
72058         * modules/mountlist (Makefile.am): Likewise.
72059         * modules/nanosleep (Makefile.am): Likewise.
72060         * modules/openat (Makefile.am): Likewise.
72061         * modules/pagealign_alloc (Makefile.am): Likewise.
72062         * modules/physmem (Makefile.am): Likewise.
72063         * modules/poll (Makefile.am): Likewise.
72064         * modules/posixtm (Makefile.am): Likewise.
72065         * modules/posixver (Makefile.am): Likewise.
72066         * modules/putenv (Makefile.am): Likewise.
72067         * modules/quote (Makefile.am): Likewise.
72068         * modules/quotearg (Makefile.am): Likewise.
72069         * modules/raise (Makefile.am): Likewise.
72070         * modules/read-file (Makefile.am): Likewise.
72071         * modules/readline (Makefile.am): Likewise.
72072         * modules/readlink (Makefile.am): Likewise.
72073         * modules/readtokens (Makefile.am): Likewise.
72074         * modules/readutmp (Makefile.am): Likewise.
72075         * modules/realloc (Makefile.am): Likewise.
72076         * modules/regex (Makefile.am): Likewise.
72077         * modules/rename (Makefile.am): Likewise.
72078         * modules/rename-dest-slash (Makefile.am): Likewise.
72079         * modules/rijndael (Makefile.am): Likewise.
72080         * modules/rmdir (Makefile.am): Likewise.
72081         * modules/rpmatch (Makefile.am): Likewise.
72082         * modules/safe-read (Makefile.am): Likewise.
72083         * modules/safe-write (Makefile.am): Likewise.
72084         * modules/same (Makefile.am): Likewise.
72085         * modules/save-cwd (Makefile.am): Likewise.
72086         * modules/savedir (Makefile.am): Likewise.
72087         * modules/setenv (Makefile.am): Likewise.
72088         * modules/settime (Makefile.am): Likewise.
72089         * modules/sha1 (Makefile.am): Likewise.
72090         * modules/sig2str (Makefile.am): Likewise.
72091         * modules/snprintf (Makefile.am): Likewise.
72092         * modules/stdlib-safer (Makefile.am): Likewise.
72093         * modules/stpcpy (Makefile.am): Likewise.
72094         * modules/stpncpy (Makefile.am): Likewise.
72095         * modules/strcase (Makefile.am): Likewise.
72096         * modules/strcasestr (Makefile.am): Likewise.
72097         * modules/strchrnul (Makefile.am): Likewise.
72098         * modules/strcspn (Makefile.am): Likewise.
72099         * modules/strdup (Makefile.am): Likewise.
72100         * modules/strerror (Makefile.am): Likewise.
72101         * modules/strftime (Makefile.am): Likewise.
72102         * modules/strndup (Makefile.am): Likewise.
72103         * modules/strnlen (Makefile.am): Likewise.
72104         * modules/strpbrk (Makefile.am): Likewise.
72105         * modules/strsep (Makefile.am): Likewise.
72106         * modules/strstr (Makefile.am): Likewise.
72107         * modules/strtod (Makefile.am): Likewise.
72108         * modules/strtoimax (Makefile.am): Likewise.
72109         * modules/strtok_r (Makefile.am): Likewise.
72110         * modules/strtol (Makefile.am): Likewise.
72111         * modules/strtoll (Makefile.am): Likewise.
72112         * modules/strtoul (Makefile.am): Likewise.
72113         * modules/strtoull (Makefile.am): Likewise.
72114         * modules/strtoumax (Makefile.am): Likewise.
72115         * modules/strverscmp (Makefile.am): Likewise.
72116         * modules/time_r (Makefile.am): Likewise.
72117         * modules/timegm (Makefile.am): Likewise.
72118         * modules/tmpfile-safer (Makefile.am): Likewise.
72119         * modules/unistd-safer (Makefile.am): Likewise.
72120         * modules/unlinkdir (Makefile.am): Likewise.
72121         * modules/userspec (Makefile.am): Likewise.
72122         * modules/utime (Makefile.am): Likewise.
72123         * modules/utimecmp (Makefile.am): Likewise.
72124         * modules/utimens (Makefile.am): Likewise.
72125         * modules/vasnprintf (Makefile.am): Likewise.
72126         * modules/vasprintf (Makefile.am): Likewise.
72127         * modules/vsnprintf (Makefile.am): Likewise.
72128         * modules/xalloc (Makefile.am): Likewise.
72129         * modules/xgetcwd (Makefile.am): Likewise.
72130         * modules/xnanosleep (Makefile.am): Likewise.
72131         * modules/xreadlink (Makefile.am): Likewise.
72132         * modules/xstrtod (Makefile.am): Likewise.
72133         * modules/xstrtol (Makefile.am): Likewise.
72134         * modules/xstrtold (Makefile.am): Likewise.
72135         * modules/yesno (Makefile.am): Likewise.
72136
72137 2006-10-12  Jim Meyering  <jim@meyering.net>
72138
72139         * m4/getloadavg.m4: Revert the change below.
72140
72141         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
72142         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
72143         fail with a symlink, which is what coreutils' ./bootstrap now
72144         creates by default.
72145
72146 2006-10-12  Bruno Haible  <bruno@clisp.org>
72147
72148         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
72149         mingw.
72150         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
72151         MSVC and mingw explicitly.
72152
72153 2006-10-11  Simon Josefsson  <jas@extundo.com>
72154             Bruno Haible  <bruno@clisp.org>
72155
72156         Add support for multiple gnulib-tool invocations in the scope of a
72157         single configure.ac file.
72158         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
72159         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
72160         with the same contents as the _LIBADD variable.
72161         (func_emit_initmacro_start, func_emit_initmacro_end,
72162         func_emit_initmacro_done): New functions.
72163         (func_import, func_create_testdir): Invoke them. Allow the identifiers
72164         gl_LIBOBJS and gl_LTLIBOBJS.
72165
72166 2006-10-11  Bruno Haible  <bruno@clisp.org>
72167
72168         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
72169         (func_create_testdir): Don't create po/Makefile.am, don't invoke
72170         autoreconf. Instead, invoke autopoint explicitly but move back the
72171         *.m4 files from gnulib.
72172
72173 2006-10-11  Bruno Haible  <bruno@clisp.org>
72174
72175         * gnulib-tool (func_usage): Make module names after --create-testdir
72176         optional.
72177         (func_create_testdir): If no module was specified, use nearly all
72178         modules.
72179
72180 2006-10-12  Jim Meyering  <jim@meyering.net>
72181
72182         Big performance improvement for fts-based tools that use FTS_NOSTAT.
72183         Avoid spurious inode-mismatch problems on non-POSIX file systems.
72184         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
72185         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
72186         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
72187         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
72188         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
72189         (fts_set_stat_required): New function.
72190         (fts_open): Defer the calls to fts_stat, if possible or requested.
72191         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
72192         into fts_stat itself.
72193         (fts_read): Perform any required (deferred) fts_stat call.
72194         (fts_build): Likewise, for the directory we're about to open and read.
72195         In the readdir loop, carefully decide whether each entry will require
72196         an eventual call to fts_stat, using dirent.d_type info if available.
72197         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
72198         a command line argument into this function.  Update all callers.
72199         Map a return value of FTS_DOT to FTS_D for a command line argument.
72200         * modules/fts (Depends-on): Add d-type.  Alphabetize.
72201         Thanks to Miklos Szeredi for his tenacity and for the initial
72202         bug report about "find" failing on a FUSE-based file system.
72203
72204         * lib/fts.c (fts_open): Use consistent indentation.
72205
72206 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72207
72208         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
72209         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
72210         reported by Jim Meyering.  All uses of cache variables renamed
72211         to match Autoconf's.
72212         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
72213         the other one.
72214
72215         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
72216         Fix misspelling in diagnostic.
72217
72218 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72219
72220         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
72221         defined.  Problem reported by Matthew Woehlke.
72222
72223         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
72224         Add support for Tandem NonStop R series.
72225         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
72226         Use new macro.
72227
72228         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
72229         (has_trailing_slash): Omit size arg; all callers changed.
72230         Omit 'inline', since it doesn't help performance and we'd
72231         need to configure it.
72232         Don't count //, ///, etc. as having a trailing slash.
72233         As a side effect, this removes a C99ism reported by Matthew Woehlke.
72234         (rpl_rename_dest_slash): On failure, use rename's errno rather
72235         than (in some cases) an incorrect or junk errno.
72236         Simplify code by removing need to compute length; this does
72237         cause it to make two passes instead of one over the file name,
72238         but it's worth it.
72239
72240         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
72241         change, since Autoconf's version may no longer be appropriate now
72242         that we are using CVS Autoconf's version.  Add support for Tandem.
72243
72244 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72245             Bruno Haible  <bruno@clisp.org>
72246
72247         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
72248         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
72249         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
72250         gl_AC_TYPE_LONG_LONG.
72251
72252         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
72253         instead of HAVE_LONG_LONG.
72254         * lib/printf-args.c (printf_fetchargs): Likewise.
72255         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
72256         * lib/vasnprintf.c (VASNPRINTF): Likewise.
72257         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
72258         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
72259         gl_AC_TYPE_LONG_LONG.
72260
72261 2006-10-11  Bruno Haible  <bruno@clisp.org>
72262
72263         * m4/longlong.m4: Add comments.
72264         * m4/ulonglong.m4: Likewise.
72265
72266 2006-10-10  Bruno Haible  <bruno@clisp.org>
72267
72268         Make it possible to #define stpcpy, strdup to aliases.
72269         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
72270         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
72271
72272 2006-10-10  Bruno Haible  <bruno@clisp.org>
72273
72274         Make it possible to #define gcd to an alias.
72275         * lib/gcd.c: Include config.h.
72276
72277 2006-10-10  Bruno Haible  <bruno@clisp.org>
72278
72279         Make it possible to #define c_isascii to an alias.
72280         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
72281         defined. Undefine the macros before defining them, to avoid gcc
72282         warnings.
72283         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
72284         define NO_C_CTYPE_MACROS early.
72285
72286 2006-10-10  Bruno Haible  <bruno@clisp.org>
72287
72288         Make it possible to #define set_program_name to an alias.
72289         * lib/progname.c: Don't undefine set_program_name; instead, undefine
72290         ENABLE_RELOCATABLE early.
72291
72292 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72293
72294         Port to Tandem NSK OSS, which has 64-bit signed int but at most
72295         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
72296         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
72297         More generally, don't assume that 64-bit signed int is available
72298         if unsigned int is, and vice versa.
72299         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
72300         unsigned symbols, not on their signed counterparts.
72301         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
72302         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
72303         (UINT64_C, UINTMAX_C):
72304         Likewise.
72305         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
72306         unsigned counterparts.
72307         (Have_long_long, Unsigned): New macros.
72308         (Int): Renamed from INT.
72309         (strtoimax): Use the new macros.
72310         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
72311         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
72312         * modules/inttypes (inttypes.h): Substitute
72313         HAVE_UNSIGNED_LONG_LONG_INT.
72314         * modules/stdint (stdint.h): Likewise.
72315         (Files): Add m4/ulonglong.m4.
72316
72317 2006-10-10  Bruno Haible  <bruno@clisp.org>
72318
72319         Fix a gcc -Wshadow warning.
72320         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
72321         to 'bucket'.
72322         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
72323         gl_linked_indexof_from_to): Likewise.
72324         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
72325         Likewise.
72326         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
72327         Likewise.
72328         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
72329         Reported by Eric Blake.
72330
72331 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
72332
72333         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
72334         for NetBSD.  Problem reported by Bruno Haible.
72335
72336 2006-10-09  Jim Meyering  <jim@meyering.net>
72337
72338         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
72339         Patch from Bruno Haible.
72340
72341 2006-10-09  Jim Meyering  <jim@meyering.net>
72342
72343         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
72344         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
72345         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
72346
72347 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
72348
72349         Don't include <config.h> twice; this doesn't work in some cases,
72350         e.g., when config.h has "#define intmax_t long long int" and
72351         we include <config.h>, <inttypes.h>, <config.h> in that order.
72352         Problem reported by Matthew Woehlke in:
72353         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
72354         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
72355         * lib/fts-cycle.c: Don't include config.h.
72356         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
72357         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
72358         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
72359         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
72360         inttypes.h.
72361         * lib/xstrtoumax.c: Likewise.
72362         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
72363         __strtol and the like, so that this module is more like its siblings.
72364         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
72365         Remove; no longer needed now that we assume gnulib inttypes.h.
72366
72367 2006-10-08  Bruno Haible  <bruno@clisp.org>
72368
72369         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
72370         option.
72371
72372 2006-10-07  Jim Meyering  <jim@meyering.net>
72373
72374         * modules/inttypes (inttypes.h): Revert what seems to have been
72375         an inadvertent part of today's change: use "|", not "/" in the
72376         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
72377
72378 2006-10-07  Bruno Haible  <bruno@clisp.org>
72379
72380         * modules/sublist: New file.
72381
72382 2006-10-07  Bruno Haible  <bruno@clisp.org>
72383
72384         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
72385         * modules/argz (argz.h): Likewise.
72386         * modules/arpa_inet (arpa/inet.h): Likewise.
72387         * modules/byteswap (byteswap.h): Likewise.
72388         * modules/configmake (configmake.h): Likewise.
72389         * modules/fcntl (fcntl.h): Likewise.
72390         * modules/fnmatch (fnmatch.h): Likewise.
72391         * modules/getopt (getopt.h): Likewise.
72392         * modules/glob (glob.h): Likewise.
72393         * modules/inttypes (inttypes.h): Likewise.
72394         * modules/netinet_in (netinet/in.h): Likewise.
72395         * modules/poll (poll.h): Likewise.
72396         * modules/stdbool (stdbool.h): Likewise.
72397         * modules/stdint (stdint.h): Likewise.
72398         * modules/sys_select (sys/select.h): Likewise.
72399         * modules/sys_socket (sys/socket.h): Likewise.
72400         * modules/sys_stat (sys/stat.h): Likewise.
72401         * modules/sysexits (sysexits.h): Likewise.
72402         * modules/unistd (unistd.h): Likewise.
72403         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72404         Add a "DO NOT EDIT" comment to the generated file.
72405         (func_import): Likewise for gnulib-comp.m4.
72406
72407 2006-10-07  Bruno Haible  <bruno@clisp.org>
72408
72409         * lib/gl_sublist.h: New file.
72410         * lib/gl_sublist.c: New file.
72411
72412 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72413
72414         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
72415         name (relative to the original working directory) and the file
72416         name component (relative to the temporary working directory).  All
72417         callers changed.
72418         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
72419         * lib/mkdir-p.c (make_dir_parents): Likewise.
72420         * lib/mkdir-p.h (make_dir_parents): Likewise.
72421
72422 2006-10-06  Eric Blake  <ebb9@byu.net>
72423
72424         Define several macros for use by the clean-temp module.
72425         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
72426         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
72427         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
72428
72429         * lib/clean-temp.h (close_stream_temp): New declaration.
72430         * lib/clean-temp.c (includes): Pull in headers according to what
72431         other modules are in use.
72432         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
72433
72434 2006-10-06  Bruno Haible  <bruno@clisp.org>
72435
72436         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
72437         instead of fopen, fwriteerror.
72438
72439 2006-10-06  Bruno Haible  <bruno@clisp.org>
72440
72441         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
72442         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
72443         int.
72444         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
72445         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
72446         Return an error indicator.
72447         Suggested by Eric Blake.
72448
72449 2006-10-06  Bruno Haible  <bruno@clisp.org>
72450
72451         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
72452         Reported by Eric Blake.
72453
72454 2006-10-06  Bruno Haible  <bruno@clisp.org>
72455
72456         * modules/closeout (Description): Mention stderr too.
72457
72458 2006-10-06  Bruno Haible  <bruno@clisp.org>
72459         and Paul Eggert  <eggert@cs.ucla.edu>
72460
72461         * lib/closeout.c (close_stdout): Also close stderr.
72462         * lib/closeout.h: Update comment.
72463
72464 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
72465
72466         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
72467         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
72468         * lib/dirchownmod.c: Include lchown.h.
72469         * lib/lchown.c: Don't include files that lchown.h now includes.
72470         Don't declare chown, since lchown.h now does that.
72471         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
72472         (lchown): Define to rpl_chown if lchown is declared but
72473         does not exist.  Declare using a prototype if lchown is not
72474         declared.  Add a copyright notice.
72475         * lib/mkstemp.h: Include <unistd.h>.
72476         * lib/openat.c: Include lchown.h.
72477
72478         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
72479         we now test for that separately.
72480         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
72481         rather than O_NOFOLLOW, when testing whether it's possible to
72482         avoid a race condition reliably.
72483         * lib/savewd.c (savewd_chdir): Likewise.
72484
72485         Remove macros that are no longer needed now that stdint.h is
72486         reliable.
72487         * lib/fsusage.c (UINTMAX_MAX): Remove.
72488         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
72489         * lib/utimecmp.c (SIZE_MAX): Remove.
72490
72491         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
72492
72493         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
72494         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
72495         O_NOATIME works.
72496
72497 2006-10-05  Bruno Haible  <bruno@clisp.org>
72498
72499         * lib/gl_list.h (gl_sortedlist_search_from_to,
72500         gl_sortedlist_indexof_from_to): New declarations.
72501         (gl_list_implementation): New fields sortedlist_search_from_to,
72502         sortedlist_indexof_from_to.
72503         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
72504         inline functions.
72505         * lib/gl_list.c (gl_sortedlist_search_from_to,
72506         gl_sortedlist_indexof_from_to): New functions.
72507         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
72508         function.
72509         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
72510         (gl_array_sortedlist_search_from_to): New function.
72511         (gl_array_list_implementation): Update.
72512         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
72513         function.
72514         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
72515         (gl_carray_sortedlist_search_from_to): New function.
72516         (gl_carray_list_implementation): Update.
72517         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
72518         gl_linked_sortedlist_indexof_from_to): New functions.
72519         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72520         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72521         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
72522         gl_tree_sortedlist_indexof_from_to): New functions.
72523         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72524         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72525         Update.
72526         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72527         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
72528         Update.
72529
72530 2006-10-05  Bruno Haible  <bruno@clisp.org>
72531
72532         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
72533         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
72534         (struct gl_list_implementation): Add fields search_from_to,
72535         indexof_from_to. Remove fields search, indexof.
72536         (gl_list_search): Use the search_from_to method.
72537         (gl_list_search_from, gl_list_search_from_to): New functions.
72538         (gl_list_indexof): Use the indexof_from_to method.
72539         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72540         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
72541         (gl_list_search_from, gl_list_search_from_to): New functions.
72542         (gl_list_indexof): Use the indexof_from_to method.
72543         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72544         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
72545         gl_array_indexof. Add start_index, end_index arguments.
72546         (gl_array_search_from_to): Renamed from gl_array_search. Add
72547         start_index, end_index arguments.
72548         (gl_array_remove, gl_array_list_implementation): Update.
72549         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
72550         gl_carray_indexof. Add start_index, end_index arguments.
72551         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
72552         start_index, end_index arguments.
72553         (gl_carray_remove, gl_carray_list_implementation): Update.
72554         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
72555         gl_linked_search. Add start_index, end_index arguments.
72556         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
72557         start_index, end_index arguments.
72558         (gl_linked_remove): Update.
72559         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72560         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72561         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
72562         field to 'size_t'.
72563         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
72564         gl_tree_search. Add start_index, end_index arguments.
72565         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72566         start_index, end_index arguments.
72567         (gl_tree_remove): Update.
72568         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72569         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72570         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
72571         function.
72572         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
72573         gl_tree_search. Add start_index, end_index arguments.
72574         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72575         start_index, end_index arguments.
72576         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72577         Update.
72578         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
72579
72580 2006-10-05  Bruno Haible  <bruno@clisp.org>
72581
72582         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
72583
72584         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
72585         fwriteerror_temp): New declarations.
72586         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
72587         (descriptors): New variable.
72588         (cleanup): First, close the descriptors.
72589         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
72590         fclose_temp, fwriteerror_temp): New functions.
72591
72592 2006-10-04  Jim Meyering  <jim@meyering.net>
72593
72594         * lib/fts.c (fts_open): Tiny comment change.
72595
72596 2006-10-04  Bruno Haible  <bruno@clisp.org>
72597
72598         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
72599         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
72600         gl_LOCK_BODY.
72601         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
72602         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
72603         gl_LOCK_EARLY_BODY.
72604         (gl_LOCK): Require gl_LOCK_BODY.
72605
72606 2006-10-04  Bruno Haible  <bruno@clisp.org>
72607
72608         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
72609         (gl_oset_search_atleast): New declaration.
72610         (struct gl_oset_implementation): Add field 'search_atleast'.
72611         (gl_oset_search_atleast): New inline function.
72612         * lib/gl_oset.c (gl_oset_search_atleast): New function.
72613         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
72614         (gl_array_oset_implementation): Update.
72615         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
72616         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
72617         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
72618
72619 2006-10-04  Bruno Haible  <bruno@clisp.org>
72620
72621         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
72622
72623 2006-10-03  Bruno Haible  <bruno@clisp.org>
72624
72625         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
72626         from gl_avltreehash_list_implementation.
72627
72628 2006-10-03  Bruno Haible  <bruno@clisp.org>
72629
72630         * lib/gl_oset.c (gl_oset_add): Fix return type.
72631
72632 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
72633
72634         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
72635
72636 2006-10-02  Eric Blake  <ebb9@byu.net>
72637
72638         * modules/strnlen (Depends-on): Add extensions.
72639
72640 2006-10-02  Eric Blake  <ebb9@byu.net>
72641
72642         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
72643         definition in 2.60+.
72644
72645 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
72646
72647         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
72648         checks.
72649
72650 2006-10-02  Bruno Haible  <bruno@clisp.org>
72651
72652         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
72653         to the AUTOMAKE_OPTIONS.
72654         Reported by Jim Meyering.
72655
72656 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
72657
72658         Work around bug in Solaris 10 /proc file system:
72659         /proc/self/fd/NNN/.. isn't the parent directory of
72660         the directory whose file descriptor is NNN.  This needs to
72661         be worked around at run time, not compile time, since a
72662         program might be built on Solaris 8, where things work, and
72663         run on Solaris 10.
72664         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
72665         to use the following interface instead:
72666         (OPENAT_BUFFER_SIZE): New macro.
72667         (openat_proc_name): New function.
72668         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
72669         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
72670         Likewise.
72671         * lib/openat-proc.c: New file.
72672         * modules/openat (Files): Add lib/openat-proc.c.
72673         (Depends-on): Add same-inode, stdbool.
72674         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
72675
72676 2006-09-29  Bruno Haible  <bruno@clisp.org>
72677
72678         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
72679         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
72680         argument. Set stdout_closed before testing for ferror, not after.
72681         (fwriteerror, fwriteerror_no_ebadf): New functions.
72682
72683 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72684
72685         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
72686
72687 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
72688
72689         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
72690         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
72691
72692 2006-09-28  Jim Meyering  <jim@meyering.net>
72693
72694         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
72695         Include <unistd.h>.
72696
72697 2006-09-28  Bruno Haible  <bruno@clisp.org>
72698
72699         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
72700         * modules/linkedhash-list (Depends-on): Likewise.
72701         * modules/rbtreehash-list (Depends-on): Likewise.
72702
72703 2006-09-28  Bruno Haible  <bruno@clisp.org>
72704
72705         * lib/strndup.h: Simplify the redefinition of strndup.
72706         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
72707         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
72708
72709 2006-09-28  Bruno Haible  <bruno@clisp.org>
72710
72711         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
72712         * lib/gl_linkedhash_list.c: Likewise.
72713         * lib/gl_rbtreehash_list.c: Likewise.
72714
72715 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
72716
72717         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
72718         getaddrinfo.
72719
72720         * lib/__fpending.h: Don't include <stdio_ext.h> unless
72721         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
72722         it causes <stdio_ext.h> to cause a compile-time error.
72723         Problem reported by Nelson H. F. Beebe.
72724         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
72725         of HAVE_DECL___PENDING.
72726
72727         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
72728         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
72729         declaration.
72730
72731 2006-09-27  Jim Meyering  <jim@meyering.net>
72732
72733         This file could end up with a definition for a function
72734         named __strndup, rather than rpl_strndup on a system with
72735         incomplete weak_alias support.
72736         * lib/strndup.c (strndup): Rename from __strndup.
72737         Remove #defines that used to map __strndup to strndup.
72738         Don't use K&R prototypes.
72739         Remove LIBC-related code, since this file is not sync'd with glibc.
72740         * lib/strndup.h: Revamp, accordingly.
72741         * m4/strndup.m4: Modernize.
72742
72743 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
72744
72745         * modules/savewd (Depends-on): Add 'raise'.
72746         * lib/savewd.c: Include <signal.h>, for 'raise'.
72747
72748 2006-09-26  Jim Meyering  <jim@meyering.net>
72749
72750         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
72751         when we detect Darwin 8.7.0's acl_get_file bug.
72752         Rearrange to perform the new (below) run-test while $LIBS
72753         contains any acl-related library.  Set USE_ACL at the end.
72754         (gl_ACL_GET_FILE): New function.
72755
72756 2006-09-26  Eric Blake  <ebb9@byu.net>
72757
72758         * lib/verror.c: Include <config.h> unconditionally.
72759
72760 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
72761
72762         * modules/clock-time (Maintainer): Add self.
72763         * modules/getlogin_r (Depends-on): Add extensions.
72764
72765 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72766
72767         * modules/clock-time: New module.
72768         * modules/nanosleep (Depends-on): Add clock-time.
72769         * modules/gethrxtime (Depends-on): Likewise.
72770         * modules/gettime (Depends-on): Likewise.
72771         * modules/settime (Depends-on): Likewise.
72772
72773         * modules/fts-lgpl: Depend on openat.
72774         * modules/mkancesdirs: Depend on savewd.
72775         * modules/mkdir-p: Likewise.
72776
72777 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72778
72779         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
72780
72781         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
72782         `gl_have_arbitrary_file_name_length_limit' to
72783         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
72784         actually works between configure runs.
72785
72786 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72787             Bruno Haible  <bruno@clisp.org>
72788
72789         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
72790
72791 2006-09-25  Jim Meyering  <jim@meyering.net>
72792
72793         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
72794         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
72795
72796 2006-09-25  Eric Blake  <ebb9@byu.net>
72797
72798         * gnulib-tool (func_import, func_create_testdir): Fix typos in
72799         exec's in 2006-09-18 patch when shuffling fds.
72800
72801 2006-09-25  Bruno Haible  <bruno@clisp.org>
72802
72803         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
72804         Reported by Jim Meyering.
72805
72806 2006-09-24  Jim Meyering  <jim@meyering.net>
72807
72808         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
72809         compare a pointer against a literal "0".  That caused failures with
72810         at least HP-UX's hpcc.
72811
72812 2006-09-22  Simon Josefsson  <jas@extundo.com>
72813
72814         * modules/gc-sha1:
72815         * modules/gc-md4:
72816         * modules/gc-hmac-sha1:
72817         * modules/gc-hmac-md5:
72818         * modules/gc-des:
72819         * modules/gc-arcfour: Distribute more files.
72820
72821 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72822
72823         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
72824         (gl_linked_iterator_from_to): Initialize struct completely.
72825         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
72826         (gl_tree_iterator_from_to): Likewise
72827         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
72828         * lib/gl_array_list.c [lint] (gl_array_iterator)
72829         (gl_array_iterator_from_to): Likewise.
72830         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
72831         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
72832         (gl_carray_iterator_from_to): Likewise.
72833
72834         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
72835         * lib/md4.c (md4_process_block): Remove unused variable.
72836         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
72837         parentheses for clarity.
72838
72839 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72840
72841         * modules/bison-i18n (Depends-on): Add gettext.
72842
72843 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72844
72845         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
72846         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
72847         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
72848         also add missing comma that caused broken test.
72849         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
72850         stdlib.h, for `abort'.
72851         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
72852         variables.
72853         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
72854         include unistd.h if present, for `rmdir'.
72855         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
72856         variables.
72857         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
72858         in the process include standard headers for prototypes.
72859         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
72860         gets declared on GNU/Linux.
72861         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
72862         unistd.h, for `rmdir'.
72863         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
72864
72865         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
72866         always true.
72867         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
72868
72869         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
72870
72871 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72872
72873         * gnulib-tool (func_version): Create output all at once.  This
72874         may help avoid triggering unnecessary SIGPIPEs, and at any
72875         rate it doesn't hurt.
72876
72877 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72878             Bruno Haible  <bruno@clisp.org>
72879
72880         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
72881         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
72882         * m4/signed.m4 (bh_C_SIGNED): Likewise.
72883
72884         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
72885         (gl_FUNC_VASPRINTF): Invoke it.
72886
72887 2006-09-22  Bruno Haible  <bruno@clisp.org>
72888
72889         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
72890         getloadavg.c as first argument.
72891
72892 2006-09-22  Bruno Haible  <bruno@clisp.org>
72893
72894         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
72895         at the beginning of the gl_INIT macro.
72896         * modules/getloadavg (configure.ac): Pass $gl_source_base to
72897         gl_GETLOADAVG.
72898
72899 2006-09-22  Bruno Haible  <bruno@clisp.org>
72900
72901         * gnulib-tool (func_create_megatestdir): Don't include the config-h
72902         module.
72903         Suggested by Ralf Wildenhues.
72904
72905 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72906
72907         Import this patch from libc:
72908
72909         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
72910
72911         * lib/regex_internal.c (re_string_reconstruct): Handle
72912         offset < pstr->valid_raw_len && pstr->offsets_needed case.
72913         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
72914         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
72915         re_string_context_at.
72916
72917         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
72918         now requires it.
72919         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
72920         gl_REGEX now does it for us.
72921         (gl_REGEX): Add test taken from
72922         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
72923
72924         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
72925         Check that large offsets work.  Modernize Autoconf usages.
72926         Prefer "yes" to mean a good thing rather than a bad.
72927         Don't put "#define mkstemp" in config.h, as this might interfere
72928         with standard system headers that "#define mkstemp mkstemp64".
72929
72930         * modules/mkstemp (Depends-on): Add extensions, so that
72931         mkstemp is visible on some platforms.
72932         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
72933         (Include): Change to "mkstemp.h" from <stdlib.h>.
72934         (Files): Add mkstemp.h.
72935
72936         * lib/mkstemp.h: New file, since some standard headers
72937         #define mkstemp.
72938         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
72939         Include "mkstemp.h".
72940         Make the _LIBC code resemble glibc original more,
72941         e.g., use K&R style.
72942         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
72943         (mkstemp): Remove, since mkstemp.h does this for us.
72944         * lib/stdlib--.h: Include mkstemp.h.
72945
72946         Import this patch from libc:
72947
72948         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
72949
72950         * lib/tempname.c (__gen_tempname): Change attempts_min
72951         into a macro.  Use preprocessor to decide how to initialize
72952         attempts [Coverity CID 67].
72953
72954 2006-09-20  Bruno Haible  <bruno@clisp.org>
72955
72956         * lib/mkdtemp.c: Import from libc.
72957         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
72958                 * sysdeps/posix/tempname.c (__gen_tempname): Change
72959                 attempts_min into a macro.  Use preprocessor to decide how to
72960                 initialize attempts [Coverity CID 67].
72961         2001-11-27  Paul Eggert  <eggert@twinsun.com>
72962                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
72963                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
72964
72965 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72966
72967         * gnulib-tool (func_exit): New function, to allow to pass the
72968         exit status portably through the trap.  Use everywhere.
72969         (--help, --version): Signal a write error.
72970         (trap): catch SIGPIPE, for write errors.
72971         Exit at the end of the trap, with the correct exit status.
72972
72973 2006-09-19  Karl Berry  <karl@gnu.org>
72974
72975         * doc/gnulib.texi: note about the license texinfo files.
72976
72977 2006-09-19  Eric Blake  <ebb9@byu.net>
72978
72979         * gnulib-tool: Avoid space-tab.
72980
72981 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
72982
72983         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
72984         that prevented coreutils 6.1 from building.  Problem reported
72985         by Petter Reinholdtsen.
72986
72987 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
72988
72989         * gnulib-tool (avoidlist): Fix typo that broke options like
72990         --avoid=lock that are used by coreutils bootstrap.
72991
72992 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
72993
72994         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
72995         more systematically.
72996
72997 2006-09-18  Jim Meyering  <jim@meyering.net>
72998
72999         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
73000
73001 2006-09-18  Bruno Haible  <bruno@clisp.org>
73002
73003         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
73004
73005 2006-09-18  Bruno Haible  <bruno@clisp.org>
73006
73007         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
73008         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
73009         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
73010         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
73011         * m4/gettext.m4: Require autoconf >= 2.52.
73012         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
73013         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
73014         of gl_cv_header_inttypes_h.
73015
73016 2006-09-18  Bruno Haible  <bruno@clisp.org>
73017
73018         * lib/javaversion.c: Include configmake.h.
73019
73020 2006-09-18  Bruno Haible  <bruno@clisp.org>
73021
73022         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
73023         avoid that the while loops be executed in a subshell.
73024
73025 2006-09-18  Bruno Haible  <bruno@clisp.org>
73026
73027         * MODULES.html.sh (func_module): Break long lines.
73028         Suggested by Bruce Korb <bkorb@gnu.org>.
73029
73030 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73031
73032         Speed up by a factor of 1.12.
73033         * gnulib-tool (nl): New variable.
73034         (func_import): Rewrite include directive extraction to only read each
73035         directive once.
73036
73037 2006-09-17  Bruno Haible  <bruno@clisp.org>
73038
73039         * modules/javaversion (Makefile.am): Remove DEFS setting.
73040         (Depends-on): Add configmake, for PKGDATADIR definition.
73041
73042 2006-09-17  Bruno Haible  <bruno@clisp.org>
73043
73044         * gnulib-tool (func_create_testdir): Rewrite all files at once.
73045
73046 2006-09-17  Bruno Haible  <bruno@clisp.org>
73047
73048         * gnulib-tool (func_append): New function, stolen from libtool.m4.
73049         (func_modules_transitive_closure, func_modules_add_dummy,
73050         func_modules_to_filelist, func_import, func_create_testdir,
73051         func_create_megatestdir, ...): Use it wherever possible.
73052         Suggested by Ralf Wildenhues.
73053
73054 2006-09-16  Karl Berry  <karl@gnu.org>
73055
73056         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
73057         to avoid sectioning errors.
73058         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
73059         [ifinfo]: blank line after @center-ed titles.
73060         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
73061         Spell FSF address consistently with others.
73062         (These changes approved by rms.)
73063
73064 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73065
73066         Speed up by a factor of 1.61.
73067         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
73068         already checked module names again.
73069
73070 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73071
73072         Speed up by a factor of 1.13.
73073         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
73074         for new_files, and the input to func_add_or_update.
73075
73076 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73077
73078         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
73079         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
73080
73081 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73082
73083         * modules/mkancesdirs (Depends-on): Add fcntl.
73084         * modules/savewd: New file.
73085         * MODULES.html.sh (File system functions): Add savewd.
73086
73087         * modules/configmake (Makefile.am): Add support for the
73088         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
73089
73090 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73091
73092         * m4/savewd.m4: New file.
73093
73094 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73095
73096         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
73097         (dirchownmod): New arg FD.  All callers changed.
73098         Use FD rather than opening the directory ourself, as opening is
73099         now the caller's responsibility.
73100         * lib/dirchownmod.h: Likewise.
73101         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
73102         hosts that require <sys/types.h> before <sys/stat.h>.  Include
73103         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
73104         (test_dir): Remove.
73105         (mkancesdirs): Return length of prefix of FILE that has already
73106         been made, or -2 if there is a child doing the work.  Redo
73107         algorithm so that it is O(N) rather than O(N**2).  Optimize away
73108         ".", and treat ".." specially since it might stray back into
73109         already-created areas.  Use a subprocess if necessary.  New arg
73110         WD; all users changed.  MAKE_DIR function should now return 1
73111         if it creates a directory that is not readable.  Return -2 if
73112         a child process is spun off.
73113         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
73114         Adjust signature to match code.
73115         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
73116         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
73117         all users changed.
73118         * lib/savewd.c, lib/savewd.h: New files.
73119
73120 2006-09-15  Jim Meyering  <jim@meyering.net>
73121
73122         * modules/rename-dest-slash: New module.
73123         * MODULES.html.sh (posix_compat): Add it here.
73124
73125         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
73126
73127 2006-09-15  Jim Meyering  <jim@meyering.net>
73128
73129         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
73130         file.
73131
73132         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
73133
73134 2006-09-15  Jim Meyering  <jim@meyering.net>
73135
73136         * lib/rename-dest-slash.c (has_trailing_slash): Use
73137         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
73138         (rpl_rename_dest_slash): Perform the cheaper trailing slash
73139         test before testing whether SRC is a directory.
73140         Suggestions from Bruno Haible.
73141
73142         Avoid a warning about an unused variable.
73143         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
73144         into the #ifdef block where it's used.
73145
73146         * lib/rename-dest-slash.c: New file.
73147
73148 2006-09-14  Bruno Haible  <bruno@clisp.org>
73149
73150         * lib/allocsa.c: Include <config.h> unconditionally.
73151         * lib/asnprintf.c: Likewise.
73152         * lib/asprintf.c: Likewise.
73153         * lib/c-strcasecmp.c: Likewise.
73154         * lib/c-strcasestr.c: Likewise.
73155         * lib/c-strncasecmp.c: Likewise.
73156         * lib/c-strstr.c: Likewise.
73157         * lib/classpath.c: Likewise.
73158         * lib/clean-temp.c: Likewise.
73159         * lib/concatpath.c: Likewise.
73160         * lib/copy-file.c: Likewise.
73161         * lib/csharpcomp.c: Likewise.
73162         * lib/csharpexec.c: Likewise.
73163         * lib/execute.c: Likewise.
73164         * lib/fatal-signal.c: Likewise.
73165         * lib/findprog.c: Likewise.
73166         * lib/fwriteerror.c: Likewise.
73167         * lib/gl_array_list.c: Likewise.
73168         * lib/gl_array_oset.c: Likewise.
73169         * lib/gl_avltree_list.c: Likewise.
73170         * lib/gl_avltree_oset.c: Likewise.
73171         * lib/gl_avltreehash_list.c: Likewise.
73172         * lib/gl_carray_list.c: Likewise.
73173         * lib/gl_linked_list.c: Likewise.
73174         * lib/gl_linkedhash_list.c: Likewise.
73175         * lib/gl_list.c: Likewise.
73176         * lib/gl_oset.c: Likewise.
73177         * lib/gl_rbtree_list.c: Likewise.
73178         * lib/gl_rbtree_oset.c: Likewise.
73179         * lib/gl_rbtreehash_list.c: Likewise.
73180         * lib/imaxabs.c: Likewise.
73181         * lib/imaxdiv.c: Likewise.
73182         * lib/javacomp.c: Likewise.
73183         * lib/javaexec.c: Likewise.
73184         * lib/javaversion.c: Likewise.
73185         * lib/linebreak.c: Likewise.
73186         * lib/localcharset.c: Likewise.
73187         * lib/lock.c: Likewise.
73188         * lib/mbchar.c: Likewise.
73189         * lib/mbswidth.c: Likewise.
73190         * lib/mkdtemp.c: Likewise.
73191         * lib/pipe.c: Likewise.
73192         * lib/printf-args.c: Likewise.
73193         * lib/printf-parse.c: Likewise.
73194         * lib/progname.c: Likewise.
73195         * lib/progreloc.c: Likewise.
73196         * lib/readlink.c: Likewise.
73197         * lib/sh-quote.c: Likewise.
73198         * lib/stpcpy.c: Likewise.
73199         * lib/stpncpy.c: Likewise.
73200         * lib/strcasecmp.c: Likewise.
73201         * lib/strcasestr.c: Likewise.
73202         * lib/strcspn.c: Likewise.
73203         * lib/striconv.c: Likewise.
73204         * lib/strncasecmp.c: Likewise.
73205         * lib/strnlen1.c: Likewise.
73206         * lib/strstr.c: Likewise.
73207         * lib/strtok_r.c: Likewise.
73208         * lib/tls.c: Likewise.
73209         * lib/tmpdir.c: Likewise.
73210         * lib/unicodeio.c: Likewise.
73211         * lib/unsetenv.c: Likewise.
73212         * lib/vasnprintf.c: Likewise.
73213         * lib/vasprintf.c: Likewise.
73214         * lib/wait-process.c: Likewise.
73215         * lib/xallocsa.c: Likewise.
73216         * lib/xsetenv.c: Likewise.
73217         * lib/xstriconv.c: Likewise.
73218
73219 2006-09-13  Simon Josefsson  <jas@extundo.com>
73220
73221         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
73222         that internally, suggested by Ralf Wildenhues
73223         <Ralf.Wildenhues@gmx.de>.
73224
73225 2006-09-13  Simon Josefsson  <jas@extundo.com>
73226
73227         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
73228         @LIBOBJS@.
73229         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73230
73231 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73232
73233         * lib/_fpending.c: Include <config.h> unconditionally, since we no
73234         longer worry about uses that don't define HAVE_CONFIG_H.
73235         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
73236         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
73237         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
73238         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
73239         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
73240         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
73241         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
73242         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
73243         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
73244         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
73245         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
73246         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
73247         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
73248         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
73249         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
73250         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
73251         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
73252         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
73253         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
73254         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
73255         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
73256         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
73257         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
73258         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
73259         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
73260         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
73261         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
73262         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
73263         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
73264         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
73265         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
73266         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
73267         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
73268         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
73269         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
73270         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
73271         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
73272         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
73273         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
73274         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
73275         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
73276         Likewise.
73277
73278 2006-09-13  Eric Blake  <ebb9@byu.net>
73279
73280         * lib/getopt.c: Fix typo in last commit.
73281
73282 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
73283
73284         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
73285         dgettext.
73286
73287 2006-09-12  Jim Meyering  <jim@meyering.net>
73288
73289         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
73290         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
73291         Reported by Nelson H. F. Beebe.
73292
73293 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73294
73295         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
73296         program_invocation_name and program_invocation_short_name are
73297         initialized.
73298         * lib/argp-namefrob.h: Move declarations of program_invocation_name
73299         and program_invocation_short_name to argp.h, so they are visible
73300         to user programs.
73301         * lib/argp.h: Likewise
73302
73303 2006-09-10  Bruno Haible  <bruno@clisp.org>
73304
73305         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
73306         m4/inttypes_h.m4, m4/uintmax_t.m4.
73307
73308 2006-09-10  Bruno Haible  <bruno@clisp.org>
73309
73310         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
73311         gl_AC_TYPE_UINTMAX_T.
73312
73313 2006-09-10  Bruno Haible  <bruno@clisp.org>
73314
73315         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
73316
73317 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73318
73319         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
73320         convention.  Text proposed by Bruno Haible.
73321         (struct argp_option): Document the use of N_() wrappers.
73322
73323         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
73324         '\v', and translate the two parts separately, instead of feeding
73325         the whole string to gettext.  This allows to exclude
73326         '\v' from the strings visible to the translator by writing doc
73327         strings as N_("..") "\v" N_("..").
73328
73329 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
73330
73331         * config/srclist.txt: Undo latest change; the bug was fixed.
73332
73333 2006-09-09  Bruno Haible  <bruno@clisp.org>
73334
73335         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
73336         assignments if building a library without libtool.
73337         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
73338         in func_emit_lib_Makefile_am.
73339         (func_import): When building a static library libfoo.a, arrange to
73340         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
73341         (func_create_testdir): Likewise.
73342         * modules/gc (configure.ac, Makefile.am): If building statically,
73343         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
73344         * modules/iconvme (configure.ac, Makefile.am): Likewise.
73345         * modules/striconv (configure.ac, Makefile.am): Likewise.
73346         Based on a suggestion by Ralf Wildenhues.
73347
73348 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73349
73350         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
73351         Check for unistd.h too, since Autoconf doesn't assume POSIX.
73352         Also:
73353
73354         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73355         Add year_2050_test to catch glibc bug 2821
73356         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73357
73358         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73359         Prefer #ifdef to #if.
73360
73361         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
73362         Return from 'main' instead of calling 'exit'.
73363
73364 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73365
73366         * lib/mktime.c (guess_time_tm): Fix bug where mktime
73367         returned the maximum time_t value rather than (time_t) -1.
73368         Problem originally reported by William Bardwell
73369         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73370
73371         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73372         Moved to here ...
73373         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73374         ... from here.
73375
73376 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73377
73378         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
73379         2821 is fixed.
73380
73381 2006-09-08  Jim Meyering  <jim@meyering.net>
73382
73383         Don't make generated files read-only.  That would bother too many
73384         people.  However, do retain the ability to work when targets are
73385         read-only: remove the destination and temporary files before writing
73386         them (when generated via sed or echo), or by using the -f option for
73387         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
73388         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73389         * modules/byteswap, modules/configmake, modules/fcntl:
73390         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73391         * modules/localcharset, modules/netinet_in, modules/poll:
73392         * modules/stdbool, modules/stdint, modules/sys_select:
73393         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73394
73395 2006-09-08  Jim Meyering  <jim@meyering.net>
73396
73397         Avoid new build failure on FreeBSD 6.0.
73398         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
73399         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
73400         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
73401
73402 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73403
73404         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
73405
73406 2006-09-07  Jim Meyering  <jim@meyering.net>
73407
73408         Fix global typo in last change: use chmod u-w, not chmod u-x.
73409         Spotted by Paul Eggert and Bruce Korb.
73410         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73411         * modules/byteswap, modules/configmake, modules/fcntl:
73412         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73413         * modules/localcharset, modules/netinet_in, modules/poll:
73414         * modules/stdbool, modules/stdint, modules/sys_select:
73415         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73416
73417 2006-09-06  Jim Meyering  <jim@meyering.net>
73418
73419         Make generated files be read-only.
73420         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
73421         Ensure that each generated file is now read-only.
73422         * modules/argz: Likewise.
73423         * modules/arpa_inet: Likewise.
73424         * modules/byteswap: Likewise.
73425         * modules/configmake: Likewise.
73426         * modules/fcntl: Likewise.
73427         * modules/fnmatch: Likewise.
73428         * modules/getopt: Likewise.
73429         * modules/glob: Likewise.
73430         * modules/inttypes: Likewise.
73431         * modules/netinet_in: Likewise.
73432         * modules/poll: Likewise.
73433         * modules/stdbool: Likewise.
73434         * modules/stdint: Likewise.
73435         * modules/sys_select: Likewise.
73436         * modules/sys_socket: Likewise.
73437         * modules/sys_stat: Likewise.
73438         * modules/sysexits: Likewise.
73439         * modules/localcharset: Same as above, but continue using temporary
73440         file named "t-$@" (why different?) rather than the "$@-t" used
73441         everywhere else.
73442
73443         * modules/sysexits (Makefile.am): Replace literal occurrences
73444         of "sysexit.h" more readable, and more consistent, "$@".
73445
73446 2006-09-06  Bruno Haible  <bruno@clisp.org>
73447
73448         * modules/striconv: New file.
73449         * modules/xstriconv: New file.
73450         * MODULES.html.sh (Internationalization functions): Add striconv,
73451         xstriconv.
73452
73453 2006-09-06  Bruno Haible  <bruno@clisp.org>
73454
73455         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
73456         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
73457         not using libtool correctly.
73458
73459 2006-09-06  Bruno Haible  <bruno@clisp.org>
73460
73461         * lib/striconv.h: New file.
73462         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
73463         iconvstring.c.
73464         * lib/xstriconv.h: New file.
73465         * lib/xstriconv.c: New file.
73466
73467 2006-09-06  Bruno Haible  <bruno@clisp.org>
73468
73469         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73470         lib_..._LDFLAGS.
73471
73472 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73473
73474         * lib/argz_.h: Sync from Libtool.
73475
73476         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
73477                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
73478
73479         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
73480
73481 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73482
73483         * modules/trim: New file.
73484
73485 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73486
73487         * lib/trim.h: New file.
73488         * lib/trim.c: New file.
73489
73490 2006-09-05  Bruno Haible  <bruno@clisp.org>
73491
73492         * MODULES.html.sh (String handling): Add trim.
73493
73494 2006-09-04  Karl Berry  <karl@gnu.org>
73495
73496         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
73497         until next release.
73498
73499 2006-09-03  Bruno Haible  <bruno@clisp.org>
73500
73501         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
73502         correctly.
73503
73504 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73505
73506         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
73507         not gl_GETLOADAVG.  Omit unneeded semicolons.
73508         Problems reported by Ralf Wildenhues in
73509         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73510         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
73511         at the end, which is the usual gnulib style.
73512
73513         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
73514         of doing all the work ourselves.
73515         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
73516         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
73517
73518 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73519
73520         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
73521         Problem reported by Ralf Wildenhues in
73522         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73523
73524         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
73525         HAVE_STRUCT_STATFS_F_FSTYPENAME.
73526
73527 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73528
73529         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
73530         yesterday's patch by changing test -n to test -z.
73531
73532 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73533
73534         * modules/getloadavg (Files): Add m4/getloadavg.m4.
73535         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
73536         the former is now obsolescent.
73537
73538         * modules/chdir-long (Depends-on): Add fcntl.
73539
73540 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73541
73542         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
73543         obsolescent, and programs should use gnulib instead.
73544         * m4/getloadavg.m4: New file, with contents taken from Autoconf
73545         but with prefixes changed.
73546
73547 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73548
73549         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
73550         or stdbool.h, because they might not exist while configuring.
73551
73552         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
73553         Don't include unistd.h or limits.h; not needed, since chdir-long.h
73554         does that for us.
73555         (O_DIRECTORY): Remove.
73556
73557 2006-08-31  Eric Blake  <ebb9@byu.net>
73558
73559         * gnulib-tool: Don't let emacs change spaces to TAB.
73560
73561 2006-08-31  Bruno Haible  <bruno@clisp.org>
73562
73563         * gnulib-tool: When calling func_import more than once, do it in a
73564         subshell.
73565         Reported by Eric Blake <ebb9@byu.net>.
73566
73567 2006-08-31  Bruno Haible  <bruno@clisp.org>
73568
73569         * gnulib-tool (nl): Remove variable.
73570         (sed_transform_lib_file): Use more robust test for config-h module.
73571         (func_import): Fix typo in 2006-08-25 patch.
73572
73573 2006-08-31  Bruno Haible  <bruno@clisp.org>
73574
73575         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
73576         specified, augment Makefile.am variables instead of assigning them.
73577
73578 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73579
73580         Work around a bug in both the Linux and SunOS 64-bit kernels:
73581         nanosleep mishandles sleeps for longer than 2**31 seconds.
73582         Problem reported by Frank v Waveren in
73583         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73584         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
73585         Check for nanosleep bug.
73586         (LIB_NANOSLEEP): Append clock_gettime library if needed.
73587
73588 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73589
73590         Work around a bug in both the Linux and SunOS 64-bit kernels:
73591         nanosleep mishandles sleeps for longer than 2**31 seconds.
73592         Problem reported by Frank v Waveren in
73593         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73594         * lib/nanosleep.c (BILLION): New constant.
73595         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
73596         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
73597         implementation.
73598
73599 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73600
73601         * modules/nanosleep (Depends-on): Add gettime.
73602
73603 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73604         and Simon Josefsson  <jas@extundo.com>
73605         and Oskar Liljeblad  <oskar@osk.mine.nu>
73606
73607         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
73608         * gnulib-tool (func_import): New license type 'unmodifiable license
73609         text'.
73610         * modules/fdl: Use it.  Longer description.
73611         * module/gpl, module/lgpl: New files.
73612
73613 2006-08-30  Jim Meyering  <jim@meyering.net>
73614
73615         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
73616         shadowing the parameter.
73617
73618 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73619
73620         Sync from Libtool:
73621
73622         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73623
73624         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
73625         sharing with gnulib.  Report by Eric Blake.
73626
73627 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73628
73629         * modules/isapipe: New file.
73630         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
73631
73632 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73633
73634         * modules/configmake (Makefile.am): Add a comment, and omit
73635         the CONFIGMAKE_ prefix from generated macro names.  Suggested
73636         by Bruno Haible.
73637
73638 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73639
73640         * m4/isapipe.m4: New file.
73641
73642 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73643
73644         * lib/isapipe.c, lib/isapipe.h: New files.
73645
73646 2006-08-29  Jim Meyering  <jim@meyering.net>
73647
73648         * modules/configmake (Makefile.am): Make configmake.h depend on
73649         Makefile.  Otherwise, a stale configmake.h could hang around.
73650
73651 2006-08-29  Eric Blake  <ebb9@byu.net>
73652
73653         * lib/error.c (error_at_line, print_errno_message): Match libc, after
73654         resolution of upstream bug 3044.
73655
73656 2006-08-29  Bruno Haible  <bruno@clisp.org>
73657
73658         * modules/localcharset (Depends-on): Add configmake.
73659         (Makefile.am): Remove setting of LIBDIR through DEFS.
73660
73661 2006-08-29  Bruno Haible  <bruno@clisp.org>
73662
73663         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
73664         defined.
73665
73666 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73667
73668         * modules/fcntl: New file.
73669         * modules/chdir-safer (Depends-on): Add fcntl.
73670         * modules/fts: Likewise.
73671         * modules/mkdir-p: Likewise.
73672
73673         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
73674         This undoes the most recent change, since we're now addressing the
73675         problem in a different way.
73676
73677         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
73678         into output, since the output might be called Makefile.am even
73679         if $makefile_name is something different.
73680         (func_import): Use $makefile_am rather than
73681         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
73682         empty.
73683
73684         * modules/inttypes (Files): Add m4/inttypes-h.m4.
73685
73686 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73687
73688         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
73689         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
73690         recent change to stdint.m4, since we're now addressing the problem in a
73691         different way.
73692
73693 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73694
73695         * m4/fcntl_h.m4: New file.
73696
73697 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73698
73699         * lib/fcntl_.h: New file.
73700         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
73701         the fcntl module.
73702         * lib/dirchownmod.c: Likewise.
73703         * lib/fts.c: Likewise.
73704
73705         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
73706         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
73707         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
73708         just before including <inttypes.h>, to avoid circular inclusion.
73709
73710 2006-08-28  Jim Meyering  <jim@meyering.net>
73711
73712         * doc/visibility.texi: Actually read and correct the grammar of the
73713         sentence affected by yesterday's change.
73714
73715 2006-08-28  Eric Blake  <ebb9@byu.net>
73716
73717         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
73718         needs wrapper.
73719
73720 2006-08-28  Eric Blake  <ebb9@byu.net>
73721
73722         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
73723
73724 2006-08-28  Eric Blake  <ebb9@byu.net>
73725
73726         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
73727
73728 2006-08-28  Bruno Haible  <bruno@clisp.org>
73729
73730         * modules/c-strstr: New file, from GNU gettext.
73731         * MODULES.html.sh (String handling): Add c-strstr.
73732
73733 2006-08-28  Bruno Haible  <bruno@clisp.org>
73734
73735         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
73736         macros.
73737         Reported by Eric Blake.
73738
73739 2006-08-28  Bruno Haible  <bruno@clisp.org>
73740
73741         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
73742         (VASNPRINTF): Return a string of length > INT_MAX without failing.
73743         * lib/vasprintf.c: Include errno.h, limits.h.
73744         (EOVERFLOW): New fallback definition.
73745         (vasprintf): Test here whether the string length is > INT_MAX.
73746         * lib/vsnprintf.c: Include errno.h, limits.h.
73747         (EOVERFLOW): New fallback definition.
73748         (vsnprintf): Fix bug when generated string was too long for the buffer.
73749         Test here whether the string length is > INT_MAX.
73750
73751 2006-08-28  Bruno Haible  <bruno@clisp.org>
73752
73753         * lib/inttypes_.h (SCNX*): Remove definitions.
73754         Reported by Eric Blake.
73755
73756 2006-08-28  Bruno Haible  <bruno@clisp.org>
73757
73758         * lib/c-strstr.h: New file, from GNU gettext.
73759         * lib/c-strstr.c: New file, from GNU gettext.
73760
73761 2006-08-28  Bruno Haible  <bruno@clisp.org>
73762
73763         * gnulib-tool: Reorder some statements.
73764
73765 2006-08-28  Bruno Haible  <bruno@clisp.org>
73766
73767         * gnulib-tool: New option --makefile-name.
73768         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
73769         $makefile_name.
73770         (func_import): Write $makefile_name to the cache file, and read it from
73771         there unless explicitly specified. Use $makefile_name as file name
73772         instead of Makefile.am. Adjust the recommendations accordingly.
73773
73774 2006-08-28  Bruno Haible  <bruno@clisp.org>
73775
73776         * gnulib-tool (func_verify_module): Check against misapplying patch.
73777
73778 2006-08-28  Bruno Haible  <bruno@clisp.org>
73779
73780         * gnulib-tool (func_relativize, func_relconcat): New functions.
73781         Give an error if --local-dir is given with --update.
73782         Remove trailing slashes from $local_gnulib_dir.
73783         (func_import): Store the relativized $local_gnulib_dir in
73784         gnulib-cache.m4, and read it from there if not specified explicitly.
73785
73786 2006-08-28  Bruno Haible  <bruno@clisp.org>
73787
73788         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
73789         is the current directory. Respect also $local_gnulib_dir.
73790
73791 2006-08-28  Bruno Haible  <bruno@clisp.org>
73792             Simon Josefsson  <jas@extundo.com>
73793
73794         BeOS portability.
73795         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
73796
73797 2006-08-27  Jim Meyering  <jim@meyering.net>
73798
73799         * doc/visibility.texi: Remove duplicate word: "pointer".
73800
73801 2006-08-26  Bruno Haible  <bruno@clisp.org>
73802
73803         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
73804         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
73805         (Makefile.am): Create inttypes.h from inttypes_.h.
73806         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
73807
73808         * modules/imaxabs: New file.
73809
73810         * modules/imaxdiv: New file.
73811
73812 2006-08-26  Bruno Haible  <bruno@clisp.org>
73813
73814         * m4/inttypes.m4: New file.
73815         * m4/_inttypes_h.m4: Remove file.
73816         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
73817         PRI_MACROS_BROKEN.
73818         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
73819
73820         * m4/imaxabs.m4: New file.
73821
73822         * m4/imaxdiv.m4: New file.
73823
73824 2006-08-26  Bruno Haible  <bruno@clisp.org>
73825
73826         * lib/inttypes_.h: New file.
73827         * lib/inttypes.h: Remove file.
73828         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
73829
73830         * lib/imaxabs.c: New file.
73831
73832         * lib/imaxdiv.c: New file.
73833
73834 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73835
73836         New config-h module, so that "make" output needn't be cluttered
73837         by -DHAVE_CONFIG_H.
73838         * MODULES.html.sh (Support for building libraries and executables):
73839         Add config-h.
73840         * modules/config-h: New file.
73841         * gnulib-tool (nl, sed_transform_lib_file): New vars.
73842         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
73843         the config-h module is used.
73844
73845         New configmake module, so that "make" output needn't be cluttered
73846         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
73847         * MODULES.html.sh (Support for building libraries and executables):
73848         Add configmake.
73849         * modules/configmake: New file.
73850
73851 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73852
73853         * m4/config-h.m4: New file.
73854
73855 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73856
73857         * config/srclist.txt: Add elisp-comp.
73858
73859 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73860
73861         * MODULES.html.sh (Support for building libraries and executables):
73862         Add elisp-comp.
73863         * build-aux/elisp-comp: New file.
73864         * modules/elisp-comp: New file.
73865
73866 2006-08-24  Bruno Haible  <bruno@clisp.org>
73867
73868         * gnulib-tool (func_create_testdir): Use non-default values of
73869         sourcebase and m4base.
73870
73871 2006-08-24  Bruno Haible  <bruno@clisp.org>
73872
73873         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
73874         HTML structure.
73875
73876 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73877
73878         * modules/openat (Depends-on): Add lchown.
73879
73880 2006-08-23  Bruno Haible  <bruno@clisp.org>
73881
73882         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
73883         of gl_LOCK_EARLY instead of gl_LOCK.
73884
73885 2006-08-23  Bruno Haible  <bruno@clisp.org>
73886
73887         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
73888         on OSF/1 to no.
73889         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
73890
73891 2006-08-23  Bruno Haible  <bruno@clisp.org>
73892
73893         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
73894         as unusable.
73895
73896         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
73897         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
73898         (gl_LOCK): New macro.
73899
73900 2006-08-22  Simon Josefsson  <jas@extundo.com>
73901
73902         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
73903         to md5 module.
73904
73905 2006-08-22  Simon Josefsson  <jas@extundo.com>
73906
73907         * MODULES.html.sh: Add "Support for maintaining and release
73908         projects".
73909
73910         * build-aux/gnupload: New file, from coreutils.
73911
73912 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
73913
73914         Avoid the need for AC_LIBSOURCES in m4 macros.
73915         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
73916         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
73917         * modules/check-version (EXTRA_DIST): Add check-version.h.
73918         * modules/crc (EXTRA_DIST): Add crc.h.
73919         * modules/des (EXTRA_DIST): Add des.h.
73920         * modules/gc (EXTRA_DIST): Add gc.h.
73921         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
73922         * modules/getline (EXTRA_DIST): Add getline.h.
73923         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
73924         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
73925         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
73926         * modules/md2 (EXTRA_DIST): Add md2.h.
73927         * modules/md4 (EXTRA_DIST): Add md4.h.
73928         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
73929         * modules/read-file (EXTRA_DIST): Add read-file.h.
73930         * modules/readline (EXTRA_DIST): Add readline.h.
73931         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
73932         rijndael-api-fst.h.
73933
73934 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
73935
73936         * m4/rijndael.m4 (gl_ARCFOUR):
73937         * m4/arctwo.m4 (gl_ARCTWO):
73938         * m4/check-version.m4 (gl_CHECK_VERSION):
73939         * m4/crc.m4 (gl_CRC):
73940         * m4/des.m4 (gl_DES):
73941         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
73942         * m4/gc.m4 (gl_GC):
73943         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
73944         * m4/getline.m4 (gl_FUNC_GETLINE):
73945         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
73946         * m4/hmac-md5.m4 (gl_HMAC_MD5):
73947         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
73948         * m4/md2.m4 (gl_MD2):
73949         * m4/md4.m4 (gl_MD4):
73950         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
73951         * m4/read-file.m4 (gl_FUNC_READ_FILE):
73952         * m4/readline.m4 (gl_FUNC_READLINE):
73953         * m4/rijndael.m4 (gl_RIJNDAEL):
73954         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
73955         to get the necessary .h files and whatnot.
73956
73957 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
73958
73959         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
73960         gnulib rather than the other way around.
73961         * config/srclistvars.sh (COREUTILS): Remove.
73962
73963 2006-08-22  Jim Meyering  <jim@meyering.net>
73964
73965         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
73966
73967         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
73968
73969 2006-08-22  Eric Blake  <ebb9@byu.net>
73970
73971         * modules/regexprops-generic: New file.
73972         * MODULES.html.sh (Support for building documentation): List it.
73973
73974 2006-08-22  Eric Blake  <ebb9@byu.net>
73975
73976         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
73977         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
73978         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
73979         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
73980
73981 2006-08-22  Bruno Haible  <bruno@clisp.org>
73982
73983         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
73984         and lib_LTLIBRARIES like the other lib_* variables.
73985
73986 2006-08-22  Bruno Haible  <bruno@clisp.org>
73987
73988         * build-aux/x-to-1.in: New file, from GNU gettext.
73989
73990 2006-08-22  Bruno Haible  <bruno@clisp.org>
73991
73992         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
73993         <utmpx.h> exists.
73994
73995 2006-08-22  Bruno Haible  <bruno@clisp.org>
73996
73997         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
73998         <utmpx.h> exists.
73999
74000 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74001
74002         BeOS portability.
74003         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
74004         exist.
74005         Problem reported by Bruno Haible.
74006
74007 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74008
74009         Avoid the need for AC_LIBSOURCES in m4 macros.
74010         * modules/acl (EXTRA_DIST): Add acl.h.
74011         * modules/argmatch (Files): Add m4/argmatch.m4.
74012         (configure.ac): Add gl_ARGMATCH.
74013         (EXTRA_DIST): Renamed from lib_SOURCES, for
74014         consistency with the other modules.  Remove argmatch.c.
74015         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
74016         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
74017         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
74018         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
74019         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
74020         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
74021         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
74022         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
74023         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
74024         * modules/closeout (EXTRA_DIST): Add closeout.h.
74025         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
74026         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
74027         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
74028         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
74029         dirname.h; remove basename.c and stripslash.c.
74030         * modules/exclude (EXTRA_DIST): Add exclude.h.
74031         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
74032         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
74033         * modules/file-type (EXTRA_DIST): Add file-type.h.
74034         * modules/filemode (EXTRA_DIST): Add filemode.h.
74035         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
74036         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74037         * modules/fpending (EXTRA_DIST): Add __fpending.h.
74038         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
74039         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
74040         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
74041         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
74042         * modules/getdate (EXTRA_DIST): Add getdate.c.
74043         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
74044         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
74045         * modules/getpass (EXTRA_DIST): Add getpass.h.
74046         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
74047         * modules/group-member (EXTRA_DIST): Add group-member.h.
74048         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
74049         * modules/hash (EXTRA_DIST): Add hash.h.
74050         * modules/human (EXTRA_DIST): Add human.h.
74051         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
74052         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
74053         * modules/lchown (EXTRA_DIST): Add lchown.h.
74054         * modules/long-options (EXTRA_DIST): Add long-options.h.
74055         * modules/lstat (EXTRA_DIST): Add lstat.h.
74056         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
74057         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
74058         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
74059         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
74060         * modules/memxor (EXTRA_DIST): Add memxor.h.
74061         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
74062         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
74063         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
74064         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
74065         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
74066         * modules/physmem (EXTRA_DIST): Add physmem.h.
74067         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
74068         * modules/posixver (EXTRA_DIST): Add posixver.h.
74069         * modules/quote (EXTRA_DIST): Add quote.h.
74070         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
74071         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
74072         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
74073         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
74074         regex_internal.h regexec.c.
74075         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
74076         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
74077         * modules/same (EXTRA_DIST): Add same.h.
74078         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
74079         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
74080         * modules/savedir (EXTRA_DIST): Add savedir.h.
74081         * modules/sha1 (EXTRA_DIST): Add sha1.h.
74082         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
74083         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
74084         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
74085         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
74086         * modules/strdup (EXTRA_DIST): Add strdup.h.
74087         * modules/strftime (EXTRA_DIST): Add strftime.h.
74088         * modules/strndup (EXTRA_DIST): Add strndup.h.
74089         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
74090         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
74091         * modules/time_r (EXTRA_DIST): Add time_r.h.
74092         * modules/timespec (EXTRA_DIST): Add timespec.h.
74093         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74094         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
74095         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
74096         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
74097         * modules/userspec (EXTRA_DIST): Add userspec.h.
74098         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
74099         * modules/utimens (EXTRA_DIST): Add utimens.h.
74100         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
74101         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
74102         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
74103         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
74104         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
74105         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
74106         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
74107         * modules/yesno (EXTRA_DIST): Add yesno.h.
74108
74109 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74110
74111         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
74112
74113         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
74114         * m4/dev-ino.m4, same-inode.m4: Remove.
74115
74116         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
74117         * m4/acl.m4 (AC_FUNC_ACL):
74118         * m4/backupfile.m4 (gl_BACKUPFILE):
74119         * m4/c-strtod.m4 (gl_C99_STRTOLD):
74120         * m4/canon-host.m4 (gl_CANON_HOST):
74121         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74122         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
74123         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
74124         * m4/cloexec.m4 (gl_CLOEXEC):
74125         * m4/close-stream.m4 (gl_CLOSE_STREAM):
74126         * m4/closeout.m4 (gl_CLOSEOUT):
74127         * m4/dirfd.m4 (gl_FUNC_DIRFD):
74128         * m4/dirname.m4 (gl_DIRNAME):
74129         * m4/exclude.m4 (gl_EXCLUDE):
74130         * m4/exitfail.m4 (gl_EXITFAIL):
74131         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
74132         * m4/file-type.m4 (gl_FILE_TYPE):
74133         * m4/filemode.m4 (gl_FILEMODE):
74134         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
74135         * m4/fpending.m4 (gl_FUNC_FPENDING):
74136         * m4/fprintftime.m4 (gl_FPRINTFTIME):
74137         * m4/fts.m4 (gl_FUNC_FTS):
74138         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
74139         * m4/getdate.m4 (gl_GETDATE):
74140         * m4/gethrxtime.m4 (gl_GETHRXTIME):
74141         * m4/getpagesize.m4 (gl_GETPAGESIZE):
74142         * m4/getpass.m4 (gl_FUNC_GETPASS):
74143         * m4/gettime.m4 (gl_GETTIME):
74144         * m4/getugroups.m4 (gl_GETUGROUPS):
74145         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
74146         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
74147         * m4/hard-locale.m4 (gl_HARD_LOCALE):
74148         * m4/hash.m4 (gl_HASH):
74149         * m4/idcache.m4 (gl_IDCACHE):
74150         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
74151         * m4/lchown.m4 (gl_FUNC_LCHOWN):
74152         * m4/long-options.m4 (gl_LONG_OPTIONS):
74153         * m4/lstat.m4 (gl_FUNC_LSTAT):
74154         * m4/md5.m4 (gl_MD5):
74155         * m4/memcasecmp.m4 (gl_MEMCASECMP):
74156         * m4/memcoll.m4 (gl_MEMCOLL):
74157         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
74158         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
74159         * m4/memxor.m4 (gl_MEMXOR):
74160         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
74161         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
74162         * m4/modechange.m4 (gl_MODECHANGE):
74163         * m4/mountlist.m4 (gl_MOUNTLIST):
74164         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74165         * m4/openat.m4 (gl_FUNC_OPENAT):
74166         * m4/pathmax.m4 (gl_PATHMAX):
74167         * m4/physmem.m4 (gl_PHYSMEM):
74168         * m4/posixtm.m4 (gl_POSIXTM):
74169         * m4/posixver.m4 (gl_POSIXVER):
74170         * m4/quote.m4 (gl_QUOTE):
74171         * m4/quotearg.m4 (gl_QUOTEARG):
74172         * m4/readtokens.m4 (gl_READTOKENS):
74173         * m4/readutmp.m4 (gl_READUTMP):
74174         * m4/regex.m4 (gl_REGEX):
74175         * m4/safe-read.m4 (gl_SAFE_READ):
74176         * m4/safe-write.m4 (gl_SAFE_WRITE):
74177         * m4/same.m4 (gl_SAME):
74178         * m4/save-cwd.m4 (gl_SAVE_CWD):
74179         * m4/savedir.m4 (gl_SAVEDIR):
74180         * m4/settime.m4 (gl_SETTIME):
74181         * m4/sha1.m4 (gl_SHA1):
74182         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
74183         * m4/stat-macros.m4 (gl_STAT_MACROS):
74184         * m4/stat-time.m4 (gl_STAT_TIME):
74185         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
74186         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
74187         * m4/strdup.m4 (gl_FUNC_STRDUP):
74188         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
74189         * m4/strndup.m4 (gl_FUNC_STRNDUP):
74190         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
74191         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
74192         * m4/time_r.m4 (gl_TIME_R):
74193         * m4/timespec.m4 (gl_TIMESPEC):
74194         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
74195         * m4/unlinkdir.m4 (gl_UNLINKDIR):
74196         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
74197         * m4/userspec.m4 (gl_USERSPEC):
74198         * m4/utimecmp.m4 (gl_UTIMECMP):
74199         * m4/utimens.m4 (gl_UTIMENS):
74200         * m4/xalloc.m4 (gl_XALLOC):
74201         * m4/xgetcwd.m4 (gl_XGETCWD):
74202         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
74203         * m4/xreadlink.m4 (gl_XREADLINK):
74204         * m4/xstrtod.m4 (gl_XSTRTOD):
74205         * m4/yesno.m4 (gl_YESNO):
74206         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74207         to get the necessary .h files and whatnot.
74208
74209 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
74210             Bruno Haible  <bruno@clisp.org>
74211
74212         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
74213         /bin/sh understanding of '!' conditional negation.
74214
74215 2006-08-21  Jim Meyering  <jim@meyering.net>
74216
74217         * modules/openat (Depends-on): Really alphabetize.
74218
74219         * modules/acl (Depends-on): Add error and quote.
74220
74221         * check-module (find_included_lib_files): Add at-func.c to the
74222         ok-to-include-more-than-once white list.
74223
74224         * modules/openat (Depends-on): Add lstat.  Alphabetize.
74225
74226 2006-08-21  Bruno Haible  <bruno@clisp.org>
74227
74228         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74229         Emit a pkgdata_DATA variable only if some snippets add contents to it.
74230         Reported by Martin Lambers <marlam@marlam.de>.
74231
74232 2006-08-21  Bruno Haible  <bruno@clisp.org>
74233
74234         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
74235         specify an installation location, don't emit a noinst_LIBRARIES or
74236         noinst_LTLIBRARIES assignment.
74237
74238 2006-08-21  Bruno Haible  <bruno@clisp.org>
74239
74240         BeOS portability.
74241         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
74242         BeOS has mbrtowc() but no <wctype.h>.
74243
74244 2006-08-21  Bruno Haible  <bruno@clisp.org>
74245
74246         BeOS portability.
74247         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
74248         exist.
74249
74250 2006-08-21  Bruno Haible  <bruno@clisp.org>
74251
74252         BeOS portability.
74253         * lib/mbchar.h: Include <wctype.h> only if it exists.
74254
74255 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74256
74257         Remove files that are no longer needed by their respective modules.
74258         * m4/obstack.m4: Remove.
74259         * m4/strerror_r.m4: Remove.
74260         * m4/uint32_t.m4: Remove.
74261         * m4/uintptr_t.m4: Remove.
74262         * m4/ullong_max.m4: Remove.
74263         * m4/xstrtoimax.m4: Remove.
74264         * m4/xstrtoumax.m4: Remove.
74265
74266         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
74267         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
74268         dependencies now capture this.
74269
74270         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
74271         Do not use AC_LIBSOURCES, since gnulib modules now do this.
74272         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
74273         * m4/human.m4 (gl_HUMAN): Likewise.
74274         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
74275         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
74276
74277         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
74278
74279         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
74280         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
74281         stdint.
74282         * m4/human.m4 (gl_HUMAN): Likewise.
74283         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
74284         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
74285         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74286         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74287         * m4/xstrtol (gl_XSTRTOL): Likewise.
74288
74289         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
74290         AC_TYPE_LONG_LONG_INT.
74291         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74292         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
74293         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
74294         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74295
74296         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
74297         on stdbool.
74298
74299         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
74300         (gl_PREREQ_XSTRTOUL): Remove.
74301
74302         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
74303
74304         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
74305         mode.
74306
74307 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74308
74309         Add and change modules to make it easier for coreutils to use
74310         gnulib-tool.
74311         * modules/backupfile (Files): Remove m4/d-ino.m4.
74312         (Depends-on): Add d-ino.
74313         * modules/cycle-check (Depends-on): Add stdint.
74314         (lib_SOURCES): Add cycle-check.h.
74315         * modules/d-ino: New module.
74316         * modules/d-type: New module.
74317         * modules/error (Files): Remove m4/strerror_r.m4.
74318         * modules/filemode (Files): Add m4/st_dm_mode.m4.
74319         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74320         m4/inttypes_h.m4, m4/uintmax_t.m4.
74321         (Depends-on): Add stdint.
74322         (lib_SOURCES): Add fsusage.h.
74323         * modules/getcwd (Files): Remove d-ino.m4.
74324         (Depends-on): Add d-ino.
74325         * modules/getndelim2 (Depends-on): Add stdint.
74326         * modules/glob (Files): Remove m4/d-type.m4.
74327         (Depends-on): Add d-type.
74328         * modules/host-os: New module.
74329         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
74330         m4/inttypes_h.m4, m4/uintmax_t.m4.
74331         * Depends-on: Add stdint.
74332         (lib_SOURCES): Add human.h.
74333         * modules/inttostr (Files): Remove m4/intmax_t.m4,
74334         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
74335         m4/uintmax_t.m4, m4/ulonglong.m4.
74336         (Depends-on): Add stdint.
74337         (EXTRA_DIST): Add inttostr.h.
74338         * modules/lchmod: New module.
74339         * modules/link-follow: New module.
74340         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
74341         (Depends-on): Add lchmod.
74342         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
74343         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
74344         (Depends-on): Add stdint.
74345         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
74346         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
74347         (Depends-on): Add stdint.
74348         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
74349         * modules/perl: New module.
74350         * modules/regex (Depends-on): Add stdint.
74351         * modules/rmdir-errno: New module.
74352         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74353         m4/intmax_t.m4.
74354         (Depends-on): Add stdint.
74355         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74356         m4/uintmax_t.m4.
74357         (Depends-on): Add stdint.
74358         * modules/unlink-busy: New module.
74359         * modules/utimecmp (Depends-on): Add stdint.
74360         * modules/uptime: New module.
74361         * modules/winsz-ioctl: New module.
74362         * modules/winsz-termios: New module.
74363         * modules/xnanosleep (Depends-on): Add nanosleep.
74364         * modules/ullong_max: Remove.
74365         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
74366         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
74367         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
74368         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
74369         (Depends-on): Add inttypes.
74370         (lib_SOURCES): Add xstrtol.h.
74371         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
74372         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
74373         * MODULES.html.sh: Move 'assert' into the assert section.
74374         Move 'dummy' into the linking section.
74375         Remove ullong_max.
74376         Add section for compatibility checks for POSIX:2001 functions,
74377         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
74378         winsz-ioctl, and winsz-termios into it.
74379         Add lchmod.
74380         Add top-level Misc section and put host-os, perl, and uptime
74381         into it.
74382
74383 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74384
74385         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
74386         now assume the stdint module.  Do not include inttypes.h.
74387         * lib/fsusage.h: Likewise.
74388         * lib/getndelim2.c: Likewise.
74389         * lib/human.h: Likewise.
74390         * lib/inttostr.h: Likewise.
74391         * lib/obstack.c: Likewise.
74392         * lib/regex_internal.h: Likewise.
74393         * lib/tempname.c: Likewise.
74394         * lib/utimecmp.c: Likewise.
74395         * lib/xstrtol.h: Likewise.
74396
74397         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
74398
74399         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
74400         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
74401         * lib/xtime.h: Likewise.
74402
74403 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74404
74405         * modules/openat (Files): Add lib/fchmodat.c.
74406         Fixes problem reported by Jay Youngman.
74407
74408 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74409
74410         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
74411         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
74412
74413 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
74414             Bruno Haible  <bruno@clisp.org>
74415
74416         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
74417         and is a script that invokes bison. Tighten the code. Add comments.
74418
74419 2006-08-18  Jim Meyering  <jim@meyering.net>
74420
74421         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
74422         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
74423         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
74424         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
74425
74426 2006-08-18  Bruno Haible  <bruno@clisp.org>
74427
74428         * modules/bison-i18n: New file.
74429         * MODULES.html.sh (Internationalization functions): Add it.
74430
74431 2006-08-18  Bruno Haible  <bruno@clisp.org>
74432
74433         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
74434         sys/statvfs.h. When getmntinfo was found, check its declaration and
74435         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
74436
74437 2006-08-18  Bruno Haible  <bruno@clisp.org>
74438
74439         * m4/bison-i18n.m4: New file, from bison.
74440
74441 2006-08-18  Bruno Haible  <bruno@clisp.org>
74442
74443         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
74444         (ME_DUMMY): Treat "kernfs" as a dummy.
74445         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
74446
74447 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74448
74449         Update from coreutils.
74450
74451         2006-08-15  Jim Meyering  <jim@meyering.net>
74452
74453         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
74454
74455         2006-01-17  Jim Meyering  <jim@meyering.net>
74456
74457         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
74458
74459         2006-01-11  Jim Meyering  <jim@meyering.net>
74460
74461         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
74462         Check for the lchmod function.
74463
74464 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74465
74466         Update from coreutils.
74467
74468         * lib/__fpending.h: Add copyright notice.
74469         * lib/fprintftime.h: Likewise.
74470         * lib/savedir.c: Use (C) in copyright notice.
74471         * lib/savedir.h: Likewise.
74472
74473         2006-08-15  Jim Meyering  <jim@meyering.net>
74474
74475         * lib/at-func.c: New file, with the logic of all emulated at-functions.
74476         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
74477         in support of the EXPECTED_ERRNO macro.
74478         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
74479         definitions.  Instead, define the appropriate symbols and include
74480         "at-func.c".
74481         * lib/mkdirat.c (mkdirat): Likewise.
74482         * lib/fchmodat.c (fchmodat): Likewise.
74483         (ENOSYS): Remove definition.
74484         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
74485         it.  Don't include "unistd--.h" -- it wasn't ever used.
74486
74487         2006-01-17  Jim Meyering  <jim@meyering.net>
74488
74489         Rewrite fts.c not to change the current working directory,
74490         by using openat, fstatat, fdopendir, etc..
74491
74492         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
74493         (HAVE_OPENAT_SUPPORT): Define.
74494         [_LIBC] (fchdir): Don't undef or define; no longer used.
74495         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
74496         Now, this `function' always succeeds, and consumes its file descriptor
74497         parameter -- so callers must not close such FDs.  Update callers.
74498         (diropen_fd, opendirat, cwd_advance_fd): New functions.
74499         (diropen): Add parameter, SP.  Adjust all callers.
74500         Implement using diropen_fd, rather than open.
74501         (fts_open): Initialize new member, fts_cwd_fd.
74502         Remove fts_rft-setting code.
74503         (fts_close): Close fts_cwd_fd, if necessary.
74504         (__opendir2): Define in terms of opendir or opendirat,
74505         depending on whether the FST_NOCHDIR flag is set.
74506         (fts_build): Since fts_safe_changedir consumes its FD, and since
74507         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
74508         and close the dup'd file descriptor upon failure.
74509         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
74510         (fts_safe_changedir): Tweak semantics to reflect that this function
74511         now calls cwd_advance_fd and hence consumes its FD argument.
74512         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
74513         [struct FTS] (fts_rft): Remove now-unused member.
74514         [struct FTS] (fts_cycle.state): Improve comment.
74515
74516         * lib/openat.c (openat_needs_fchdir): New function.
74517         * lib/openat.h (openat_needs_fchdir): Declare it.
74518
74519 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
74520
74521         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
74522         Problem and fix reported by Pádraig Brady in
74523         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
74524
74525 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74526
74527         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
74528
74529 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74530
74531         * lib/memcoll.c (memcoll): Optimize for the common case where the
74532         arguments are bytewise equal.
74533
74534 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74535
74536         * doc/regexprops-generic.texi: Add a copyright notice.
74537
74538 2006-08-15  Bruno Haible  <bruno@clisp.org>
74539
74540         * modules/tmpdir (License): Change to LGPL.
74541
74542 2006-08-15  Bruno Haible  <bruno@clisp.org>
74543
74544         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
74545         module.
74546
74547 2006-08-14  Simon Josefsson  <jas@extundo.com>
74548
74549         * config/srclist.txt: Add gnupload.
74550
74551 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74552
74553         Change copyright notice from LGPL 2 to GPL 2, since that's the
74554         standard form used in the gnulib repository.
74555         * tests/test-lock.c: Likewise.
74556         * tests/test-stdint.c: Likewise.
74557         * tests/test-tls.c: Likewise.
74558
74559         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
74560         prelude-manager.  User shorter URLs for GNU projects, without '?'.
74561         Add copyright notice.
74562
74563         * check-module: Add copyright notice.  Output a copyright
74564         notice if "--version" is specified.
74565         * modules/COPYING: New file.
74566         * tests/test-getaddrinfo.c: Add copyright notice.
74567         * tests/test-verify.c: Likewise.
74568
74569 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74570
74571         Change copyright notice from LGPL 2 to GPL 2, since that's the
74572         standard form used in the gnulib repository.
74573         * lib/lock.c: LGPL -> GPL.
74574         * lib/lock.h: Likewise.
74575         * lib/strnlen1.c: Likewise.
74576         * lib/strnlen1.h: Likewise.
74577         * lib/tls.c: Likewise.
74578         * lib/tls.h: Likewise.
74579         * lib/tmpdir.c: Likewise.
74580
74581         * lib/TODO: Remove; this belongs only in coreutils.
74582
74583 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74584
74585         Add copyright notices to long-enough files that lack them, since
74586         otherwise the files aren't clearly free.  Use the same notice that
74587         getdate.texi already uses.
74588         * doc/alloca-opt.texi: Add copyright notice.
74589         * doc/alloca.texi: Likewise.
74590         * doc/ctime.texi: Likewise.
74591         * doc/functions.texi: Likewise.
74592         * doc/gcd.texi: Likewise.
74593         * doc/gnulib-tool.texi: Likewise.
74594         * doc/inet_ntoa.texi: Likewise.
74595         * doc/visibility.texi: Likewise.
74596
74597         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
74598         * doc/quote.texi: Add copyright notice.
74599
74600         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
74601         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
74602         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
74603         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
74604         is now obsolete, and give a pointer to the Sun list.
74605         Add copyright notice.
74606
74607 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74608
74609         * config/srclistvars.sh: Add copyright notice.
74610
74611 2006-08-14  Eric Blake  <ebb9@byu.net>
74612
74613         Import the following change from libc:
74614
74615         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
74616
74617         Upstream bug 2997.
74618         * lib/misc/error.c: Add space between program name and message if file
74619         name is missing.
74620
74621 2006-08-12  Karl Berry  <karl@gnu.org>
74622
74623         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
74624         remove, these originate in gnulib now.
74625
74626 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74627
74628         * doc/Makefile (standards.info standards.html standards.dvi):
74629         Also depend on make-stds.texi.
74630
74631 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74632
74633         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
74634         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
74635
74636         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
74637         in wchar_t.  Problem reported by Eric Blake.
74638
74639         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
74640         LEN is smaller than SIZE.  Suggested by Bruno Haible.
74641         Also, help the compiler to keep LEN in a register.
74642
74643 2006-08-11  Eric Blake  <ebb9@byu.net>
74644
74645         * users.txt: Sort.  Add tar.
74646
74647 2006-08-11  Bruno Haible  <bruno@clisp.org>
74648
74649         * users.txt: New file.
74650
74651 2006-08-11  Bruno Haible  <bruno@clisp.org>
74652
74653         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
74654         before <wchar.h>. Needed for OSF/1 and BSD/OS.
74655
74656 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74657
74658         * modules/snprintf (Depends-on): Remove minmax.
74659         (Maintainer): Add self and Bruno.
74660
74661 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74662
74663         * lib/.cppi-disable: Add snprintf.h, socket_.h.
74664         * lib/snprintf.c: Include <errno.h> and <limits.h>.
74665         (EOVERFLOW): Define if the system does not.
74666         Do not include "minmax.h"; it wasn't used.
74667         (snprintf): Don't assume size_t promotes to an unsigned type.
74668         Fix bug when generated string was too long for the buffer: the
74669         buffer's contents are supposed to be the initial prefix of the
74670         output.  Don't assume vasnprintf returns EOVERFLOW if the size
74671         exceeds INT_MAX; do the check ourselves.
74672
74673         Import the following changes from libc:
74674
74675         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
74676
74677         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
74678         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
74679         set wc to the byte which couldn't be converted.
74680         (re_string_reconstruct): Don't clear valid_raw_len before calling
74681         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
74682         tip_context using re_string_context_at.
74683
74684         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
74685
74686         * lib/posix/regex.h: g++ still cannot handled [restrict].
74687
74688         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
74689
74690         * lib/posix/regex.h: Remove special handling for VMS.
74691
74692 2006-08-10  Jim Meyering  <jim@meyering.net>
74693
74694         * modules/same-inode: New module.
74695         * modules/dev-ino: New module.
74696         * modules/cycle-check: Depend on these modules, rather than simply
74697         including their .h files.
74698         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
74699         required via m4/cycle-check.m4.
74700         * modules/same: Depend on new same-inode module, rather than
74701         including same-inode.h.
74702         * modules/chdir-safer: New file.
74703
74704         * modules/chown (Depends-on): Add stat-macros.
74705
74706 2006-08-10  Jim Meyering  <jim@meyering.net>
74707
74708         * m4/cycle-check.m4: New file.
74709         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
74710         * m4/dev-ino.m4, m4/same-inode.m4: New files.
74711
74712 2006-08-10  Eric Blake  <ebb9@byu.net>
74713
74714         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
74715         in from original proposal.
74716
74717 2006-08-10  Eric Blake  <ebb9@byu.net>
74718         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74719
74720         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
74721         namespace.
74722
74723 2006-08-10  Bruno Haible  <bruno@clisp.org>
74724
74725         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
74726         as well.
74727
74728 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74729
74730         Sync from coreutils.
74731
74732         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
74733
74734         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
74735         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
74736
74737 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74738
74739         * modules/restrict: Remove; no longer needed now that we assume
74740         Autoconf 2.59 or later.
74741         * MODULES.html.sh: Remove 'restrict'.
74742         * modules/argp (Depends-on): Remove 'restrict'.
74743         * modules/base64 (Depends-on): Likewise.
74744         * modules/gc (Depends-on): Likewise.
74745         * modules/getaddrinfo (Depends-on): Likewise.
74746         * modules/glob (Depends-on): Likewise.
74747         * modules/inet_ntop (Depends-on): Likewise.
74748         * modules/inet_pton (Depends-on): Likewise.
74749         * modules/memxor (Depends-on): Likewise.
74750         * modules/regex (Depends-on): Likewise.
74751         * modules/strtok_r (Depends-on): Likewise.
74752         * modules/time_r (Depends-on): Likewise.
74753
74754 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74755
74756         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
74757         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
74758         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
74759         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
74760         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
74761         * m4/memxor.m4 (gl_MEMXOR): Likewise.
74762         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
74763         gl_C_RESTRICT replaced by AC_C_RESTRICT.
74764
74765         Merge from coreutils.
74766         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
74767         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
74768         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
74769         * m4/time_r.m4 (gl_TIME_R): Likewise.
74770
74771 2006-08-09  Karl Berry  <karl@gnu.org>
74772
74773         * config/srclist.txt: no more gettext-tools, per Bruno.
74774
74775 2006-08-08  Eric Blake  <ebb9@byu.net>
74776
74777         * modules/verror: New module.
74778         * MODULES.html.sh: Document it.
74779
74780 2006-08-08  Eric Blake  <ebb9@byu.net>
74781
74782         * lib/verror.h, lib/verror.c: New files.
74783
74784 2006-08-08  Eric Blake  <ebb9@byu.net>
74785
74786         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
74787         verror_at_line output complies with GNU Coding Standards even when
74788         file is NULL.
74789
74790 2006-08-07  Bruno Haible  <bruno@clisp.org>
74791
74792         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
74793         versions of AIX.
74794         Reported by Ralf Wildenhues.
74795
74796 2006-08-07  Bruno Haible  <bruno@clisp.org>
74797
74798         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
74799         in an AC_DEFUN. Needed so that the autoconf snippets can use
74800         AC_REQUIRE.
74801
74802 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74803
74804         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74805         Initialize pkgdata_DATA.
74806         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
74807         overriding it.
74808
74809 2006-08-06  Eric Blake  <ebb9@byu.net>
74810
74811         * lib/error.h: Fold in some upstream changes from glibc.
74812         * lib/error.c: Likewise.
74813
74814 2006-08-04  Bruno Haible  <bruno@clisp.org>
74815
74816         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74817         Make the mostlyclean-local rule depend on mostlyclean-generic.
74818         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
74819
74820 2006-07-31  Bruno Haible  <bruno@clisp.org>
74821
74822         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
74823         <stdlib.h>, <string.h>.
74824
74825 2006-07-30  Bruno Haible  <bruno@clisp.org>
74826
74827         * modules/readlink (License): Change to LGPL.
74828
74829 2006-07-30  Bruno Haible  <bruno@clisp.org>
74830
74831         * modules/javaversion (Makefile.am): Distribute javaversion.java and
74832         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
74833         set PKGDATADIR to point to it.
74834
74835 2006-07-30  Bruno Haible  <bruno@clisp.org>
74836
74837         * modules/csharpexec (configure.ac): Comment out macro invocation.
74838         * modules/javaexec (configure.ac): Likewise.
74839         * modules/javacomp-script (configure.ac): Likewise.
74840
74841         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
74842
74843 2006-07-30  Bruno Haible  <bruno@clisp.org>
74844
74845         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
74846         linked-list.
74847
74848 2006-07-30  Bruno Haible  <bruno@clisp.org>
74849
74850         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
74851
74852 2006-07-30  Bruno Haible  <bruno@clisp.org>
74853
74854         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74855         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
74856         get removed.
74857
74858 2006-07-29  Bruno Haible  <bruno@clisp.org>
74859
74860         Make it possible for gnulib-tool to work with locally modified or
74861         augmented gnulib repositories.
74862         * gnulib-tool (func_usage): Document --local-dir option.
74863         (local_gnulib_dir): New variable.
74864         Handle --local-dir option.
74865         (func_lookup_file): New function.
74866         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
74867         (func_get_description, func_get_filelist, func_get_description,
74868         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
74869         func_get_automake_snippet, func_get_include_directive,
74870         func_get_license, func_get_maintainer): Use func_lookup_file.
74871         (func_import, func_create_testdir): Use func_lookup_file.
74872
74873 2006-07-29  Bruno Haible  <bruno@clisp.org>
74874
74875         * modules/setenv (Depends-on): Add unistd.
74876
74877 2006-07-29  Bruno Haible  <bruno@clisp.org>
74878
74879         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
74880
74881 2006-07-29  Bruno Haible  <bruno@clisp.org>
74882
74883         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
74884
74885 2006-07-29  Bruno Haible  <bruno@clisp.org>
74886
74887         * gnulib-tool (import, update): If there is no Makefile.am, look at
74888         aclocal.m4, instead of bailing out.
74889
74890 2006-07-29  Bruno Haible  <bruno@clisp.org>
74891
74892         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
74893         Categorize the options by when they are useful.
74894
74895 2006-07-29  Bruno Haible  <bruno@clisp.org>
74896
74897         * gnulib-tool (func_usage): Document option --no-libtool.
74898         Handle option --no-libtool.
74899         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
74900         for changed semantics of $libtool variable.
74901         (func_import): Likewise. If libtool is not used, show this through
74902         an option --no-libtool.
74903         (func_create_testdir): Update.
74904
74905 2006-07-29  Bruno Haible  <bruno@clisp.org>
74906
74907         * gnulib-tool (func_import): Extend error message about missing
74908         --doc-base.
74909
74910 2006-07-29  Bruno Haible  <bruno@clisp.org>
74911
74912         * gnulib-tool (func_import): Don't create the $docbase directory if
74913         there is no file to store there.
74914
74915 2006-07-29  Bruno Haible  <bruno@clisp.org>
74916
74917         * gnulib-tool (autoconf_minversion): If a --dir option is given and
74918         relevant, look for configure.ac there, not in the current directory.
74919         Also use a simple search for AC_PREREQ, not "autoconf --trace".
74920
74921 2006-07-29  Bruno Haible  <bruno@clisp.org>
74922
74923         * gnulib-tool (SORT): New variable.
74924         (func_usage): Undocument --assume-autoconf option.
74925         Remove --assume-autoconf option handling.
74926         (autoconf_minversion): Determine from the contents of configure.ac.
74927         (func_import): Remove autoconf_minversion handling.
74928         Suggested by Eric Blake.
74929
74930 2006-07-29  Bruno Haible  <bruno@clisp.org>
74931
74932         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
74933
74934 2006-07-29  Bruno Haible  <bruno@clisp.org>
74935
74936         * config/srclist.txt (*setenv.[ch]): Remove rules.
74937
74938 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74939
74940         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
74941
74942 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74943
74944         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
74945         arpa/inet.h.
74946
74947 2006-07-28  Simon Josefsson  <jas@extundo.com>
74948
74949         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
74950         * modules/inet_pton (Depends-on): Likewise.
74951
74952 2006-07-28  Simon Josefsson  <jas@extundo.com>
74953
74954         * m4/netinet_in_h.m4: New file.
74955
74956 2006-07-28  Simon Josefsson  <jas@extundo.com>
74957
74958         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
74959         #include's.
74960
74961 2006-07-28  Simon Josefsson  <jas@extundo.com>
74962
74963         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
74964         #include's.
74965
74966 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
74967
74968         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
74969         setgid on directories only if they set these bits.
74970         * lib/modechange.h: Remove obsolete comment about masks.
74971
74972 2006-07-28  Eric Blake  <ebb9@byu.net>
74973
74974         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
74975         macro expansion.
74976
74977 2006-07-28  Bruno Haible  <bruno@clisp.org>
74978
74979         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
74980
74981 2006-07-28  Bruno Haible  <bruno@clisp.org>
74982
74983         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
74984
74985 2006-07-28  Bruno Haible  <bruno@clisp.org>
74986
74987         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
74988         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
74989         Define fallbacks.
74990         Avoids link error on FreeBSD 4.x.
74991         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74992
74993         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
74994         encoding.
74995         * lib/mbswidth.c (iswcntrl): Likewise.
74996
74997 2006-07-27  Bruno Haible  <bruno@clisp.org>
74998
74999         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
75000         test.
75001
75002 2006-07-27  Bruno Haible  <bruno@clisp.org>
75003
75004         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
75005         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
75006         defined.
75007
75008 2006-07-26  Eric Blake  <ebb9@byu.net>
75009
75010         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
75011
75012 2006-07-26  Eric Blake  <ebb9@byu.net>
75013
75014         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
75015         like mingw that lack mkstemp.
75016         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
75017         avoid compilation warning on mingw.
75018
75019 2006-07-26  Bruno Haible  <bruno@clisp.org>
75020
75021         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
75022         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
75023         INT_FAST*_MIN, INTPTR_MIN.
75024
75025 2006-07-25  Bruno Haible  <bruno@clisp.org>
75026
75027         * modules/version-etc (Depends-on): Add stdarg.
75028
75029 2006-07-25  Bruno Haible  <bruno@clisp.org>
75030
75031         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
75032         complex commands.
75033
75034 2006-07-25  Bruno Haible  <bruno@clisp.org>
75035
75036         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
75037         defined in <stdarg.h> or config.h.
75038
75039 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75040
75041         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
75042         (gl_STDIO_SAFER): Remove.
75043
75044 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75045
75046         * MODULES.html.sh (File stream based Input/Output):
75047         Add fopen-safer, tmpfile-safer; remove stdio-safer.
75048         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
75049         * modules/fopen-safer, modules/tmpfile-safer: New files.
75050         * modules/stdio-safer: Remove.
75051
75052 2006-07-24  Bruno Haible  <bruno@clisp.org>
75053
75054         * modules/tmpdir: New file.
75055         * MODULES.html.sh (File system functions): Add it.
75056
75057 2006-07-24  Bruno Haible  <bruno@clisp.org>
75058
75059         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
75060         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
75061
75062 2006-07-24  Bruno Haible  <bruno@clisp.org>
75063
75064         * modules/clean-temp: New file.
75065
75066 2006-07-24  Bruno Haible  <bruno@clisp.org>
75067
75068         * m4/tmpdir.m4: New file, from GNU gettext.
75069
75070 2006-07-24  Bruno Haible  <bruno@clisp.org>
75071
75072         * lib/tmpdir.h: New file, from GNU gettext.
75073         * lib/tmpdir.c: New file, from GNU gettext.
75074
75075 2006-07-24  Bruno Haible  <bruno@clisp.org>
75076
75077         * lib/clean-temp.h: New file, from GNU gettext.
75078         * lib/clean-temp.c: New file, from GNU gettext.
75079
75080 2006-07-23  Eric Blake  <ebb9@byu.net>
75081
75082         * modules/stdio-safer (Files): Add tmpfile-safer.c.
75083         (Depends-on): Add binary-io.
75084
75085 2006-07-23  Eric Blake  <ebb9@byu.net>
75086
75087         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
75088
75089 2006-07-23  Eric Blake  <ebb9@byu.net>
75090
75091         * lib/tmpfile-safer.c: New file.
75092         * lib/stdio-safer.h (fopen_safer): Add prototype.
75093         * lib/stdio--.h (tmpfile): Make safer.
75094
75095 2006-07-23  Bruno Haible  <bruno@clisp.org>
75096
75097         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
75098         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
75099         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
75100         gl_linked_remove_at): Use it.
75101
75102 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75103         and Simon Josefsson <jas@extundo.com>
75104
75105         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
75106
75107         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
75108
75109 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75110
75111         * modules/close-stream: New file.
75112         * modules/closeout (Description): Make it clear that it exits
75113         with a diagnostic on error.
75114         (Depends-on): Add close-stream.  Remove fpending, stdbool.
75115         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
75116
75117 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75118
75119         * m4/close-stream.m4: New file.
75120
75121 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75122
75123         * lib/close-stream.c, lib/close-stream.h: New files.
75124
75125 2006-07-22  Bruno Haible  <bruno@clisp.org>
75126
75127         Merge from GNU gettext 0.15.
75128
75129         2006-05-01  Bruno Haible  <bruno@clisp.org>
75130
75131                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
75132
75133         2006-07-22  Bruno Haible  <bruno@clisp.org>
75134
75135                 * modules/javaversion: New file.
75136                 * MODULES.html.sh (Java): Add javaversion.
75137
75138         2006-03-12  Bruno Haible  <bruno@clisp.org>
75139
75140                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
75141
75142         2005-12-04  Bruno Haible  <bruno@clisp.org>
75143
75144                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
75145                 (untested).
75146
75147         2006-06-21  Bruno Haible  <bruno@clisp.org>
75148
75149                 Avoid warnings from recent versions of mcs.
75150                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
75151                 -o, -L, -r any more. Use options documented since mcs-1.0
75152                 instead. Similarly for -g.
75153
75154         2005-12-04  Bruno Haible  <bruno@clisp.org>
75155
75156                 * build-aux/csharpcomp.sh.in: Suffix for resources is
75157                 .resources, not .resource.
75158
75159         2005-07-09  Bruno Haible  <bruno@clisp.org>
75160
75161                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
75162                 add a .dll suffix.
75163                 Reported by Mark Junker <mjscod@gmx.de>.
75164
75165         2006-07-22  Bruno Haible  <bruno@clisp.org>
75166
75167                 * modules/gettext: Upgrade to gettext-0.15.
75168                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
75169                 m4/visibility.m4.
75170                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
75171
75172 2006-07-22  Bruno Haible  <bruno@clisp.org>
75173
75174         Merge from GNU gettext 0.15.
75175
75176         2006-03-25  Bruno Haible  <bruno@clisp.org>
75177
75178                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
75179
75180         2006-07-21  Bruno Haible  <bruno@clisp.org>
75181
75182                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
75183                 "1.1".
75184
75185         2006-05-09  Bruno Haible  <bruno@clisp.org>
75186
75187                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
75188                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
75189                 for the conftestver execution.
75190
75191         2006-05-01  Bruno Haible  <bruno@clisp.org>
75192
75193                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
75194                 optional target-version argument. Verify that the compiler
75195                 groks source of the specified source-version, or add -source
75196                 option as necessary. Verify that the compiler produces
75197                 bytecode in the specified target-version, or add -target and
75198                 -source options as necessary. Make the result of the test
75199                 available as variable CONF_JAVAC. Also log error output in
75200                 config.log.
75201
75202         2006-03-11  Bruno Haible  <bruno@clisp.org>
75203
75204                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
75205
75206         2006-05-09  Bruno Haible  <bruno@clisp.org>
75207
75208                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
75209                 CLASSPATH_SEPARATOR to a semicolon.
75210
75211         2006-03-12  Bruno Haible  <bruno@clisp.org>
75212
75213                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
75214                 available as variable CONF_JAVA, for subsequent autoconf
75215                 tests. Also log error output in config.log.
75216
75217         2006-07-19  Bruno Haible  <bruno@clisp.org>
75218
75219                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
75220                 that getline works on glibc2 systems. Needed to avoid trouble
75221                 in relocatable.c.
75222                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
75223
75224         2005-12-04  Bruno Haible  <bruno@clisp.org>
75225
75226                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
75227                 launcher (untested).
75228
75229         2005-12-04  Bruno Haible  <bruno@clisp.org>
75230
75231                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
75232
75233         2006-07-22  Bruno Haible  <bruno@clisp.org>
75234
75235                 * gettext.m4: Update from GNU gettext-0.15.
75236                 * nls.m4: Likewise.
75237                 * po.m4: Likewise.
75238                 * inttypes-pri.m4: Likewise.
75239                 * inttypes-h.m4: Renamed from inttypes.m4.
75240                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
75241
75242 2006-07-22  Bruno Haible  <bruno@clisp.org>
75243
75244         Merge from GNU gettext 0.15.
75245
75246         2005-07-05  Bruno Haible  <bruno@clisp.org>
75247
75248                 * printf-args.c (printf_fetchargs): Work around broken
75249                 definition of wint_t on mingw.
75250
75251         2005-02-12  Bruno Haible  <bruno@clisp.org>
75252
75253                 * xallocsa.h: Add extern "C" for C++.
75254
75255         2006-05-17  Bruno Haible  <bruno@clisp.org>
75256
75257                 Cygwin portability.
75258                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
75259
75260         2006-04-30  Bruno Haible  <bruno@clisp.org>
75261
75262                 * progreloc.c: Include <mach-o/dyld.h> if available.
75263                 (find_executable): Use _NSGetExecutablePath when possible.
75264
75265         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75266
75267                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
75268                 function.
75269
75270         2005-12-29  Bruno Haible  <bruno@clisp.org>
75271
75272                 * progreloc.c (set_program_name_and_installdir): Fix
75273                 compilation error.
75274
75275         2005-12-04  Bruno Haible  <bruno@clisp.org>
75276
75277                 Cygwin portability.
75278                 * progreloc.c: Include <windows.h> also on Cygwin.
75279                 (find_executable): Add support for Cygwin.
75280                 (set_program_name_and_installdir): Handle also platforms with
75281                 nonempty EXEEXT.
75282
75283         2006-07-11  Bruno Haible  <bruno@clisp.org>
75284
75285                 * javacomp.c: Fix a comment.
75286                 Reported by Jim Meyering.
75287
75288         2006-04-30  Bruno Haible  <bruno@clisp.org>
75289
75290                 * javacomp.h (compile_java_class): Add source_version,
75291                 target_version arguments.
75292                 * javacomp.c: Rewritten to choose only a compiler that
75293                 respects the specified source_version and target_version.
75294
75295         2006-06-27  Bruno Haible  <bruno@clisp.org>
75296
75297                 Assume correct S_ISDIR macro.
75298                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
75299
75300         2006-07-22  Bruno Haible  <bruno@clisp.org>
75301
75302                 * javaversion.h: New file, from GNU gettext.
75303                 * javaversion.c: New file, from GNU gettext.
75304                 * javaversion.java: New file, from GNU gettext.
75305                 * javaversion.class: New file, from GNU gettext.
75306
75307         2006-05-17  Bruno Haible  <bruno@clisp.org>
75308
75309                 Cygwin portability.
75310                 * javaexec.c (execute_java_class): Test for jview program
75311                 also on Cygwin.
75312
75313         2006-04-09  Bruno Haible  <bruno@clisp.org>
75314
75315                 * fatal-signal.c: Don't include string.h.
75316                 (at_fatal_signal): Use a copying loop instead of memcpy.
75317
75318         2005-12-04  Bruno Haible  <bruno@clisp.org>
75319
75320                 * csharpexec.c: Add support for 'clix' launcher (untested).
75321                 (execute_csharp_using_sscli): New function.
75322                 (execute_csharp_program): Call it.
75323
75324         2006-06-21  Bruno Haible  <bruno@clisp.org>
75325
75326                 Avoid warnings from recent versions of mcs.
75327                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
75328                 -o, -L, -r any more. Use options documented since mcs-1.0
75329                 instead. Similarly for -g.
75330
75331         2005-07-09  Bruno Haible  <bruno@clisp.org>
75332
75333                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
75334                 add a .dll suffix.
75335                 Reported by Mark Junker <mjscod@gmx.de>.
75336
75337         2006-06-17  Bruno Haible  <bruno@clisp.org>
75338
75339                 * config.charset: Update for NetBSD 3.0.
75340
75341         2006-05-17  Bruno Haible  <bruno@clisp.org>
75342
75343                 Cygwin portability.
75344                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
75345
75346         2006-05-16  Bruno Haible  <bruno@clisp.org>
75347
75348                 * localcharset.c [CYGWIN]: Include <windows.h>.
75349                 (get_charset_aliases): For Cygwin, return the same CPxxx
75350                 aliases list as under WIN32.
75351                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
75352                 the environment variables. Fall back to GetACP().
75353
75354         2006-04-05  Bruno Haible  <bruno@clisp.org>
75355
75356                 * config.charset: Update Juan Manuel Guerrero's address.
75357
75358         2005-02-12  Bruno Haible  <bruno@clisp.org>
75359
75360                 * allocsa.h: Add extern "C" for C++.
75361
75362         2005-02-10  Bruno Haible  <bruno@clisp.org>
75363
75364                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
75365                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
75366
75367         2006-07-22  Bruno Haible  <bruno@clisp.org>
75368
75369                 * gettext.h: Update to GNU gettext-0.15.
75370
75371 2006-07-22  Bruno Haible  <bruno@clisp.org>
75372
75373         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
75374         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
75375         lib-prefix.m4, longdouble.m4, ssize_t.m4.
75376
75377 2006-07-21  Eric Blake  <ebb9@byu.net>
75378
75379         * modules/stdlib-safer: New file.
75380         * MODULES.html.sh (File stream based Input/Output): Add
75381         stdlib-safer.
75382
75383 2006-07-21  Eric Blake  <ebb9@byu.net>
75384
75385         * lib/stdlib-safer.h: New file from coreutils, required by
75386         stdlib--.h.
75387
75388 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
75389
75390         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
75391
75392 2006-07-20  Bruno Haible  <bruno@clisp.org>
75393
75394         * gnulib-tool: Recognize new option --assume-autoconf.
75395         (autoconf_minversion): New variable.
75396         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
75397
75398 2006-07-20  Bruno Haible  <bruno@clisp.org>
75399
75400         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
75401
75402 2006-07-19  Derek R. Price  <derek@ximbiot.com>
75403
75404         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
75405         Reindent and repaginate.
75406
75407 2006-07-19  Derek Price  <derek@ximbiot.com>
75408
75409         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
75410         Correct grammar.
75411
75412 2006-07-17  Bruno Haible  <bruno@clisp.org>
75413
75414         * modules/list: New file.
75415         * modules/array-list: New file.
75416         * modules/carray-list, modules/carray-list-tests: New files.
75417         * modules/linked-list, modules/linked-list-tests: New files.
75418         * modules/avltree-list, modules/avltree-list-tests: New files.
75419         * modules/rbtree-list, modules/rbtree-list-tests: New files.
75420         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
75421         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
75422         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
75423         * modules/oset: New file.
75424         * modules/array-oset: New file.
75425         * modules/avltree-oset, modules/avltree-oset-tests: New files.
75426         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
75427         * tests/test-carray_list.c: New file.
75428         * tests/test-linked_list.c: New file.
75429         * tests/test-avltree_list.c: New file.
75430         * tests/test-rbtree_list.c: New file.
75431         * tests/test-linkedhash_list.c: New file.
75432         * tests/test-avltreehash_list.c: New file.
75433         * tests/test-rbtreehash_list.c: New file.
75434         * tests/test-avltree_oset.c: New file.
75435         * tests/test-rbtree_oset.c: New file.
75436         * MODULES.html.sh (Container data structures): New section.
75437
75438 2006-07-17  Bruno Haible  <bruno@clisp.org>
75439
75440         * m4/gl_list.m4: New file.
75441
75442 2006-07-17  Bruno Haible  <bruno@clisp.org>
75443
75444         * lib/gl_list.h: New file.
75445         * lib/gl_list.c: New file.
75446         * lib/gl_array_list.h: New file.
75447         * lib/gl_array_list.c: New file.
75448         * lib/gl_carray_list.h: New file.
75449         * lib/gl_carray_list.c: New file.
75450         * lib/gl_linked_list.h: New file.
75451         * lib/gl_linked_list.c: New file.
75452         * lib/gl_anylinked_list1.h: New file.
75453         * lib/gl_anylinked_list2.h: New file.
75454         * lib/gl_avltree_list.h: New file.
75455         * lib/gl_avltree_list.c: New file.
75456         * lib/gl_anyavltree_list1.h: New file.
75457         * lib/gl_anyavltree_list2.h: New file.
75458         * lib/gl_rbtree_list.h: New file.
75459         * lib/gl_rbtree_list.c: New file.
75460         * lib/gl_anyrbtree_list1.h: New file.
75461         * lib/gl_anyrbtree_list2.h: New file.
75462         * lib/gl_anytree_list1.h: New file.
75463         * lib/gl_anytree_list2.h: New file.
75464         * lib/gl_linkedhash_list.h: New file.
75465         * lib/gl_linkedhash_list.c: New file.
75466         * lib/gl_anyhash_list1.h: New file.
75467         * lib/gl_anyhash_list2.h: New file.
75468         * lib/gl_avltreehash_list.h: New file.
75469         * lib/gl_avltreehash_list.c: New file.
75470         * lib/gl_rbtreehash_list.h: New file.
75471         * lib/gl_rbtreehash_list.c: New file.
75472         * lib/gl_anytreehash_list1.h: New file.
75473         * lib/gl_anytreehash_list2.h: New file.
75474
75475         * lib/gl_oset.h: New file.
75476         * lib/gl_oset.c: New file.
75477         * lib/gl_array_oset.h: New file.
75478         * lib/gl_array_oset.c: New file.
75479         * lib/gl_avltree_oset.h: New file.
75480         * lib/gl_avltree_oset.c: New file.
75481         * lib/gl_rbtree_oset.h: New file.
75482         * lib/gl_rbtree_oset.c: New file.
75483         * lib/gl_anytree_oset.h: New file.
75484
75485 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75486
75487         * m4/mkancesdirs.m4: New file.
75488         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
75489         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
75490         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
75491         it.
75492
75493 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75494
75495         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
75496         * lib/mkancesdirs.h: New files.
75497         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
75498         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
75499         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
75500         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
75501         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
75502         callers changed.  Revamp internals significantly, by not
75503         attempting to create directories that are temporarily more
75504         permissive than the final results.  Do not attempt to use
75505         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
75506         This removes some race conditions, fixes some bugs, and simplifies
75507         things.  Use new dirchownmod function to do owner and mode changes.
75508         * lib/mkdir-p.h: Likewise.
75509         * lib/modechange.c (octal_to_mode): New function.
75510         (struct mode_change): New member mentioned.
75511         (make_node_op_equals): New arg mentioned.  All callers changed.
75512         (mode_compile): Keep track of which mode bits the user has explicitly
75513         mentioned.
75514         (mode_adjust): New arg DIR, so that we implement the X op correctly.
75515         New arg PMODE_BITS, to keep track of which mode bits the user
75516         mentioned; it treats S_ISUID and S_ISGID speciall.
75517         All callers changed.
75518         * lib/modechange.h: Likewise.
75519
75520 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75521
75522         * MODULES.html.sh: Add mkancestors.
75523         * modules/mkancesdirs: New module.
75524         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
75525         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
75526         The chdir-safer and afs files are now orphans; I'll remove them
75527         unless someone speaks up.
75528         Add lib/dirchownmod.c, lib/dirchownmod.h.
75529         (Depends-on): Remove alloca, chown, save-cwd, dirname.
75530         Add lchown, mkancesdirs.
75531         (Maintainer): Add self.
75532
75533 2006-07-15  Karl Berry  <karl@gnu.org>
75534
75535         * gnulib-tool: help message wording/arrangement.
75536
75537 2006-07-14  Simon Josefsson  <jas@extundo.com>
75538
75539         * doc/gnulib.texi (Libtool and Windows): New section.
75540
75541 2006-07-12  Simon Josefsson  <jas@extundo.com>
75542
75543         * modules/gendocs (License): Fix license, approved by Karl.
75544
75545 2006-07-12  Eric Blake  <ebb9@byu.net>
75546
75547         * MODULES.html.sh: Add gendocs.
75548
75549 2006-07-11  Eric Blake  <ebb9@byu.net>
75550
75551         * modules/fdl: New module, to install doc/fdl.texi.
75552         * MODULES.html.sh: Add new section for documentation modules.
75553         * gnulib-tool: Avoid space-tab.
75554         (--doc-base): New option, to manage files from doc.
75555
75556 2006-07-11  Eric Blake  <ebb9@byu.net>
75557
75558         * m4/absolute-header.m4: Fix comments to match recent change.
75559
75560 2006-07-11  Eric Blake  <ebb9@byu.net>
75561
75562         * gnulib-tool: List --doc-base before --tests-base.
75563
75564 2006-07-11  Derek R. Price  <derek@ximbiot.com>
75565
75566         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
75567
75568 2006-07-11  Bruno Haible  <bruno@clisp.org>
75569
75570         * README: Mention where to put documentation.
75571
75572 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75573
75574         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
75575
75576 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75577
75578         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
75579         to stdint.m4.
75580
75581 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75582
75583         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
75584         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
75585         "no/such/file/stdint.h" when there is no such file, so that
75586         the resulting C code can be parsed by dodgy compilers.
75587         Problems reported by Bob Proulx.
75588
75589 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75590
75591         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
75592         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75593         macros into the GNU _D_EXACT_NAMLEN.
75594         * lib/savedir.c:  Likewise.
75595         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
75596
75597 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75598         and Paul Eggert  <eggert@cs.ucla.edu>
75599
75600         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
75601         * m4/savedir.m4:
75602         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75603         macros into the GNU _D_EXACT_NAMLEN.
75604
75605 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75606
75607         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
75608         around the absolute name, to work around a problem with the HP-UX
75609         11.23 native C compiler, reported by Bob Proulx.
75610
75611 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75612
75613         * doc/maintain.texi, make-stds.texi: Sync from
75614         <http://savannah.gnu.org/projects/gnustandards>.
75615
75616 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75617
75618         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
75619
75620 2006-07-09  Jim Meyering  <jim@meyering.net>
75621
75622         * m4/glob.m4: Remove a doubled word in a comment.
75623
75624 2006-07-09  Jim Meyering  <jim@meyering.net>
75625
75626         * lib/argp-pv.c: Remove a doubled word in a comment.
75627         * lib/check-version.c (check_version): Likewise.
75628         * lib/javacomp.c (compile_java_class): Likewise.
75629
75630 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
75631
75632         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
75633         for the benefit of people using Autoconf 2.60.  If you want to
75634         support older Autoconf versions you can copy m4/onceonly_2_57.m4
75635         (or m4/onceonly.m4, if pre-2.57) manually.
75636
75637 2006-07-08  Jim Meyering  <jim@meyering.net>
75638
75639         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
75640         comment.
75641         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
75642         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
75643         comment.
75644
75645 2006-07-08  Jim Meyering  <jim@meyering.net>
75646
75647         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
75648
75649 2006-07-07  Simon Josefsson  <jas@extundo.com>
75650
75651         * tests/test-crc.c: Change expected crc value, the test vector
75652         were probably computed using the old broken crc.c?
75653
75654 2006-07-06  Simon Josefsson  <jas@extundo.com>
75655
75656         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
75657         now the canonical place for the M4 file).
75658
75659         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
75660         from the sys_socket dependency now.
75661
75662         * modules/inet_pton (Files): Ditto.
75663
75664         * modules/inet_ntop (Files): Ditto.
75665
75666 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75667
75668         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
75669         not gl_PREREQ_GETUSERSHELL.
75670
75671 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75672
75673         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
75674         with only one argument, for Autoconf 2.60.
75675         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
75676         expand to nothing, so add a shell command to avoid syntax error.
75677         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
75678
75679 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75680
75681         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
75682
75683 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75684
75685         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
75686         no longer needed.  Check for isblank decl.
75687         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
75688         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
75689         of existence.
75690
75691 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75692
75693         * lib/getloadavg.c: Use __VMS, not VMS.
75694         * lib/getopt.c: Likewise.
75695         * lib/getpagesize.h: Likewise.
75696         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
75697         and probably does not work.
75698
75699 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75700
75701         * lib/.cppi-disable: Add wcwidth.
75702         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
75703         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
75704         (ISGRAPH): Remove.  All uses changed to isgraph.
75705         (FOLD) [!defined _LIBC]: Remove special case.
75706         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
75707         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
75708         HAVE_ISBLANK.
75709         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
75710         case.
75711
75712 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
75713
75714         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
75715         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
75716         brackets.  Other minor changes to suppress some compiler
75717         warnings.
75718
75719 2006-07-06  Derek R. Price  <derek@ximbiot.com>
75720         and Paul Eggert  <eggert@cs.ucla.edu>
75721
75722         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
75723         of invoking obsolescent AC_HEADER_DIRENT macro.
75724         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
75725         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
75726         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
75727         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
75728         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
75729         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75730         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
75731         * m4/readdir.m4: Remove; no longer needed.
75732
75733 2006-07-06  Derek R. Price  <derek@ximbiot.com>
75734         and Paul Eggert  <eggert@cs.ucla.edu>
75735
75736         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
75737         Don't worry about this obsolete case any more.
75738         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
75739         directories.
75740         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
75741         worry about this obsolete case any more.
75742         * lib/fts.c: Likewise.
75743         * lib/getcwd.c: Likewise.
75744         * lib/glob.h: Likewise.
75745         * lib/savedir.c: Likewise.
75746
75747 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75748
75749         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
75750         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
75751         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
75752         needed.
75753         All uses removed.
75754         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75755         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
75756         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
75757         needed.
75758         * m4/getdate.m4 (gl_GETDATE): Likewise.
75759         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
75760         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
75761         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
75762         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75763         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
75764         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75765         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
75766         needed.
75767
75768 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75769
75770         * lib/memcasecmp.c: Include <limits.h>.
75771         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
75772         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
75773         Don't assume isdigit succeeds only on '0' through '9'.
75774
75775 2006-07-05  Eric Blake  <ebb9@byu.net>
75776
75777         * modules/getaddrinfo (Depends-on): Add snprintf.
75778
75779 2006-07-05  Eric Blake  <ebb9@byu.net>
75780
75781         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
75782         to avoid 'header present but could not be compiled' on cygwin.
75783
75784 2006-07-05  Eric Blake  <ebb9@byu.net>
75785
75786         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
75787         missing from netdb.h.
75788         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
75789
75790 2006-07-05  Derek R. Price  <derek@ximbiot.com>
75791
75792         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
75793         no longer needed.
75794         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
75795         * m4/getdate.m4 (gl_GETDATE): Likewise.
75796         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
75797         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
75798         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
75799         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75800         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75801
75802 2006-07-05  Derek R. Price  <derek@ximbiot.com>
75803
75804         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
75805         All uses of is_space replaced by isspace.
75806         * lib/exit.h: Don't talk about STDC_HEADERS.
75807         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
75808         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
75809         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
75810         replaced by isprint etc.
75811         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
75812         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
75813         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
75814         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
75815         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
75816         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
75817
75818 2006-07-05  Bruno Haible  <bruno@clisp.org>
75819
75820         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
75821         the function exists, before testing against AIX.
75822         Reported by Martin Lambers <marlam@marlam.de>.
75823
75824 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
75825
75826         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
75827         From Mark D. Baushke.
75828
75829 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
75830
75831         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
75832         to the absolute name, not just one, to bypass Sun C 5.8's
75833         "warning: #include of /usr/include/... may be non-portable".
75834
75835 2006-07-04  Eric Blake  <ebb9@byu.net>
75836
75837         * modules/dirname-tests: New test module.
75838         * tests/test-dirname.c: New file, replacing dirname.c
75839         TEST_DIRNAME section that was recently deleted.
75840
75841 2006-07-04  Bruno Haible  <bruno@clisp.org>
75842
75843         Assume ANSI C header files and <ctype.h> functions.
75844         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
75845         (mbsnwidth): Use isprint, iscntrl instead.
75846
75847 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75848
75849         Merge from coreutils.
75850         * MODULES.html.sh: Add xstrtold.
75851         * modules/xstrtold: New file.
75852         * modules/cycle-check (Files): Add lib/same-inode.h.
75853         * modules/dirname (Files): Add m4/double-slash-root.m4.
75854         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
75855         * modules/mkdir-p (Files): Add lib/same-inode.h.
75856         * modules/same (Files): Add lib/same-inode.h.
75857
75858 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75859
75860         * m4/absolute-header.m4: Renamed from full-header-path.m4.
75861         This is to keep the terminology clean; POSIX talks about
75862         "absolute pathnames", not "full pathnames", but the GNU
75863         Coding Standards say to use "path" for something else;
75864         so use "absolute" to keep both sides happy.
75865         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
75866         Set gl_absolute_header, not gl_full_header_path.
75867         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
75868         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
75869         All uses changed.
75870
75871         Merge from coreutils.
75872
75873         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
75874
75875         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
75876         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
75877         want to require the building of c-strtod.o.
75878         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
75879         needs -lm directly.
75880         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
75881
75882         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
75883
75884         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
75885         --as-needed option if available.  Problem reported by Albert Chin in
75886         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
75887         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
75888         cc merely issues a bunch of annoying warnings for --as-needed
75889         (this problem was reported by Bob Proulx).  Also, try linking with
75890         -lm to detect a bug in binutils 2.16 (this problem was reported
75891         by Ralf Wildenhues).
75892
75893         2006-06-18  Jim Meyering  <jim@meyering.net>
75894
75895         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
75896         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
75897         macro.
75898         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
75899         also check for glibc-2.4's abort-inducing bug.
75900
75901         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
75902         Low-probability clean-up should be to use rmdir to get rid of
75903         the just-created directory, not unlink.
75904
75905         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
75906         configure fail, and request a bug report to inform us about it.
75907         Add a comment that, barring reports to the contrary, in 2007 we'll
75908         assume ftruncate is universally available.
75909
75910         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
75911
75912         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
75913
75914         2006-03-12  Jim Meyering  <jim@meyering.net>
75915
75916         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
75917         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
75918         * m4/same.m4 (gl_SAME): Likewise.
75919         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
75920
75921         2006-03-11  Eric Blake  <ebb9@byu.net>
75922
75923         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
75924         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
75925         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
75926         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
75927
75928 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75929
75930         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
75931         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
75932         reported by Mark D. Baushke, one in
75933         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
75934
75935         Merge from coreutils.
75936
75937         * lib/.cppi-disable: Add stdint_.h.
75938         * lib/.cvsignore: Add stdint.h.
75939
75940         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
75941
75942         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
75943         both double and long double versions.
75944         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
75945         * lib/xstrtold.c: New file.
75946         * lib/xstrtod.h (xstrtold): New decl.
75947
75948         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
75949
75950         * lib/filemode.c (setst): Remove.
75951         (strmode): Rewrite to avoid setst.  This makes the code shorter,
75952         (arguably) clearer, and the generated code is a bit smaller on my
75953         Debian GNU/Linux stable x86 host.
75954
75955         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
75956
75957         * lib/filemode.c: Include "filemode.h" first, to test the interface.
75958         Assume that filemode.h includes sys/types.h and sys/stat.h.
75959         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
75960         (ftypelet): Reorder to put common cases first, for efficiency.
75961         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
75962         to do 'M'.
75963         (strmode): Renamed from mode_string, and now stores 12 bytes instead
75964         of 10, for compatibility with FreeBSD.  All callers changed.
75965         (filemodestring): Now stores 12 bytes instead of 10, and sets file
75966         types that can't be deduced solely from st_mode.  First arg is now a
75967         const pointer.
75968         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
75969         (strmode): Renamed from mode_string.
75970         (filemodestring): New decl.
75971         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
75972         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
75973         needed.
75974         (S_ISPORT, S_ISWHT): New macros, if not already defined.
75975
75976         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
75977
75978         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
75979         fsusage.h now does that.  Include fsusage.h first, to test interface.
75980         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
75981         at most one method (the old code could have generated decls that
75982         didn't conform to C89, not that this was ever exercised).
75983         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
75984
75985         2006-03-19  Jim Meyering  <jim@meyering.net>
75986
75987         Work even in a chroot where d_ino values for entries in "/"
75988         don't match the stat.st_ino values for the same names.
75989         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
75990         number, iterate through all entries again, using lstat instead.
75991         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
75992         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
75993
75994         * lib/getcwd.c (__getcwd): Clarify a comment.
75995         Use memcpy in place of a call to strcpy.
75996
75997         2006-03-12  Jim Meyering  <jim@meyering.net>
75998
75999         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
76000         matches that of the current directory (which we're about to chdir ".."
76001         out of), then save the dev-ino of the parent, instead.
76002
76003         * lib/same-inode.h (SAME_INODE): New file/macro.
76004         * lib/chdir-safer.c (SAME_INODE): Remove definition.
76005         Include "same-inode.h", instead.
76006         * lib/same.c: Likewise.
76007         * lib/cycle-check.h: Include "same-inode.h".
76008         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
76009         * lib/cycle-check.c (SAME_INODE): Remove definition.
76010         * lib/root-dev-ino.h: Include "same-inode.h".
76011
76012         2006-03-11  Eric Blake  <ebb9@byu.net>
76013
76014         * lib/same.c (same_name): s/base_name/last_component/
76015         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
76016         * lib/filenamecat.c (file_name_concat): Likewise.
76017
76018         2006-03-11  Eric Blake  <ebb9@byu.net>,
76019                     Paul Eggert  <eggert@cs.ucla.edu>
76020
76021         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
76022         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
76023         drive prefix.
76024         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
76025         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
76026         (last_component): New method.
76027         * lib/dirname.c (dir_len): Determine when drive letters need a
76028         subsequent slash.  Preserve // when it is special.
76029         (dir_name): Don't append dot when drive letter is absolute.
76030         [TEST_DIRNAME]: Move into a full-blown gnulib test.
76031         * lib/basename.c (base_name): New semantics - malloc the result.
76032         Preserve // when it is special.  Preserve relative files that look
76033         like drive letters.
76034         (base_len): Preserve // when it is special.
76035         (last_component): New method, similar to old base_name semantics.
76036         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
76037         base_name.  Strip redundant slashes from ///.
76038
76039 2006-07-03  Jim Meyering  <jim@meyering.net>
76040
76041         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
76042         macro is used before the first cycle_check call.
76043
76044 2006-07-03  Eric Blake  <ebb9@byu.net>
76045
76046         * modules/dirname (Depends-on): Add xstrndup.
76047
76048 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76049
76050         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
76051         test cases, so that config.log is a bit easier to follow.
76052
76053 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76054
76055         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
76056         both are 64 bits, since this seems to be the tradition, and this
76057         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
76058         we ever run into a host that prefers long long to long in this
76059         case, we'll need another configure-time test.  Problem reported by
76060         Jim Meyering.
76061
76062 2006-07-02  Eric Blake  <ebb9@byu.net>
76063
76064         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
76065
76066 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76067
76068         * modules/inttypes (Depends-on): No longer depends on stdint.
76069         * modules/stdint (Description): Say more about assumptions.
76070         Say that the fast types might differ.  Say macros are used.
76071         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
76072         (Makefile.am): Revise list of substituted symbols to match
76073         new stdint.m4.
76074         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
76075         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
76076         * tests/test-stdint.c (verify_same_types)
76077         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
76078         the code conforms to C99/C89.
76079         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
76080         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
76081
76082 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76083
76084         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
76085         but fix a bug, by requiring at least 64 bits.
76086         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
76087         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
76088         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
76089         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76090
76091         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
76092         changes.  Make 2.59 a prerequisite.  Check and substitute for
76093         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
76094         inttypes.h.  Do not use special include files; just use the
76095         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
76096         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
76097         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
76098         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
76099         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
76100         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
76101         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
76102         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
76103         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
76104         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
76105         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
76106         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
76107         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
76108         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
76109         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
76110         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
76111         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
76112         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
76113         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
76114         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
76115         WINT_MAX.  Check for C99 conformance more strictly, by detecting
76116         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
76117         not check for things that C99 does not require, e.g., int8_t.  If
76118         a test isn't needed unless <stdint.h> isn't working, and is
76119         unlikely to be needed for any other reason, then don't do it
76120         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
76121         size_t, since we assume C89 freestanding at least.  Do not check
76122         for sig_atomic_t, wchar_t, or wint_t, since the code now does
76123         the right thing even if the types are not defined.  Instead use:
76124         (gl_STDINT_TYPE_PROPERTIES): New macro.
76125         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
76126         testing whether <sys/types.h> clashes, as Autoconf does this for
76127         us now.  All uses removed.
76128         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
76129         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
76130         (gl_CHECK_TYPE_SAME):
76131         Remove; no longer needed.
76132         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
76133         exists, since we'll return 0 anyway in that case.
76134         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
76135
76136 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76137
76138         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
76139         possible collision with system files.
76140         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
76141         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
76142         WCHAR_MIN and WCHAR_MAX in this case.
76143         (<stddef.h>): Do not include; no longer needed.
76144         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
76145         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
76146         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
76147         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
76148         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
76149         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
76150         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
76151         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
76152         !defined(__c99))]: Include in this case too, since it's harmless
76153         now.
76154         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
76155         dangerous to do so.
76156         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
76157         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
76158         (_STDINT_MIN, _STDINT_MAX): New macros.
76159         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
76160         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
76161         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
76162         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
76163         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
76164         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
76165         macros, not typedefs; this simplifies things quite a bit.
76166         Use long int for all types narrower than int64_t.
76167         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
76168         Define in terms of long long int or int64_t or long int,
76169         not int64_t or int32_t.  This saves some compile-time testing.
76170         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
76171         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
76172         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
76173         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
76174         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
76175         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
76176         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
76177         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
76178         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
76179         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
76180         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76181         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76182         undef any previous version and define our own version, for
76183         simplicity and consistency with the new macros for types.
76184         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76185         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76186         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
76187         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
76188         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
76189         @WINT_T_SUFFIX@ to keep things simple here.
76190         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
76191         Simplify by assuming typical 8/16/32/64 host, since we're
76192         already doing that elsewhere anyway.
76193         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
76194         and assume long long int is 64 bits if available.  This
76195         speeds up 'configure'.
76196
76197 2006-07-01  Eric Blake  <ebb9@byu.net>
76198
76199         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
76200         Reported by Andreas Buening.
76201
76202 2006-07-01  Eric Blake  <ebb9@byu.net>
76203
76204         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
76205
76206 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76207
76208         * lib/getaddrinfo.c: fixed typo
76209
76210 2006-06-29  Jim Meyering  <jim@meyering.net>
76211
76212         * modules/strftime (Maintainer): Add my name, since with the
76213         FPRINTFTIME changes strftime.c has forked from glibc.
76214
76215 2006-06-29  Eric Blake  <ebb9@byu.net>
76216
76217         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
76218
76219 2006-06-29  Eric Blake  <ebb9@byu.net>
76220
76221         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
76222
76223 2006-06-29  Eric Blake  <ebb9@byu.net>
76224
76225         * lib/stat_.h: New file.
76226
76227 2006-06-29  Eric Blake  <ebb9@byu.net>
76228
76229         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
76230         unused static function.
76231
76232 2006-06-29  Eric Blake  <ebb9@byu.net>
76233
76234         * doc/functions.texi (Function Portability): Document missing lstat
76235         on mingw.
76236
76237 2006-06-29  Eric Blake  <ebb9@byu.net>
76238
76239         * MODULES.html.sh: Add sys_stat.
76240         * modules/sys_stat: New module.
76241         * modules/mkstemp (Depends-on): Add sys_stat.
76242
76243 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76244
76245         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
76246
76247 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76248
76249         * m4/c-bs-a.m4: Removed.
76250
76251 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76252
76253         * lib/strftime.c: Assume strftime() exists.
76254
76255 2006-06-29  Derek Price  <derek@ximbiot.com>
76256
76257         * modules/c-bs-a: Removed - \a is C89.
76258         * MODULES.html.sh: Remove c-bs-a.
76259
76260 2006-06-29  Bruno Haible  <bruno@clisp.org>
76261
76262         * modules/wcwidth (License): Change to LGPL.
76263
76264 2006-06-28  Simon Josefsson  <jas@extundo.com>
76265
76266         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
76267         on _WIN32.
76268
76269         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
76270         getnameinfo.
76271
76272 2006-06-28  Simon Josefsson  <jas@extundo.com>
76273
76274         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
76275
76276 2006-06-28  Simon Josefsson  <jas@extundo.com>
76277
76278         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
76279         functions there.  It will succeed on Windows XP, but on Windows
76280         2000 and (presumably) earlier, it will fail, and use the internal
76281         re-implementation.
76282         (use_win32_p): New function.
76283         (getaddrinfo): Use strtoul on servname, to support numeric ports.
76284         Support AI_NUMERICSERV to disable getservbyname.
76285         (getnameinfo): New function, only supports
76286         NI_NUMERICHOST|NI_NUMERICSERV for now.
76287
76288         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
76289         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
76290         getnameinfo.
76291
76292 2006-06-28  Eric Blake  <ebb9@byu.net>
76293
76294         * modules/wcwidth: New file.
76295         * modules/mbchar (Depends-on): Add wcwidth.
76296         * modules/mbswidth (Depends-on): Add wcwidth.
76297         * MODULES.html.sh: Add wcwidth.
76298
76299 2006-06-28  Eric Blake  <ebb9@byu.net>
76300
76301         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
76302         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
76303
76304 2006-06-28  Eric Blake  <ebb9@byu.net>
76305
76306         * lib/xvasprintf.h: Fix comments.
76307
76308 2006-06-28  Eric Blake  <ebb9@byu.net>
76309
76310         * lib/mbchar.h (wcwidth): Include wcwidth.h.
76311         * lib/mbswidth.c (wcwidth): Move from here...
76312         * lib/wcwidth.h: ...to this new file.
76313
76314 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76315
76316         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
76317
76318         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
76319         it's obsolete.
76320         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
76321
76322 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76323
76324         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
76325         Autoconf 2.60 says this stuff was obsolete.
76326
76327 2006-06-28  Bruno Haible  <bruno@clisp.org>
76328
76329         * modules/wcwidth (Files): Add m4/wchar_t.m4.
76330
76331 2006-06-28  Bruno Haible  <bruno@clisp.org>
76332
76333         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
76334         gt_TYPE_WCHAR_T.
76335
76336 2006-06-28  Bruno Haible  <bruno@clisp.org>
76337
76338         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
76339         declaration for wcwidth.
76340         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
76341
76342 2006-06-28  Bruno Haible  <bruno@clisp.org>
76343
76344         * lib/mkdtemp.c [MINGW]: Include <io.h>.
76345         (mkdir): Define using _mkdir.
76346
76347 2006-06-28  Bruno Haible  <bruno@clisp.org>
76348
76349         * lib/getaddrinfo.h: Fix POSIX URL.
76350         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
76351         _WIN32.
76352         (use_win32_p): Make static.
76353         (getaddrinfo): Reject service name if it is empty or does not consist
76354         solely of decimal digits, or if its value is > 65535.
76355         (getnameinfo): Remove useless casts.
76356
76357 2006-06-27  Simon Josefsson  <jas@extundo.com>
76358
76359         * modules/sys_select: New file, suggested by Bruno Haible, Paul
76360         Eggert and Martin Lambers.
76361
76362 2006-06-27  Simon Josefsson  <jas@extundo.com>
76363
76364         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
76365         Eggert and Martin Lambers.
76366
76367 2006-06-27  Bruno Haible  <bruno@clisp.org>
76368
76369         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
76370         result to 0, not to empty.
76371         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
76372
76373 2006-06-27  Bruno Haible  <bruno@clisp.org>
76374
76375         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
76376
76377 2006-06-26  Simon Josefsson  <jas@extundo.com>
76378
76379         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
76380         present.
76381
76382 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
76383
76384         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
76385         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
76386         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
76387
76388 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
76389
76390         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
76391
76392 2006-06-26  Bruno Haible  <bruno@clisp.org>
76393
76394         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
76395
76396 2006-06-26  Bruno Haible  <bruno@clisp.org>
76397
76398         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
76399
76400 2006-06-26  Bruno Haible  <bruno@clisp.org>
76401
76402         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
76403         SGI C compiler in pre-C99 mode.
76404         Suggested by Mark D. Baushke and Larry Jones.
76405
76406 2006-06-26  Bruno Haible  <bruno@clisp.org>
76407
76408         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
76409         WCHAR_MAX.
76410         Reported by Mark D. Baushke and Larry Jones.
76411
76412 2006-06-26  Bruno Haible  <bruno@clisp.org>
76413
76414         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
76415         in pre-C99 mode.
76416         Suggested by Mark D. Baushke and Larry Jones.
76417
76418 2006-06-23  Simon Josefsson  <jas@extundo.com>
76419             Bruno Haible  <bruno@clisp.org>
76420
76421         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
76422         Emit mostlyclean-local rule.
76423         (func_emit_tests_Makefile_am): Likewise.
76424         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
76425
76426 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
76427
76428         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
76429
76430 2006-06-23  Bruno Haible  <bruno@clisp.org>
76431
76432         * tests/test-stdint.c: Update to match ISO C 99 Technical
76433         Corrigendum 1.
76434
76435 2006-06-23  Bruno Haible  <bruno@clisp.org>
76436
76437         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
76438
76439 2006-06-23  Bruno Haible  <bruno@clisp.org>
76440
76441         * lib/stdint_.h: Treat IRIX like OpenBSD.
76442
76443 2006-06-23  Bruno Haible  <bruno@clisp.org>
76444
76445         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
76446         ISO C 99 Technical Corrigendum 1.
76447
76448 2006-06-22  Simon Josefsson  <jas@extundo.com>
76449
76450         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
76451         MinGW.
76452
76453 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76454
76455         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
76456         needed.  Some compiler complained about some of them.  Problem reported
76457         by Larry Jones in
76458         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
76459
76460 2006-06-21  Simon Josefsson  <jas@extundo.com>
76461
76462         * tests/test-getaddrinfo.c: New file.
76463
76464         * modules/getaddrinfo-tests: New file.
76465
76466         * MODULES.html.sh: Add inet_pton.
76467
76468         * modules/inet_pton: New file.
76469
76470 2006-06-21  Simon Josefsson  <jas@extundo.com>
76471
76472         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
76473         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
76474         of using the (limited) gnulib implementation on Windows XP.
76475
76476         * m4/inet_pton.m4: New file.
76477
76478 2006-06-21  Simon Josefsson  <jas@extundo.com>
76479
76480         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
76481         variable.
76482
76483         * lib/socket_.h: Don't define WINVER.
76484
76485         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
76486         slightly modified to work in gnulib.
76487
76488 2006-06-21  Simon Josefsson  <jas@extundo.com>
76489
76490         * doc/gnulib.texi (Windows sockets): Add.
76491
76492 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
76493
76494         * lib/read-file.c (fread_file): Start with buffer allocation of
76495         0 bytes rather than 1 byte; this simplifies the code.
76496         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
76497         code to free buffer and save/restore errno.
76498         (internal_read_file): Remove unused local.
76499
76500 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
76501
76502         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
76503         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
76504         Problem reported by Denis Excoffier in
76505         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
76506
76507 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76508
76509         * modules/sys_socket, modules/socklen: Include sys/types since
76510         FreeBSD 4.x's sys/socket.h needs it.
76511
76512 2006-06-19  Simon Josefsson  <jas@extundo.com>
76513
76514         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
76515
76516 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76517
76518         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
76519
76520 2006-06-19  Bruno Haible  <bruno@clisp.org>
76521
76522         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
76523         and FULL_PATH_INTTYPES_H in angle brackets.
76524         Reported by Mark D. Baushke <mdb@gnu.org>.
76525
76526 2006-06-17  Eric Blake  <ebb9@byu.net>
76527
76528         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
76529         errno.
76530
76531 2006-06-17  Bruno Haible  <bruno@clisp.org>
76532
76533         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
76534         <sys/inttypes.h>.
76535
76536 2006-06-17  Bruno Haible  <bruno@clisp.org>
76537
76538         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
76539         whether errno is declared. Assume <errno.h> declares errno.
76540
76541 2006-06-17  Bruno Haible  <bruno@clisp.org>
76542
76543         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
76544
76545 2006-06-17  Bruno Haible  <bruno@clisp.org>
76546
76547         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
76548         problem on Solaris 2.5.1.
76549
76550 2006-06-16  Eric Blake  <ebb9@byu.net>
76551
76552         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
76553         * lib/unicodeio.c [!defined errno]: Likewise.
76554         * lib/strtol.c [!defined errno]: Likewise.
76555         * lib/strtod.c [!defined errno]: Likewise.
76556
76557 2006-06-15  Eric Blake  <ebb9@byu.net>
76558
76559         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
76560
76561 2006-06-15  Eric Blake  <ebb9@byu.net>
76562
76563         * config/srclist.txt (ssize_t.m4): Lose sync.
76564
76565 2006-06-15  Bruno Haible  <bruno@clisp.org>
76566
76567         * modules/stdint (Files): Include m4/full-header-path.m4,
76568         m4/size_max.m4, m4/wchar_t.m4.
76569         (Makefile.am): Many more substitutions.
76570         * modules/stdint-tests: New file.
76571         * tests/test-stdint.c: New file.
76572
76573 2006-06-15  Bruno Haible  <bruno@clisp.org>
76574
76575         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
76576         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
76577         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
76578         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
76579         gl_CHECK_TYPE_SAME): New macros.
76580
76581 2006-06-15  Bruno Haible  <bruno@clisp.org>
76582
76583         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
76584
76585 2006-06-15  Bruno Haible  <bruno@clisp.org>
76586
76587         * lib/stdint_.h: Rewritten to be fully auto-configured.
76588         Fixes bug on HP-UX/IA64.
76589
76590 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
76591
76592         * lib/getdate.y (__attribute__): Don't define if already defined.
76593         Problem reported by Larry Jones.
76594         * lib/utimens.c (__attribute__): Likewise.
76595
76596 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
76597
76598         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
76599         reported by Andreas Schwab.
76600
76601 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76602             Bruno Haible  <bruno@clisp.org>
76603
76604         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
76605         check for the declaration of strnlen and a run test that exposes the
76606         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
76607         rpl_strndup.
76608
76609 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76610             Bruno Haible  <bruno@clisp.org>
76611
76612         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
76613
76614 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76615
76616         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
76617         compile test, for Tru64 4.0D.
76618
76619 2006-05-28  Karl Berry  <karl@gnu.org>
76620
76621         * config/srclist.txt (printf-args.c): lose sync.
76622
76623 2006-05-26  Martin Lambers  <marlam@marlam.de>
76624
76625         * lib/getpass.c: Updates the test for the native W32 API, and adds
76626         missing includes, thus fixing compilation warnings.
76627
76628 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
76629
76630         * lib/exclude.c (exclude_fnmatch): New function.
76631         (excluded_file_name): Call exclude_fnmatch.
76632         * lib/exclude.h (excluded_file_name): New prototype
76633
76634 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
76635
76636         * lib/tempname.c (small_open, large_open): New macros.
76637         (__open, __open64) [!_LIBC]: Remove.
76638         (__gen_tempname): Use small_open and large_open instead of __open
76639         and __open64.  This fixes a portability bug on HP-UX 11.11i
76640         reported by Simon Wing-Tang in
76641         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
76642
76643 2006-05-24  Bruno Haible  <bruno@clisp.org>
76644
76645         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
76646         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
76647         Reported by Thorsten Maerz <torte@netztorte.de> via
76648         Aaron Stone <aaron@serendipity.cx>.
76649
76650 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76651
76652         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
76653         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
76654         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
76655         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
76656         not really conditional on the cache.
76657         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
76658
76659 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76660
76661         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
76662         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
76663         (my_usleep): Don't mishandle maximum value.
76664
76665 2006-05-19  Jim Meyering  <jim@meyering.net>
76666
76667         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
76668
76669 2006-05-17  Bruno Haible  <bruno@clisp.org>
76670
76671         Cygwin portability.
76672         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
76673
76674 2006-05-17  Bruno Haible  <bruno@clisp.org>
76675
76676         * lib/stdint_.h: Fix recognition of Cygwin.
76677
76678 2006-05-15  Bruno Haible  <bruno@clisp.org>
76679
76680         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
76681         on libtool patch by Ralf Wildenhues.
76682
76683 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76684
76685         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
76686         test for C99 conformance; (bool) 0.5 is an integer constant
76687         expression, but (bool) -0.5 is not.  Problem reported by Fedor
76688         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
76689
76690 2006-05-11  Simon Josefsson  <jas@extundo.com>
76691
76692         * m4/xvasprintf.m4: Fix obvious typo.
76693
76694 2006-05-11  Jim Meyering  <jim@meyering.net>
76695
76696         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
76697         James Lemley.
76698
76699 2006-05-10  Simon Josefsson  <jas@extundo.com>
76700
76701         * lib/md4.c: Typo fix, update copyright years.
76702         (K1, K2): Don't use L because it turn computations into 64-bit on
76703         64-bit platforms.
76704
76705 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
76706
76707         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
76708         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
76709         unwanted sign propagation, e.g., on hosts with 64-bit int.
76710         There still are some problems with reeelly weird theoretical hosts
76711         (e.g., 33-bit int) but it's not worth worrying about now.
76712         * lib/sha1.c (rol): Likewise.
76713         (K1, K2, K3, K4): Remove unnecessary L suffix.
76714
76715 2006-05-10  Bruno Haible  <bruno@clisp.org>
76716
76717         * lib/des.c: Cast to avoid warnings.
76718
76719 2006-05-09  Bruno Haible  <bruno@clisp.org>
76720
76721         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
76722         (Depends-on): Depend also on xsize, stdarg.
76723         (configure.ac): Add gl_XVASPRINTF.
76724
76725 2006-05-09  Bruno Haible  <bruno@clisp.org>
76726
76727         * m4/xvasprintf.m4: New file.
76728
76729 2006-05-09  Bruno Haible  <bruno@clisp.org>
76730
76731         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
76732         (EOVERFLOW): Define fallback value.
76733         (xstrcat): New function.
76734         (xvasprintf): Recognize the special case of a string concatenation.
76735
76736 2006-05-08  Eric Blake  <ebb9@byu.net>
76737
76738         * gnulib-tool (func_version): Base copyright year on CVS date.
76739         (func_emit_copyright_notice): New function.
76740         (func_emit_lib_Makefile_am): Use it.
76741         (func_emit_tests_Makefile_am): Likewise.
76742         (func_import): Likewise.
76743
76744 2006-05-08  Bruno Haible  <bruno@clisp.org>
76745
76746         * modules/stdarg: New file.
76747         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
76748
76749 2006-05-08  Bruno Haible  <bruno@clisp.org>
76750
76751         * m4/stdarg.m4: New file, from GNU gettext.
76752
76753 2006-05-08  Bruno Haible  <bruno@clisp.org>
76754
76755         * config/srclist.txt (build-aux/config.rpath): different from latest
76756         release.
76757
76758 2006-05-08  Bruno Haible  <bruno@clisp.org>
76759
76760         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
76761
76762 2006-05-05  Jim Meyering  <jim@meyering.net>
76763
76764         * m4/warning.m4: New file, derived from bison's file by the same name.
76765
76766 2006-05-03  Bruno Haible  <bruno@clisp.org>
76767
76768         * lib/stdint_.h: Shorter URL.
76769         * lib/inttypes.h: Likewise.
76770
76771 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76772
76773         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
76774
76775 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76776
76777         * lib/verify.h: Document the internals better.  Most of this change
76778         was written by Bruno Haible.
76779
76780 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76781
76782         * doc/verify.texi: New file, partly based on a proposal by
76783         Bruno Haible.
76784
76785 2006-05-02  Bruno Haible  <bruno@clisp.org>
76786
76787         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
76788         test from here...
76789         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
76790
76791 2006-04-29  Bruno Haible  <bruno@clisp.org>
76792
76793         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
76794         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
76795
76796 2006-04-29  Bruno Haible  <bruno@clisp.org>
76797
76798         * gnulib-tool: Make --update option actually work.
76799
76800 2006-04-29  Bruno Haible  <bruno@clisp.org>
76801
76802         * doc/gcd.texi: New file.
76803         * doc/gnulib.texi: Include it.
76804
76805 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
76806
76807         * lib/getdate.y (get_date): When adding relative date, start with the
76808         initial time, not with the result of the first mktime call.
76809
76810 2006-04-25  Bruno Haible  <bruno@clisp.org>
76811
76812         * gnulib-tool (func_import): Output the include directives in three
76813         blocks, sorted separately.
76814         Reported by Ben Pfaff <blp@cs.stanford.edu>.
76815
76816 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
76817
76818         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
76819         to define main with arguments, for C++.  Reported by Eric Blake.
76820         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
76821         Prefer 'int main ()' to 'int main (void)', for C++.
76822         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
76823         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
76824         for 'main', for C99 and C++.
76825
76826 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
76827
76828         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
76829         Don't assume that exit status -1 is valid.
76830         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
76831         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
76832         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
76833         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
76834         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
76835         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
76836         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
76837         functions can be used without declaring them, or that you can
76838         exit with status -1.
76839         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
76840
76841 2006-04-24  Karl Berry  <karl@gnu.org>
76842
76843         * config/srclist.txt (longdouble.m4): sync lost.
76844
76845 2006-04-24  Eric Blake  <ebb9@byu.net>
76846
76847         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
76848
76849 2006-04-24  Bruno Haible  <bruno@clisp.org>
76850
76851         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
76852         poll() implementation in AIX.
76853         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76854
76855 2006-04-24  Bruno Haible  <bruno@clisp.org>
76856
76857         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
76858         assigned exactly once.
76859
76860 2006-04-23  Claudio Fontana  <claudio@gnu.org>
76861             Bruno Haible  <bruno@clisp.org>
76862
76863         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
76864         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
76865         for AM_CPPFLAGS.
76866
76867 2006-04-23  Bruno Haible  <bruno@clisp.org>
76868
76869         * modules/copy-file: Depend on unistd.
76870         * modules/execute: Likewise.
76871         * modules/fatal-signal: Likewise.
76872         * modules/findprog: Likewise.
76873         * modules/mkdtemp : Likewise.
76874         * modules/pipe: Likewise.
76875         * modules/wait-process: Likewise.
76876
76877 2006-04-23  Bruno Haible  <bruno@clisp.org>
76878
76879         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
76880         condition was already detected.
76881         Reported by Ben Pfaff <blp@cs.stanford.edu>.
76882
76883 2006-04-23  Bruno Haible  <bruno@clisp.org>
76884
76885         * lib/copy-file.c: Include <unistd.h> unconditionally.
76886         * lib/execute.c: Likewise.
76887         * lib/fatal-signal.c: Likewise.
76888         * lib/findprog.c: Likewise.
76889         * lib/mkdtemp.c: Likewise.
76890         * lib/pipe.h: Likewise.
76891         * lib/pipe.c: Likewise.
76892         * lib/wait-process.h: Likewise.
76893
76894 2006-04-23  Bruno Haible  <bruno@clisp.org>
76895
76896         * gnulib-tool (func_usage): Fix --import description. Document
76897         --update.
76898         (func_import): Create temporary file in a temporary directory, if
76899         --dry-run is specified. Silence errors from 'grep' when there are no
76900         m4 files in $m4dir.
76901         (func_create_testdir): Silence errors from 'grep' when there are no
76902         m4 files in $m4dir.
76903         Reported by Karl Berry <karl@freefriends.org>.
76904
76905 2006-04-20  Bruno Haible  <bruno@clisp.org>
76906
76907         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
76908         one argument, so that the code will be portable to Autoconf 2.60.
76909         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
76910         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76911         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
76912
76913 2006-04-19  Derek Price  <derek@ximbiot.com>
76914             Eric Blake  <ebb9@byu.net>
76915
76916         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
76917         rather than "/full/path.h".  Update comment to match.  Shorten &
76918         generalize m4_translit call via AS_TR_CPP.
76919
76920 2006-04-19  Derek Price  <derek@ximbiot.com>
76921             Eric Blake  <ebb9@byu.net>
76922
76923         * lib/inttypes.h: Correct grammar in comment.
76924
76925 2006-04-18  Derek Price  <derek@ximbiot.com>
76926             Paul Eggert  <eggert@cs.ucla.edu>
76927
76928         * modules/inttypes: New file.
76929         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
76930
76931 2006-04-18  Derek Price  <derek@ximbiot.com>
76932             Paul Eggert  <eggert@cs.ucla.edu>
76933
76934         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
76935         New files.
76936
76937 2006-04-18  Derek Price  <derek@ximbiot.com>
76938             Paul Eggert  <eggert@cs.ucla.edu>
76939
76940         * lib/inttypes.h: New file.
76941         * lib/strtoimax.c: Assume <inttypes.h>.
76942
76943 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
76944
76945         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
76946         isn't mounted.  Problem reported by Kir Kolyshkin.
76947
76948 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
76949
76950         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
76951         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
76952         Derek R. Price.
76953         * lib/regex.h (RE_DUP_MAX): Update comment to match current
76954         implementation.
76955
76956 2006-04-12  Eric Blake  <ebb9@byu.net>
76957
76958         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
76959         is now done automatically by the corresponding Autoconf macro.
76960
76961 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
76962
76963         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
76964         time_r.h.
76965
76966 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
76967
76968         Merge regex changes from libc, removing some of our
76969         POSIX-conformance changes that were rejected and redoing them in a
76970         less-intrusive way.
76971
76972         * lib/regcomp.c (re_compile_internal, init_dfa):
76973         Length arg is now size_t, not Idx.  All uses changed.
76974         (peek_token): Forward decl now says internal_function.
76975         (__re_error_msgid, __re_error_msgid_idx):
76976         Now static rather than extern with attribute_hidden.
76977         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
76978         For some reason libc prefers K&R style defns for external functions.
76979         (regerror) [!defined _LIBC]: Likewise.
76980         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
76981         (seek_collating_symbol_entry, lookup_collation_sequence_value):
76982         (build_range_exp, build_collating_symbol):
76983         Use K&R-style defn.
76984         (re_compile_fastmap): Use '\0' to memset, not 0.
76985         (utf8_sb_map): Make the calculations more obvious.
76986         (init_dfa, parse_bracket_exp, build_charclass_op):
76987         Call calloc and cast result, as glibc does.
76988         (init_word_char, fetch_token, peek_token, peek_token_bracket):
76989         (build_range_exp, build_collating_symbol):
76990         Now internal functions.
76991
76992         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
76993
76994         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
76995         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
76996         Don't depend on VMS; depend on __VMS instead, for POSIX
76997         namespace cleanness.
76998         (regoff_t): Define to ssize_t, not long int.
76999
77000         Remove the REG_ macros named below.  Instead, make the old names
77001         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
77002         __USE_GNU_REGEX.
77003         (REG_BACKSLASH_ESCAPE_IN_LISTS):
77004         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
77005         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
77006         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
77007         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
77008         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
77009         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
77010         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
77011         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
77012         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
77013         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
77014         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
77015         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
77016         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
77017         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
77018         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
77019         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
77020         (REG_NREGS):
77021         Remove.  All uses replaced by the old RE_* names.
77022         (RE_BACKSLASH_ESCAPE_IN_LISTS):
77023         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
77024         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
77025         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
77026         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
77027         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
77028         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
77029         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
77030         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
77031         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
77032         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
77033         Don't bother having these macros be independent of each others'
77034         values, since they no longer exist in the POSIX name space.
77035
77036         Rename the following member names back to their old names,
77037         unless !__USE_GNU_REGEX.  All uses changed back.
77038         (buffer): Renamed from re_buffer.
77039         (allocated): Renamed from re_allocated.
77040         (used): Renamed from re_used.
77041         (syntax): Renamed from re_syntax.
77042         (fastmap): Renamed from re_fastmap.
77043         (translate): Renamed from re_translate.
77044         (can_be_null): Renamed from re_can_be_null.
77045         (regs_allocated): Renamed from re_regs_allocated.
77046         (fastmap_accurate): Renamed from re_fastmap_accurate.
77047         (no_sub): Renamed from re_no_sub.
77048         (not_bol): Renamed from re_not_bol.
77049         (not_eol): Renamed from re_not_eol.
77050         (newline_anchor): Renamed from re_newline_anchor.
77051         (num_regs): Renamed from rm_num_regs.
77052         (start): Renamed from rm_start.
77053         (end): Renamed from rm_end.
77054
77055         (free_state): Move up a bit.
77056
77057         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
77058         #define to be empty.
77059         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
77060         when that is what is intended.
77061         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
77062         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
77063         (MAX): New macro.
77064         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
77065         All uses changed back to re_malloc, etc.  It's now the caller's
77066         responsibility to check for overflow; all callers changed.
77067         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
77068         (re_x2nrealloc): Remove.
77069         (free_state): Remove decl.
77070
77071         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
77072         (re_set_registers, re_exec):
77073         Use K&R-style defn.
77074
77075         2006-01-31  Roland McGrath  <roland@redhat.com>
77076
77077         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
77078         Reported by Mike Frysinger <vapier@gentoo.org>.
77079
77080         2006-01-15  Andreas Jaeger  <aj@suse.de>
77081
77082         [BZ #1950]
77083         * lib/regex_internal.c (re_string_reconstruct): Adjust for
77084         build_wcs_upper_buffer change.
77085         (build_wcs_upper_buffer): Change return type.
77086
77087         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
77088
77089         * lib/regex_internal.h: Include <stdint.h> if available.
77090
77091         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
77092
77093         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
77094
77095         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
77096
77097         * lib/regcomp.c: Adjust for changed secondary hash function.
77098
77099         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
77100
77101         * lib/regex.h: Pretty printing.
77102         Clean up namespace a bit.
77103
77104         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
77105
77106         * lib/regexec.c (update_cur_sifted_state, check_arrival,
77107         check_arrival_add_next_nodes): Avoid using uninitialized variable.
77108
77109         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77110                     Ulrich Drepper  <drepper@redhat.com>
77111
77112         [BZ #1302]
77113         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
77114         changed.
77115         (bitset_word_t): Renamed from bitset_word.  All uses changed.
77116
77117         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
77118
77119         [BZ #281]
77120         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
77121         * lib/regcomp.c: Remove unnecessary uses of
77122         unsigned RE_TRANSLATE_TYPE.
77123         * lib/regex_internal.h: Likewise.
77124         * lib/regex_internal.c: Likewise.
77125         * lib/regexec.c: Likewise.
77126         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
77127
77128         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
77129
77130         * lib/regexec.c (find_recover_state): Remove unnecessary
77131         initialization.
77132         (transit_state_bkref): Make DFA a const pointer.
77133         (get_subexp): Likewise.
77134         (check_arrival): Likewise.
77135         (update_cur_sifted_state): Likewise.
77136         (re_search_internal): Likewise.
77137         (prune_impossible_nodes): Likewise.
77138         (acquire_init_state_context): Likewise.
77139         (proceed_next_node): Likewise.
77140         (set_regs): Likewise.
77141         (free_fail_stack_return): Likewise.
77142         (check_arrival_expand_ecl): Mark DFA parameter as const.
77143         (check_arrival_expand_ecl_sub): Likewise.
77144         (check_subexp_limits): Likewise.
77145         (sub_epsilon_src_nodes):  Likewise.
77146         (add_epsilon_src_nodes):  Likewise.
77147         (merge_state_array): Likewise.
77148         (update_regs): Likewise.
77149         (build_trtable): Likewise.
77150         (sift_states_backward): Mark MCTX parameter as const.
77151         (build_sifted_states): Likewise.
77152         (update_cur_sifted_state): Likewise.
77153         (sift_states_mkref): Likewise.
77154         (check_arrival_expand_ecl): Mark eclosure as const.
77155         (check_dst_limits_calc_pos_1): Likewise.
77156         * lib/regex_internal.h (re_match_context_t): Make dfa a const
77157         pointer.
77158
77159         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
77160
77161         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
77162         (transit_state_sb): Likewise.
77163         (transit_state_mb): Likewise.
77164         (sift_states_iter_mb): Likewise.
77165         (check_arrival_add_next_nodes): Likewise.
77166         (check_node_accept_bytes): Change first parameter to pointer-to-const.
77167         [_LIBC] (re_search_2_stub): Use mempcpy.
77168
77169         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
77170         mbrtowc for very simple UTF-8 case.
77171
77172         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
77173         a pointer-to-const.
77174         (re_acquire_state_context): Likewise.
77175         * lib/regex_internal.h: Adjust prototypes.
77176
77177         * lib/regex.c: Prevent using C++ compilers.
77178
77179         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
77180         (re_acquire_state_context): Likewise.
77181
77182 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77183
77184         * modules/regex (Depends-on): Add ssize_t.
77185
77186 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77187
77188         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
77189         translation table.
77190
77191 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77192
77193         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
77194
77195 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
77196             Bruno Haible  <bruno@clisp.org>
77197
77198         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
77199         <sys/types.h> and <inttypes.h>.
77200
77201 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77202
77203         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
77204         `__error_t_defined', so argp.h will not typedef the former.
77205
77206 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
77207
77208         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
77209         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
77210         glibc names.  Even if glibc is changed to conform to POSIX, the
77211         traditional names will be available anyway, since regex depends on
77212         the extensions module.  Also, fix a longstanding typo in the
77213         implementation of Spencer ERE test #75 from grep 2.3.  Problems
77214         reported by Emanuele Giaquinta.  Also, change sense of cached
77215         variable, so that the message makes sense.
77216
77217 2006-03-24  Simon Josefsson  <jas@extundo.com>
77218
77219         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
77220         including some doc fixes.
77221         (base64_encode_alloc): Fix +1 bug on allocation failures.
77222
77223 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77224
77225         * lib/base64.c (base64_encode): Do not read past end of array with
77226         unsanitized input on systems with CHAR_BIT > 8.
77227
77228 2006-03-24  Eric Blake  <ebb9@byu.net>
77229
77230         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
77231
77232 2006-03-22  Karl Berry  <karl@gnu.org>
77233
77234         * config/srclist.txt (*setenv.[ch]): get from coreutils.
77235         * config/srclistvars.sh (COREUTILS): new var.
77236
77237 2006-03-17  Jim Meyering  <jim@meyering.net>
77238
77239         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
77240         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
77241
77242 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77243
77244         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
77245         no longer needs it.  Instead, check that regoff_t is as least
77246         as wide as ptrdiff_t.
77247
77248         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
77249         so that our regex.h stays compatible with the installed regex.
77250         This is helpful for installers who configure --without-included-regex.
77251         Problem reported by Emanuele Giaquinta.
77252
77253 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77254
77255         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
77256         Typedef to long int, not to off_, as POSIX will likely change
77257         in that direction.
77258
77259 2006-03-15  Eric Blake  <ebb9@byu.net>
77260
77261         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
77262
77263 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77264
77265         * lib/argp-help.c (validate_uparams): Fix typo
77266         * lib/argp-parse.c (argp_default_options): Consistently begin help
77267         messages with a lowercase letter.
77268
77269 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
77270
77271         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
77272         overrun buffers and shouldn't be used (much as gets shouldn't be
77273         used).
77274         * lib/time_r.c (asctime_r, ctime_r): Likewise.
77275
77276 2006-03-08  Simon Josefsson  <jas@extundo.com>
77277
77278         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
77279         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77280
77281 2006-03-08  Simon Josefsson  <jas@extundo.com>
77282
77283         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
77284         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77285
77286 2006-03-08  Simon Josefsson  <jas@extundo.com>
77287
77288         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
77289         signal that configure disabled the device.
77290
77291 2006-03-08  Simon Josefsson  <jas@extundo.com>
77292
77293         * build-aux/maint.mk: Fix refresh-po, to handle no translated
77294         languages.
77295
77296 2006-03-07  Simon Josefsson  <jas@extundo.com>
77297
77298         * modules/getopt (Depends-on): Add unistd.
77299
77300         * modules/unistd: New file.
77301
77302 2006-03-07  Simon Josefsson  <jas@extundo.com>
77303
77304         * modules/gc-random: New file.
77305
77306 2006-03-07  Simon Josefsson  <jas@extundo.com>
77307
77308         * m4/unistd_h.m4: New file.
77309
77310 2006-03-07  Simon Josefsson  <jas@extundo.com>
77311
77312         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
77313         test to be side-effect free by storing the result in the cache
77314         variable gl_cv_lib_readline, and moving the assignment of
77315         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
77316         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77317
77318 2006-03-07  Simon Josefsson  <jas@extundo.com>
77319
77320         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
77321         error on missing devices (the functions will return an error).
77322
77323         * m4/gc.m4: Move random stuff to gc-random.m4
77324
77325 2006-03-07  Simon Josefsson  <jas@extundo.com>
77326
77327         * lib/unistd_.h: New file.
77328
77329 2006-03-07  Simon Josefsson  <jas@extundo.com>
77330
77331         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
77332
77333 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77334
77335         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
77336         Problem reported by Juan Manuel Guerrero.
77337
77338 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77339
77340         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
77341         the unistd module.
77342         * lib/getlogin_r.c: Likewise.
77343         * lib/getlogin_r.h: Likewise.
77344         * lib/glob.c: Likewise.
77345         * lib/pagealign_alloc.c: Likewise.
77346         * lib/unistd_.h: Remove; no longer needed.
77347
77348 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77349
77350         * MODULES.html.sh (Support for systems lacking POSIX:2001):
77351         Add unistd.
77352         * modules/c-stack (Depends-on): Add unistd.
77353         * modules/getlogin_r: Likewise.
77354         * modules/glob: Likewise.
77355         * modules/pagealign_alloc: Likewise.
77356         * modules/unistd (Files): Remove lib/unistd_.h.
77357         (EXTRA_DIST): Remove.
77358         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
77359         need unistd_.h.
77360         (MOSTLYCLEANFILES): Remove unistd.h-t.
77361
77362 2006-03-03  Simon Josefsson  <jas@extundo.com>
77363
77364         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
77365
77366 2006-03-03  Simon Josefsson  <jas@extundo.com>
77367
77368         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
77369         libidn and bison.
77370
77371 2006-03-03  Simon Josefsson  <jas@extundo.com>
77372
77373         * build-aux/maint.mk: Add indent target.
77374
77375 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
77376
77377         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
77378         our replacement poll.h in any case, to avoid a differing
77379         declaration from a system header.  Seen on AIX.
77380
77381 2006-03-01  Simon Josefsson  <jas@extundo.com>
77382
77383         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
77384         <kasal@ucw.cz>.
77385
77386 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77387
77388         * modules/gettime (Depends-on): Add extensions module.
77389         * modules/nanosleep (Depends-on): Likewise.
77390         * modules/settime (Depends-on): Likewise.
77391
77392 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77393
77394         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
77395         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
77396         pedantically.
77397         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77398         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
77399
77400         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
77401         not "==".  Reported by Ralf Wildenhues.
77402
77403 2006-03-01  Karl Berry  <karl@gnu.org>
77404
77405         * doc/Copyright/request-*: new files, synced from gnuorg.
77406
77407 2006-03-01  Karl Berry  <karl@gnu.org>
77408
77409         * config/srclist.txt (Copyright/*): new entries.
77410
77411 2006-02-28  Simon Josefsson  <jas@extundo.com>
77412
77413         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
77414
77415 2006-02-27  Simon Josefsson  <jas@extundo.com>
77416
77417         * lib/base64.h: Indent #define's.  From Jim Meyering
77418         <jim@meyering.net>.
77419
77420 2006-02-27  Jim Meyering  <jim@meyering.net>
77421
77422         Revert the change of 2006-02-24, so these files can continue
77423         to be sync'd from gettext.
77424         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
77425         of `config.h'.
77426
77427 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77428
77429         * modules/intprops: New file.
77430         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77431         Add intprops.
77432         * modules/getloadavg (Files): Remove lib/intprops.h.
77433         (Depends-on): Add intprops.
77434         * modules/human: Likewise.
77435         * modules/inttostr: Likewise.
77436         * modules/openat: Likewise.
77437         * modules/sig2str: Likewise.
77438         * modules/userspec: Likewise.
77439         * modules/utimecmp: Likewise.
77440         * modules/xnanosleep: Likewise.
77441         * modules/xstrtol: Likewise.
77442
77443 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
77444
77445         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
77446         * modules/lock-tests (TESTS): Use $(EXEEXT).
77447         * modules/tls-tests: Likewise.
77448         * modules/argp-tests: Likewise.
77449         (check_PROGRAMS): New var, replacing...
77450         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
77451
77452 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77453
77454         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
77455         `config.h'.
77456
77457 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
77458
77459         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
77460
77461 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77462
77463         Sync from coreutils.
77464         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
77465         gl_CHDIR_SAFER.
77466
77467 2006-02-22  Jim Meyering  <jim@meyering.net>
77468
77469         Sync from coreutils.
77470         * m4/chdir-safer.m4: New file.
77471
77472 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
77473
77474         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
77475         AT_FDCWD exceeds INT_MAX.
77476         * lib/openat.h (AT_FDCWD): Likewise.
77477
77478 2006-02-17  Eric Blake  <address@hidden>
77479
77480         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
77481
77482 2006-02-16  Simon Josefsson  <jas@extundo.com>
77483
77484         * modules/getaddrinfo (Depends-on): Add sys_socket.
77485
77486 2006-02-15  Simon Josefsson  <jas@extundo.com>
77487
77488         * build-aux/maint.mk: Add dsyntax-check rule.
77489
77490 2006-02-15  Eric Blake  <ebb9@byu.net>
77491
77492         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
77493         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
77494         'present but cannot compile' warnings on cygwin.
77495         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
77496         use ws2tcpip.h if sys/socket.h works.
77497         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
77498         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
77499
77500 2006-02-14  Simon Josefsson  <jas@extundo.com>
77501
77502         * modules/maintainer-makefile (Files): Rename.
77503
77504         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
77505         and (the local) Makefile.cfg to maint-cfg.mk.
77506
77507         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
77508         to the latter.
77509
77510         * modules/maintainer-makefile: New module.
77511
77512         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
77513         severaly stripped to make it possible to build it up from scratch
77514         with reliable tests.
77515
77516         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
77517         fixes to permit overriding the default actions when configure and
77518         makefile are not available.
77519
77520 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
77521
77522         Sync from coreutils.
77523         * modules/lstat (Depends-on): Don't depend on xalloc.
77524         (License): Change from GPL to LGPL, since this is now simply a
77525         replacement for a libc function.
77526
77527 2006-02-14  Jim Meyering  <jim@meyering.net>
77528
77529         Sync from coreutils.
77530
77531         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
77532         failure on deficient systems, and simplify gnulib lgpl dependencies.
77533         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
77534         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
77535
77536         * lib/xalloc-die.c: Remove unused definition of N_.
77537
77538 2006-02-14  Jim Meyering  <jim@meyering.net>
77539
77540         Sync from coreutils.
77541         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
77542         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
77543         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
77544         double-quote uses of that variable, to accommodate the rare case in
77545         which getmntent is available in none of the libraries checked.  This
77546         happens at least on FreeBSD 5.0.
77547
77548 2006-02-13  Simon Josefsson  <jas@extundo.com>
77549
77550         * gnulib-tool (Usage): Fix --import, from
77551         karl@freefriends.org (Karl Berry).
77552
77553 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77554
77555         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
77556
77557 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
77558
77559         * lib/argp-namefrob.h: Restore changes accidentally lost during the
77560         "autoupdate" on 2005-12-12.
77561
77562 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77563
77564         * modules/closeout (Depends-on): Remove atexit.
77565
77566 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77567
77568         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
77569         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
77570
77571 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
77572
77573         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
77574         __EXTENSIONS__ if this causes compilation to fail.  Problem
77575         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
77576         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
77577
77578 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
77579
77580         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
77581         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
77582         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
77583         All uses changed.
77584
77585 2006-01-26  Simon Josefsson  <jas@extundo.com>
77586
77587         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
77588         prototype is visible on mingw32.
77589
77590         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
77591         for mingw32.
77592
77593         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
77594         mingw32).
77595
77596 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
77597
77598         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
77599         attempt to open for write; this always fails, at least on POSIX
77600         hosts.  This reinstates the 2006-01-09 change, which was
77601         inadvertently removed.
77602
77603 2006-01-26  Bruno Haible  <bruno@clisp.org>
77604
77605         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
77606         Reported by Paul Eggert.
77607
77608 2006-01-26  Bruno Haible  <bruno@clisp.org>
77609             Paul Eggert  <eggert@cs.ucla.edu>
77610
77611         * lib/stdbool_.h (_Bool)
77612         [(! (defined __cplusplus || defined __BEOS__)
77613           && !defined __GNUC__
77614           && !(defined __HP_cc || defined __xlc__
77615                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
77616                || defined __sgi))]:
77617         #define to signed char in these cases too; this simplifies
77618         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
77619         etc., separately) and makes it more conservative.
77620
77621 2006-01-25  Simon Josefsson  <jas@extundo.com>
77622
77623         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
77624         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
77625         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
77626
77627 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77628
77629         * lib/argp-namefrob.h: Bugfix. Remove stray #
77630
77631 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
77632
77633         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
77634         so that we test the test.
77635         Check for yet another HP-UX cc bug involving *bool |= bool.
77636
77637 2006-01-25  Karl Berry  <karl@gnu.org>
77638
77639         * config/srclist.txt (vasnprintf.c): sync lost.
77640
77641 2006-01-25  Jim Meyering  <jim@meyering.net>
77642
77643         Sync from the stable (b5) branch of coreutils:
77644
77645         * lib/fts.c (fts_children): Don't let close() clobber errno from
77646         failed fchdir().
77647
77648         * lib/fts.c (fts_stat): When following a symlink-to-directory,
77649         don't necessarily interpret stat-fails+lstat-succeeds as indicating
77650         a dangling symlink.  That can also happen at least for ELOOP.
77651         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
77652         FYI, this bug predates the inclusion of fts.c in coreutils.
77653
77654         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
77655         in their own block, so pre-c99 compilers don't object.
77656
77657         Avoid the double-free (first in fts_read, second in fts_close) that
77658         would occur when an `active' directory is made inaccessible (e.g.,
77659         via chmod a-x) during a traversal.
77660         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
77661         before returning.  Reproduce this failure by
77662         mkdir -p a/b; cd a; chmod a-x . b
77663         Reported by Stavros Passas.
77664
77665 2006-01-25  Jim Meyering  <jim@meyering.net>
77666
77667         * lib/fileblocks.c: Remove more useless parentheses.
77668         * lib/readutmp.h: Likewise.
77669
77670 2006-01-25  Bruno Haible  <bruno@clisp.org>
77671
77672         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
77673         warnings.
77674         Reported by Paul Eggert.
77675
77676 2006-01-25  Bruno Haible  <bruno@clisp.org>
77677
77678         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
77679         rid of a trap command. For Solaris sh.
77680         Reported by Mark D. Baushke <mdb@gnu.org>.
77681
77682 2006-01-24  Simon Josefsson  <jas@extundo.com>
77683
77684         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
77685         Bruno.
77686
77687 2006-01-24  Karl Berry  <karl@gnu.org>
77688
77689         * config/srclist.txt (argp-namefrob.h): sync lost.
77690
77691 2006-01-24  Jim Meyering  <jim@meyering.net>
77692
77693         * modules/openat (Files): Add lib/intprops.h.
77694         From Mark D. Baushke.
77695
77696 2006-01-24  Jim Meyering  <jim@meyering.net>
77697
77698         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
77699         Reported by Mark D. Baushke.
77700
77701 2006-01-24  Jim Meyering  <jim@meyering.net>
77702
77703         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
77704
77705 2006-01-24  Bruno Haible  <bruno@clisp.org>
77706
77707         * modules/strnlen (Maintainer): Change from glibc to all.
77708
77709 2006-01-24  Bruno Haible  <bruno@clisp.org>
77710
77711         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
77712         Patch by Paul Eggert.
77713
77714 2006-01-24  Bruno Haible  <bruno@clisp.org>
77715
77716         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
77717         already has it.
77718         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
77719         2005-11-26.
77720
77721         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
77722         'signed char' to avoid problems with the built-in _Bool type.
77723         Reported by Paul Eggert on 2005-11-26.
77724
77725 2006-01-24  Bruno Haible  <bruno@clisp.org>
77726
77727         * gnulib-tool (func_import): Avoid constructing complicated sed
77728         expressions inside backquote.
77729         Report and solution by Mark D. Baushke <mdb@gnu.org>.
77730
77731 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
77732
77733         These changes imported from libc.
77734         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
77735         test and two separate function calls.
77736         * lib/strndup.c (__strndup): Add libc_hidden_def.
77737
77738 2006-01-23  Simon Josefsson  <jas@extundo.com>
77739
77740         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
77741         Remove the test_*_SOURCES variable: automake infers it by default.
77742         * modules/tls-tests: Likewise.
77743
77744 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77745
77746         Work around porting bugs reported by Dieter in
77747         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
77748         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
77749         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
77750         Include "getopt.h" first, to check interface.
77751         (getenv): Declare only if defined HAVE_DECL_GETENV &&
77752         !HAVE_DECL_GETENV.
77753         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
77754         (__strndup): Revert to K&R-style function dfns, the glibc style.
77755         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
77756         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
77757         Include strnlen.h first, to get prototype properly.
77758         (strnlen): Renamed from __strnlen.
77759         Remove weak alias.
77760
77761 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77762
77763         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
77764
77765 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77766
77767         * config/srclist.txt: Adjust to reflect glibc reorganization.
77768         This affects only comments.
77769
77770 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77771
77772          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
77773          Reported by Bruce Korb <bkorb@gnu.org>.
77774
77775 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
77776
77777         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
77778         to pacify gcc -Wswitch-default.
77779
77780 2006-01-22  Bruno Haible  <bruno@clisp.org>
77781
77782         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
77783         temporary buffer for sprintf, take into account the precision also
77784         for 'd', 'i', 'u', 'o', 'x', 'X'.
77785
77786 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
77787
77788         * modules/argp-tests: New module
77789         * tests/test-argp.c: New file
77790         * tests/test-argp-2.sh: New file
77791
77792 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
77793
77794         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
77795         (__argp_base_name): Removed
77796         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
77797         typo.
77798         (__argp_base_name): Provide macro definition or extern declaration
77799         depending on the configuration
77800
77801 2006-01-20  Simon Josefsson  <jas@extundo.com>
77802
77803         * modules/inet_ntop (Depends-on): Depend on sys_socket.
77804
77805 2006-01-20  Simon Josefsson  <jas@extundo.com>
77806
77807         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
77808
77809 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77810
77811         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
77812         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
77813         Suggested by Bruno Haible.
77814
77815 2006-01-20  Karl Berry  <karl@gnu.org>
77816
77817         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
77818         until changes propagate, I guess.
77819
77820 2006-01-19  Simon Josefsson  <jas@extundo.com>
77821
77822         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
77823
77824 2006-01-19  Simon Josefsson  <jas@extundo.com>
77825
77826         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
77827
77828 2006-01-19  Simon Josefsson  <jas@extundo.com>
77829
77830         * gnulib-tool: Set check_PROGRAMS.
77831
77832         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
77833         modules/des-tests, modules/gc-arcfour-tests,
77834         modules/gc-arctwo-tests, modules/gc-des-tests,
77835         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
77836         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
77837         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
77838         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
77839         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
77840         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
77841         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
77842         test_*_SOURCES.
77843
77844 2006-01-18  Simon Josefsson  <jas@extundo.com>
77845
77846         * modules/socklen (Depends-on): Depend on sys_socket.
77847
77848 2006-01-18  Simon Josefsson  <jas@extundo.com>
77849
77850         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
77851         modules/des-tests, modules/gc-arcfour-tests,
77852         modules/gc-arctwo-tests, modules/gc-des-tests,
77853         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
77854         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
77855         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
77856         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
77857         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
77858         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
77859         $(EXEEXT) to automake TESTS variable, for mingw32.
77860
77861 2006-01-17  Simon Josefsson  <jas@extundo.com>
77862
77863         * modules/socklen (Include): Need sys/socket.h.
77864
77865 2006-01-17  Bruno Haible  <bruno@clisp.org>
77866
77867         * modules/ssize_t (Include): Add <sys/types.h>.
77868
77869 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
77870
77871         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
77872         it's not portable and it doesn't work with cross-compiles.
77873         Problem reported by Bruno Haible.  Fix missing-$ typo in
77874         'test "gl_cv_ignore_unused_libraries" ...' that prevented
77875         -zignore from being used with Sun's C compiler.
77876
77877 2006-01-12  Simon Josefsson  <jas@extundo.com>
77878
77879         * lib/base64.c: Fix warning, reported by Bruno Haible
77880         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
77881
77882 2006-01-12  Bruno Haible  <bruno@clisp.org>
77883
77884         * modules/ldd: New file.
77885         * build-aux/ldd.sh.in: New file.
77886         * MODULES.html.sh (Support for building libraries and executables): Add
77887         ldd.
77888
77889 2006-01-12  Bruno Haible  <bruno@clisp.org>
77890
77891         * m4/ldd.m4: New file.
77892
77893 2006-01-12  Bruno Haible  <bruno@clisp.org>
77894
77895         * gnulib-tool (func_import, func_create_testdir): Don't go into an
77896         endless loop while replacing $auxdir with build-aux.
77897
77898 2006-01-11  Simon Josefsson  <jas@extundo.com>
77899
77900         * lib/stdint_.h (SIZE_MAX): Add missing (.
77901
77902 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
77903
77904         Sync from coreutils.
77905         * lib/md5.c: Fix commentary typos.
77906         (alignof, UNALIGNED_P): No need for a GCC-specific version.
77907         * lib/md5.h (__attribute__): Remove; unused.
77908         * lib/sha1.c: Fix commentary to match md5 better.
77909         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
77910         so that we don't need to worry about alignment.  All uses changed.
77911         This merges the 2005-10-28 md5 change into sha1.
77912
77913 2006-01-11  Jim Meyering  <jim@meyering.net>
77914
77915         Sync from coreutils.
77916         * lib/md5.c (OP): Fix spacing.
77917
77918 2006-01-11  Bruno Haible  <bruno@clisp.org>
77919
77920         Ensure automatic ordering between gl_LOCK and gl_ARGP.
77921         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
77922         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
77923
77924 2006-01-11  Bruno Haible  <bruno@clisp.org>
77925
77926         Ensure automatic ordering between gl_LOCK and gl_ARGP.
77927         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
77928         the "early" section as well.
77929
77930 2006-01-11  Bruno Haible  <bruno@clisp.org>
77931
77932         Avoid "ar: no archive members specified" error on MacOS X.
77933         * gnulib-tool (func_modules_add_dummy): New function.
77934         (func_import, func_create_testdir): Invoke it.
77935
77936 2006-01-11  Bruno Haible  <bruno@clisp.org>
77937
77938         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
77939         with $auxdir in AC_CONFIG_FILES statements.
77940
77941 2006-01-11  Bruno Haible  <bruno@clisp.org>
77942
77943         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77944         Initialize also noinst_HEADERS to empty.
77945
77946 2006-01-11  Bruno Haible  <bruno@clisp.org>
77947
77948         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
77949         variables.
77950         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
77951         autoreconf.
77952
77953 2006-01-11  Bruno Haible  <bruno@clisp.org>
77954
77955         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
77956         overridable by the user.
77957         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77958
77959 2006-01-10  Simon Josefsson  <jas@extundo.com>
77960
77961         * modules/sys_socket: New file.
77962
77963 2006-01-10  Simon Josefsson  <jas@extundo.com>
77964
77965         * m4/sys_socket_h.m4: New file.
77966
77967 2006-01-10  Simon Josefsson  <jas@extundo.com>
77968
77969         * lib/socket_.h: New file.
77970
77971 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
77972
77973         * modules/readutmp (Maintainer): Add myself.
77974
77975 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
77976
77977         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
77978         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
77979         People who are still concerned with buggy memcmp implementations
77980         can invoke gl_FUNC_MEMCMP themselves.
77981
77982 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
77983
77984         * lib/regex_internal.h (BITSET_WORD_BITS):
77985         Work around a bug in 64-bit PGC (before version 6.1-2), where the
77986         preprocessor mishandles large unsigned values as if they were signed.
77987         Problem reported by Claudio Fontana in
77988         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
77989
77990 2006-01-10  Jim Meyering  <jim@meyering.net>
77991
77992         Avoid the double-free (first in fts_read, second in fts_close) that
77993         would occur when an `active' directory is made inaccessible (e.g.,
77994         via chmod a-x) during a traversal.
77995         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
77996         before returning.  Reproduce this failure by
77997         mkdir -p a/b; cd a; chmod a-x . b
77998         Reported by Stavros Passas.
77999
78000         Sync from coreutils.
78001         * lib/sha1.c: Tweak grammar in a comment.
78002
78003 2006-01-10  Jim Meyering  <jim@meyering.net>
78004
78005         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
78006         Patch by Joerg Sonnenberger.
78007
78008 2006-01-10  Bruno Haible  <bruno@clisp.org>
78009
78010         * modules/readutmp: Depend on module free.
78011         * modules/strtok_r: Depend on module restrict.
78012
78013 2006-01-10  Bruno Haible  <bruno@clisp.org>
78014
78015         * modules/gettext (configure.ac): Add an invocation of
78016         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
78017
78018 2006-01-10  Bruno Haible  <bruno@clisp.org>
78019
78020         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
78021         Reported by Werner Lemberg <wl@gnu.org>.
78022
78023 2006-01-10  Bruno Haible  <bruno@clisp.org>
78024
78025         * lib/localcharset.c: Update from GNU gettext.
78026
78027 2006-01-10  Bruno Haible  <bruno@clisp.org>
78028
78029         * lib/argp.h (__const): Remove macro. Use const instead.
78030         * lib/argp-fmtstream.h (__const): Likewise.
78031         * lib/glob_.h (__const): Remove macro.
78032         * lib/glob-libc.h: Use const instead of __const.
78033
78034 2006-01-10  Bruno Haible  <bruno@clisp.org>
78035
78036         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
78037         variable.
78038         Needed to avoid an automake error regarding the 'gettext' module.
78039
78040 2006-01-09  Simon Josefsson  <jas@extundo.com>
78041
78042         * modules/inet_ntop (Depends-on): Add restrict.
78043
78044 2006-01-09  Simon Josefsson  <jas@extundo.com>
78045
78046         * modules/gc-rijndael-tests (License): Put under LGPL.
78047
78048         * modules/gc-des-tests (License): Likewise.
78049
78050         * modules/gc-arcfour-tests (License): Likewise.
78051
78052         * modules/gc-arctwo-tests (License): Likewise.
78053
78054         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
78055
78056         * modules/gc-hmac-sha1-tests (Files): Likewise.
78057
78058         * modules/gc-hmac-md5-tests (License): Likewise.
78059
78060         * modules/gc-sha1-tests (License): Likewise.
78061
78062         * modules/gc-md5-tests (License): Likewise.
78063
78064         * modules/gc-md4-tests (License): Likewise.
78065
78066         * modules/gc-md2-tests (License): Likewise.
78067
78068         * modules/gc-tests (License): Likewise.
78069
78070         * modules/des-tests (License): Likewise.
78071
78072         * modules/md4-tests (License): Likewise.
78073
78074         * modules/md2-tests (License): Likewise.
78075
78076 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78077
78078         Sync from coreutils:
78079
78080         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
78081         * modules/lib-ignore: New file.
78082         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
78083         chdir-safer.m4, lchmod.m4.
78084         * modules/openat: Add mkdirat.c, openat-priv.h.
78085
78086 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78087
78088         Sync from coreutils.
78089         * m4/lib-ignore.m4: New file.
78090         * m4/lchmod.m4: New file.
78091
78092 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78093
78094         Sync from coreutils.
78095         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
78096         for write access: POSIX says that must fail.
78097         * lib/fts.c (diropen): Likewise.
78098         * lib/save-cwd.c (save_cwd): Likewise.
78099         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
78100         well, for minor improvements on hosts that lack O_DIRECTORY.
78101         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
78102         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
78103         Fall back on chown if open failed with EACCES.
78104
78105         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
78106         Report an error at compile-time if only a 1-second nominal clock
78107         resolution is found.
78108
78109         * lib/lchmod.h: New file.
78110         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
78111         (make_dir_parents): Use lchown rather than chown, and
78112         lchmod rather than chmod.
78113
78114         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
78115         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
78116         "proc" reported by n0dalus.
78117
78118         * lib/mountlist.c: Include <limits.h>.
78119         (dev_from_mount_options)
78120         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
78121         New function.  It no longer assumes "dev=" has the System V meaning
78122         on Linux (since it doesn't).  It also parses "dev=" more carefully.
78123         (read_file_system_list)
78124         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
78125         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
78126         dev= in that case.
78127
78128         * lib/posixtm.h (PDS_PRE_2000): New macro.
78129         * lib/posixtm.c (year): Arg is now syntax_bits rather than
78130         allow_century.  All usages changed.  Reject dates outside the range
78131         1969-1999 if PDS_PRE_2000 is used.
78132
78133 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78134
78135         Sync from coreutils.
78136         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
78137         (Time of day items): Mention the possibility of leap seconds.
78138         Problem reported by Dr. David Alan Gilbert.
78139
78140 2006-01-09  Jim Meyering  <jim@meyering.net>
78141
78142         Sync from coreutils.
78143
78144         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
78145
78146         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
78147
78148         * lib/modechange.c (mode_compile): Reject an invalid mode string
78149         that starts with an octal digit.  From Andreas Gruenbacher.
78150
78151         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
78152         and dup to open_safer and dup_safer, respectively.
78153         (openat_permissive): Fix typo in comment.
78154
78155         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
78156         "gettext.h"; either no longer needed or are guaranteed by openat.h.
78157         (_): Remove; no longer needed.
78158         (openat): Renamed from rpl_openat; no need for rpl_openat
78159         since openat.h renames openat for us.
78160         Replace most of the body with a call to openat_permissive,
78161         to avoid duplicate code.
78162         Port to (probably hypothetical) environments were mode_t is
78163         wider than int.
78164         (openat_permissive): Require mode arg, so that we can check
78165         types better.  Put it just after flags.  Change cwd failure
78166         indicator from pointer-to-bool to pointer-to-errno-value.
78167         All callers changed.
78168         Invoke openat_save_fail and/or openat_restore_fail if
78169         cwd_errno is null, so that openat can call us.
78170         (openat_permissive, fdopendir, fstatat, unlinkat):
78171         Simplify errno handling to avoid some duplicate code,
78172         as it's OK to set errno on success.
78173         * lib/openat.h: Revamp code so that function macros depend on
78174         __OPENAT_PREFIX only, not also on AT_FDCWD.
78175         (openat_ro): Remove.  Caller changed to use openat_permissive.
78176         (openat_permissive): Now a macro, if not a function.
78177         (openat_restore_fail, openat_save_fail): Now always functions,
78178         since mkdirat needs them even if __OPENAT_PREFIX is defined.
78179
78180         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
78181         and openat.c.
78182         * lib/mkdirat.c: Include openat-priv.h.
78183         Remove definitions of macros defined therein.
78184         * lib/openat.c: Likewise.
78185
78186         * lib/mkdirat.c (mkdirat): New file and function.
78187         * lib/openat.h (mkdirat): Declare.
78188
78189         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
78190
78191         * lib/openat.h (openat_permissive): Declare.
78192         (openat_ro): Define.
78193
78194         * lib/openat.c (EXPECTED_ERRNO): New macro.
78195         (openat_permissive): New function -- used in remove.c rewrite.
78196         (all functions): Set errno just before returning, only if there
78197         was an actual failure.
78198         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
78199
78200         Emulate openat-family functions using Linux's procfs, if possible.
78201         Idea and some code based on Ulrich Drepper's glibc changes.
78202
78203         * lib/openat.c: (BUILD_PROC_NAME): New macro.
78204         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
78205         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
78206         before falling back on save_cwd and restore_cwd.
78207         (fdopendir, fstatat, unlinkat): Likewise.
78208
78209         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
78210         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
78211
78212         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
78213         as second argument to va_arg.  Otherwise, some versions of gcc
78214         warn that `if this code is reached, the program will abort'.
78215
78216 2006-01-09  Jim Meyering  <jim@meyering.net>
78217
78218         Sync from coreutils.
78219         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
78220         Require openat-priv.h.
78221
78222 2006-01-09  Bruno Haible  <bruno@clisp.org>
78223
78224         * modules/strnlen (Include): Use strnlen.h.
78225
78226 2006-01-09  Bruno Haible  <bruno@clisp.org>
78227
78228         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
78229
78230 2006-01-09  Bruno Haible  <bruno@clisp.org>
78231
78232         * lib/sysexit_.h (EX_OK): New macro.
78233         Suggested by Martin Lambers <marlam@marlam.de>.
78234
78235 2006-01-09  Bruno Haible  <bruno@clisp.org>
78236
78237         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
78238         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
78239
78240 2006-01-09  Bruno Haible  <bruno@clisp.org>
78241
78242         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
78243         numbers.
78244
78245 2006-01-09  Bruno Haible  <bruno@clisp.org>
78246
78247         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
78248         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
78249         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
78250         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
78251
78252 2006-01-09  Bruno Haible  <bruno@clisp.org>
78253
78254         * build-aux/javacomp.sh.in: New file, moved from lib/.
78255         * modules/javacomp-script (Files): Update.
78256         (configure.ac): Add AC_CONFIG_FILES invocation.
78257         (EXTRA_DIST): Remove variable.
78258
78259         * build-aux/javaexec.sh.in: New file, moved from lib/.
78260         * modules/javaexec (Files): Update.
78261         (configure.ac): Add AC_CONFIG_FILES invocation.
78262         (EXTRA_DIST): Remove javaexec.sh.in.
78263
78264         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
78265         * modules/csharpcomp-script (Files): Update.
78266         (configure.ac): Add AC_CONFIG_FILES invocation.
78267         (EXTRA_DIST): Remove variable.
78268
78269         * build-aux/csharpexec.sh.in: New file, moved from lib/.
78270         * modules/csharpexec (Files): Update.
78271         (configure.ac): Add AC_CONFIG_FILES invocation.
78272         (EXTRA_DIST): Remove csharpexec.sh.in.
78273
78274 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78275
78276         Sync from coreutils.
78277
78278         Add POSIX ACL support
78279         * lib/acl.h (copy_acl, set_acl): Add declarations.
78280         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
78281         systems other than Linux.
78282         (chmod_or_fchmod): New function: use fchmod when possible,
78283         and chmod otherwise.
78284         (file_has_acl): Add a POSIX ACL implementation, with a
78285         Linux-specific subcase.
78286         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
78287         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
78288         acls are unsupported.
78289         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
78290         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
78291         are unsupported.
78292
78293 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78294
78295         Sync from coreutils.
78296         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
78297
78298 2006-01-07  Bruno Haible  <bruno@clisp.org>
78299
78300         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
78301         gl_EARLY.
78302
78303 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78304
78305         * lib/strftime.c (tzname): Don't declare if it is already #defined.
78306         Problem reported for Mingw by Mark Junker.
78307
78308 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78309
78310         * README: Gnulib normally doesn't generate a tarball.
78311
78312 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
78313
78314         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
78315         long int, not int, for nanosecond counts, so that people who are
78316         used to POSIX struct timespec won't be surprised.  Reported by Jim
78317         Meyering.
78318
78319 2005-12-28  Bruno Haible  <bruno@clisp.org>
78320
78321         * build-aux/config.rpath: Update from GNU gettext.
78322
78323 2005-12-16  Jim Meyering  <jim@meyering.net>
78324
78325         * modules/fprintftime: New module.
78326         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
78327
78328 2005-12-16  Jim Meyering  <jim@meyering.net>
78329
78330         * m4/fprintftime.m4: New file.
78331
78332 2005-12-16  Jim Meyering  <jim@meyering.net>
78333
78334         * lib/fprintftime.c, lib/fprintftime.h: New files.
78335
78336 2005-12-15  Simon Josefsson  <jas@extundo.com>
78337
78338         * modules/socklen (configure.ac): Fix M4 macro name, to align with
78339         new m4/socklen.m4.
78340
78341 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78342
78343         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
78344         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
78345
78346 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78347
78348         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
78349         * lib/argp-help.c (fill_in_uparams): Check if the constructed
78350         struct uparams is valid. Fall back to the default values if it is
78351         not.
78352
78353 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78354
78355         * modules/argp (Files): Add argp-pin.c
78356         (Depends-on): dirname
78357         (lib_SOURCES): Add argp-pin.c
78358
78359 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78360
78361         * m4/argp.m4:  Check if program_invocation_name and
78362         program_invocation_short_name are declared and define appropriate
78363         macros if they are not.
78364
78365 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78366
78367         * lib/argp-help.c (__argp_base_name): New function
78368         (__argp_short_program_name): Rewrite using __argp_base_name
78369         * lib/argp-namefrob.h: Define program_invocation_name and
78370         program_invocation_short_name if requested
78371         (__argp_base_name): Add prototype
78372         * lib/argp-parse.c (argp_def): Use gettext wrappers
78373         (argp_default_parser): Use __argp_base_name
78374         * lib/argp-pin.c: New file. Defines program_invocation_name and
78375         program_invocation_short_name on systems that lack them.
78376
78377 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78378
78379         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
78380         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78381         porting problem reported by Georg Schwarz in
78382         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78383
78384 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78385
78386         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
78387         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78388         porting problem reported by Georg Schwarz in
78389         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78390
78391 2005-12-05  Bruno Haible  <bruno@clisp.org>
78392
78393         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
78394         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
78395         Reported by Mark Junker <mjscod@gmx.de>.
78396
78397 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
78398
78399         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
78400         Use implementation from Albert Chin, with some
78401         comments/corrections by Stepan Kasal and myself.
78402
78403 2005-12-02  Bruno Haible  <bruno@clisp.org>
78404
78405         * gnulib-tool (func_import): Accept GPLed build tool modules when
78406         --lgpl is given.
78407         * modules/csharpcomp-script: New file.
78408         * modules/csharpcomp: Depend on it.
78409         * modules/javacomp-script: New file.
78410         * modules/javacomp: Depend on it.
78411         Suggested by Simon Josefsson.
78412
78413 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
78414
78415         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
78416         statement, to work around an HP-UX 10.20 compiler bug reported by
78417         Peter O'Gorman.
78418
78419 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78420
78421         * modules/savedir (Depends-on): Add openat.
78422
78423 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78424
78425         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
78426         (uintmax_t) [defined uintmax_t]: Do not declare.
78427         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
78428         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
78429         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
78430         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
78431         sake of portability to weird hosts that C allows (though we don't
78432         know of any practical examples).
78433
78434         * lib/savedir.h (fdsavedir): New decl.
78435         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
78436         contains most of the former guts of savedir.
78437         (savedir): Use savedirstream.
78438         Include "openat.h".
78439
78440 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78441
78442         * modules/obstack (Files): Add m4/ulonglong.m4.
78443         Problem reported by Davide Angelocola.
78444
78445 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
78446
78447         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
78448         coreutils no longer futzes with rounding modes.
78449
78450 2005-11-14  Jim Meyering  <jim@meyering.net>
78451
78452         * lib/mkstemp-safer.c: Include <config.h>, required for possible
78453         replacement of mkstemp.
78454
78455 2005-11-10  Simon Josefsson  <jas@extundo.com>
78456
78457         * lib/readline.c: Remove EOL.
78458
78459 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78460
78461         * modules/gethrxtime (Depends-on): Add gettime.
78462
78463 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78464
78465         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
78466         or gettimeofday; no longer needed.
78467
78468 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78469
78470         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
78471         time business.
78472         (gethrxtime) [! (HAVE_NANOUPTIME
78473         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
78474         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
78475         our own approximation.
78476
78477 2005-11-08  Eric Blake  <ebb9@byu.net>
78478
78479         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78480
78481 2005-11-08  Eric Blake  <ebb9@byu.net>
78482
78483         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78484
78485 2005-11-04  Bruno Haible  <bruno@clisp.org>
78486
78487         * gnulib-tool: Implement --update mode.
78488
78489 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78490
78491         Fix porting problem reported by Theodoros V. Kalamatianos.
78492         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
78493         Don't assume that futimes failing means we must fail.
78494
78495 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78496
78497         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
78498         variables to suggest the intended function of the PATH_MAX check.
78499
78500 2005-10-30  Kean Johnston  <jkj@sco.com>
78501
78502         Trivial changes to support SCO systems.
78503         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
78504         as PATH_MAX.
78505         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
78506         where __ptr is null when no I/O is pending.
78507
78508 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78509
78510         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
78511         leave errno alone.  Problem reported by Dmitry V. Levin.
78512
78513 2005-10-28  Simon Josefsson  <jas@extundo.com>
78514
78515         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
78516         Test more.
78517
78518         * tests/test-gc-md2.c, tests/test-md2.c: New files.
78519
78520         * modules/md2, modules/md2-tests: New files.
78521
78522 2005-10-28  Simon Josefsson  <jas@extundo.com>
78523
78524         * m4/inet_ntop.m4: More tests.
78525
78526         * m4/gc-md2.m4, md2.m4: New file.
78527
78528 2005-10-28  Simon Josefsson  <jas@extundo.com>
78529
78530         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
78531         "restrict" keywords, as per POSIX.  Protect the function
78532         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
78533         Don't use K&R prototypes.  Check the sprintf return values.
78534         Re-define EAFNOSUPPORT if not present.  Indent.
78535
78536         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
78537         suggested by Bruno Haible <bruno@clisp.org>.
78538
78539         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
78540
78541         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
78542
78543         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
78544         libgcrypt).
78545
78546         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
78547
78548         * lib/md2.h, lib/md2.c: New files.
78549
78550 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
78551
78552         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
78553         errno alone.  Problem reported by Frederic Jolliton.
78554
78555 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
78556
78557         * modules/verify (License): Change from GPL to LGPL.  This is a
78558         tiny module and there are apparently near-equivalents that are
78559         under the BSD license.
78560
78561 2005-10-24  Simon Josefsson  <jas@extundo.com>
78562
78563         * modules/sha1: Relicense to LGPL.
78564
78565 2005-10-24  Simon Josefsson  <jas@extundo.com>
78566
78567         * lib/md4.h: Shrink buffer size, now that we changed the type.
78568
78569 2005-10-23  Simon Josefsson  <jas@extundo.com>
78570
78571         * gnulib-tool (func_import): Fix --tests-base.
78572
78573 2005-10-22  Simon Josefsson  <jas@extundo.com>
78574
78575         * modules/arcfour (Depends-on): Need stdint.
78576
78577 2005-10-22  Simon Josefsson  <jas@extundo.com>
78578
78579         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
78580         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
78581
78582 2005-10-22  Simon Josefsson  <jas@extundo.com>
78583
78584         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
78585         suggested by Bruno Haible <bruno@clisp.org>.
78586
78587 2005-10-22  Simon Josefsson  <jas@extundo.com>
78588
78589         * lib/crc.h: Include stddef.h, for size_t.
78590
78591 2005-10-22  Simon Josefsson  <jas@extundo.com>
78592
78593         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
78594         arcfour_context struct (simplify test vector testing in GNU
78595         Shishi).
78596
78597 2005-10-21  Simon Josefsson  <jas@extundo.com>
78598
78599         * modules/des, modules/des-tests: New files.
78600
78601         * modules/gc-des, modules/gc-des-tests: New files.
78602
78603         * tests/test-des.c, tests/test-gc-des.c: New file.
78604
78605 2005-10-21  Simon Josefsson  <jas@extundo.com>
78606
78607         * modules/arctwo, modules/arctwo-tests: New files.
78608
78609         * tests/test-arctwo.c: New file.
78610
78611         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
78612
78613         * tests/test-gc-arctwo.c: New file.
78614
78615 2005-10-21  Simon Josefsson  <jas@extundo.com>
78616
78617         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
78618         Bruno Haible <bruno@clisp.org>.
78619
78620         * m4/gc-des.m4: New file.
78621
78622 2005-10-21  Simon Josefsson  <jas@extundo.com>
78623
78624         * m4/arctwo.m4: New file.
78625
78626         * m4/gc-arctwo.m4: New file.
78627
78628 2005-10-21  Simon Josefsson  <jas@extundo.com>
78629
78630         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
78631         block.
78632
78633 2005-10-21  Simon Josefsson  <jas@extundo.com>
78634
78635         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
78636         <bruno@clisp.org>.
78637
78638         * lib/hmac-sha1.c (hmac_sha1): Likewise.
78639
78640         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
78641         Bruno Haible <bruno@clisp.org>.
78642
78643         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
78644         <bruno@clisp.org>.
78645
78646 2005-10-21  Simon Josefsson  <jas@extundo.com>
78647
78648         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
78649
78650 2005-10-21  Simon Josefsson  <jas@extundo.com>
78651
78652         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
78653
78654 2005-10-21  Simon Josefsson  <jas@extundo.com>
78655
78656         * lib/des.h, lib/des.c: New files.
78657
78658         * lib/gc-gnulib.c: Support DES.c
78659
78660 2005-10-21  Simon Josefsson  <jas@extundo.com>
78661
78662         * lib/arctwo.h, lib/arctwo.c: New files.
78663
78664         * lib/gc-gnulib.c: Support ARCTWO.
78665
78666 2005-10-21  Simon Josefsson  <jas@extundo.com>
78667
78668         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
78669         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78670
78671 2005-10-21  Simon Josefsson  <jas@extundo.com>
78672
78673         * gnulib-tool (func_import, func_create_testdir): Define automake
78674         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
78675         Makefile.am snippet),
78676         suggested by Bruno Haible <bruno@clisp.org>.
78677
78678         * modules/gc (Makefile.am): Use it.
78679
78680 2005-10-21  Bruno Haible  <bruno@clisp.org>
78681
78682         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
78683         patch.
78684
78685 2005-10-19  Simon Josefsson  <jas@extundo.com>
78686
78687         * tests/test-gc-rijndael.c: New file.
78688
78689         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
78690
78691 2005-10-19  Simon Josefsson  <jas@extundo.com>
78692
78693         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
78694         interface too.
78695
78696 2005-10-19  Simon Josefsson  <jas@extundo.com>
78697
78698         * tests/test-gc-arcfour.c: New file.
78699
78700         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
78701
78702 2005-10-19  Simon Josefsson  <jas@extundo.com>
78703
78704         * modules/gc-md4, modules/gc-md4-tests: New file.
78705
78706         * tests/test-gc-md4.c: New file.
78707
78708 2005-10-19  Simon Josefsson  <jas@extundo.com>
78709
78710         * m4/gc-md4.m4: New file.
78711
78712 2005-10-19  Simon Josefsson  <jas@extundo.com>
78713
78714         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
78715         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
78716         <kasal@ucw.cz>.
78717
78718 2005-10-19  Simon Josefsson  <jas@extundo.com>
78719
78720         * m4/gc-arcfour.m4: New file.
78721
78722         * m4/gc-rijndael.m4: New file.
78723
78724 2005-10-19  Simon Josefsson  <jas@extundo.com>
78725
78726         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
78727
78728 2005-10-19  Simon Josefsson  <jas@extundo.com>
78729
78730         * lib/gc-gnulib.c: Support ARCFOUR.
78731
78732 2005-10-19  Simon Josefsson  <jas@extundo.com>
78733
78734         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
78735         support.
78736
78737         * lib/gc.h: Add ECB enum type.
78738
78739         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
78740
78741 2005-10-18  Simon Josefsson  <jas@extundo.com>
78742
78743         * tests/test-md5.c: New file.
78744
78745         * modules/md5-tests: New file.
78746
78747 2005-10-18  Simon Josefsson  <jas@extundo.com>
78748
78749         * tests/test-md4.c: New file.
78750
78751         * modules/md4, modules/md4-tests: New files.
78752
78753 2005-10-18  Simon Josefsson  <jas@extundo.com>
78754
78755         * m4/md4.m4: New file.
78756
78757 2005-10-18  Simon Josefsson  <jas@extundo.com>
78758
78759         * lib/md4.h, lib/md4.c: New files, based on md5.?.
78760
78761 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
78762
78763         * gnulib-tool (func_create_testdir): Omit the second check whether
78764         BUILT_SOURCES in nonempty.
78765
78766 2005-10-17  Simon Josefsson  <jas@extundo.com>
78767
78768         * tests/test-rijndael.c: New file.
78769
78770 2005-10-17  Simon Josefsson  <jas@extundo.com>
78771
78772         * modules/sha1: Depend on stdint instead of md5.
78773
78774         * modules/md5: Depend on stdint, remove uint32_t.
78775
78776 2005-10-17  Simon Josefsson  <jas@extundo.com>
78777
78778         * modules/gc-sha1-tests: New file.
78779
78780         * tests/test-gc-sha1.c: New file.
78781
78782 2005-10-17  Simon Josefsson  <jas@extundo.com>
78783
78784         * m4/md5.m4: Remove call to uint32_t.m4.
78785
78786 2005-10-17  Simon Josefsson  <jas@extundo.com>
78787
78788         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
78789
78790         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
78791         md5.h.
78792
78793         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
78794
78795         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
78796
78797 2005-10-17  Simon Josefsson  <jas@extundo.com>
78798
78799         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
78800
78801 2005-10-17  Simon Josefsson  <jas@extundo.com>
78802
78803         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
78804
78805 2005-10-17  Simon Josefsson  <jas@extundo.com>
78806
78807         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
78808
78809         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
78810
78811 2005-10-17  Bruno Haible  <bruno@clisp.org>
78812
78813         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
78814         that it can also be used in a test.
78815
78816 2005-10-16  Bruno Haible  <bruno@clisp.org>
78817
78818         * gnulib-tool (func_emit_tests_Makefile_am): Also define
78819         TESTS_ENVIRONMENT, so that individual tests can augment it.
78820
78821         * gnulib-tool (func_create_testdir): Use an intermediate target for
78822         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
78823         macros, like $(ALLOCA_H), which cannot be passed through the command
78824         line.
78825
78826 2005-10-15  Simon Josefsson  <jas@extundo.com>
78827
78828         * modules/rijndael-tests: New file.
78829
78830         * modules/rijndael: New file.
78831
78832 2005-10-15  Simon Josefsson  <jas@extundo.com>
78833
78834         * m4/rijndael.m4: New file.
78835
78836 2005-10-15  Simon Josefsson  <jas@extundo.com>
78837
78838         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
78839
78840         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
78841
78842 2005-10-14  Simon Josefsson  <jas@extundo.com>
78843
78844         * tests/test-arcfour.c: New file.
78845
78846         * modules/arcfour, modules/arcfour-tests: New files.
78847
78848 2005-10-14  Simon Josefsson  <jas@extundo.com>
78849
78850         * m4/arcfour.m4: New file.
78851
78852 2005-10-14  Simon Josefsson  <jas@extundo.com>
78853
78854         * lib/arcfour.h, lib/arcfour.c: New files.
78855
78856 2005-10-14  Roland McGrath  <roland@redhat.com>
78857
78858         Import from libc.  [BZ #1331]
78859         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
78860         macro argument.
78861         Reported by Matej Vela <vela@debian.org>.
78862
78863 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
78864
78865         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
78866         include <wchar.h>; no longer needed.
78867
78868 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
78869
78870         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
78871
78872 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
78873         and  Ulrich Drepper  <drepper@redhat.com>
78874
78875         Import from libc.
78876         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
78877         instead of inline stream orientation test and two separate
78878         function calls.  Pay no attention to USE_IN_LIBIO.
78879
78880 2005-10-13  Simon Josefsson  <jas@extundo.com>
78881
78882         * modules/gc-hmac-md5-tests: New file.
78883
78884         * tests/test-gc-hmac-sha1.c: New file.
78885
78886         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
78887
78888         * modules/gc-hmac-md5-tests: New file.
78889
78890         * tests/test-gc-md5.c: New file.
78891
78892         * modules/gc-md5-tests: New file.
78893
78894 2005-10-13  Simon Josefsson  <jas@extundo.com>
78895
78896         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
78897         Move memory allocation outside of loop.
78898
78899 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
78900
78901         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
78902         intermediate directory is in a read-only file system.  Problem
78903         reported by Eric Blake.
78904
78905 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
78906
78907         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
78908
78909 2005-10-12  Simon Josefsson  <jas@extundo.com>
78910
78911         * tests/test-hmac-sha1.c: New file.
78912
78913         * modules/hmac-sha1-tests: New file.
78914
78915         * modules/hmac-sha1: New file.
78916
78917 2005-10-12  Simon Josefsson  <jas@extundo.com>
78918
78919         * modules/gc-sha1: New file.
78920
78921 2005-10-12  Simon Josefsson  <jas@extundo.com>
78922
78923         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
78924
78925         * tests/test-gc-pbkdf2-sha1.c: New file.
78926
78927 2005-10-12  Simon Josefsson  <jas@extundo.com>
78928
78929         * modules/gc-md5, modules/gc-hmac-md5: New files.
78930
78931         * modules/gc (Files): Remove md5, memxor and hmac files.
78932
78933 2005-10-12  Simon Josefsson  <jas@extundo.com>
78934
78935         * m4/gc-pbkdf2-sha1.m4: New file.
78936
78937         * m4/gc-hmac-sha1.m4: New file.
78938
78939         * m4/gc-sha1: New file.
78940
78941         * m4/hmac-sha1.m4: New file.
78942
78943 2005-10-12  Simon Josefsson  <jas@extundo.com>
78944
78945         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
78946
78947         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
78948
78949 2005-10-12  Simon Josefsson  <jas@extundo.com>
78950
78951         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
78952         suggested by Bruno Haible <bruno@clisp.org>.
78953
78954 2005-10-12  Simon Josefsson  <jas@extundo.com>
78955
78956         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
78957
78958 2005-10-12  Simon Josefsson  <jas@extundo.com>
78959
78960         * lib/gc-pbkdf2-sha1.c: New file.
78961
78962         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
78963
78964 2005-10-12  Simon Josefsson  <jas@extundo.com>
78965
78966         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
78967
78968         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
78969
78970 2005-10-12  Simon Josefsson  <jas@extundo.com>
78971
78972         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
78973         GC_USE_HMAC_MD5, respectively.
78974
78975         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
78976         (gc_md5): Fix typo.
78977
78978         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
78979
78980         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
78981
78982         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
78983
78984 2005-10-12  Bruno Haible  <bruno@clisp.org>
78985
78986         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
78987         Reported by Stepan Kasal <kasal@ucw.cz>.
78988
78989 2005-10-11  Simon Josefsson  <jas@extundo.com>
78990
78991         * tests/test-crc.c: New file.
78992
78993         * modules/crc, modules/crc-tests: New files.
78994
78995 2005-10-11  Simon Josefsson  <jas@extundo.com>
78996
78997         * m4/crc.m4: New file.
78998
78999 2005-10-11  Simon Josefsson  <jas@extundo.com>
79000
79001         * lib/gc.h: Add gc_hash and gc_hash_buffer.
79002
79003         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
79004
79005         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
79006
79007 2005-10-11  Simon Josefsson  <jas@extundo.com>
79008
79009         * lib/crc.h, lib/crc.c: New files.
79010
79011         * lib/gc.h (gc_hash_buffer): Add doc.
79012
79013 2005-10-11  Bruno Haible  <bruno@clisp.org>
79014
79015         * modules/c-strcasestr: New file.
79016         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
79017
79018 2005-10-11  Bruno Haible  <bruno@clisp.org>
79019
79020         * modules/c-strcase: New file.
79021         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
79022
79023 2005-10-11  Bruno Haible  <bruno@clisp.org>
79024
79025         * lib/strcasecmp.c: Include limits.h.
79026         (strcasecmp): Avoid integer overflow on exotic platforms.
79027         * lib/strncasecmp.c: Include limits.h.
79028         (strncasecmp): Avoid integer overflow on exotic platforms.
79029         Reported by Paul Eggert.
79030
79031 2005-10-11  Bruno Haible  <bruno@clisp.org>
79032
79033         * lib/c-strcasestr.h: New file, from GNU gettext.
79034         * lib/c-strcasestr.c: New file, from GNU gettext.
79035
79036 2005-10-11  Bruno Haible  <bruno@clisp.org>
79037
79038         * lib/c-strcase.h: New file, from GNU gettext.
79039         * lib/c-strcasecmp.c: New file, from GNU gettext.
79040         * lib/c-strncasecmp.c: New file, from GNU gettext.
79041
79042 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79043
79044         * modules/mempcpy (License): GPL -> LGPL.
79045         * modules/strchrnul (License): Likewise.
79046         * modules/sysexits (License): Likewise.
79047
79048 2005-10-08  Simon Josefsson  <jas@extundo.com>
79049
79050         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
79051
79052 2005-10-07  Simon Josefsson  <jas@extundo.com>
79053
79054         * m4/memxor.m4: Remove gl_C_RESTRICT call.
79055
79056 2005-10-06  Simon Josefsson  <jas@extundo.com>
79057
79058         * tests/test-hmac-md5.c: New file.
79059
79060         * modules/hmac-md5-tests: New file.
79061
79062         * modules/hmac-md5: New file.
79063
79064 2005-10-06  Simon Josefsson  <jas@extundo.com>
79065
79066         * m4/hmac-md5.m4: New file.
79067
79068         * m4/memxor.m4: Require gl_C_RESTRICT.
79069
79070 2005-10-06  Simon Josefsson  <jas@extundo.com>
79071
79072         * lib/memxor.c (memxor): Avoid casts and warnings.
79073
79074 2005-10-06  Simon Josefsson  <jas@extundo.com>
79075
79076         * lib/hmac-md5.c: New file.
79077
79078         * lib/hmac.h: New file.
79079
79080 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79081
79082         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
79083         promotes to int, not unsigned int, to catch the AIX 5.3
79084         compiler bug.
79085
79086 2005-10-05  Simon Josefsson  <jas@extundo.com>
79087
79088         * modules/memxor: New file.
79089
79090         * modules/iconv (Files): Move config.rpath to havelib, it is used
79091         there.
79092
79093         * modules/havelib (Files): Add config.rpath.
79094
79095 2005-10-05  Simon Josefsson  <jas@extundo.com>
79096
79097         * m4/memxor.m4: New file.
79098
79099 2005-10-05  Simon Josefsson  <jas@extundo.com>
79100
79101         * lib/memxor.c (memxor): Fix compiler error.
79102
79103         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
79104         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
79105
79106         * lib/memxor.h, lib/memxor.c: New files.
79107
79108         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
79109         we assume all systems have it, suggested by Jim Meyering
79110         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
79111         any systems lack sys/socket.h; mingw32 is known to lack it, but we
79112         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
79113         same reasons.
79114
79115 2005-10-05  Simon Josefsson  <jas@extundo.com>
79116
79117         * config/srclist.txt: Add glibc bug 1423 for md5.h.
79118
79119 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
79120
79121         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
79122         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
79123         needed, since the source code now assumes these .h files.
79124
79125 2005-10-05  Derek Price  <derek@ximbiot.com>
79126
79127         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
79128
79129 2005-10-05  Bruno Haible  <bruno@clisp.org>
79130
79131         * modules/stdint (License): Change to LGPL.
79132
79133 2005-10-04  Simon Josefsson  <jas@extundo.com>
79134
79135         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
79136         D. Baushke" <mdb@gnu.org>.
79137
79138 2005-10-04  Bruno Haible  <bruno@clisp.org>
79139
79140         * lib/verify.h (verify_true): Provide alternative definition for C++.
79141
79142 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
79143
79144         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
79145         (SSIZE_MAX): New macro, if not already defined.
79146         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
79147         than 2 GiB.
79148
79149 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79150
79151         Sync from coreutils.
79152         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
79153         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
79154         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
79155         ULLONG_MAX doesn't work with 2.7.2.1.
79156
79157 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79158
79159         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
79160         From Ben Pfaff.
79161
79162         * modules/exclude (Depends-on): Depend on verify.
79163         * modules/strtoimax (Depends-on): Likewise.
79164         * modules/utimecmp (Depends-on): Likewise.
79165
79166 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79167
79168         * lib/exclude.c: Include verify.h.
79169         (verify): Remove.  All callers changed to use verify.h's version.
79170         * lib/strtoimax.c: Likewise.
79171         * lib/utimecmp.c: Likewis.e
79172
79173         Sync from coreutils.
79174         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
79175         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
79176         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
79177         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
79178         bother returning ENOSYS if settimeofday or stime fails; just let
79179         them return whatever errno they want to return.
79180         * lib/utimens.c: Include unistd.h, for dup2.
79181         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
79182         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
79183
79184 2005-10-02  Jim Meyering  <jim@meyering.net>
79185
79186         Sync from coreutils.
79187         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
79188         from glibc-2.2.5 that fails for read-only files.
79189
79190 2005-10-02  Jim Meyering  <jim@meyering.net>
79191
79192         Sync from coreutils.
79193         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
79194         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
79195         `#if HAVE_CONFIG_H'.
79196         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
79197         Remove AT_FDCWD test.
79198         Do not consume the fd unless successful.
79199         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
79200         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
79201         block, so that we don't even try to compile it if settimeofday is
79202         available.  This works around a compilation failure on OSF1 V5.1,
79203         due to stime requiring a `long int*' while tv_sec is `int'.
79204
79205 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
79206
79207         Sync from coreutils.
79208         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
79209         against `yes', rather than just testing for nonempty.
79210
79211 2005-10-01  Simon Josefsson  <jas@extundo.com>
79212
79213         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
79214         and Darwin.
79215
79216         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
79217         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
79218         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
79219         freeaddrinfo and gai_strerror are declared by the POSIX headers.
79220         Check if struct addrinfo is declared.
79221
79222 2005-10-01  Simon Josefsson  <jas@extundo.com>
79223
79224         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
79225         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
79226         AI_* and EAI_* definitions.  Protect function declarations.
79227
79228 2005-10-01  Jim Meyering  <jim@meyering.net>
79229
79230         Sync from coreutils.
79231
79232         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
79233         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
79234         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
79235         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79236         in the inet and nsl libraries.  Required on Solaris 5.7.
79237
79238 2005-10-01  Jim Meyering  <jim@meyering.net>
79239
79240         Sync from coreutils.
79241         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79242         in the inet and nsl libraries.  Required on Solaris 5.7.
79243
79244 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
79245
79246         * lib/getdelim.c (getdelim): Remove unused variables.
79247
79248 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
79249
79250         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
79251         so that the code works even with ancient cpp.  Portability problem
79252         with GCC 2.7.2.1 reported by Thomas M.Ott.
79253
79254 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
79255
79256         * modules/regex (Depends-on): Add strcase.
79257
79258         * modules/gethostname (Licence): Change from GPL to LGPL, since
79259         gethostname.c is a trivial implementation of a standard library
79260         function.
79261         * modules/poll (License): Change from GPL to LGPL, since it's
79262         derived from LGPL code.
79263
79264 2005-09-27  Jim Meyering  <jim@meyering.net>
79265
79266         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
79267         HAVE_CONFIG_H.
79268
79269         * lib/intprops.h (signed_type_or_expr__): Define.
79270         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
79271         for unsigned types.
79272
79273 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
79274
79275         * lib/verify.h (verify_expr): Remove, replacing with:
79276         (verify_true): New macro that returns true instead of void.
79277         (verify_type__): Remove.
79278         (verify): Use verify_true rather than verify_type__.
79279
79280 2005-09-26  Bruno Haible  <bruno@clisp.org>
79281
79282         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
79283         is necessary.
79284         (lib_SOURCES): Remove mbchar.c.
79285         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
79286         (Files): Add m4/mbrtowc.m4.
79287         * modules/mbiter: Likewise.
79288         * modules/mbuiter: Likewise.
79289
79290 2005-09-26  Bruno Haible  <bruno@clisp.org>
79291
79292         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
79293         compile mbchar.c if they are not both present.
79294         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
79295         * m4/mbiter.m4 (gl_MBITER): Likewise.
79296         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
79297         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
79298         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
79299
79300 2005-09-25  Jim Meyering  <jim@meyering.net>
79301
79302         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
79303         also uses socklen_t.
79304
79305 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
79306
79307         * lib/utimens.c (ENOSYS): Define if not already defined.
79308         (futimens): Support having a null PATH if the file descriptor
79309         is nonnegative.
79310
79311         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
79312         Remove.
79313         (__attribute): Define to empty unless GCC 3.1 or later.
79314         This works around a core dump on OpenBSD 3.4, which has GCC
79315         2.95.3, which dumps core when given __attribute__(()).  It also
79316         simplifies other tests, since we really don't want to bother with
79317         worrying about which ancient version of GCC supported what.
79318         Original problem reported by Yoann Vandoorselaere, with part of
79319         the fix suggested by Derek Price.
79320
79321 2005-09-24  Jim Meyering  <jim@meyering.net>
79322
79323         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
79324         so we can once again use a positive bitfield width of 1 -- now we
79325         don't have to explain why we were using a bitfield width of 2.
79326
79327 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79328
79329         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
79330         and similarly for the other external symbols.  Problem reported
79331         by James Gallager.
79332
79333         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
79334         bug reported by Jim Meyering.
79335
79336         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
79337         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
79338         not needed, since socklen is a prerequisite module.
79339
79340 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79341
79342         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
79343         Problem reported by Eric Blake.
79344         (getaddrinfo): Initialize se so that it's not garbage.
79345         Redo internal storage allocation so that it doesn't make unportable
79346         assumptions about alignment.
79347         Fix a memory leak.
79348
79349         * lib/utimens.c (futimens): Use futimesat if available.
79350         Prefer it to futimes since it doesn't have the futimes bug.
79351
79352         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
79353         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
79354         Instead, declare a function that returns a pointer to an array,
79355         and use verify_type__ to declare the size of the array.
79356         Problem and germ of a solution reported by Bruno Haible.
79357         (verify_type__): Use 2, not 1, for bitfield size, to avoid
79358         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
79359
79360 2005-09-23  Jim Meyering  <jim@meyering.net>
79361
79362         Sync from coreutils.
79363         Correct build failure (socklen_t not defined) on at least
79364         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
79365         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
79366
79367 2005-09-23  Jim Meyering  <jim@meyering.net>
79368
79369         * modules/getaddrinfo (Depends-on): Add socklen.
79370
79371 2005-09-23  Bruno Haible  <bruno@clisp.org>
79372
79373         * tests/test-verify.c: New file.
79374
79375 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79376
79377         Sync from coreutils.
79378
79379         * modules/argmatch (Depends-on): Add verify.
79380         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
79381         unistd-safer.
79382         * modules/save-cwd (Depends-on): Likewise.
79383
79384         * modules/openat (Files): Add lib/openat-die.c.
79385         (Depends-on): Remove error, exitfail.
79386         Add dirname.
79387
79388         * modules/verify: New file.
79389         * MODULES.html.sh (Diagnostics <assert.h>): New section,
79390         with "verify" module.
79391
79392 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79393
79394         Sync from coreutils.
79395
79396         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
79397         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
79398         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
79399         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
79400         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
79401         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
79402         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
79403         Don't bother checking for string.h, stdlib.h, unistd.h.
79404         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
79405         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
79406         module's job.
79407         * m4/jm-macros.m4 (gl_MACROS): Likewise.
79408         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
79409
79410         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
79411         (gl_GETDATE): Use it.
79412
79413         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
79414
79415 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79416
79417         Sync from coreutils.
79418
79419         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
79420         stat-time.h.
79421         * lib/argmatch.h: Include verify.h
79422         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
79423         (ARGMATCH_ASSERT): Remove; unused.
79424         * lib/canonicalize.c: Assume STDC_HEADERS.
79425         * lib/exclude.c: Include "strcase.h".
79426         * lib/regex_internal.h [!defined _LIBC]: Likewise.
79427         * lib/getusershell.c: Include stdio--.h rather than stdio.h
79428         and stdio-safer.h.
79429         (getusershell): Call fopen, not fopen_safer.
79430         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
79431         Do not include unistd-safer.h.
79432         (save_cwd): Don't call fd_safer; no longer needed
79433         now that we include fcntl--.h.
79434
79435         * lib/getdate.y (relative_time): New type.
79436         (RELATIVE_TIME_0): New constant.
79437         (parser_control): Use relative_time instead of doing it ourselves.
79438         (%union): Add new relative_time rel member.
79439         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
79440         Now typeless.
79441         (relunit, relunit_snumber): Now of type rel.
79442         (zone, rel, relunit, get_date): Adjust to above changes.
79443
79444         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
79445         Do not include unistd-safer.h.
79446         (getloadavg): Don't call fd_safer; no longer needed
79447         now that we include fcntl--.h.
79448
79449         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
79450         (make_dir_parents): Treat ENOSYS like EEXIST.
79451
79452         Improve quality of diagnostics on restore_cwd failure.
79453         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
79454         (make_dir_parents): Last arg is now int * (for errno), not bool *.
79455         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
79456         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
79457         each time through the loop.  Do not diagnose restore_cwd failure;
79458         that is the caller's job (and perhaps the caller does not care).
79459
79460         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
79461         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
79462         If the file already exists but is not a directory, don't bother
79463         to try to make its parents.
79464         Close potential file descriptor leak if we can't chdir("/") (!).
79465         Don't always return true if chdir($PWD) fails; return true only
79466         if the requested action was done successfully (except for the
79467         chdir($PWD)).
79468         Don't log final directory unless we actually made it.
79469         Refactor to avoid duplicate code to fix up permissions.
79470         Don't attempt to fix up parent permissions if chdir($PWD) fails.
79471
79472         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
79473         to make it a bit faster and (I hope) clearer.
79474         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
79475         Fix bug in formats like %2N.
79476
79477         * lib/verify.h: New file.
79478
79479 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79480
79481         Sync from coreutils.
79482         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
79483
79484 2005-09-22  Jim Meyering  <jim@meyering.net>
79485
79486         Sync from coreutils.
79487
79488         * m4/lstat.m4 (gl_FUNC_LSTAT):
79489         Use AC_LIBSOURCES to require lstat.c and lstat.h.
79490         Remove obsolete comment.
79491         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
79492         * m4/xstrtod.m4: Likewise.
79493
79494         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
79495
79496 2005-09-22  Jim Meyering  <jim@meyering.net>
79497
79498         Sync from coreutils.
79499
79500         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
79501
79502         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
79503         the .tm_year member, since otherwise gcc-4.0 would now warn about
79504         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
79505
79506         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
79507         order to avoid an unsuppressible warning from gcc on 64-bit systems.
79508
79509         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
79510         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
79511         when run in a time zone for which daylight savings time is in effect
79512         for the starting date.
79513
79514         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
79515         stop us from restricting permissions of just-created absolute-named
79516         directories.
79517         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
79518         to restore initial working directory.
79519         * lib/mkdir-p.c (make_dir_parents): New parameter:
79520         different_working_dir, to tell caller if/when we change the working
79521         directory and are unable to return to the initial one.
79522         * lib/mkdir-p.h (make_dir_parents): Update prototype.
79523         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
79524         `return false'.  This fixes a bug introduced on 2004-07-30.
79525
79526         * lib/openat.c (fdopendir): Be sure to close the supplied
79527         file descriptor before returning.  This makes our replacement
79528         implementation a little closer to Solaris's, where fdopendir
79529         ties the file descriptor to the returned DIR* pointer.
79530         * lib/openat.c (unlinkat): New function.
79531         * lib/openat.h (unlinkat): Add prototype.
79532         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
79533         (openat_restore_fail): Rename from openat_restore_die.
79534         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
79535
79536         Provide an alternative to exiting immediately upon save_cwd or
79537         restore_cwd failure.  Now, an application can arrange e.g.,
79538         to perform a longjump in that case.
79539         * lib/openat.c: Include dirname.h.
79540         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
79541         (rpl_openat, fdopendir, fstatat): Call openat_save_die
79542         and openat_restore_die rather than calling error directly.
79543         Don't include "error.h" or "exitfail.h"; they're no longer needed.
79544
79545         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
79546         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
79547         define.
79548
79549         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
79550         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
79551                             int utc, int nanoseconds);
79552         Background:
79553         date should not have to allocate a megabyte of virtual memory to
79554         handle a format argument like +%1048575T.  When implemented with
79555         strftime, it must allocate such a buffer, use strftime to fill it
79556         in, print it, then free it.
79557         With fprintftime, it simply prints everything and exits.
79558         With no need for memory allocation, that's one fewer way to fail.
79559         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
79560         optional field width, not before, so we accept %9:z, not %:9z.
79561         (my_strftime): Be sure to use L_('x') for literals.
79562
79563         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
79564         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
79565         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
79566         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
79567         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
79568         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
79569         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
79570         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
79571         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
79572         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
79573         * lib/xgethostname.c, lib/xreadlink.c:
79574         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
79575
79576         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
79577         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
79578         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
79579         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
79580         and don't include <sys/file.h>).
79581
79582 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
79583
79584         Sync from coreutils.
79585
79586         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
79587         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
79588         [!LDAV_DONE]: Avoid unused variable warning.
79589
79590 2005-09-21  Bruno Haible  <bruno@clisp.org>
79591
79592         * lib/unicodeio.h (unicode_to_mb): New declaration.
79593
79594 2005-09-20  Derek Price  <derek@ximbiot.com>
79595
79596         * lib/getaddrinfo.c: Don't include <netdb.h> included from
79597         getaddrinfo.h.
79598
79599 2005-09-20  Bruno Haible  <bruno@clisp.org>
79600
79601         * gnulib-tool: Remove trailing slashes from the values specified for
79602         --source-base, --m4-base, --tests-base, --aux-dir.
79603         Suggested by Simon Josefsson <jas@extundo.com>.
79604
79605 2005-09-20  Bruno Haible  <bruno@clisp.org>
79606
79607         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
79608         func_modules_to_filelist, func_import, func_create_testdir): Make all
79609         sorting results locale-independent, so that gnulib-cache.m4 doesn't
79610         change when gnulib-tool is invoked in a different locale.
79611
79612 2005-09-19  Simon Josefsson  <jas@extundo.com>
79613
79614         * m4/socklen.m4: Fix typo.
79615
79616 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79617
79618         Use a consistent style for including <config.h>.
79619         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
79620         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
79621         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
79622         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
79623         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
79624         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
79625         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
79626         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
79627         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
79628         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
79629         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
79630         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
79631         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
79632         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
79633         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
79634         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
79635         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
79636         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
79637         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
79638         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
79639         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
79640         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
79641         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
79642         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
79643         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
79644         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
79645         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
79646         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
79647         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
79648         lib/xstrtoumax.c, lib/yesno.c:
79649         Standardize inclusion of config.h.
79650         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
79651         lib/inttostr.h:  Removed inclusion of config.h from header files.
79652         * lib/inttostr.c:  Adjusted in-tree users.
79653         * lib/timespec.h: Remove superfluous warning to include config.h.
79654         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
79655         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
79656         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
79657         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
79658         config.h with HAVE_CONFIG_H.
79659
79660 2005-09-19  Jim Meyering  <jim@meyering.net>
79661
79662         * modules/pathmax (License): Change to LGPL.
79663
79664 2005-09-19  Derek Price  <derek@ximbiot.com>
79665
79666         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
79667
79668 2005-09-19  Bruno Haible  <bruno@clisp.org>
79669
79670         * gnulib-tool (import): Provide default for --tests-base.
79671
79672 2005-09-19  Bruno Haible  <bruno@clisp.org>
79673
79674         * doc/quote.texi: New file, extracted from gnulib.texi.
79675         * doc/ctime.texi: New file, extracted from gnulib.texi.
79676         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
79677         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
79678         * doc/gnulib.texi: Include them.
79679
79680 2005-09-18  Bruno Haible  <bruno@clisp.org>
79681
79682         Portability fix.
79683         * gnulib-tool (func_readlink): New function.
79684         (func_ln_if_changed): Use it.
79685
79686 2005-09-18  Bruno Haible  <bruno@clisp.org>
79687
79688         * gnulib-tool: Support --with-tests also with --import.
79689         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
79690         (func_import): Use variables $testsbase and $inctests. Emit a
79691         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
79692         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
79693         SUBDIRS += $testsdir.
79694         (func_create_testdir): Update.
79695
79696 2005-09-18  Bruno Haible  <bruno@clisp.org>
79697
79698         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
79699         instead of $dry_run.
79700         (func_cp_if_changed, func_mv_if_changed): Remove functions.
79701         (func_ln_if_changed): Don't handle dry-run here.
79702         (func_import): In dry-run mode, detect more precisely which actions
79703         would be performed, and don't use "...ing" verbs.
79704
79705 2005-09-18  Bruno Haible  <bruno@clisp.org>
79706
79707         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
79708         (func_import): Use join on two temporary files instead of three nested
79709         loops, in order to determine which files are new or old.
79710
79711 2005-09-18  Bruno Haible  <bruno@clisp.org>
79712
79713         * gnulib-tool (func_import): Comment out code that spits out the
79714         new files with --dry-run.
79715
79716 2005-09-18  Bruno Haible  <bruno@clisp.org>
79717
79718         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
79719
79720 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79721
79722         * lib/stat-time.h: New file.
79723         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
79724         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
79725         in a different way.
79726         (timespec_cmp): New function.
79727         * lib/utimecmp.c: Include stat-time.h.
79728         (SYSCALL_RESOLUTION): Depend on whether various struct stat
79729         members exist, not on the obsolescent ST_MTIM_NSEC.
79730         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
79731
79732 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79733
79734         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
79735
79736 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79737
79738         * MODULES.html.sh (File system functions): Add stat-time.
79739         * modules/stat-time: New file.
79740         * modules/timespec (Files): Remove m4/st_mtim.m4; this
79741         is now done in a different way, by the stat-time module.
79742         * modules/utimecmp (Depends-on): Add stat-time.
79743
79744 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79745
79746         * m4/st_mtim.m4: Remove.  Superseded by...
79747         * m4/stat-time.m4: New file.
79748         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
79749         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
79750
79751 2005-09-15  Derek Price  <derek@ximbiot.com>
79752
79753         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
79754
79755 2005-09-15  Derek Price  <derek@ximbiot.com>
79756
79757         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
79758         * lib/regex_internal.c: Ditto, using this...
79759         (__GNUC_PREREQ): ...new macro.
79760         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
79761         using...
79762         (__GNUC_PREREQ): ...this new macro.
79763
79764         * lib/strstr.h: Include string.h. Define strstr as a macro here.
79765
79766 2005-09-15  Derek Price  <derek@ximbiot.com>
79767             Paul Eggert  <eggert@cs.ucla.edu>
79768
79769         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
79770         changes, consolidating in...
79771         * lib/regex_internal.h: ...this file.
79772
79773 2005-09-13  Jim Meyering  <jim@meyering.net>
79774
79775         * lib/canon-host.c: Filter through gnu indent and reword comments
79776         slightly.
79777         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
79778
79779 2005-09-13  Derek Price  <derek@ximbiot.com>
79780
79781         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
79782         failure.
79783         Reported by Jim Meyering  <jim@meyering.net>.
79784
79785 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79786
79787         * lib/base64.c: Typo.
79788         (base64_encode): Put b64str in initialized data section.
79789
79790 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
79791
79792         Merge glibc and coreutils changes into gnulib, plus a few
79793         extra fixes.
79794         * lib/md5.c: Use #error rather than a string.
79795         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
79796         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
79797         (__attribute__): Define to empty for non recent-GCC.
79798         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
79799         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
79800         Renamed from their non-__ counterparts, with new macros replacing
79801         them if not _LIBC.  Add __THROW attribute.
79802         (rol): Remove.
79803         (struct md5_ctx): Align buffer if using GCC.
79804         * lib/sha1.h (struct sha1_ctx): Likewise.
79805         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
79806         The old name was backwards.
79807         (NOTSWAP): Remove; not used.
79808         (rol): New macro, moved here from md5.h.
79809         (sha1_process_block): Remove a FIXME that doesn't make sense.
79810
79811 2005-09-12  Derek Price  <derek@ximbiot.com>
79812
79813         Return usable errors from canon-host.
79814         * lib/canon-host.h: New file.
79815         * lib/canon-host.c (canon_host): Wrap...
79816         (canon_host_r): ...this new function, which now relies exclusively on
79817         getaddrinfo.
79818         (ch_strerror): New function.
79819         (last_cherror): New global.
79820         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
79821         interface.
79822         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
79823         void *.
79824         (freeaddrinfo): Free ai->ai_canonname when set.
79825
79826 2005-09-12  Derek Price  <derek@ximbiot.com>
79827
79828         Make canon-host require getaddrinfo.
79829         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
79830         AC_LIBSOURCE canon-host.h.  Call...
79831         (gl_PREREQ_CANON_HOST): ...this new function, which requires
79832         gl_GETADDRINFO.
79833         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
79834
79835 2005-09-12  Derek Price  <derek@ximbiot.com>
79836
79837         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
79838         LGPL.
79839         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
79840
79841 2005-09-12  Derek Price  <derek@ximbiot.com>
79842
79843         * lib/gai_strerror.c: Include config.h when available.  Include
79844         getaddrinfo.h before other headers to test interface.
79845         Reported by Larry Jones <lawrence.jones@ugs.com>.
79846
79847 2005-09-12  Derek Price  <derek@ximbiot.com>
79848             Paul Eggert  <eggert@cs.ucla.edu>
79849
79850         * modules/glob (Files): Add glob-libc.h.
79851
79852 2005-09-12  Derek Price  <derek@ximbiot.com>
79853             Paul Eggert  <eggert@cs.ucla.edu>
79854
79855         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
79856         glob_.h, glob-libc.h.
79857         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
79858
79859 2005-09-12  Derek Price  <derek@ximbiot.com>
79860             Paul Eggert  <eggert@cs.ucla.edu>
79861
79862         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
79863         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
79864         protecting things that should be done only in gnulib contexts.
79865         * lib/glob_.h: New file, containing only the glob things needed for
79866         gnulib.
79867         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
79868         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
79869         (glob, globfree, glob_pattern_p): Now defined simply in terms of
79870         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
79871         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
79872         and to respect the namespace rules better.
79873
79874 2005-09-08  Simon Josefsson  <jas@extundo.com>
79875
79876         * modules/socklen: New file.
79877
79878 2005-09-08  Simon Josefsson  <jas@extundo.com>
79879
79880         * m4/socklen.m4: New file.
79881
79882 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79883
79884         * modules/utimens (Files): Add m4/utimbuf.m4, since
79885         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
79886         Reported by Sergey Poznyakoff.
79887
79888 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79889
79890         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
79891         definitions, since that's the preferred style in glibc.
79892         Fix a minor spacing issue, and update copyright notice to match
79893         glibc's.
79894
79895 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79896
79897         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
79898
79899 2005-09-06  Simon Josefsson  <jas@extundo.com>
79900
79901         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
79902         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
79903
79904 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79905
79906         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
79907         warning.
79908
79909 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79910
79911         * config/srclist.txt: Add glibc bug 1302.
79912
79913 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
79914
79915         Change bitset word type from unsigned int to unsigned long int,
79916         as this has better performance on typical 64-bit hosts.
79917         Port bitset code to hosts with unusual word sizes.
79918         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
79919         (build_collating_symbol):
79920         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
79921         argument is a bitset.  This is merely a style issue, but it makes
79922         it clearer that an entire array is expected.
79923         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
79924         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
79925         Port to the case where bitset_word is not the same as unsigned int.
79926         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
79927         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
79928         Likewise.
79929         * lib/regexec.c (check_dst_limits_calc_pos_1,
79930         check_subexp_matching_top):
79931         (build_trtable, group_nodes_into_DFAstates):
79932         Likewise.
79933         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
79934         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
79935         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
79936         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
79937         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
79938         * lib/regcomp.c (optimize_subexps, lower_subexp):
79939         Work even if bitset_word has holes in its bitwise representation.
79940         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
79941         * lib/regexec.c (check_dst_limits_calc_pos_1,
79942         check_subexp_matching_top):
79943         Likewise.
79944         * lib/regex_internal.c (re_string_reconstruct):
79945         Don't assume UCHAR_MAX == 255.
79946         * lib/regex_internal.h (bitset_set_all): Likewise.
79947         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
79948         All uses changed.
79949         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
79950         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
79951         All uses changed.
79952         (BITSET_WORD_MAX): New macro.
79953         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
79954         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
79955         (bitset_empty, bitset_copy):
79956         Prefer sizeof (bitset) to multiplying it out ourselves.
79957         (bitset_not_merge): Remove; unused.
79958         (bitset_contain): Return bool, not unsigned int with one bit on.
79959         All callers changed.
79960         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
79961         alignment than re_node_set; do this by defining a new internal
79962         type struct dests_alloc and using it to allocate memory.
79963
79964 2005-09-05  Bruno Haible  <bruno@clisp.org>
79965
79966         * gnulib-tool (func_import): Fix comparison in handling of symbolic
79967         links.
79968
79969 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
79970
79971         * modules/size_max (Makefile.am): Add size_max.h
79972
79973 2005-09-04  Derek Price  <derek@ximbiot.com>
79974
79975         * gnulib-tool (func_import): Fix reversed $symbolic logic.
79976
79977 2005-09-03  Simon Josefsson  <jas@extundo.com>
79978
79979         * gnulib-tool: Fix typo.
79980
79981 2005-09-03  Simon Josefsson  <jas@extundo.com>
79982
79983         * config/srclist.txt: Add glibc bug 1293.
79984
79985 2005-09-03  Derek Price  <derek@ximbiot.com>
79986
79987         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
79988         From Larry Jones <lawrence.jones@ugs.com>.
79989
79990 2005-09-02  Simon Josefsson  <jas@extundo.com>
79991
79992         * modules/socklen: New file.
79993
79994 2005-09-02  Simon Josefsson  <jas@extundo.com>
79995
79996         * modules/havelib: New module.
79997
79998         * modules/gettext, modules/iconv, modules/lock, modules/readline:
79999         Use havelib.
80000
80001 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80002
80003         Check for arithmetic overflow when calculating sizes, to prevent
80004         some buffer-overflow issues.  These patches are conservative, in the
80005         sense that when I couldn't determine whether an overflow was possible,
80006         I inserted a run-time check.
80007         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
80008         macros.
80009         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
80010         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
80011         (re_xnrealloc, re_x2nrealloc): New inline functions.
80012         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
80013         parse_bracket_exp):
80014         (build_equiv_class, build_charclass): Check for arithmetic overflow
80015         in size expression calculations.
80016         * lib/regex_internal.c (re_string_realloc_buffers):
80017         (build_wcs_upper_buffer, re_node_set_add_intersect):
80018         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
80019         (re_dfa_add_node, register_state): Likewise.
80020         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
80021         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
80022         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
80023         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
80024
80025 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80026
80027         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80028         m4/ulonglong.m4.  Problem reported by Martin Lambers.
80029
80030 2005-09-02  Bruno Haible  <bruno@clisp.org>
80031
80032         Support for lib vs. lib64 distinction on biarch platforms.
80033         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
80034         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
80035         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
80036
80037 2005-09-02  Bruno Haible  <bruno@clisp.org>
80038
80039         * gnulib-tool (import): In the other first-use case, provide defaults
80040         as well.
80041
80042 2005-09-02  Bruno Haible  <bruno@clisp.org>
80043
80044         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
80045         patches not yet found in the latest gettext release.
80046
80047 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80048
80049         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
80050         to avoid a collision with bits/local_lim.h in glibc.
80051         All uses changed.  Problem reported by Dmitry V. Levin in
80052         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
80053
80054         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
80055         bugs in int versus size_t comparisons.
80056         (re_string_context_at): Fix bug where the code assumed that
80057         Idx is signed.
80058
80059         Use bool where appropriate.
80060         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
80061         All callers changed.
80062         (calc_eclosure_iter): Likewise, for ROOT arg.
80063         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
80064         (build_charclass_op): Likewise, for NON_MATCH arg.
80065         * lib/regex_internal.c (re_string_allocate, re_string_construct):
80066         (re_string_construct_common): Likewise, for ICASE arg.
80067         * lib/regexec.c (re_search_2_stub, re_search_stub):
80068         Likewise, for RET_LEN arg.
80069         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
80070         (set_regs): Likewise, for FL_BACKTRACK arg.
80071         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
80072         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
80073         (calc_eclosure_iter, parse_bracket_exp):
80074         Use bool for internal variables that are booleans.
80075         * lib/regexec.c (re_search_internal, check_matching,
80076         proceed_next_node):
80077         (set_regs, build_sifted_states, sift_states_bkref):
80078         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
80079         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80080         (find_collation_sequence_value):
80081         Likewise.
80082         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
80083         (re_node_set_compare):
80084         Return bool, not int. All callers changed.
80085         * lib/regexec.c (check_halt_node_context, check_dst_limits):
80086         (build_trtable, check_node_accept): Likewise.
80087         * lib/regex_internal.h: Include stdbool.h.
80088
80089         Fix bugs uncovered when converting to bool.
80090         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
80091         failure instead of charging ahead blindly.
80092         * lib/regex_internal.c (register_state): Likewise.
80093         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
80094         for freeing internal storage.
80095         (group_nodes_into_DFA_states): Use unsigned int, not int, for
80096         bitset pieces used as boolean, to avoid undefined behavior
80097         on hosts that do int overflow checking.
80098
80099 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80100
80101         * config/srclist.txt: Add glibc bugs 1285-1287.
80102
80103 2005-09-01  Jim Meyering  <jim@meyering.net>
80104
80105         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
80106         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
80107         Require gl_STAT_MACROS, too.
80108
80109 2005-09-01  Bruno Haible  <bruno@clisp.org>
80110
80111         * gnulib-tool (import): In the first-use case, provide defaults.
80112
80113 2005-09-01  Bruno Haible  <bruno@clisp.org>
80114
80115         * gnulib-tool (func_import): Remove the .tmp files.
80116
80117 2005-09-01  Bruno Haible  <bruno@clisp.org>
80118
80119         * gnulib-tool (func_import): Fix handling of symbolic links.
80120
80121 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80122
80123         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
80124         old glibc regex code mishandles strings longer than 2**31 bytes.
80125         This patch fixes this when the regex code is used in gnulib
80126         (i.e., outside glibc).
80127
80128         This patch should not affect the use of the regex code inside
80129         glibc.  No doubt this problem also needs to be handled for glibc
80130         as well, but the result will be an incompatible change to the
80131         glibc ABI, and the old ABI will have to be supported too.  That
80132         can be the the subject for another patch.
80133
80134         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
80135         governing whether the rest of this patch is active.  By default,
80136         the macro is disabled and the patch has no effect.
80137         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
80138         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
80139         (struct re_pattern_buffer, re_search, re_search_2, re_match):
80140         (re_match_2, re_set_registers): Use the new types.
80141         * lib/regex_internal.h (Idx, re_hashval_t): New types.
80142         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
80143         New macros.
80144         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
80145         (re_string_context_at, bin_tree_t, re_dfastate_t):
80146         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
80147         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
80148         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
80149         (re_string_char_size_at, re_string_wchar_at):
80150         (re_string_elem_size_at):
80151         Use the new types and macros to port to 64-bit hosts.
80152         Use unsigned types for internal values, so that the code
80153         mostly works even for arrays larger than SSIZE_MAX.
80154         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
80155         (search_duplicated_node, calc_eclosure_iter, fetch_number):
80156         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
80157         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
80158         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
80159         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
80160         (calc_inveclosure, parse_dup_op, build_range_exp):
80161         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
80162         (fetch_number, create_token_tree, mark_opt_subexp):
80163         Likewise.
80164         * lib/regex_internal.c (re_string_construct_common,
80165         create_ci_newstate):
80166         (create_cd_newstate, re_string_allocate, re_string_construct):
80167         (re_string_realloc_buffers, build_wcs_upper_buffer):
80168         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
80169         (re_string_reconstruct, re_string_peek_byte_case):
80170         (re_string_fetch_byte_case, re_string_context_at):
80171         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
80172         (re_node_set_init_copy, re_node_set_add_intersect):
80173         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80174         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80175         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
80176         (re_acquire_state, re_acquire_state_context, register_state):
80177         Likewise.
80178         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
80179         search_cur_bkref_entry):
80180         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
80181         (re_search_internal, re_search_2_stub, re_search_stub)
80182         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
80183         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
80184         (update_cur_sifted_state, check_dst_limits):
80185         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80186         (check_subexp_limits, sift_states_bkref, merge_state_array):
80187         (check_subexp_matching_top, get_subexp, get_subexp_sub):
80188         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
80189         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
80190         (expand_bkref_cache, check_node_accept_bytes):
80191         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
80192         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
80193         (acquire_init_state_context, check_halt_node_context):
80194         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
80195         (sift_states_backward, clean_state_log_if_needed):
80196         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
80197         (find_recover_state, transit_state_sb, transit_state_mb):
80198         (transit_state_bkref, build_trtable, match_ctx_clean):
80199         Likewise.
80200         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
80201         to work around an assumption that REG_MISSING is negative.
80202
80203         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
80204         (seek_collating_symbol_entry) [defined _LIBC]:
80205         (lookup_collation_sequence_value) [defined _LIBC]:
80206         (build_range_exp, build_collating_symbol) [defined _LIBC]:
80207         Use prototypes rather than old-style function definitions.
80208         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
80209         (transit_state_sb) [0]:
80210         (find_collation_sequence_value) [defined _LIBC]: Likewise.
80211
80212         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
80213         rm_eo.
80214
80215         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
80216         (optimize_subexps, lower_subexp):
80217         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
80218         since the signed shift might overflow.  Use 1u<<31 instead.
80219         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80220         Likewise.
80221         * lib/regexec.c (check_dst_limits_calc_pos_1,
80222         check_subexp_matching_top): Likewise.
80223
80224         * lib/regcomp.c (optimize_subexps, lower_subexp):
80225         Use CHAR_BIT rather than 8, for clarity.
80226         * lib/regexec.c (check_dst_limits_calc_pos_1):
80227         (check_subexp_matching_top): Likewise.
80228         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
80229         have to worry about portability issues when shifting it left.
80230         Remove no-longer-needed test for table_size > 0.
80231         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
80232         in a word, as the resulting behavior is undefined.
80233         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
80234         in one case, a <= should have been an <, and in another case the
80235         whole test was missing.
80236         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
80237         the standard name CHAR_BIT.
80238         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
80239         this is not true on one's complement and signed-magnitude hosts.
80240
80241         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
80242         next_last_offset.
80243         (struct re_dfa_t): Remove unused member states_alloc.
80244         * lib/regcomp.c (init_dfa): Don't initialize unused members.
80245
80246 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80247
80248         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
80249         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
80250         and large-file glibc and in 32-bit large-file Solaris.
80251
80252 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80253
80254         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
80255         lengths fit in regoff_t; this isn't true if regoff_t is the same
80256         width as size_t.
80257         * lib/regex.c (re_search_internal): 5th arg is LAST_START
80258         (= START + RANGE) instead of RANGE.  This avoids overflow
80259         problems when regoff_t is the same width as size_t.
80260         All callers changed.
80261         (re_search_2_stub): Check for overflow when adding the
80262         sizes of the two strings.
80263         (re_search_stub): Check for overflow when adding START
80264         to RANGE; if it occurs, substitute the extreme value.
80265
80266 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80267
80268         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
80269
80270 2005-08-31  Jim Meyering  <jim@meyering.net>
80271
80272         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
80273         a pointer-to-const.
80274         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
80275         (register_state): Likewise.
80276         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
80277         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80278         (group_nodes_into_DFAstates): Likewise.
80279
80280 2005-08-31  Jim Meyering  <jim@meyering.net>
80281
80282         * check-module: Add a FIXME comment.
80283
80284 2005-08-31  Eric Blake  <ebb9@byu.net>
80285
80286         * modules/unistd-safer (Files): Add unistd--.h.
80287         * modules/stdio-safer (Files): Add stdio--.h.
80288
80289 2005-08-31  Derek Price  <derek@ximbiot.com>
80290
80291         * lib/getdelim.c (getdelim): Return EOF on EOF.
80292         Reported by Larry Jones <lawrence.jones@ugs.com>.
80293
80294 2005-08-31  Bruno Haible  <bruno@clisp.org>
80295
80296         Avoid unnecessary diffs in the generated lib/Makefile.am.
80297         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
80298         the generated files.
80299         (func_import): Don't set cmd.
80300
80301 2005-08-31  Bruno Haible  <bruno@clisp.org>
80302
80303         * lib/strstr.c: Include <stddef.h>, for NULL.
80304         * lib/strcasestr.c: Likewise.
80305         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80306
80307 2005-08-31  Bruno Haible  <bruno@clisp.org>
80308
80309         * gnulib-tool: New option --macro-prefix.
80310         (func_import): Use macro_prefix.
80311         (import): Handle option --macro-prefix.
80312
80313 2005-08-31  Bruno Haible  <bruno@clisp.org>
80314
80315         * gnulib-tool (import): Rename most ac_* variables to cached_*.
80316         Also use new variables cached_lgpl, cached_libtool.
80317
80318 2005-08-31  Bruno Haible  <bruno@clisp.org>
80319
80320         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
80321         always instantiating them.
80322
80323 2005-08-31  Bruno Haible  <bruno@clisp.org>
80324
80325         * gnulib-tool (func_import): Read the previous cached settings
80326         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
80327         earlier added by gnulib but are now dropped. Warn when a gnulib file
80328         overwrites a non-gnulib file.
80329
80330 2005-08-31  Bruno Haible  <bruno@clisp.org>
80331
80332         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
80333         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
80334         projects that don't keep autogenerated files in CVS. Put into
80335         actioncmd only the specified modules, not the transitive closure.
80336
80337 2005-08-31  Bruno Haible  <bruno@clisp.org>
80338
80339         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
80340         Create directories that shall be filled.
80341         (import): Don't look for gl_* macros in configure.ac. Recurse across
80342         all directories containing a gnulib-cache.m4 files, if meaningful.
80343
80344 2005-08-31  Bruno Haible  <bruno@clisp.org>
80345
80346         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
80347         (import): Set seen_libtool when we see gl_LIBTOOL.
80348
80349 2005-08-31  Bruno Haible  <bruno@clisp.org>
80350
80351         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
80352         declaration macro definitions from generated gnulib.m4.
80353
80354 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
80355
80356         * lib/iconvme.h: Add prototype for iconv_alloc.
80357
80358 2005-08-29  Simon Josefsson  <jas@extundo.com>
80359
80360         * lib/iconvme.c: Fix errno.
80361
80362 2005-08-29  Bruno Haible  <bruno@clisp.org>
80363
80364         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
80365         that it works when the directory contains spaces.
80366
80367 2005-08-29  Bruno Haible  <bruno@clisp.org>
80368
80369         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
80370
80371 2005-08-29  Bruno Haible  <bruno@clisp.org>
80372
80373         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
80374         Emit more advice.
80375
80376 2005-08-29  Bruno Haible  <bruno@clisp.org>
80377         and Stepan Kasal  <kasal@ucw.cz>
80378
80379         * check-module: If more parameters are given, check each of them
80380         separately; add more exceptions, as noted by Jim Meyering.
80381         (check_module): New procedure.
80382         (%exempt_header): Now contains all exceptions.
80383
80384 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
80385
80386         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
80387
80388 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80389
80390         * lib/iconvme.c: Split iconv_string into iconv_alloc.
80391
80392 2005-08-28  Bruno Haible  <bruno@clisp.org>
80393
80394         * m4/gnulib-tool.m4: New file.
80395
80396 2005-08-27  Jim Meyering  <jim@meyering.net>
80397
80398         * modules/unistd-safer (Files): Add pipe-safer.c.
80399         * modules/fcntl-safer (Files): Add creat-safer.c.
80400
80401 2005-08-27  Jim Meyering  <jim@meyering.net>
80402
80403         * m4/stdlib-safer.m4: New file.  From coreutils.
80404         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
80405         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
80406         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
80407         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
80408         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
80409
80410 2005-08-27  Jim Meyering  <jim@meyering.net>
80411
80412         * lib/fopen-safer.c: Merge minor changes from coreutils.
80413         * lib/dup-safer.c: Likewise.
80414         * lib/fd-safer.c: Likewise.
80415
80416         Merge from coreutils.
80417         * lib/stdio--.h: New file.
80418         * lib/stdlib--.h: New file.
80419         * lib/mkstemp-safer.c: New file.
80420
80421         GNU tar needs these.
80422         * lib/pipe-safer.c: New file.
80423         * lib/creat-safer.c: New file.
80424         * lib/fcntl--.h (creat): Define to creat_safer.
80425         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
80426         * lib/unistd--.h (pipe): Define to pipe_safer.
80427         * lib/unistd-safer.h: Declare pipe_safer.
80428
80429 2005-08-26  Simon Josefsson  <jas@extundo.com>
80430
80431         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
80432         Haible <bruno@clisp.org>.
80433
80434 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
80435
80436         * lib/regex_internal.h: Remove all references to
80437         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
80438         or better.
80439         (bitset_not, bitset_merge, bitset_not_merge):
80440         (bitset_mask, re_string_allocate, re_string_construct):
80441         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
80442         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
80443         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
80444         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
80445         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80446         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80447         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
80448         (re_acquire_state_context):
80449         Remove unnecessary forward decls.
80450         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
80451         Put __attribute at function definition,
80452         now that the function decl has been removed.
80453         * lib/regex_internal.c (re_string_peek_byte_case):
80454         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
80455         Likewise.
80456
80457 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
80458
80459         * m4/regex.m4: Add AC_PREREQ(2.50).
80460         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
80461
80462 2005-08-25  Simon Josefsson  <jas@extundo.com>
80463
80464         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
80465         __fsetlocking.
80466
80467 2005-08-25  Simon Josefsson  <jas@extundo.com>
80468
80469         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
80470         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
80471         GLIBC specific code.
80472
80473 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80474
80475         Make regex safe for g++.  This fixes one real bug (an "err"
80476         that should have been "*err").  g++ problem reported by
80477         Sam Steingold.
80478         * lib/regex_internal.h (re_calloc): New macro, consistent with
80479         re_malloc etc.  All callers of calloc changed to use re_calloc.
80480         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
80481         not int.  All callers changed.
80482         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
80483         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
80484         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
80485         (find_recover_state): Change "err" to "*err"; this fixes what
80486         appears to be a real bug.
80487         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
80488         versus int.
80489
80490 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80491
80492         * modules/regex (Depends-on): Add malloc, since the code
80493         assumes that !malloc(0) means failure.
80494
80495 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80496
80497         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
80498
80499         alloca modernization/simplification for regex.
80500         * lib/regex.c: Remove portability cruft for alloca.  This no longer
80501         needs to be at the start of the file, and can be moved into
80502         regex_internal.h and simplified.
80503         * lib/regex_internal.h: Include <alloca.h>.
80504         (__libc_use_alloca) [!defined _LIBC]: New macro.
80505         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
80506         now works outside glibc.
80507
80508 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80509
80510         * config/srclist.txt: Add glibc bugs 1241, 1245.
80511
80512 2005-08-25  Jim Meyering  <jim@meyering.net>
80513
80514         * lib/open-safer.c: Include <config.h>.
80515         Otherwise, we'd lose LARGEFILE support in any file using
80516         e.g. "fcntl--.h"
80517
80518 2005-08-25  Bruno Haible  <bruno@clisp.org>
80519
80520         * m4/minmax.m4: Require autoconf 2.52.
80521         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
80522         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
80523         alternatives of translit over the alphabet.
80524         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
80525
80526 2005-08-24  Simon Josefsson  <jas@extundo.com>
80527
80528         * tests/test-getpass.c: New file.
80529
80530 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80531
80532         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
80533         for GNU regex features.
80534
80535 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80536
80537         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
80538         * lib/regex.h (regerror): Likewise.
80539
80540         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
80541         requires this.  (The code never needed it.)
80542
80543         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
80544         All uses of recently-renamed identifiers changed to use the new,
80545         POSIX-compliant names.  The code will build and run just fine
80546         without these changes, but it's better to eat our own dog food
80547         and use the standard-conforming names.
80548
80549         * lib/regex.h: Fix a multitude of POSIX name space violations.
80550         These changes have an effect only for programs that define
80551         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
80552         do not change anything for programs compiled in the normal way.
80553         Also, there is no effect on the ABI.
80554
80555         (_REGEX_SOURCE): New macro.
80556         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
80557         defined and _GNU_SOURCE is not; this fixes a name space violation.
80558
80559         Rename the following macros to obey POSIX requirements.
80560         The old names are still visible as macros if _REGEX_SOURCE is defined.
80561         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
80562         RE_BACKSLASH_ESCAPE_IN_LISTS.
80563         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
80564         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
80565         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
80566         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
80567         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
80568         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
80569         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
80570         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
80571         (REG_INTERVALS): renamed from RE_INTERVALS.
80572         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
80573         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
80574         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
80575         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
80576         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
80577         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
80578         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
80579         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
80580         RE_UNMATCHED_RIGHT_PAREN_ORD.
80581         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
80582         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
80583         (REG_DEBUG): renamed from RE_DEBUG.
80584         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
80585         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
80586         unusual, since we can't clash with the POSIX REG_ICASE.
80587         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
80588         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
80589         (REG_NO_SUB): renamed from RE_NO_SUB.
80590         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
80591         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
80592         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
80593         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
80594         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
80595         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
80596         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
80597         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
80598         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
80599         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
80600         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
80601         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
80602         RE_SYNTAX_POSIX_MINIMAL_BASIC.
80603         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
80604         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
80605         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
80606         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
80607         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
80608         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
80609         (REG_FIXED): Renamed from REGS_FIXED.
80610         (REG_NREGS): Renamed from RE_NREGS.
80611
80612         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
80613         of other REG_* macros, since POSIX says the user is allowed to
80614         #undef these macros selectively.
80615
80616         (reg_errcode_t): Update comment stating what other tables need
80617         to be consistent.
80618
80619         Rename the following enum values to obey POSIX requirements.
80620         The old names are still visible as macros.
80621         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
80622         is not defined, since GNU is supposed to be a superset of POSIX as
80623         much as possible, and since we want reg_errcode_t to be a signed
80624         type for implementation consistency.
80625         (_REG_NOERROR): Renamed from REG_NOERROR.
80626         (_REG_NOMATCH): Renamed from REG_NOMATCH.
80627         (_REG_BADPAT): Renamed from REG_BADPAT.
80628         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
80629         (_REG_ECTYPE): Renamed from REG_ECTYPE.
80630         (_REG_EESCAPE): Renamed from REG_EESCAPE.
80631         (_REG_ESUBREG): Renamed from REG_ESUBREG.
80632         (_REG_EBRACK): Renamed from REG_EBRACK.
80633         (_REG_EPAREN): Renamed from REG_EPAREN.
80634         (_REG_EBRACE): Renamed from REG_EBRACE.
80635         (_REG_BADBR): Renamed from REG_BADBR.
80636         (_REG_ERANGE): Renamed from REG_ERANGE.
80637         (_REG_ESPACE): Renamed from REG_ESPACE.
80638         (_REG_BADRPT): Renamed from REG_BADRPT.
80639         (_REG_EEND): Renamed from REG_EEND.
80640         (_REG_ESIZE): Renamed from REG_ESIZE.
80641         (_REG_ERPAREN): Renamed from REG_ERPAREN.
80642         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
80643         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
80644         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
80645         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
80646
80647         (_REG_RE_NAME, _REG_RM_NAME): New macros.
80648         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
80649         changed.  But support the old name if the new one is not defined
80650         and if _REGEX_SOURCE.
80651
80652         Change the following member names in struct re_pattern_buffer.
80653         The old names are still supported if !_REGEX_SOURCE.
80654         The new names are always supported, regardless of _REGEX_SOURCE.
80655         (re_buffer): Renamed from buffer.
80656         (re_allocated): Renamed from allocated.
80657         (re_used): Renamed from used.
80658         (re_syntax): Renamed from syntax.
80659         (re_fastmap): Renamed from fastmap.
80660         (re_translate): Renamed from translate.
80661         (re_can_be_null): Renamed from can_be_null.
80662         (re_regs_allocated): Renamed from regs_allocated.
80663         (re_fastmap_accurate): Renamed from fastmap_accurate.
80664         (re_no_sub): Renamed from no_sub.
80665         (re_not_bol): Renamed from not_bol.
80666         (re_not_eol): Renamed from not_eol.
80667         (re_newline_anchor): Renamed from newline_anchor.
80668
80669         Change the following member names in struct re_registers.
80670         The old names are still supported if !_REGEX_SOURCE.
80671         The new names are always supported, regardless of _REGEX_SOURCE.
80672         (rm_num_regs): Renamed from num_regs.
80673         (rm_start): Renamed from start.
80674         (rm_end): Renamed from end.
80675
80676         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
80677         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
80678         Prepend __ to parameter names.
80679
80680         Undo yesterday's changes.
80681
80682 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80683
80684         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
80685         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
80686         lib/regex.c.
80687
80688 2005-08-24  Jim Meyering  <jim@meyering.net>
80689
80690         Sync from coreutils.
80691         * m4/fcntl-safer.m4: New file.
80692
80693         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
80694         and object files for this module.
80695
80696 2005-08-24  Jim Meyering  <jim@meyering.net>
80697
80698         Sync from coreutils.
80699         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
80700
80701 2005-08-24  Jim Meyering  <jim@meyering.net>
80702
80703         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
80704         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
80705
80706 2005-08-24  Jim Meyering  <jim@meyering.net>
80707
80708         * modules/fcntl-safer: New module.
80709         * modules/fts (Depends-on): Add fcntl-safer.
80710         * MODULES.html.sh (File descriptor based Input/Output):
80711         Add fcntl-safer.
80712
80713 2005-08-24  Bruno Haible  <bruno@clisp.org>
80714
80715         Support for unit test modules.
80716         * modules/README: Mention tests modules.
80717         * modules/TEMPLATE-TESTS: New file.
80718         * gnulib-tool: New options --extract-tests-module, --with-tests and
80719         --tests-base (unused for the moment).
80720         (testsbase, inctests): New variables.
80721         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
80722         (func_verify_module): Exclude TEMPLATE-TESTS.
80723         (func_verify_nontests_module, func_verify_tests_module): New functions.
80724         (func_get_dependencies): Add implicit dependency for tests modules.
80725         (func_get_tests_module): New function.
80726         (func_modules_transitive_closure): When --with-tests was specified,
80727         include the unit tests as well, unless explicitly avoided.
80728         (func_emit_lib_Makefile_am): Ignore the tests modules here.
80729         (func_emit_tests_Makefile_am): New function.
80730         (func_create_testdir): When --with-tests was specified, emit a
80731         tests/ directory.
80732         * MODULES.html.sh (Future developments): Update.
80733
80734 2005-08-24  Bruno Haible  <bruno@clisp.org>
80735
80736         * modules/tls-tests: New file.
80737         * tests/test-tls.c: New file, from GNU gettext.
80738
80739 2005-08-24  Bruno Haible  <bruno@clisp.org>
80740
80741         * modules/lock-tests: New file.
80742         * tests/test-lock.c: New file, from GNU gettext.
80743
80744 2005-08-24  Bruno Haible  <bruno@clisp.org>
80745
80746         * lib/lock.h: Add multiple inclusion guard.
80747         * lib/tls.h: Add multiple inclusion guard.
80748
80749 2005-08-24  Bruno Haible  <bruno@clisp.org>
80750
80751         * gnulib-tool: Add support for the --aux-dir option to
80752         --create-testdir, --create-megatestdir, --test, --megatest.
80753         (func_create_testdir, func_create_megatestdir): Optionally emit a
80754         AC_CONFIG_AUX_DIR directive.
80755         (create-testdir, create-megatestdir, test, megatest): Provide a
80756         default value for $auxdir.
80757
80758 2005-08-24  Bruno Haible  <bruno@clisp.org>
80759
80760         * gnulib-tool (import): Use compound statement instead of subshell
80761         where possible.
80762
80763 2005-08-24  Bruno Haible  <bruno@clisp.org>
80764
80765         * gnulib-tool (import): Change --aux-dir default to "build-aux".
80766
80767 2005-08-24  Bruno Haible  <bruno@clisp.org>
80768
80769         * gnulib-tool (func_version): Update.
80770
80771 2005-08-24  Bruno Haible  <bruno@clisp.org>
80772
80773         * gnulib-tool (func_import, func_create_testdir,
80774         func_create_megatestdir): Quote all autoconf macro arguments.
80775
80776 2005-08-24  Bruno Haible  <bruno@clisp.org>
80777
80778         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
80779         option --force, because --force causes the aclocal.m4 of each
80780         subdirectory to be newer than the corresponding config.h.in.
80781
80782 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80783
80784         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
80785         All contents moved to gl_REGEX.
80786         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
80787         assume that it does.
80788
80789 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80790
80791         * lib/regex.h (REG_NOSYS)
80792         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
80793         Define, since POSIX requires it as of 2001.
80794         (_REG_ENOSYS)
80795         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
80796         New private symbol, used to keep the enum signed in all cases.
80797         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
80798         Youngman in
80799         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
80800
80801         * lib/regex_internal.c (re_string_skip_chars, register_state):
80802         (calc_state_hash):
80803         Remove forward decls; no longer needed now that we use prototypes.
80804         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
80805         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
80806         (clean_state_log_if_needed): Likewise.
80807
80808 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80809
80810         * config/srclist.txt: Add glibc bugs 1231-1233.
80811
80812 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80813
80814         Fix problems reported by Sam Steingold in
80815         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
80816         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
80817         assumed that reg_errcode_t is a signed type, which is not
80818         necessarily true if _XOPEN_SOURCE is not defined.
80819         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
80820         since some compilers warn about it otherwise.
80821
80822 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80823
80824         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
80825         (init_word_char, create_initial_state, duplicate_node_closure):
80826         (fetch_token, peek_token_bracket, build_range_exp):
80827         (build_collating_symbol): Remove forward decls; no longer needed
80828         now that we use prototypes.
80829
80830         * lib/regcomp.c:
80831         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
80832         (re_compile_fastmap_iter, regcomp, regerror, regfree):
80833         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
80834         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
80835         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
80836         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
80837         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
80838         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
80839         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
80840         (build_range_exp, build_collating_symbol, parse_bracket_exp):
80841         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
80842         (build_charclass, build_charclass_op, fetch_number, create_tree):
80843         (create_token_tree, mark_opt_subexp, duplicate_tree):
80844         Use prototypes rather than old-style definitions.
80845
80846         * lib/regex_internal.c:
80847         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
80848         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
80849         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
80850         (re_string_reconstruct, re_string_peek_byte_case):
80851         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
80852         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
80853         (re_node_set_init_copy, re_node_set_add_intersect):
80854         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80855         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80856         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
80857         (re_acquire_state, re_acquire_state_context, register_state):
80858         (create_ci_newstate, create_cd_newstate, free_state):
80859         Likewise.
80860         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
80861         re_search_2):
80862         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
80863         (re_search_internal, prune_impossible_nodes):
80864         (acquire_init_state_context, check_matching, static):
80865         (check_halt_node_context, check_halt_state_context, proceed_next_node):
80866         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
80867         (update_regs, sift_states_backward, build_sifted_states):
80868         (clean_state_log_if_needed, merge_state_array):
80869         (update_cur_sifted_state, add_epsilon_src_nodes):
80870         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
80871         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
80872         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
80873         (find_recover_state, check_subexp_matching_top, transit_state_mb):
80874         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
80875         (check_arrival, check_arrival_add_next_nodes):
80876         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
80877         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80878         (check_node_accept_bytes, check_node_accept, extend_buffers):
80879         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
80880         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
80881         (sift_ctx_init):
80882         Likewise.
80883
80884         * lib/regex_internal.h:
80885         (re_string_allocate, re_string_construct, re_string_reconstruct):
80886         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
80887         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
80888         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
80889         (re_string_context_at, re_string_peek_byte_case):
80890         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
80891         is defined, since we now use prototypes always.
80892
80893         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
80894         C89 or better.  All uses removed.
80895
80896 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80897
80898         * config/srclist.txt: Add glibc bugs 1220-1227.
80899
80900 2005-08-20  Jim Meyering  <jim@meyering.net>
80901
80902         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
80903         of unused local, dfa.
80904
80905 2005-08-20  Bruno Haible  <bruno@clisp.org>
80906
80907         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
80908
80909 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80910
80911         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
80912         (re_node_set_insert_last, re_dfa_add_node):
80913         Rename local variables to avoid GCC shadowing warnings.
80914
80915 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80916
80917         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
80918         [defined lint]: Suppress bogus uninitialized-variable warnings.
80919
80920         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
80921         and let the caller return REG_ESPACE if out of space.  This
80922         removes an uninitialied-variable warning with GCC 4.0.1, and also
80923         avoids taking the address of a local variable.  All callers
80924         changed.
80925
80926 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80927
80928         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
80929         $LIBCSRC/posix/regexec.c.
80930         Add glibc bug 1217 for regcomp.c.
80931
80932 2005-08-19  Jim Meyering  <jim@meyering.net>
80933
80934         * lib/regexec.c (proceed_next_node): Redo local variables to
80935         avoid GCC shadowing warnings.
80936
80937 2005-08-18  Bruno Haible  <bruno@clisp.org>
80938
80939         * lib/strstr.c (strstr): Fix return value in multibyte case.
80940         * lib/strcasestr.c (strcasestr): Likewise.
80941
80942 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80943
80944         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
80945
80946 2005-08-17  Jim Meyering  <jim@meyering.net>
80947
80948         Make the %s format (seconds since the epoch) work for a negative
80949         number and when used with a zero-padded field width, e.g. %015s.
80950
80951         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
80952         label so that it precedes the code to set `digits'.  Otherwise,
80953         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
80954         print `00-22'.  Now, it prints `-0022', as it should.
80955
80956 2005-08-17  Bruno Haible  <bruno@clisp.org>
80957
80958         * modules/strstr (Files): Add m4/mbrtowc.m4.
80959         (Depends-on): Add mbuiter.
80960
80961 2005-08-17  Bruno Haible  <bruno@clisp.org>
80962
80963         * modules/strcasestr: New file.
80964         * MODULES.html.sh (String handling, based on ANSI C 89): Add
80965         strcasestr.
80966
80967 2005-08-17  Bruno Haible  <bruno@clisp.org>
80968
80969         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
80970
80971 2005-08-17  Bruno Haible  <bruno@clisp.org>
80972
80973         * modules/mbuiter: New file.
80974         * MODULES.html.sh (Extended multibyte and wide character utilities):
80975         Add mbuiter.
80976
80977 2005-08-17  Bruno Haible  <bruno@clisp.org>
80978
80979         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
80980         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
80981
80982 2005-08-17  Bruno Haible  <bruno@clisp.org>
80983
80984         * m4/strcasestr.m4: New file.
80985
80986 2005-08-17  Bruno Haible  <bruno@clisp.org>
80987
80988         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
80989         * lib/strstr.c: Completely rewritten, with multibyte locale support.
80990
80991 2005-08-17  Bruno Haible  <bruno@clisp.org>
80992
80993         * lib/strcasestr.h: New file.
80994         * lib/strcasestr.c: New file.
80995
80996 2005-08-17  Bruno Haible  <bruno@clisp.org>
80997
80998         * lib/strcasecmp.c: Use mbuiter.h.
80999
81000 2005-08-17  Bruno Haible  <bruno@clisp.org>
81001
81002         * lib/mbuiter.h: New file.
81003
81004 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
81005
81006         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
81007         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
81008         and gl_GETOPT are both invoked via different paths (as happens
81009         with GNU tar CVS because it uses both argp and getopt), the former
81010         wins.
81011
81012 2005-08-16  Bruno Haible  <bruno@clisp.org>
81013
81014         * modules/tls: New file.
81015         * MODULES.html.sh (Multithreading): Add tls.
81016
81017 2005-08-16  Bruno Haible  <bruno@clisp.org>
81018
81019         * modules/strnlen1: New file.
81020         * MODULES.html.sh (String handling): Add strnlen1.
81021
81022 2005-08-16  Bruno Haible  <bruno@clisp.org>
81023
81024         * modules/strcase (Files): Add m4/mbrtowc.m4.
81025         (Depends-on): Add strnlen1, mbchar.
81026
81027 2005-08-16  Bruno Haible  <bruno@clisp.org>
81028
81029         * modules/mbiter: New file.
81030         * MODULES.html.sh (Extended multibyte and wide character utilities):
81031         Add mbiter.
81032
81033 2005-08-16  Bruno Haible  <bruno@clisp.org>
81034
81035         * modules/mbfile: New file.
81036         * MODULES.html.sh (Extended multibyte and wide character utilities):
81037         Add mbfile.
81038
81039 2005-08-16  Bruno Haible  <bruno@clisp.org>
81040
81041         * modules/mbchar: New file.
81042         * MODULES.html.sh (Extended multibyte and wide character utilities):
81043         New section.
81044
81045 2005-08-16  Bruno Haible  <bruno@clisp.org>
81046
81047         * m4/tls.m4: New file, from GNU gettext.
81048
81049 2005-08-16  Bruno Haible  <bruno@clisp.org>
81050
81051         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
81052         always.
81053         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
81054
81055 2005-08-16  Bruno Haible  <bruno@clisp.org>
81056
81057         * m4/mbiter.m4: New file.
81058
81059 2005-08-16  Bruno Haible  <bruno@clisp.org>
81060
81061         * m4/mbfile.m4: New file.
81062
81063 2005-08-16  Bruno Haible  <bruno@clisp.org>
81064
81065         * m4/mbchar.m4: New file.
81066
81067 2005-08-16  Bruno Haible  <bruno@clisp.org>
81068
81069         * lib/tls.h: New file, from GNU gettext.
81070         * lib/tls.c: New file, from GNU gettext.
81071
81072 2005-08-16  Bruno Haible  <bruno@clisp.org>
81073
81074         * lib/strnlen1.h: New file.
81075         * lib/strnlen1.c: New file.
81076
81077 2005-08-16  Bruno Haible  <bruno@clisp.org>
81078
81079         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
81080         (mbi_init): Update.
81081         (mbi_avail, mbi_advance): Let the iteration end before the terminating
81082         NUL byte, not after it.
81083
81084 2005-08-16  Bruno Haible  <bruno@clisp.org>
81085
81086         * lib/strcase.h (strcasecmp): Add note in comments.
81087         * lib/strncasecmp.c: Use code from strcasecmp.c.
81088         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
81089         (strcasecmp): Work correctly in multibyte locales.
81090
81091 2005-08-16  Bruno Haible  <bruno@clisp.org>
81092
81093         * lib/mbiter.h: New file.
81094
81095 2005-08-16  Bruno Haible  <bruno@clisp.org>
81096
81097         * lib/mbfile.h: New file.
81098
81099 2005-08-16  Bruno Haible  <bruno@clisp.org>
81100
81101         * lib/mbchar.h: New file.
81102         * lib/mbchar.c: New file.
81103
81104 2005-08-16  Bruno Haible  <bruno@clisp.org>
81105
81106         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
81107         the valid ones. Makes the comparison operations transitive:
81108         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
81109         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
81110
81111 2005-08-15  Simon Josefsson  <jas@extundo.com>
81112
81113         * modules/ssize_t (License): Change to 'unlimited'.
81114
81115         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
81116
81117 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
81118
81119         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
81120         Add comments for each pending glibc patch.
81121
81122 2005-08-15  Bruno Haible  <bruno@clisp.org>
81123
81124         * lib/regex.h (__restrict_arr): Don't define to __restrict if
81125         __cplusplus is defined.
81126
81127 2005-08-14  Jim Meyering  <jim@meyering.net>
81128
81129         Sync from coreutils.
81130
81131         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
81132         Use the hash-table-based cycle-detection code not just when
81133         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
81134         Reported by James Youngman in
81135         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
81136         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
81137         FTS_TIGHT_CYCLE_CHECK.
81138         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
81139         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
81140         once again.
81141         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
81142         * lib/fts.c (fd_safer): Remove decl.
81143         Include fcntl--.h rather than unistd-safer.h
81144         (fts_safe_changedir): Don't call fd_safer; no longer needed
81145         now that we include fcntl--.h.
81146
81147 2005-08-12  Simon Josefsson  <jas@extundo.com>
81148
81149         * modules/getndelim2: Use ssize_t module.
81150         * modules/getnline: Likewise.
81151         * modules/safe-read: Likewise.
81152         * modules/xreadlink: Likewise.
81153
81154         * modules/ssize_t: New file.
81155
81156 2005-08-12  Simon Josefsson  <jas@extundo.com>
81157
81158         * m4/readline.m4: Look for termcap, curses or ncurses if required.
81159
81160 2005-08-12  Simon Josefsson  <jas@extundo.com>
81161
81162         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81163         ssize_t.
81164
81165 2005-08-12  Simon Josefsson  <jas@extundo.com>
81166
81167         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
81168         readline, getdelim and check_version.
81169         (Support for systems lacking ISO C 99: Sizes of integer types):
81170         Add size_max.
81171
81172 2005-08-12  Bruno Haible  <bruno@clisp.org>
81173
81174         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
81175
81176 2005-08-11  Simon Josefsson  <jas@extundo.com>
81177
81178         * modules/readline: New file.
81179
81180         * modules/strnlen (Files): Add strnlen.h.
81181
81182 2005-08-11  Simon Josefsson  <jas@extundo.com>
81183
81184         * m4/readline.m4: New file.
81185
81186 2005-08-11  Simon Josefsson  <jas@extundo.com>
81187
81188         * lib/readline.h, readline.c: New file.
81189
81190 2005-08-11  Simon Josefsson  <jas@extundo.com>
81191
81192         * doc/gnulib.texi (Initial import, Finishing touches): Mention
81193         gl_AVOID.
81194
81195 2005-08-11  Bruno Haible  <bruno@clisp.org>
81196
81197         * lib/strnlen.h (strnlen): Change parameter name to match comment.
81198
81199 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
81200
81201         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
81202
81203 2005-08-10  Simon Josefsson  <jas@extundo.com>
81204
81205         * tests/test-iconvme.c: New file.
81206
81207 2005-08-10  Simon Josefsson  <jas@extundo.com>
81208
81209         * m4/strnlen.m4: New file.
81210
81211         * m4/strndup.m4: Don't check for strnlen declaration, done in
81212         strnlen.m4.
81213
81214 2005-08-10  Simon Josefsson  <jas@extundo.com>
81215
81216         * lib/strndup.c: Use strnlen.h.
81217
81218         * lib/strnlen.h: New file.
81219
81220 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81221
81222         * README: Typos.
81223
81224 2005-08-02  Simon Josefsson  <jas@extundo.com>
81225
81226         * modules/readline: New file.
81227
81228 2005-08-02  Simon Josefsson  <jas@extundo.com>
81229
81230         * modules/getdelim: New file.
81231
81232         * modules/getline: Rewrite, don't use getndelim2.
81233
81234 2005-08-02  Simon Josefsson  <jas@extundo.com>
81235
81236         * m4/getline.m4: Separate out getdelim stuff into separate module.
81237
81238         * m4/getdelim.m4: New file.
81239
81240 2005-08-02  Simon Josefsson  <jas@extundo.com>
81241
81242         * lib/getline.h, getline.c: Rewrite.
81243
81244         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
81245
81246 2005-07-31  Bruno Haible  <bruno@clisp.org>
81247
81248         * lib/lock.h (gl_lock_initializer): New macro.
81249         (gl_lock_define_initialized): Use it.
81250         (gl_rwlock_initializer): New macro.
81251         (gl_rwlock_define_initialized): Use it.
81252         (gl_recursive_lock_initializer): New macro.
81253         (gl_recursive_lock_define_initialized): Use it.
81254
81255 2005-07-30  Karl Berry  <karl@gnu.org>
81256
81257         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
81258         Report from Ben Pfaff, regarding getopt.
81259
81260 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
81261
81262         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
81263         normal way.
81264         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
81265         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
81266         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
81267         (gl_GETOPT): Use the new macros.  Most of the implementation
81268         is moved to the new macros.  This is for programs like Emacs
81269         that don't want all the functionality of gl_GETOPT.
81270
81271 2005-07-26  Bruno Haible  <bruno@clisp.org>
81272
81273         * m4/lock.m4: Update from GNU gettext.
81274
81275 2005-07-26  Bruno Haible  <bruno@clisp.org>
81276
81277         * lib/lock.h: Update from GNU gettext.
81278         * lib/lock.c: Update from GNU gettext.
81279
81280 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
81281
81282         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
81283         obsolescent AC_TRY_RUN.  Include the default includes files, for
81284         'exit'.
81285
81286 2005-07-24  Bruno Haible  <bruno@clisp.org>
81287
81288         * modules/visibility: New file.
81289         * MODULES.html.sh (Misc): Add visibility.
81290
81291 2005-07-24  Bruno Haible  <bruno@clisp.org>
81292
81293         * m4/visibility.m4: New file.
81294
81295 2005-07-24  Bruno Haible  <bruno@clisp.org>
81296
81297         * doc/visibility.texi: New file.
81298
81299 2005-07-22  Bruno Haible  <bruno@clisp.org>
81300
81301         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
81302         $(ALLOCA_H), redundant through BUILT_SOURCES.
81303         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
81304         redundant through BUILT_SOURCES.
81305         * modules/byteswap (Makefile.am): Remove explicit dependency on
81306         $(BYTESWAP_H), redundant through BUILT_SOURCES.
81307         * modules/fnmatch (Makefile.am): Remove explicit dependency on
81308         $(FNMATCH_H), redundant through BUILT_SOURCES.
81309         * modules/getopt (Makefile.am): Remove explicit dependency on
81310         $(GETOPT_H), redundant through BUILT_SOURCES.
81311         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
81312         redundant through BUILT_SOURCES.
81313         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
81314         redundant through BUILT_SOURCES.
81315         * modules/stdbool (Makefile.am): Remove explicit dependency on
81316         $(STDBOOL_H), redundant through BUILT_SOURCES.
81317         * modules/stdint (Makefile.am): Remove explicit dependency on
81318         $(STDINT_H), redundant through BUILT_SOURCES.
81319         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
81320         Remove explicit dependency on $(SYSEXITS_H).
81321         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
81322
81323 2005-07-18  Simon Josefsson  <jas@extundo.com>
81324
81325         * lib/check-version.c (check_version): Accept identical versions too.
81326
81327 2005-07-18  Bruno Haible  <bruno@clisp.org>
81328
81329         * modules/lock: New file.
81330         * MODULES.html.sh (Multithreading): New section.
81331
81332 2005-07-18  Bruno Haible  <bruno@clisp.org>
81333
81334         * m4/lock.m4: New file, from GNU gettext.
81335
81336 2005-07-18  Bruno Haible  <bruno@clisp.org>
81337
81338         * lib/lock.h: New file, from GNU gettext.
81339         * lib/lock.c: New file, from GNU gettext.
81340
81341 2005-07-18  Bruno Haible  <bruno@clisp.org>
81342
81343         * lib/lock.h (gl_once_t): New type.
81344         (gl_once_define, gl_once): New macros.
81345         * lib/lock.c (fresh_once): New variable.
81346         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
81347         functions.
81348
81349 2005-07-16  Simon Josefsson  <jas@extundo.com>
81350
81351         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
81352         workaround, suggested by Bruno.
81353
81354 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81355
81356         * modules/xalloc (Depends-on): Add xalloc-die.
81357         * modules/xvasprintf (Depends-on): Add xalloc-die.
81358
81359 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81360
81361         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
81362         with a minor change.
81363
81364 2005-07-15  Bruno Haible  <bruno@clisp.org>
81365
81366         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
81367         When using lib/poll.c, define poll as rpl_poll.
81368
81369 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
81370
81371         * modules/argp (Depends-on): Remove unlocked-io.
81372
81373 2005-07-14  Derek Price  <derek@ximbiot.com>
81374
81375         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
81376         for glob symlink bug.
81377
81378 2005-07-14  Bruno Haible  <bruno@clisp.org>
81379
81380         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
81381         Instead, test for *_unlocked function declarations directly.
81382
81383 2005-07-11  Simon Josefsson  <jas@extundo.com>
81384
81385         * modules/size_max: New file.
81386
81387         * modules/xsize: Depend on size_max module for size_max.m4.
81388
81389 2005-07-11  Simon Josefsson  <jas@extundo.com>
81390
81391         * lib/size_max.h: New file.
81392
81393 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
81394
81395         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
81396         copyright symbol and the year.
81397         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
81398         (version_etc_va): Use parameterized copyright notice.
81399         Reword to conform to the current GNU coding standards.
81400
81401 2005-07-11  Karl Berry  <karl@gnu.org>
81402
81403         * doc/gnulib.texi (Quoting): new node.
81404         (Initial import): more info, from Patrice.
81405
81406 2005-07-11  Bruno Haible  <bruno@clisp.org>
81407
81408         * gnulib-tool (func_usage): Document option --avoid.
81409         (Command line options): Handle --avoid.
81410         (func_acceptable): New function.
81411         (func_modules_transitive_closure): Use it.
81412
81413 2005-07-11  Bruno Haible  <bruno@clisp.org>
81414
81415         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
81416         Reported by Jim Meyering.
81417
81418 2005-07-10  Bruno Haible  <bruno@clisp.org>
81419
81420         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
81421         Needed when size_t is smaller than 'unsigned int'.
81422         Reported by Paul Eggert.
81423
81424 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81425
81426         * modules/argp (Depends-on): Add unlocked-io
81427
81428 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81429
81430         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
81431         block of defines.
81432
81433 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81434
81435         * config/srclist.txt: Comment out regcomp.c, since we have a porting
81436         fix now.
81437
81438 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
81439         and Paul Eggert  <eggert@cs.ucla.edu>
81440
81441         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
81442         in wint_t, not wchar_t.  Remove now-unnecessary cast.
81443
81444 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81445
81446         * modules/regex (Files): Add lib/regex_internal.c,
81447         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
81448         (Depends-on): Add extensions.
81449         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
81450
81451 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81452
81453         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
81454         pathconf.
81455         * m4/same.m4 (gl_SAME): Likewise.
81456         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
81457
81458         * m4/regex.m4: Adjust to new libc regex implementation.
81459         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
81460         all the .c and .h parts of (the new) regex.
81461         Quote the m4 stuff better.
81462         Check for RE_ICASE bug of old gnulib.
81463         Check for REG_STARTEND of recent libc.
81464         Rename local variables from jm_* to gl_*.
81465         Quote operand of "test -f".
81466         Say "recent enough" version of libc, not "version 2".
81467         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
81468         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
81469         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
81470         Remove check for btowc, isascii.
81471         Require AM_LANGINFO_CODESET.
81472
81473 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81474
81475         * lib/regex.c, regex.h: Sync from libc.
81476         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
81477         * lib/regexec.c:
81478         New files, synced from libc, except that regex_internal.h
81479         currently has a small porting fix.
81480
81481 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81482
81483         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
81484         regex_internal.c, regexec.c.
81485         Add regex_internal.h too, but as a comment, since the libc version
81486         is currently broken in gnulib mode.
81487
81488 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81489
81490         Support programs like Emacs that use gnulib but not gettext.
81491         * MODULES.html.sh (Internationalization functions): Add gettext-h.
81492         * modules/gettext-h: New file.
81493         * modules/gettext (Files): Remove lib/gettext.h.
81494         (Depends-on): Add gettext-h.
81495         (Makefile.am): Remove lib_SOURCES.
81496         * modules/argmatch, modules/c-stack, modules/closeout:
81497         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
81498         * modules/execute, modules/file-type, modules/getaddrinfo:
81499         * modules/getopt, modules/human, modules/javacomp:
81500         * modules/javaexec, modules/mkdir-p, modules/obstack:
81501         * modules/openat, modules/pagealign_alloc, modules/pipe:
81502         * modules/quotearg, modules/regex, modules/rpmatch:
81503         * modules/unicodeio, modules/userspec, modules/version-etc:
81504         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
81505         * modules/xsetenv:
81506         Depend on gettext-h, not gettext.
81507
81508 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81509
81510         * gnulib-tool (func_import): Add support for 'public domain' license.
81511         * modules/alloca, modules/atexit, modules/memmove:
81512         Now public domain, not GPL.
81513         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
81514         * modules/realloc, modules/strerror, modules/strtod:
81515         Now LGPL, not GPL.
81516
81517 2005-07-05  Bruno Haible  <bruno@clisp.org>
81518
81519         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
81520         autoconf CVS. Needed for mingw.
81521
81522 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81523
81524         Remove the dependency of the strftime module on the tzset module.
81525         * modules/strftime (Depends-on): Remove dependency on tzset.
81526
81527 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81528
81529         Remove the dependency of the strftime module on the tzset module.
81530         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
81531         gl_FUNC_TZSET_CLOBBER.
81532
81533 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81534
81535         Remove the dependency of the strftime module on the tzset module.
81536         * lib/strftime.c (my_strftime)
81537         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
81538         Copy the input structure, to work around some of the bug with
81539         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
81540         Solaris releases, you should also use the tzset module, but we won't
81541         require it as a dependency any more since we don't want LGPLed code
81542         to depend on GPLed code.
81543
81544 2005-07-02  Jim Meyering  <jim@meyering.net>
81545
81546         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
81547         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
81548         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
81549         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
81550
81551 2005-07-02  Jim Meyering  <jim@meyering.net>
81552
81553         * lib/backupfile.c (backup_args): Change a `0' to NULL.
81554
81555 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81556
81557         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
81558         declares only 'struct timespec;' (!).
81559
81560 2005-07-01  Jim Meyering  <jim@meyering.net>
81561
81562         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
81563         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
81564         * lib/save-cwd.c, tempname.c:
81565         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
81566         and don't include <sys/file.h>).
81567
81568 2005-06-29  Jim Meyering  <jim@meyering.net>
81569
81570         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
81571         type name.  Use the variable name instead.
81572         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
81573         Likewise.
81574
81575 2005-06-28  Simon Josefsson  <jas@extundo.com>
81576
81577         * modules/check-version (Files): Add check-version.m4.
81578
81579 2005-06-28  Simon Josefsson  <jas@extundo.com>
81580
81581         * m4/check-version.m4: New file, suggested by Jim Meyering
81582         <jim@meyering.net>.
81583
81584 2005-06-28  Simon Josefsson  <jas@extundo.com>
81585
81586         * lib/check-version.h, lib/check-version.c: New files.
81587
81588 2005-06-28  Simon Josefsson  <jas@extundo.com>
81589
81590         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
81591         collision with global variable.  Better indentation.  Don't
81592         increment buffer pointer beyond buffer end.  Based on comments
81593         from Paul Eggert <eggert@cs.ucla.edu>.
81594
81595         * lib/base64.h: Indent.
81596
81597 2005-06-28  Simon Josefsson  <jas@extundo.com>
81598
81599         * doc/gnulib.texi (Library version handling): New section.
81600
81601 2005-06-28  Jim Meyering  <jim@meyering.net>
81602
81603         * check-module (find_included_lib_files): Hard-code another
81604         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
81605         but modules/fts-lgpl (correctly) does not list those files.
81606
81607         * modules/canonicalize (Files): Add lib/pathmax.h.
81608
81609 2005-06-25  Simon Josefsson  <jas@extundo.com>
81610
81611         * modules/check-version: New file.
81612
81613 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
81614
81615         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
81616         initializer of struct addrinfo, as an indication that we don't
81617         care how many members the structure has.
81618
81619 2005-06-24  Derek Price  <derek@ximbiot.com>
81620         and Bruno Haible  <bruno@clisp.org>
81621
81622         Remove stat module & update lstat.
81623         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
81624         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81625         * m4/stat.m4: Remove this file.
81626
81627 2005-06-24  Derek Price  <derek@ximbiot.com>
81628         and Bruno Haible  <bruno@clisp.org>
81629
81630         Remove stat module & update lstat.
81631         * lib/stat.c: Remove this file...
81632         (slash_aware_lstat): ...moving this content and its support...
81633         * lib/lstat.c (rpl_lstat): ...into here.
81634         * lib/lstat.h: New file.
81635
81636 2005-06-24  Derek Price  <derek@ximbiot.com>
81637         and Bruno Haible  <bruno@clisp.org>
81638
81639         Remove stat module & update lstat.
81640         * config/srclist.txt (libc sources): Remove stat.
81641
81642 2005-06-24  Derek Price  <derek@ximbiot.com>
81643         and Bruno Haible  <bruno@clisp.org>
81644
81645         Remove stat module & update lstat.
81646         * MODULES.html.sh (stat): Remove.
81647         * MODULES.html: Regenerated.
81648         * modules/lstat (Description): Correct function name.
81649         (Files): Add "lstat.h".
81650         (Depends-on): Remove stat, add xalloc, stat-macros.
81651         * modules/stat: Remove this file.
81652         (Include): Add "lstat.h", remove <sys/stat.h>.
81653
81654 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
81655
81656         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
81657         (ranged_convert): Don't save conversion in a temporary struct.
81658         This causes a warning with GCC 4.0.0, and anyway in the typical
81659         case it's not worth the extra 100 bytes or so of code.
81660         (ranged_convert, __mktime_internal): When calling a function via a
81661         pointer P, use P () rather than (*P) (), as we now assume C89 or
81662         better.
81663
81664 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81665
81666         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
81667         "who -r" failed to give output.  Problem reported by Tim Waugh.
81668
81669         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
81670         (xcalloc): Use it to avoid needless tests.
81671         Problem reported by Jim Meyering.
81672
81673 2005-06-20  Derek Price  <derek@ximbiot.com>
81674
81675         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
81676         unnecessary for Autoconfs > 2.59c.
81677
81678 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81679
81680         * lib/argp.h (__option_is_short): Check upper limit of
81681         __key. Isprint() requires its argument to have the value
81682         of an unsigned char or EOF.
81683
81684 2005-06-16  Jim Meyering  <jim@meyering.net>
81685
81686         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
81687         when either N or S is zero.
81688
81689 2005-06-16  Derek Price  <derek@ximbiot.com>
81690
81691         * m4/bison.m4: Declare YACC & YFLAGS precious.
81692
81693 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
81694
81695         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
81696         multibyte string or pattern, fall back on unibyte matching.
81697         Problem reported by James Youngman.
81698
81699 2005-06-08  Bruno Haible  <bruno@clisp.org>
81700
81701         * modules/csharpcomp: New file.
81702         * MODULES.html.sh (C#): Add csharpcomp.
81703
81704 2005-06-08  Bruno Haible  <bruno@clisp.org>
81705
81706         * m4/csharpcomp.m4: New file, from GNU gettext.
81707
81708 2005-06-08  Bruno Haible  <bruno@clisp.org>
81709
81710         * lib/csharpcomp.h: New file, from GNU gettext.
81711         * lib/csharpcomp.c: New file, from GNU gettext.
81712         * lib/csharpcomp.sh.in: New file, from GNU gettext.
81713
81714 2005-06-08  Bruno Haible  <bruno@clisp.org>
81715
81716         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
81717         warning on mingw.
81718
81719 2005-06-07  Derek Price  <derek@ximbiot.com>
81720
81721         Sync from CVS.
81722         * lib/glob_.h: Indent nested #ifdef.
81723
81724 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81725
81726         Sync from coreutils.
81727         Use "file name" when talking about file names, instead of "filename"
81728         or "path", as per the GNU coding standards.
81729         * lib/mkdir-p.c: Renamed from makepath.c.
81730         (make_dir_parents): Renamed from make_path.  All callers changed.
81731         * lib/mkdir-p.h: Likewise.  All includers changed.
81732         * lib/filenamecat.c: Renamed from path-concat.c.
81733         (file_name_concat): Renamed from path_concat.  All callers changed.
81734         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
81735         * lib/filenamecat.h: Likewise.  All includers changed.
81736         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
81737         in comments or local variable names.
81738         * lib/basename.c: Likewise.
81739         * lib/canonicalize.c, canonicalize.h: Likewise.
81740         * lib/dirname.c, dirname.h: Likewise.
81741         * lib/euidaccess.c: Likewise.
81742         * lib/exclude.c: Likewise
81743         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
81744         * lib/fsusage.c, fsuage.h: Likewise.
81745         * lib/fts.c, fts_.h: Likewise.
81746         * lib/getcwd.c: Likewise.
81747         * lib/getloadavg.c: Likewise.
81748         * lib/mkstemp.c: Likewise.
81749         * lib/mountlist.c, mountlist.h: Likewise.
81750         * lib/openat.c, openat.h: Likewise.
81751         * lib/readlink-stub.c: Likewise.
81752         * lib/readutmp.c, readutmp.h: Likewise.
81753         * lib/rename.c: Likewise.
81754         * lib/rmdir.c: Likewise.
81755         * lib/same.c: Likewise.
81756         * lib/savedir.c: Likewise.
81757         * lib/stripslash.c: Likewise.
81758         * lib/tempname.c: Likewise.
81759         * lib/xreadlink.c: Likewise.
81760         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
81761         All uses changed.
81762         * lib/exclude.h: Likewise.
81763
81764         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
81765         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81766         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
81767         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81768         * lib/pathmax.h: Include <limits.h> unconditionally, since other
81769         files have been getting away with it for years (MORE/BSD 4.3
81770         is extinct now).
81771         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
81772         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81773
81774         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
81775         Define to 256, not 255, as per modern POSIX.
81776
81777 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81778
81779         Sync from coreutils.
81780         Use "file name" when talking about file names, instead of "filename"
81781         or "path", as per the GNU coding standards.
81782         * MODULES.html.sh: mkdir-p renamed from makepath.
81783         filenamecat renamed from path-concat.
81784         * modules/filenamecat: Renamed from modules/path-concat.
81785         (Files): filenamecat.h and filenamecat.c renamed from
81786         path-concat.h and path-concat.c.
81787         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
81788         (Include): filenamecat.h, not path-concat.h.
81789         * modules/mkdir-p: Renamed from modules/makepath.
81790         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
81791         makepath.c.
81792         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
81793         (Include): mkdir-p.h, not makepath.h.
81794
81795 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81796
81797         Sync from coreutils.
81798         * m4/mkdir-p.m4: Renamed from makepath.m4.
81799         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
81800         Rename files from makepath.c to mkdir-p.c, and from
81801         makepath.h to mkdir-p.h.
81802         * m4/filenamecat.m4: Renamed from path-concat.m4.
81803         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
81804         Rename files from path-concat.c to filenamecat.c,
81805         and from path-concat.h to filenamecat.h.
81806         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
81807         "file name" in local variables or comments.
81808         * m4/rename.m4: Likewise.
81809
81810 2005-06-01  Bruno Haible  <bruno@clisp.org>
81811
81812         * modules/csharpexec: New file.
81813         * MODULES.html.sh (C#): New section.
81814
81815 2005-06-01  Bruno Haible  <bruno@clisp.org>
81816
81817         * m4/csharp.m4: New file, from GNU gettext.
81818         * m4/csharpexec.m4: New file, from GNU gettext.
81819
81820 2005-06-01  Bruno Haible  <bruno@clisp.org>
81821
81822         * lib/csharpexec.h: New file, from GNU gettext.
81823         * lib/csharpexec.c: New file, from GNU gettext.
81824         * lib/csharpexec.sh.in: New file, from GNU gettext.
81825
81826 2005-05-31  Derek Price  <derek@ximbiot.com>
81827             Paul Eggert  <eggert@cs.ucla.edu>
81828
81829         Sync from cvs.
81830         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
81831
81832 2005-05-31  Derek Price  <derek@ximbiot.com>
81833             Paul Eggert  <eggert@cs.ucla.edu>
81834
81835         Sync from cvs.
81836         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
81837
81838 2005-05-29  Derek Price  <derek@ximbiot.com>
81839
81840         * config/srclist.txt (glob_.h, glob.c): Add these files.
81841
81842 2005-05-29  Derek Price  <derek@ximbiot.com>
81843
81844         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
81845         * modules/glob: New file.
81846         * modules/getlogin_r: Add link to POSIX spec in description.
81847
81848 2005-05-29  Derek Price  <derek@ximbiot.com>
81849             Paul Eggert  <eggert@cs.ucla.edu>
81850
81851         * m4/glob.m4: New file.
81852
81853 2005-05-29  Derek Price  <derek@ximbiot.com>
81854             Paul Eggert  <eggert@cs.ucla.edu>
81855
81856         * lib/glob_.h, lib/glob.c: New files.
81857
81858 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
81859
81860         * modules/fts (Files): Remove m4/inttypes-pri.m4.
81861         * modules/fts-lgpl (Depends-on): Remove gettext.
81862
81863 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
81864
81865         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
81866         and don't require gt_INTTYPES_PRI.
81867
81868 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
81869
81870         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
81871
81872         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
81873         the configuration hassle isn't worth it.
81874         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
81875         (LONGEST_MODIFIER, PRIuMAX): Remove.
81876
81877 2005-05-27  Bruno Haible  <bruno@clisp.org>
81878
81879         * lib/getlogin_r.h: Remove second include of <stddef.h>.
81880
81881 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
81882
81883         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
81884         _POSIX_PTHREAD_SEMANTICS for Solaris.
81885
81886 2005-05-25  Derek Price  <derek@ximbiot.com>
81887
81888         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
81889
81890 2005-05-25  Derek Price  <derek@ximbiot.com>
81891             Paul Eggert  <eggert@cs.ucla.edu>
81892
81893         * modules/getlogin_r, m4/getlogin_r.m4: New files.
81894         * lib/getlogin_r.c, getlogin_r.h: New files.
81895
81896 2005-05-25  Bruno Haible  <bruno@clisp.org>
81897             Derek Price  <derek@ximbiot.com>
81898
81899         * lib/getlogin_r.h: Simplify API documentation.
81900
81901 2005-05-23  Derek Price  <derek@ximbiot.com>
81902
81903         * modules/minmax (Files): Add m4/minmax.m4.
81904         (configure.ac): Add gl_MINMAX.
81905
81906 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
81907
81908         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
81909         so that unistd-safer.h (GPL'ed code) need not be included.
81910
81911 2005-05-22  Bruno Haible  <bruno@clisp.org>
81912
81913         * m4/minmax.m4: New file.
81914         Based on a patch by Derek Price <derek@ximbiot.com>.
81915
81916 2005-05-22  Bruno Haible  <bruno@clisp.org>
81917
81918         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
81919         (INT64_MIN): Fix definition.
81920         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
81921
81922         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
81923         NEED_SIGNED_INT_TYPES.
81924
81925         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
81926         HAVE_SYSTEM_INTTYPES.
81927
81928 2005-05-22  Bruno Haible  <bruno@clisp.org>
81929
81930         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
81931         Also include <sys/param.h> if it defines MIN, MAX.
81932         Based on a patch by Derek Price <derek@ximbiot.com>.
81933
81934 2005-05-21  Jim Meyering  <jim@meyering.net>
81935
81936         * modules/fts (Files): Add m4/inttypes-pri.m4.
81937         (Depends-on): Add lstat and remove gettext.  Alphabetize.
81938
81939 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81940
81941         New fts module.
81942         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
81943         (setup_dir, free_dir): New functions.
81944         (enter_dir, leave_dir): Define trivial
81945         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
81946         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
81947         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
81948         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
81949         Move to fts-cycle.c.
81950         (fts_open): Use setup_dir.
81951         (fts_close): Use free_dir.
81952         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
81953         This adds a label and some gotos, but the alternatives were messier.
81954         Check for memory allocation failure when entering a dir.
81955         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
81956         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
81957         (FTS): New member fts_cycle, that is a union that contains the
81958         old active_dir_ht and cycle_state.  All uses changed to mention
81959         fts_cycle.ht and fts_cycle.state.
81960         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
81961         fts.c, with the following changes:
81962         (setup_dir, free_dir): New functions.
81963         (enter_dir): Now returns bool.  Return true if successful, false
81964         if memory exhausted.  All callers changed.
81965         Do not bother partly cleaning up on
81966         memory allocation failure; that is free_dir's job.
81967         However, free ad if hash_insert fails, to avoid memory leak.
81968         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
81969         fts->fts_options to see which union member to use.
81970
81971 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81972
81973         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
81974         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
81975
81976 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81977
81978         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
81979
81980 2005-05-20  Jim Meyering  <jim@meyering.net>
81981
81982         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
81983         Now a macro, to pacify GCC.
81984
81985 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
81986
81987         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
81988         of -1.
81989
81990 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
81991
81992         * lib/chown.c (rpl_chown): Return -1 on failure.
81993
81994 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
81995
81996         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
81997         Don't check for stddef.h.
81998         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
81999         don't use its results.
82000         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
82001         since we include them unconditionally.  Don't require
82002         AM_STDBOOL_H, since stdbool is a prerequisite.
82003         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
82004         since we assume C89 or better.
82005         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
82006         as we don't use their results.
82007         Don't check for fchdir, memmove, memset, strrchr, as we use
82008         them unconditionally.
82009         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
82010         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
82011
82012 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82013
82014         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
82015         Include <stddef.h> unconditionally, since we assume C89 now.
82016         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
82017         * lib/fts.c: Include fts_.h first, to check interface.
82018         Do not include intprops.h; no longer needed.
82019         Include cycle-check.h and hash.h, since fts_.h no longer does.
82020         Remove unnecessary casts of closedir to void.
82021         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
82022         decide whether to decrement nlinks.
82023         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
82024         (FTS): Use struct hash_table * instead of Hash_table, so that
82025         we no longer need to include hash.h here.
82026
82027 2005-05-18  Jim Meyering  <jim@meyering.net>
82028
82029         * modules/dirfd (License): Change to LGPL.  Most of the code
82030         is already in the public domain.
82031
82032 2005-05-18  Jim Meyering  <jim@meyering.net>
82033
82034         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
82035         Reported by Yoann Vandoorselaere.
82036
82037 2005-05-17  Jim Meyering  <jim@meyering.net>
82038
82039         * m4/fts.m4: New file, from coreutils.
82040
82041 2005-05-17  Jim Meyering  <jim@meyering.net>
82042
82043         * lib/fts.c, lib/fts_.h: New files, from coreutils.
82044
82045 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82046
82047         Sync from coreutils.
82048         * m4/unlinkdir.m4: New file.
82049
82050 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82051
82052         Sync from coreutils.
82053         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
82054         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
82055         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
82056         White space changes only.
82057         * lib/makepath.c (make_path): Port to hosts where leading "//" is
82058         special.
82059         * lib/yesno.c: Include getline.h, not ctype.h.
82060         (yesno): Don't remove leading white space; POSIX doesn't allow it.
82061         Use getline to remove arbitrary restriction on response length.
82062
82063 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82064
82065         * config/srclist-update: Spell out "Street" in FSF postal
82066         mail address; this is the style the FSF seems to prefer.
82067
82068         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
82069         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
82070         this updates FSF postal mail address.
82071
82072         Sync from coreutils.
82073         * modules/unlinkdir: New file.
82074         * modules/yesno (Depends-on): Add getline.
82075         * MODULES.html.sh (File system functions): Add unlinkdir.
82076
82077 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82078
82079         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
82080         lib/strsep.h:
82081         Change the initial comment to refer to GPL, not LGPL.
82082         gnulib-tool will change it to LGPL as needed.
82083
82084         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
82085         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
82086         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
82087         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
82088         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
82089         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
82090         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
82091         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
82092         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
82093         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
82094         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
82095         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
82096         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
82097         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
82098         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
82099         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
82100         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
82101         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
82102         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
82103         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
82104         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
82105         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
82106         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
82107         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
82108         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
82109         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
82110         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
82111         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
82112         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
82113         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
82114         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
82115         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
82116         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
82117         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
82118         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
82119         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
82120         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
82121         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
82122         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
82123         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
82124         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
82125         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
82126         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
82127         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
82128         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
82129         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
82130         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
82131         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
82132         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
82133         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
82134         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82135         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
82136         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
82137         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
82138         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
82139         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
82140         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
82141         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
82142         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
82143         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
82144         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
82145         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
82146         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
82147         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
82148         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
82149         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
82150         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
82151         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
82152         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
82153         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
82154         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
82155         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
82156         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
82157         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
82158         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
82159         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
82160         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
82161         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
82162         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
82163         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
82164         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
82165         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
82166         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
82167         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
82168         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
82169         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
82170         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
82171         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
82172         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
82173         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
82174         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
82175         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
82176         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
82177         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
82178         lib/yesno.c, lib/yesno.h:
82179         Update FSF postal mail address.
82180
82181 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82182
82183         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
82184         tests/test-memmem.c, tests/test-stpncpy.c:
82185         Update FSF postal mail address.
82186
82187 2005-05-13  Bruno Haible  <bruno@clisp.org>
82188
82189         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
82190         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
82191         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
82192         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
82193         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
82194         Add support for 64-bit integers in the MSVC compiler.
82195
82196 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82197
82198         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
82199
82200 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
82201
82202         * gnulib-tool (func_import): Sort and uniquify recommended includes.
82203
82204 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
82205
82206         * doc/getdate.texi (General date syntax): Don't say that date
82207         date --iso-8601=ns generates acceptable dates; it doesn't yet.
82208         Problem reported by Nic Ferrier.
82209
82210 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82211
82212         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
82213         specified in ai_socktype. Fix invalid ai_protocol
82214         check. ai_protocol is usually set to 0 or depending on
82215         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
82216         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
82217         ai_socktype / ai_protocol in the returned addrinfo structure.
82218
82219 2005-05-10  Simon Josefsson  <jas@extundo.com>
82220
82221         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
82222         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82223
82224 2005-05-10  Karl Berry  <karl@gnu.org>
82225
82226         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
82227         (from http://www.gnu.org/licenses).
82228         * doc/COPYING.LIB: also rename to COPYING.LESSER.
82229         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
82230         fdl.texi suffices.
82231
82232 2005-05-10  Karl Berry  <karl@gnu.org>
82233
82234         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
82235         (COPYING.DOC): remove.
82236
82237         * config/srclist-update: new FSF address.
82238
82239 2005-05-10  Derek Price  <derek@ximbiot.com>
82240
82241         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
82242         possible.
82243
82244 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82245             Bruno Haible  <bruno@clisp.org>
82246
82247         * modules/inet_ntop: New file.
82248         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82249         inet_ntop.
82250
82251 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82252             Bruno Haible  <bruno@clisp.org>
82253
82254         * m4/inet_ntop.m4: New file.
82255
82256 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82257             Bruno Haible  <bruno@clisp.org>
82258
82259         * lib/inet_ntop.h: New file.
82260         * lib/inet_ntop.c: New file, from glibc with modifications.
82261
82262 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
82263
82264         * modules/time_r (License): Change to LGPL.
82265         * modules/extensions (License): Change to LGPL.  Actually,
82266         the license is more permissive than that, but currently gnulib-tool
82267         doesn't know how to handle more-permissive licenses.
82268
82269         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
82270         Problem reported by Dave Love.
82271
82272 2005-05-08  Jim Meyering  <jim@meyering.net>
82273
82274         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
82275         blank.
82276
82277 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
82278
82279         * modules/argmatch (Depends-on): Add stdbool.
82280         * modules/backupfile (Depends-on): Likewise.
82281         * modules/chdir-long (Depends-on): Likewise.
82282         * modules/closeout (Depends-on): Likewise.
82283         * modules/cycle-check (Depends-on): Likewise.
82284         * modules/dirname (Depends-on): Likewise.
82285         * modules/fnmatch (Depends-on): Likewise.
82286         * modules/fsusage (Depends-on): Likewise.
82287         * modules/fwriteerror (Depends-on): Likewise.
82288         * modules/getcwd (Depends-on): Likewise.
82289         * modules/getloadavg (Depends-on): Likewise.
82290         * modules/hard-locale (Depends-on): Likewise.
82291         * modules/makepath (Depends-on): Likewise.
82292         * modules/mountlist (Depends-on): Likewise.
82293         * modules/nanosleep (Depends-on): Likewise.
82294         * modules/posixtm (Depends-on): Likewise.
82295         * modules/quotearg (Depends-on): Likewise.
82296         * modules/readtokens (Depends-on): Likewise.
82297         * modules/readtokens0 (Depends-on): Likewise.
82298         * modules/readutmp (Depends-on): Likewise.
82299         * modules/save-cwd (Depends-on): Likewise.
82300         * modules/strftime (Depends-on): Likewise.
82301         * modules/userspec (Depends-on): Likewise.
82302         * modules/utimecmp (Depends-on): Likewise.
82303         * modules/xgetcwd (Depends-on): Likewise.
82304         * modules/xnanosleep (Depends-on): Likewise.
82305         * modules/xstrtod (Depends-on): Likewise.
82306         * modules/yesno (Depends-on): Likewise.
82307
82308 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
82309
82310         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
82311         needless checks.
82312
82313 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82314
82315         Merge from coreutils.  Among other things,
82316         add bulletproofing for cases where stdin, stdout, or stderr are closed.
82317         * lib/fd-safer.c: New file.
82318         * lib/fcntl-safer.h, open-safer.c: Remove.
82319         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
82320         * lib/dup-safer.c: Include unistd-safer.h first.
82321         Don't include errno.h.
82322         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
82323         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
82324         * lib/file-type.c: Rely on file-type.h change.
82325         * lib/getloadavg.c: Include unistd-safer.h.
82326         (getloadavg): Use safer open.
82327         * lib/getusershell.c: Include "stdio-safer.h".
82328         (getusershell): Use safer fopen.
82329         * lib/long-options.c (long_options): Use NULL rather than 0.
82330         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
82331         'free'.
82332         * lib/modechange.c: Likewise.
82333         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
82334         (MODE_DONE): New constant.
82335         (struct mode_change): Remove 'next' member.
82336         (make_node_op_equals): New function; like the old one of the
82337         same name, except it allocates an array.
82338         (mode_compile, mode_create_from_ref): Use it.
82339         (mode_compile): Allocate result as an array, not a linked list.
82340         Parse octal string ourself, so that we catch mistakes like "+0".
82341         (mode_adjust): Arg is an array, not a linked list.
82342         * lib/modechange.c: Include stat-macros.h, xalloc.h.
82343         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
82344         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
82345         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
82346         Remove.  This is now stat-macros.h's job.
82347         (talloc): Remove.  All callers replaced by xalloc, so that
82348         our invokers don't have to worry about reporting memory failures.
82349         (make_node_op_equals): Remove.
82350         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82351         New constants.
82352         (struct mode_change): Moved here from modechange.h.
82353         (mode_append_entry): Remove.
82354         (mode_compile): Remove MASKED_OPS arg, since it encouraged
82355         apps to have incorrect behavior.  Use simpler algorithm for head
82356         and tail.  Don't futz with umask; that's now the job of mode_adjust.
82357         Detect more invalid usages rather than having somewhat-random behavior.
82358         Don't insert an "a=" action, as that leads to incorrect behavior.
82359         (mode_compile, mode_create_from_ref): Return NULL on error instead
82360         of an enum, since now there's only one way to have an error.  All
82361         callers changed.
82362         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
82363         at the correct time.  Simplify calculation of "+u" and its ilk.
82364         Don't mishandle "+X".
82365         (mode_free): Remove "register" and localize decls.
82366         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82367         (struct mode_change): Move to modechange.c; callers don't
82368         need to see this stuff.
82369         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
82370         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
82371         (mode_change, mode_adjust): Reflect the new signatures noted above.
82372         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
82373         that might redefine system include files.
82374         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
82375         (my_usleep): Use NULL rather than (void *) 0.
82376         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
82377         Use siginterrupt to specify that system calls should be interrupted.
82378         (rpl_nanosleep): Move initialization of suspended closer to call of
82379         my_usleep.
82380         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
82381         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
82382         (desirable_utmp_entry): New function.
82383         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
82384         using x2nrealloc, to simplify logic.
82385         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
82386         size calculation.  Do not assume utmp file is a regular file.
82387         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
82388         (READ_UTMP_CHECK_PIDS): New constant.
82389         * lib/save-cwd.c: Include unistd-safer.h.
82390         (save_cwd): Use fd_safer.
82391         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
82392         [!_LIBC] Include "stat-macros.h" instead.
82393         * lib/unistd-safer.h (fd_safer): New decl.
82394
82395 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82396
82397         * modules/getloadavg (Depends-on): Add unistd-safer.
82398         * modules/getusershell (Depends-on): Add stdio-safer.
82399         * modules/lstat (Depends-on): Remove xalloc.
82400         * modules/mkstemp (Depends-on): Add stat-macros.
82401         * modules/modechange (Depends-on): Remove xstrtol.
82402         Add stat-macros, xalloc.
82403         * modules/save-cwd (Depends-on): Add unistd-safer.
82404         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
82405         * modules/unistd-safer (Files): Add lib/fd-safer.c
82406         (Makefile.am): Remove lib_SOURCES.
82407
82408         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
82409         Remove fcntl-safer; unistd-safer supersedes it.
82410
82411 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82412
82413         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
82414         AC_HEADER_STAT.
82415         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
82416         (gl_PREREQ_CHOWN): Remove.
82417         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
82418         it.  Don't require AC_HEADER_STAT.
82419         (gl_PREREQ_LSTAT): Remove.
82420         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
82421         Don't require AC_HEADER_STAT.
82422         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
82423         (gl_PREREQ_RMDIR): Remove.
82424         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
82425         mention stat-macros.h or AC_HEADER_STAT, since we'll make
82426         the stat-macros module a prerequisite.
82427         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
82428         * m4/filemode.m4 (gl_FILEMODE): Likewise.
82429         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
82430         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
82431         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
82432         variable names.
82433         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
82434         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
82435         variable prefixes.
82436         * m4/fcntl-safer.m4: Remove.
82437         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
82438         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
82439         Invoke gl_PREREQ_FD_SAFER.
82440         (gl_PREREQ_FD_SAFER): New macro.
82441         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
82442         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
82443         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
82444         Remove duplicate call to AC_LIBOBJ(readutmp).
82445         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
82446
82447         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
82448         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
82449
82450 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82451
82452         * MODULES.html.sh (Misc): Add byteswap.
82453
82454 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82455
82456         * modules/getcwd (Depends-on): Add extensions.
82457         * modules/openat (Depends-on): Likewise.
82458
82459 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82460
82461         * modules/byteswap: New file.
82462
82463 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82464
82465         * m4/byteswap.m4: New file.
82466
82467 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82468
82469         * lib/byteswap_.h: New file.
82470
82471 2005-04-25  Karl Berry  <karl@gnu.org>
82472
82473         * m4/gettext.m4: Update from GNU gettext 0.14.4.
82474
82475 2005-04-25  Albert Chin  <china@thewrittenword.com>
82476
82477         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
82478         Toolkit C bug.
82479
82480 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
82481
82482         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
82483         (func_ln_if_changed): Remove forcibly for no error message
82484         in case file does not exist.
82485
82486 2005-04-19  Simon Josefsson  <jas@extundo.com>
82487
82488         * gnulib-tool (Options): Make --symlink mean --symbolic.
82489
82490 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
82491
82492         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
82493
82494 2005-04-16  Simon Josefsson  <jas@extundo.com>
82495
82496         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
82497
82498 2005-04-15  Simon Josefsson  <jas@extundo.com>
82499
82500         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
82501
82502 2005-04-15  Simon Josefsson  <jas@extundo.com>
82503
82504         * gnulib-tool: Rename --symlink to --symbolic.
82505
82506 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
82507
82508         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
82509         symbolic links to files instead of copying/moving.  Add --aux-dir,
82510         specifying directory relative --dir where auxiliary build tools
82511         are placed.
82512
82513 2005-04-14  Bruno Haible  <bruno@clisp.org>
82514
82515         * modules/allocsa (License): Change to LGPL.
82516         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
82517
82518 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82519
82520         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
82521         that "UTC +1 second" continues to work.  Problem reported
82522         by Dmitry V. Levin.
82523         (relunit_snumber): New rule.
82524         (relunit): Use it.
82525
82526 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
82527
82528         * lib/getdate.y (universal_time_zone_table): New constant.
82529         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
82530         universal_time_zone_table.
82531         (lookup_zone): Prefer universal_time_zone_table to
82532         local_time_zone_table, so that "GMT" time stamps are allowed in
82533         London during the summer.  Problem reported by Ian Abbott.
82534
82535 2005-04-12  Jim Meyering  <jim@meyering.net>
82536
82537         * lib/human.c (humblock): Set *options even when returning due to
82538         xstrtoumax conversion failure.  Thanks to a used-uninitialized
82539         warning from gcc-4.
82540
82541 2005-04-09  Jim Meyering  <jim@meyering.net>
82542
82543         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
82544         -Wuninitialized: initialize tm0.tm_year.
82545
82546 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
82547
82548         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
82549         count, since there's no maximum.  All uses changed.
82550         Add member dsts_seen.
82551         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
82552         not being INT_MAX.
82553         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
82554         Use pc_rels_seen to decide whther a date is absolute.
82555
82556         * lib/getdate.y (number): Don't overwrite year.
82557         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
82558         check.
82559
82560 2005-04-02  Simon Josefsson  <jas@extundo.com>
82561
82562         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
82563         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
82564
82565 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
82566
82567         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
82568         where no absolute path name can be longer than PATH_MAX.
82569
82570 2005-03-27  Jim Meyering  <jim@meyering.net>
82571
82572         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
82573
82574 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
82575
82576         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
82577         "one's complement" -> "ones' complement" in comment, as per Knuth.
82578         "value of type" -> "type or expression" in comment.
82579         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
82580
82581 2005-03-26  Jim Meyering  <jim@meyering.net>
82582
82583         Comment nits.
82584         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
82585         Correct typos: s/or/of/.
82586
82587 2005-03-26  Jim Meyering  <jim@meyering.net>
82588
82589         * modules/check-include-files: Move to ../ and rename to...
82590         * check-module: ...this.
82591
82592 2005-03-25  Jim Meyering  <jim@meyering.net>
82593
82594         * modules/xvasprintf (Files): Add xalloc.h.
82595
82596 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
82597
82598         * modules/gettext (Files): config/config.rpath ->
82599         build-aux/config.rpath
82600         * modules/iconv (Files): Likewise.
82601         Problem reported by Oskar Liljeblad.
82602
82603 2005-03-23  Jim Meyering  <jim@meyering.net>
82604
82605         * modules/check-include-files: New script to check for
82606         missing dependencies, multiple includes, etc.
82607
82608         * modules/c-strtold (Depends-on): Add xalloc.
82609         * modules/c-strtod (Depends-on): Add xalloc.
82610         * modules/hash (Depends-on): Add xalloc.
82611         (Files): Remove lib/xalloc.h.
82612
82613         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
82614         * modules/userspec (Files): Add lib/inttostr.h.
82615
82616 2005-03-23  Jim Meyering  <jim@meyering.net>
82617
82618         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
82619
82620 2005-03-22  Jim Meyering  <jim@meyering.net>
82621
82622         * modules/stat-macros: New module.
82623         * modules/canonicalize, modules/euidaccess, modules/file-type,
82624         * modules/filemode, modules/lchown, modules/makepath,
82625         * modules/rmdir, modules/stat: Depend on new stat-macros module
82626         rather than listing lib/stat-macros.h manually.
82627         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
82628
82629 2005-03-22  Jim Meyering  <jim@meyering.net>
82630
82631         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
82632
82633 2005-03-22  Bruno Haible  <bruno@clisp.org>
82634
82635         * config/srclist.txt: Replace target directory 'config' with
82636         'build-aux'.
82637         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
82638         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
82639         ../build-aux/.
82640
82641 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
82642
82643         * modules/chdir-long (Depends-on): Add mempcpy.
82644
82645         * modules/acl, modules/backupfile, modules/c-strtod,
82646         modules/c-strtold, modules/canon-host, modules/canonicalize,
82647         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
82648         modules/exclude, modules/exitfail, modules/file-type,
82649         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
82650         modules/getdate, modules/getline, modules/getpagesize,
82651         modules/getpass, modules/getugroups, modules/group-member,
82652         modules/hard-locale, modules/hash, modules/human, modules/idcache,
82653         modules/inttostr, modules/long-options, modules/makepath,
82654         modules/md5, modules/memcasecmp, modules/memcoll,
82655         modules/modechange, modules/mountlist, modules/path-concat,
82656         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
82657         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
82658         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
82659         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
82660         modules/strftime, modules/strndup, modules/strverscmp,
82661         modules/timespec, modules/unlocked-io, modules/userspec,
82662         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
82663         modules/yesno:
82664         Remove lib_SOURCES line from Makefile.am section, as this is now
82665         done automatically by the corresponding Autoconf macro.
82666
82667 2005-03-21  Jim Meyering  <jim@meyering.net>
82668
82669         Changes imported from coreutils.
82670
82671         * lib/cycle-check.c: Don't include xalloc.h.
82672
82673         * lib/path-concat.c: Don't include assert.h.
82674         (path_concat): Remove assertion that would have triggered
82675         for ABASE starting with more than one slash.
82676         Reported by Andreas Schwab.
82677
82678         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
82679         properly when ABASE is an absolute file name.
82680         Correct the description of this function.
82681         Include <assert.h>.
82682         Add an assertion and a test driver.
82683         This fixes a bug introduced on 2004-07-02.
82684         Andreas Schwab reported the resulting failure of cp --parents:
82685         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
82686
82687 2005-03-21  Jim Meyering  <jim@meyering.net>
82688
82689         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
82690         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
82691
82692 2005-03-21  Jim Meyering  <jim@meyering.net>
82693         and  Paul Eggert  <eggert@cs.ucla.edu>
82694
82695         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
82696         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
82697         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
82698         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
82699         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
82700         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
82701         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
82702         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
82703         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
82704         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
82705         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
82706         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
82707         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
82708         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
82709         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
82710         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
82711         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
82712         for these modules.
82713
82714 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
82715
82716         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
82717         (which shouldn't happen), generate nothing instead of returning 0
82718         immediately, so that nstrftime (NULL, ...) doesn't return 0.
82719
82720 2005-03-16  Bruno Haible  <bruno@clisp.org>
82721
82722         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
82723         HAVE_LONGLONG_64BIT.
82724
82725 2005-03-16  Bruno Haible  <bruno@clisp.org>
82726
82727         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
82728         HAVE_LONGLONG_64BIT.
82729
82730 2005-03-16  Bruno Haible  <bruno@clisp.org>
82731
82732         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
82733         HAVE_LONGLONG_64BIT.
82734
82735 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
82736
82737         * lib/strftime.c (my_strftime): Prepend space to format so that we can
82738         reliably distinguish strftime failure from empty output on POSIX
82739         hosts.
82740
82741 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
82742
82743         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
82744         (iconv_string): Don't guess a size-zero buffer, as that might cause
82745         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
82746         result would be 'too large', where 'too large' is (heuristically)
82747         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
82748         overflow concerns.  This will prevent some unwanted malloc failures
82749         when the inputs are very large.
82750
82751 2005-03-15  Karl Berry  <karl@gnu.org>
82752
82753         * config/srclist.txt (config.rpath): from gettext.
82754         * config/config.rpath: update.
82755
82756 2005-03-15  Bruno Haible  <bruno@clisp.org>
82757
82758         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
82759         to 'negate'.
82760
82761         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
82762         variable.
82763
82764         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
82765         results.
82766
82767 2005-03-14  Simon Josefsson  <jas@extundo.com>
82768
82769         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
82770         <fx@gnu.org>.
82771
82772 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
82773
82774         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
82775         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
82776         intprops.h.
82777         * lib/strtol.c: Likewise.
82778
82779 2005-03-14  Jim Meyering  <jim@meyering.net>
82780
82781         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
82782         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
82783         to be nonzero so that we (and caller) can detect the difference
82784         between a valid zero-length expansion and an error return, even
82785         when the underlying strftime fails before writing anything into
82786         that location.
82787
82788 2005-03-14  Bruno Haible  <bruno@clisp.org>
82789
82790         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
82791         Update from GNU gettext 0.14.3.
82792
82793 2005-03-10  Jim Meyering  <jim@meyering.net>
82794
82795         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
82796
82797 2005-03-10  Jim Meyering  <jim@meyering.net>
82798
82799         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
82800         so that this module works on systems without fchdir.
82801
82802 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
82803
82804         Factor int-properties macros into a single file, except for
82805         glibc-related files.
82806         * lib/intprops.h: New file.
82807         * lib/getloadavg.c: Include it instead of limits.h.
82808         (INT_STRLEN_BOUND): Remove.
82809         * lib/human.c: Include intprops.h.
82810         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
82811         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
82812         302/1000.
82813         * lib/inttostr.h: Include intprops.h instead of limits.h.
82814         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
82815         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
82816         for consistency with intprops.h.
82817         (time_t_is_integer, twos_complement_arithmetic): Use them.
82818         * lib/sig2str.h: Include <signal.h>, intprops.h.
82819         (INT_STRLEN_BOUND): Remove.
82820         * lib/strftime.c (TYPE_SIGNED): Remove.
82821         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
82822         * lib/strtol.c: Adjust comments to match intprops.h.
82823         * lib/userspec.c: Include intprops.h.
82824         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
82825         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
82826         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
82827         instead of rolling our own expressions.
82828         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
82829
82830         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
82831         instead of int.
82832         (my_strftime): Do not mishandle years close to INT_MAX, by doing
82833         the right thing even if adding 1900 would overflow.  Similarly
82834         for tm_mon + 1 and tm_yday + 1.
82835         Make %Y always equivalent to %C%y, and similarly for %G and %g.
82836         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
82837         (DO_SIGNED_NUMBER): New macro.
82838         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
82839
82840 2005-03-07  Bruno Haible  <bruno@clisp.org>
82841
82842         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
82843
82844 2005-03-07  Bruno Haible  <bruno@clisp.org>
82845
82846         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
82847
82848 2005-03-04  Derek R. Price  <derek@ximbiot.com>
82849
82850         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
82851         (func_import): Only replace files via --import when they have actually
82852         changed.
82853
82854 2005-03-03  Derek R. Price  <derek@ximbiot.com>
82855
82856         * m4/mmap-anon.m4: New file.
82857         * m4/pagealign_alloc.m4: New file.
82858
82859 2005-03-03  Derek R. Price  <derek@ximbiot.com>
82860             Bruno Haible  <bruno@clisp.org>
82861
82862         * modules/pagealign_alloc: New file.
82863         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
82864
82865 2005-03-03  Derek R. Price  <derek@ximbiot.com>
82866             Bruno Haible  <bruno@clisp.org>
82867
82868         * lib/pagealign_alloc.h: New file.
82869         * lib/pagealign_alloc.c: New file.
82870
82871 2005-03-03  Bruno Haible  <bruno@clisp.org>
82872
82873         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
82874         Use an all-permissive copyright notice, recommended by RMS.
82875
82876 2005-03-02  Bruno Haible  <bruno@clisp.org>
82877
82878         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
82879         of AIX, the replacement has to be done only after <string.h> is
82880         included, therefore not in config.h. stpncpy.h does the replacement,
82881         and stpncpy.c uses it.
82882
82883 2005-03-02  Bruno Haible  <bruno@clisp.org>
82884
82885         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
82886         stpncpy.c uses it.
82887
82888 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82889
82890         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
82891         The workaround isn't strictly needed for POSIX conformance, and
82892         it's too much of a pain to configure and maintain.  We'll ask
82893         people to fix their kernels instead.
82894         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
82895         (NANOSLEEP_BUG_WORKAROUND): Remove.
82896         (xnanosleep): Remove the workaround.
82897
82898 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82899
82900         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
82901         Reported by Derek Price.
82902         (Include): Add "timespec.h".
82903
82904         * modules/xnanosleep (Depends-on): Remove gethrxtime.
82905
82906 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82907
82908         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
82909         to detect nanosleep bug.
82910
82911 2005-03-01  Bruno Haible  <bruno@clisp.org>
82912
82913         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
82914
82915 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
82916
82917         * modules/gethrxtime: New file.
82918         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
82919         (Depends-on): Add gethrxtime.
82920         (configure.ac): Add gl_XNANOSLEEP.
82921         (Makefile.am): Remove lib_SOURCES line.
82922
82923 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
82924
82925         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
82926         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
82927
82928 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
82929
82930         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
82931         * lib/timespec.h (gettime): Return void, since it always
82932         succeeds now.  All uses changed.
82933         * lib/gettime.c (gettime): Likewise.
82934         [HAVE_NANOTIME]: Prefer nanotime.
82935         Assume gettimeofday succeeds, as POSIX requires.
82936         Assime time () succeeds, since other code already does.
82937         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
82938         (timespec_subtract): Remove.
82939         (NANOSLEEP_BUG_WORKAROUND): New constant.
82940         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
82941         things considerably.  Use it only on GNU/Linux hosts, since the
82942         workaround shouldn't be needed elsewhere.
82943
82944 2005-02-24  Bruno Haible  <bruno@clisp.org>
82945
82946         * modules/gettext (Files): Add m4/glibc2.m4.
82947
82948 2005-02-24  Bruno Haible  <bruno@clisp.org>
82949
82950         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
82951         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
82952         * m4/progtest.m4:
82953         Update from GNU gettext 0.14.2.
82954         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
82955
82956 2005-02-24  Bruno Haible  <bruno@clisp.org>
82957
82958         * lib/localcharset.c: Update from GNU gettext 0.14.2.
82959         * lib/config.charset: Update from GNU gettext 0.14.2.
82960
82961 2005-02-24  Bruno Haible  <bruno@clisp.org>
82962
82963         * lib/gettext.h: Update from GNU gettext 0.14.2.
82964
82965 2005-02-23  Simon Josefsson  <jas@extundo.com>
82966
82967         * m4/iconvme.m4: New file.
82968
82969 2005-02-23  Jim Meyering  <jim@meyering.net>
82970
82971         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
82972         change.
82973         Thanks to Bruno Haible for catching it.
82974
82975 2005-02-22  Simon Josefsson  <jas@extundo.com>
82976
82977         * modules/iconvme: New file.
82978
82979         * MODULES.html.sh: Add iconvme.
82980
82981 2005-02-22  Simon Josefsson  <jas@extundo.com>
82982
82983         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
82984
82985 2005-02-22  Simon Josefsson  <jas@extundo.com>
82986
82987         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
82988
82989 2005-02-22  Jim Meyering  <jim@meyering.net>
82990
82991         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
82992         s/ifndef/ifdef/.
82993
82994 2005-02-20  Neil Conway  <neilc@samurai.com>
82995
82996         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
82997         returned by OSX/Darwin if the specified buffer is not large
82998         enough for the hostname.
82999
83000 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83001
83002         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
83003         pass it to _help, otherwise the latter coredumps trying to
83004         dereference state.root_argp.
83005
83006 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83007
83008         * modules/chdir-long (Depends-on): Add memrchr.
83009         * modules/memrchr (Files): Add lib/memrchr.h.
83010         (Include): "memrchr.h".
83011
83012 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83013
83014         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
83015
83016 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83017
83018         * lib/memrchr.h: New file.
83019         * lib/chdir-long.c: Include it.
83020         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
83021         Don't bother including stddef.h.
83022
83023 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
83024
83025         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
83026         inclusion.
83027         Include <sys/types.h>, for dev_t.
83028         (ME_DUMMY, ME_REMOTE): Move from here....
83029         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
83030         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
83031         Dmitry V. Levin.
83032         Include mountlist.h first, to test the interface.
83033
83034 2005-01-29  Bruno Haible  <bruno@clisp.org>
83035
83036         * lib/progname.c (program_name): Initialize.
83037         Needed when linking statically on MacOS X.
83038
83039 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83040
83041         Sync from coreutils.
83042         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
83043         (Depends-on): Add c-strtod.
83044         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
83045
83046 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83047
83048         Sync from coreutils.
83049         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
83050
83051         Remove files that are specific to coreutils.
83052         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
83053
83054 2005-01-28  Bruno Haible  <bruno@clisp.org>
83055
83056         * modules/javacomp: New file.
83057         * MODULES.html.sh (Java): Add javacomp.
83058
83059 2005-01-28  Bruno Haible  <bruno@clisp.org>
83060
83061         * m4/javacomp.m4: New file, from GNU gettext.
83062
83063 2005-01-28  Bruno Haible  <bruno@clisp.org>
83064
83065         * lib/javacomp.sh.in: New file, from GNU gettext.
83066         * lib/javacomp.h: New file, from GNU gettext.
83067         * lib/javacomp.c: New file, from GNU gettext.
83068
83069 2005-01-26  Simon Josefsson  <jas@extundo.com>
83070
83071         * lib/gai_strerror.c: Use GPL in header.
83072
83073 2005-01-26  Bruno Haible  <bruno@clisp.org>
83074
83075         * modules/javaexec: New file.
83076         * MODULES.html.sh (Java): Add javaexec.
83077
83078 2005-01-26  Bruno Haible  <bruno@clisp.org>
83079
83080         * m4/javaexec.m4: New file, from GNU gettext.
83081
83082 2005-01-26  Bruno Haible  <bruno@clisp.org>
83083
83084         * lib/javaexec.sh.in: New file, from GNU gettext.
83085         * lib/javaexec.h: New file, from GNU gettext.
83086         * lib/javaexec.c: New file, from GNU gettext.
83087
83088 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83089
83090         * modules/lchown (Depends-on): Remove lchown.h
83091
83092 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83093
83094         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
83095         must be defined if the header file was not found, in order
83096         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
83097
83098 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83099
83100         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
83101         initializers for struct pentry_state.
83102         (__argp_error): Check return value of __asprintf
83103         (__argp_failure): Translate error message
83104
83105         * lib/argp-parse.c: Removed braces around the expansion of N_()
83106
83107 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83108
83109         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
83110         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
83111         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
83112         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
83113         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
83114         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
83115         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
83116         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
83117         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
83118         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
83119         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
83120         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
83121         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
83122         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
83123         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
83124         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
83125         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
83126         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
83127         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
83128         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
83129         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
83130         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
83131         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
83132         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
83133         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
83134         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
83135         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
83136         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
83137         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
83138         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
83139         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
83140         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
83141         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
83142         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
83143         xstrtol.m4, xstrtoumax.m4, yesno.m4:
83144         Use an all-permissive copyright notice, recommended by RMS.
83145
83146 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
83147
83148         * modules/chdir-long (Depends-on): Remove mempcpy.
83149
83150 2005-01-21  Jim Meyering  <jim@meyering.net>
83151
83152         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
83153         same value as for Solaris 9.
83154
83155         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
83156         component length.  This included changing the parameter to be
83157         of type `char *' rather than `char const *'.
83158         * lib/chdir-long.h (chdir_long): Update prototype.
83159
83160         * lib/openat.c (fdopendir, fstatat): New functions.
83161         * lib/openat.h: Include headers required for use of DIR and struct
83162         stat.
83163         [AT_SYMLINK_NOFOLLOW]: Define.
83164         (fdopendir, fstatat): Add prototypes.
83165
83166 2005-01-21  Bruno Haible  <bruno@clisp.org>
83167
83168         * modules/classpath: New file.
83169         * MODULES.html.sh (Java): Add classpath.
83170
83171 2005-01-21  Bruno Haible  <bruno@clisp.org>
83172
83173         * lib/classpath.h: New file, from GNU gettext.
83174         * lib/classpath.c: New file, from GNU gettext.
83175
83176 2005-01-20  Simon Josefsson  <jas@extundo.com>
83177
83178         * modules/version-etc-fsf: New file.
83179
83180 2005-01-20  Simon Josefsson  <jas@extundo.com>
83181
83182         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
83183         * lib/version-etc.c: Remove version_etc_copyright.
83184         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
83185         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
83186
83187 2005-01-20  Simon Josefsson  <jas@extundo.com>
83188
83189         * lib/base64.h (isbase64): Add.
83190
83191         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
83192         using a unsigned prototype, don't inline.
83193         (base64_decode): Use it.
83194
83195 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83196
83197         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
83198         it.
83199
83200 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83201
83202         * lib/save-cwd.c (save_cwd): Remove code to support the case
83203         where fchdir is missing or flaky.
83204
83205 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83206
83207         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
83208
83209 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
83210
83211         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
83212         AC_LIBSOURCES now does this.
83213         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
83214         with new ullong_max module.
83215
83216 2005-01-19  Bruno Haible  <bruno@clisp.org>
83217
83218         * modules/sh-quote: New file.
83219         * MODULES.html.sh (Executing programs): Add sh-quote.
83220
83221 2005-01-19  Bruno Haible  <bruno@clisp.org>
83222
83223         * lib/sh-quote.h: New file, from GNU gettext.
83224         * lib/sh-quote.c: New file, from GNU gettext.
83225
83226 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83227
83228         Merge from coreutils.
83229         * m4/ullong_max.m4: New file.
83230         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
83231         (gl_MACROS): Assume localeconv exists.
83232
83233 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83234
83235         Merge changes from coreutils, as described below in several
83236         changelogs dated today.
83237
83238         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
83239         (O_DIRECTORY): Remove; not needed here, since "." must be
83240         a directory.  All uses removed.
83241         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
83242         universal on Suns, and we also need to test for IRIX.
83243         Revamp code to use 'if' rather than '#if'.
83244         Avoid unnecessary comparison of cwd->desc to 0.
83245
83246         * lib/utimens.c (futimens): Robustify the previous patch, by checking
83247         for known valid error numbers rather than observed invalid ones.
83248
83249 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83250
83251         * modules/ullong_max: New file.
83252
83253         * modules/chdir-long, modules/openat: New files.
83254         * modules/save-cwd (Depends-on): Depend on chdir-long.
83255         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
83256
83257 2005-01-18  Jim Meyering  <jim@meyering.net>
83258
83259         Merge from coreutils.
83260         * m4/chdir-long.m4, m4/openat.m4: New files.
83261         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
83262         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
83263         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
83264         is sane and DOES follow symlinks.  Besides, testing 20 different
83265         systems found no broken chown implementations.
83266         Prompted by a change in rsync's copy of this macro.
83267         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
83268
83269         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
83270
83271         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
83272         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
83273         NULL-means-set-to-current-time semantics.
83274         Remove temporary file immediately, rather than waiting
83275         for configure's at-exit trap code to do it.
83276
83277 2005-01-18  Jim Meyering  <jim@meyering.net>
83278
83279         * lib/version-etc.c (version_etc_copyright): Update copyright date.
83280
83281         * lib/utimens.c (futimens): Account for the fact that futimes
83282         can also fail with errno == ENOSYS or errno == ENOENT.
83283         Patch from Dmitry V. Levin.
83284
83285         Change the name of the robust chdir function from chdir to chdir_long.
83286         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
83287         (restore_cwd): Use chdir_long, not chdir.
83288         * lib/chdir-long.c: Renamed from chdir.c.
83289         * lib/chdir-long.h: Renamed from chdir.h.
83290         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
83291         Hurd.
83292
83293 2005-01-18  Bruno Haible  <bruno@clisp.org>
83294
83295         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
83296         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
83297         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
83298         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
83299         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
83300         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
83301         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
83302         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
83303         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
83304         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
83305         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
83306         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
83307         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
83308         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
83309         Use an all-permissive copyright notice, recommended by RMS.
83310
83311 2005-01-18  Bob Proulx  <bob@proulx.com>
83312
83313         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
83314         simplify offsetof() macro construct to avoid compile failure with
83315         native HP-UX 11.0 ANSI C compiler.
83316
83317 2005-01-17  Bruno Haible  <bruno@clisp.org>
83318
83319         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
83320         redundant because stpncpy.m4 takes care of it.
83321
83322 2005-01-17  Bruno Haible  <bruno@clisp.org>
83323
83324         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
83325
83326 2005-01-17  Bruno Haible  <bruno@clisp.org>
83327
83328         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
83329         used.
83330
83331 2005-01-17  Bruno Haible  <bruno@clisp.org>
83332
83333         * lib/fwriteerror.h (fwriteerror): Change specification to include
83334         fclose.
83335         * lib/fwriteerror.c: Include <stdbool.h>.
83336         (fwriteerror): At the end, close the file stream. Record whether
83337         stdout was already closed.
83338
83339 2005-01-17  Bruno Haible  <bruno@clisp.org>
83340
83341         * lib/execute.c (environ): Declare if needed.
83342         * lib/pipe.c (environ): Likewise.
83343         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
83344
83345 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83346
83347         * modules/argp: Depend on vsnprintf
83348
83349 2005-01-10  Jim Meyering  <jim@meyering.net>
83350
83351         * modules/closeout (Depends-on): Add atexit.
83352
83353 2005-01-06  Bruno Haible  <bruno@clisp.org>
83354
83355         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
83356
83357 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83358
83359         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
83360         definitions to be after all include files, to avoid collisions.
83361         Problem reported by Bob Proulx.
83362
83363 2005-01-04  Jim Meyering  <jim@meyering.net>
83364
83365         Changes imported from coreutils.
83366         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
83367         as the mkstemp template, use a temporary directory and an
83368         8.3-friendly template to avoid trouble on systems like DJGPP.
83369         Reported by Juan M. Guerrero via Stepan Kasal.
83370         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
83371         close. Remove the temporary directory right away, rather than waiting
83372         for configure's at-exit trap code to do it.
83373         Suggestion from Stepan Kasal.
83374
83375 2005-01-01  Simon Josefsson  <jas@extundo.com>
83376
83377         * gnulib-tool: Print #include directives when --import'ing.
83378
83379 2004-12-28  Simon Josefsson  <jas@extundo.com>
83380
83381         * tests/test-base64.c: Include required header files.  Remove
83382         unused variables.
83383
83384 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83385
83386         * modules/error (Depends-on): Remove gettext.
83387
83388 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83389
83390         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
83391         not needed.  This removes a dependency on the gettext module.
83392         [defined _LIBC]: Do not include <libintl.h>; not needed.
83393
83394 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83395
83396         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
83397         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
83398
83399 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83400
83401         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
83402         HAVE_DECL_STRTOLD.
83403
83404 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83405
83406         * modules/getdate (Depends-on): Remove alloca-opt.
83407
83408 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83409
83410         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
83411
83412 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83413
83414         * lib/argp-parse.c: Include <stddef.h>.
83415         (alignof, alignto): New macros.
83416         (parser_init): Don't assume that void * is aligned sufficiently
83417         for struct option.
83418
83419         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
83420         need to extend the stack.
83421         (YYINITDEPTH): New macro, so that the initial stack isn't overly
83422         large.
83423
83424 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83425
83426         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
83427
83428 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83429
83430         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
83431         (2004-10-24) change.  Apparently this was a false alarm.
83432
83433         * modules/getdate: Depend on alloca-opt, not alloca.
83434
83435 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83436
83437         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
83438         Remove now-obsolete comment about AIX.
83439         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
83440         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
83441         (YYMAXDEPTH): New macro.
83442
83443 2004-12-18  Simon Josefsson  <jas@extundo.com>
83444
83445         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
83446
83447 2004-12-18  Bruno Haible  <bruno@clisp.org>
83448
83449         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
83450
83451 2004-12-18  Bruno Haible  <bruno@clisp.org>
83452
83453         * lib/fatal-signal.c (fatal_signals): Make non-const.
83454         (init_fatal_signals): New function.
83455         (uninstall_handlers, install_handlers): Ignore signals that were set to
83456         SIG_IGN.
83457         (at_fatal_signal): Call init_fatal_signals.
83458         (init_fatal_signal_set): Likewise. Ignore signals that were set to
83459         SIG_IGN.
83460         Reported by Paul Eggert.
83461
83462 2004-12-18  Bruno Haible  <bruno@clisp.org>
83463
83464         * doc/alloca.texi: New file.
83465         * doc/alloca-opt.texi: New file.
83466
83467 2004-12-17  Jim Meyering  <jim@meyering.net>
83468
83469         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
83470         Otherwise, install-sh could exit with improper exit status when
83471         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
83472
83473 2004-12-16  Simon Josefsson  <jas@extundo.com>
83474
83475         * tests/test-base64.c: Add license.
83476
83477 2004-12-15  Stepan Kasal  <address@hidden>
83478
83479         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
83480
83481 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
83482
83483         * modules/getcwd (Files): Add m4/d-ino.m4.
83484         Suggested by Mark D. Baushke.
83485
83486 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83487
83488         * lib/getdate.y (textint): New member "negative".
83489         (time_zone_hhmm): New function.
83490         Expect 14 shift-reduce conflicts, not 13.
83491         (o_colon_minutes): New rule.
83492         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
83493         (yylex): Set the "negative" member of signed numbers.
83494
83495 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83496
83497         * doc/getdate.texi (Time of day items, Time zone items):
83498         Describe new formats +00:00, UTC+00:00.
83499
83500 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83501
83502         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
83503         spurious "-l"s.  Problem reported by Stepan Kasal.
83504
83505 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
83506
83507         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
83508         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
83509
83510 2004-12-04  Simon Josefsson  <jas@extundo.com>
83511
83512         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
83513         Vandoorselaere <yoann@prelude-ids.org>.
83514
83515 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83516
83517         Changes imported from coreutils.
83518         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
83519         exist.
83520         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
83521
83522 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83523
83524         Changes imported from coreutils.
83525         * lib/hard-locale.c: Assume <locale.h> exists.
83526         Include "strdup.h".
83527         (GLIBC_VERSION): New macro.
83528         (hard_locale): Assume setlocale exists.
83529         Rewrite to avoid #ifdef.
83530         Use strdup rather than malloc + strcpy.
83531         * lib/human.c: Assume <locale.h> exists.
83532         (human_readable): Assume localeconv exists.
83533
83534 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83535
83536         * modules/hard-locale (Depends-on): Add strdup.
83537
83538 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
83539
83540         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
83541         convert T2, not T.  (Imported from libc.)
83542
83543 2004-11-30  Simon Josefsson  <jas@extundo.com>
83544
83545         * modules/restrict (License): Change to LGPL.
83546
83547 2004-11-30  Simon Josefsson  <jas@extundo.com>
83548
83549         * m4/restrict.m4: Add copyright and copying conditions.
83550
83551 2004-11-30  Simon Josefsson  <jas@extundo.com>
83552
83553         * m4/base64.m4: New file.
83554
83555 2004-11-30  Simon Josefsson  <jas@extundo.com>
83556
83557         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
83558         base64.
83559
83560         * tests/test-base64.c: New file.
83561
83562         * modules/base64: New file.
83563
83564 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83565
83566         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
83567         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
83568
83569         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
83570
83571 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83572
83573         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
83574         (__getcwd.c): Don't restore errno; glibc doesn't.
83575         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
83576         first, falling back to our code only if its results look suspicious.
83577         Ensure that the resulting buffer is only as large as necessary.
83578
83579         * lib/readutmp.c: Include readutmp.h first.
83580         Include <errno.h>, since readutmp.h no longer does that.
83581         * lib/readutmp.h: Don't include <errno.h>,
83582         <sys/param.h>, <time.h>; not needed to establish interface.
83583         (errno): Remove decl.
83584         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
83585         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
83586         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
83587
83588 2004-11-28  Simon Josefsson  <jas@extundo.com>
83589
83590         * lib/base64.h, base64.c: New file.
83591
83592 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
83593
83594         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
83595
83596 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
83597
83598         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
83599         (Depends-on): Remove pathmax, same.  Add mempcpy.
83600         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
83601         (Makefile.am): Append getcwd.h to lib_SOURCES.
83602         (Include): Add getcwd.h.
83603         (Maintainer): Change from Jim Meyering to "all, glibc",
83604         since getdate now uses intended-for-glibc code.
83605         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
83606         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
83607
83608 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83609
83610         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
83611         HP's ANSI C compiler.
83612         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
83613         Declaring int functions causes warnings on some modern systems and
83614         shouldn't be needed to compile on ancient ones.
83615         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
83616         defined.
83617
83618         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
83619         with the following changes.
83620         (__set_errno): Parenthesize properly.
83621         Include <stdbool.h>.
83622         (MIN, MAX, MATCHING_INO): New macros.
83623         (__getcwd): Define with prototype, not K&R form.
83624         Use heuristics to allocate default buffer on stack if possible.
83625         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
83626         behavior, and to avoid the PATH_MAX limit when computing
83627         ../../../../...
83628         Use MATCHING_INO to compare inode number to file.
83629         Check for arithmetic overflow in size calculations.
83630         Fix bug in reallocation of dot array that caused getcwd to fail
83631         on directories nested deeper than 75.
83632         Be more careful about saving errno on error.
83633         Do not use realloc; use only free+malloc, as this is a bit
83634         more flexible and avoids a needless copy operation.
83635         Do not inspect st_dev and st_ino for symbolic links; POSIX
83636         doesn't specify the latter.
83637         Check for closedir errors.
83638         Avoid needless casts.
83639         Use "#ifdef weak_alias" around weak_alias, to be like other
83640         glibc code.
83641         The following changes to getcwd.c have effect only when used in
83642         gnulib; they have no effect inside glibc proper.
83643         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
83644         as alloca isn't used.
83645         (alloca, __alloca): Likewise.
83646         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
83647         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83648         unconditionally, as gnulib assumes C89 or better.
83649         Do not include <sys/param.h>.
83650         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
83651         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
83652         better.
83653         (NULL) [!defined NULL]: Remove; we assume C89 or better.
83654         Include <dirent.h> in a way that is compatible with modern Autoconf.
83655         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
83656         New macros, if not already defined.
83657         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
83658         Use "_LIBC", not "defined _LIBC", for consistency.
83659         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
83660         a mempcpy module.
83661         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
83662         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
83663         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
83664         credit only to Jim Meyering and adjust the copyright dates.
83665         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
83666         <stdlib.h>, <unistd.h>, "pathmax.h".
83667         Instead, include "xgetcwd.h" (first) and "getcwd.h".
83668         (INITIAL_BUFFER_SIZE): Remove.
83669         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
83670
83671 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83672
83673         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
83674         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
83675         Use the _ONCE methods, for efficiency.
83676         Check for fcntl.h.  In test program, include <errno.h>
83677         and <fcntl.h> if available.  Remove old K&R cruft from
83678         test program.  Check for common errors in GNU/Linux,
83679         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
83680         don't do AC_LIBOBJ, as that's getcwd.m4's job.
83681         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
83682         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
83683         name accordingly.
83684         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
83685         accommodate new getcwd.c.
83686         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
83687         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
83688         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
83689         that's all we need now.
83690
83691 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83692
83693         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
83694         argp-parse.c depends on getopt internals, that means we should
83695         always use our getopt, to be on the safe side.
83696         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
83697         order not to spoil the result of an eventual previous invocation
83698         of gl_GETOPT_SUBSTITUTE.
83699
83700 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83701
83702         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
83703         redefinition warnings. To avoid them, include the defines
83704         in `#if !defined __need_getopt ... #endif'. The only place
83705         where __getopt_argv_const is used is in definitions
83706         of getopt_long and getopt_long_only below, which are as well
83707         protected by `#ifndef __need_getopt'.
83708         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
83709         __need_getopt after including <stdio.h> and <unistd.h> These
83710         headers might have defined it.
83711
83712 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
83713
83714         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
83715
83716 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
83717
83718         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
83719         (futimens): New function, which uses futimes if available.
83720         (futimens, utimens): Support timespec==NULL, with same semantics
83721         as utime and utimens.
83722         * lib/utimens.h (futimens): New decl.
83723
83724 2004-11-23  Jim Meyering  <jim@meyering.net>
83725
83726         * lib/getopt_.h: Remove trailing blanks.
83727
83728 2004-11-23  Jim Meyering  <jim@meyering.net>
83729
83730         * lib/__fpending.c: Add comment.
83731
83732 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
83733
83734         * modules/canonicalize (Depends-on): Add xreadlink.
83735         Problem reported by James Youngman.
83736
83737 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
83738
83739         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
83740         New macros.
83741         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
83742         optopt): Use them instead of invoking ## directly; otherwise, the
83743         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
83744
83745 2004-11-19  Bruno Haible  <bruno@clisp.org>
83746
83747         * lib/strtok_r.c: Move comments from here...
83748         * lib/strtok_r.h: ... to here.
83749
83750 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
83751
83752         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
83753         implementations that mishandle size_t overflow.
83754
83755 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
83756
83757         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
83758         might fail.  Problem reported by Yoann Vandoorselaere.
83759         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
83760         implementations that mishandle size_t overflow.
83761
83762 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83763
83764         * modules/canon-host (Depends-on): Add strdup.
83765
83766 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83767
83768         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
83769
83770 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83771
83772         * lib/canon-host.c: Include "strdup.h".
83773         (canon_host): Use getaddrinfo if available, so that IPv6 works.
83774         Use strdup instead of malloc/strcpy to duplicate strings.
83775
83776         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
83777         (human_space_before_unit): New constant.
83778         * lib/human.c (human_readable): Support it.
83779
83780         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
83781         (xgetcwd): Set errno correctly when failing.
83782         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
83783         the failure is actually due to a PATH_MAX problem.
83784
83785         Further getopt changes to make it more likely that glibc will
83786         buy the changes back.
83787         * lib/getopt.c (POSIXLY_CORRECT): New constant.
83788         (getopt): Use it, so to preserve glibc semantic
83789         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
83790         when compiling for libc.
83791         * lib/getopt_.h (__getopt_argv_const): Bring it back.
83792         (getopt_long, getopt_long_only): Use it.
83793
83794         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
83795         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
83796         (getopt): Argv is now char * const *, as per standard.
83797         (_getopt_internal_r, _getopt_internal): Argv is now char **,
83798         not char *__getopt_argv_const *.
83799         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
83800         _getopt_long_only_r): Likewise.
83801         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
83802         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
83803         _getopt_long_r, _getopt_long_only_r): Likewise.
83804         * lib/getopt_.h (__getopt_argv_const): Remove.
83805         (getopt): Argv is now char * const *, as per standard.
83806
83807         * lib/getdate.y (tORDINAL): New token.
83808         (day, relunit): Allow it for relative times.
83809         (relative_time_table): Use tORDINAL for ordinals.
83810
83811 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83812
83813         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
83814         Document that "second" isn't allowed as an ordinal number.
83815
83816 2004-11-16  Jim Meyering  <jim@meyering.net>
83817
83818         * modules/closeout (Depends-on): Add fpending.
83819
83820 2004-11-15  Jim Meyering  <jim@meyering.net>
83821
83822         * lib/closeout.c: Include "__fpending.h" once again.
83823         Include <stdbool.h>.
83824         (close_stdout): Don't fail just because stdout was closed initially,
83825         since some programs don't write to stdout in the normal course of
83826         operation (other than --version and --help), and we don't want this
83827         function to make e.g. `touch file >&-' fail.
83828         But do fail if it was closed and someone has tried to write to it.
83829         E.g., `printf foo >&-' must fail.
83830
83831 2004-11-13  Jim Meyering  <jim@meyering.net>
83832
83833         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
83834
83835 2004-11-12  Simon Josefsson  <jas@extundo.com>
83836
83837         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
83838         small doc fix is still pending.
83839
83840 2004-11-11  Simon Josefsson  <jas@extundo.com>
83841
83842         * modules/strtok_r: New file.
83843
83844         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83845         strtok_r.
83846
83847 2004-11-11  Simon Josefsson  <jas@extundo.com>
83848
83849         * m4/strtok_r.m4: New file.
83850
83851         * m4/getopt.m4: Replace opterr.
83852
83853 2004-11-11  Simon Josefsson  <jas@extundo.com>
83854
83855         * lib/strtok_r.h, strtok_r.c: New file.
83856
83857 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
83858
83859         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
83860         of replacing opterr, getopt, etc.  This should handle the
83861         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
83862
83863 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
83864
83865         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
83866         we can stop lying to compilers about the constness of argv when we
83867         are compiled outside glibc.
83868         (getopt, getopt_long, getopt_long_only): Use it.
83869         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
83870         _getopt_internal, getopt): Likewise.
83871         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
83872         _getopt_long_only_r): Likewise.
83873         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
83874         _getopt_long_r, _getopt_long_only_r): Likewise.
83875
83876         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
83877         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
83878         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
83879         the other external symbols.
83880         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
83881         declaration, since the above renaming now works around collisions.
83882
83883 2004-11-11  Jim Meyering  <jim@meyering.net>
83884
83885         * lib/linebreak.c: Remove trailing blanks.
83886         * lib/alloca_.h: Likewise.
83887         * lib/acosl.c: Likewise.
83888         * lib/euidaccess.c: Likewise.
83889         * lib/allocsa.h: Likewise.
83890
83891 2004-11-10  Simon Josefsson  <jas@extundo.com>
83892
83893         * m4/getaddrinfo.m4: New file.
83894
83895 2004-11-10  Simon Josefsson  <jas@extundo.com>
83896
83897         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
83898
83899 2004-11-10  Simon Josefsson  <jas@extundo.com>
83900
83901         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83902         getaddrinfo.
83903
83904         * modules/getaddrinfo: New file.
83905
83906 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83907
83908         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
83909
83910 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83911
83912         * lib/mktime.c (SHR): New macro, which is a portable
83913         substitute for >> that should work even on Crays.
83914         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
83915         Problem reported by Mark D. Baushke in
83916         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
83917         * lib/getdate.y (SHR): Likewise.
83918         (tm_diff): Use it.
83919         * lib/strftime.c (SHR): Likewise.
83920         (tm_diff): Use it.
83921         * lib/quotearg.c (struct quoting_options): Use unsigned int for
83922         quote_these_too, so that right shifts are well defined.  All uses
83923         changed.
83924
83925 2004-11-10  Jim Meyering  <jim@meyering.net>
83926
83927         Ensure that no close failure goes unreported.
83928         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
83929         return early when it seems there's nothing to flush.
83930         Don't include __fpending.h.
83931
83932 2004-11-10  Jim Meyering  <jim@meyering.net>
83933
83934         * modules/closeout (Depends-on): Remove fpending.
83935
83936 2004-11-10  Jim Meyering  <jim@meyering.net>
83937
83938         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
83939
83940 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
83941
83942         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
83943         gl_FUNC_STRFTIME.
83944         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
83945         and AC_REQUIRE when possible, to avoid duplicate checks.
83946         Check for <wchar.h>.
83947
83948 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
83949
83950         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
83951
83952 2004-11-09  Bruno Haible  <bruno@clisp.org>
83953
83954         * m4/sockpfaf.m4: New file.
83955
83956 2004-11-05  Bruno Haible  <bruno@clisp.org>
83957
83958         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
83959         Reported by Mark D. Baushke <mdb@cvshome.org>.
83960
83961 2004-11-04  Bruno Haible  <bruno@clisp.org>
83962
83963         2004-09-11  Bruno Haible  <bruno@clisp.org>
83964                 * allocsa.valgrind: New file.
83965         2004-02-06  Bruno Haible  <bruno@clisp.org>
83966                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
83967                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
83968                 Reported by Christopher Seip <chris.seip@hp.com>.
83969
83970 2004-11-04  Bruno Haible  <bruno@clisp.org>
83971
83972         * modules/allocsa (Files): Add lib/allocsa.valgrind.
83973         (Makefile.am): Distribute it.
83974
83975 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
83976
83977         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
83978         with errno == ERANGE if the buffer is too small.
83979         Problem reported by Mark D. Baushke.
83980
83981 2004-11-03  Albert Chin  <china@thewrittenword.com>
83982             Paul Eggert  <eggert@cs.ucla.edu>
83983
83984         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
83985         equivalent, substitute $ac_type for equivalent type rather than
83986         blindly using uint32_t *always* which won't work if uint32_t is not
83987         available.  Define _UINT32_T to work around typedef of uint32_t if
83988         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
83989         2.5.1.
83990
83991 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
83992
83993         * m4/jm-macros.m4: Sync from coreutils.
83994         (gl_MACROS): Check for mbrlen, for pathchk.
83995         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
83996
83997 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
83998
83999         * lib/xreadlink.c (MAXSIZE): New macro.
84000         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
84001         size does not exceed MAXSIZE.  Avoid cast.
84002         As suggested by Mark D. Baushke in
84003         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
84004         if readlink fails with buffer size just under MAXSIZE, try again
84005         with MAXSIZE.
84006
84007 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84008
84009         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
84010
84011 2004-11-02  Derek R. Price  <derek@ximbiot.com>
84012         and  Paul Eggert  <eggert@cs.ucla.edu>
84013
84014         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
84015         (get_date): Overparenthesize to avoid GCC warning.
84016
84017 2004-11-02  Bruno Haible  <bruno@clisp.org>
84018
84019         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
84020         returns void.
84021
84022 2004-11-02  Bruno Haible  <bruno@clisp.org>
84023
84024         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
84025         function returns void.
84026
84027 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84028
84029         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
84030         fflush_unlocked, flockfile, funlockfile, funlockfile,
84031         fputs_unlocked, putc_unlocked.
84032
84033 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84034
84035         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84036         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
84037         already declared.
84038
84039 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84040
84041         * modules/getdate (Files): Add doc/getdate.texi.
84042         (Depends-on): Add setenv, xalloc.
84043
84044 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84045
84046         * lib/getdate.y: Add support for TZ="foo" within a date string.
84047         Fix some bugs near time_t boundaries.  Reject dates with
84048         out-of-range components, e.g., "Sept 31".
84049         Include <stdlib.h>, "setenv.h", "xalloc.h".
84050         (ISDIGIT_LOCALE): Remove; unused.
84051         Note that the TZ and time functions used here are not reentrant.
84052         (mktime_ok, get_tz): New functions.
84053         (TZBUFSIZE): New constant.
84054         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
84055         This requires that we sometimes generate our own TZ="XXX..." setting.
84056
84057 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84058
84059         * doc/getdate.texi: New file, from coreutils with modifications for
84060         the new TZ parsing.
84061
84062 2004-10-27  Derek R. Price  <derek@ximbiot.com>
84063
84064         * lib/mktime.c (not_equal_tm): Remove redundant check.
84065
84066 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84067
84068         * modules/regex (lib_SOURCES): Add regex.c.
84069         Reported by James Youngman in
84070         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
84071
84072 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84073
84074         * lib/getdate.y: Use Bison 1.875 features, and some minor
84075         code cleanups.  This change does not affect semantics.
84076         Don't include <stdlib.h>; no longer needed.
84077         Don't include unlocked-io.h; only the "#if TEST" code uses
84078         stdio, and performance isn't crucial there.
84079         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
84080         Bison 1.875 features as described below.
84081         All uses of "PC." replaced by "pc->".
84082         (YYSTYPE): Add a forward declaration.
84083         (yylex, yyerror): Use full prototypes in forward decls.
84084         Use "%pure-parser" rather than obsolescent "%pure_parser".
84085         Use %parse-param and %lex-param instead of obsolescent
84086         YYPARSE_PARAM and YYLEX_PARAM.
84087         (meridian_table, month_and_day_table, time_units_table,
84088         relative_time_table, time_zone_table, military_table,
84089         lookup_zone, lookup_word, get_date):
84090         Use NULL instead of 0 where appropriate.
84091         (to_hour): Avoid abort (), to avoid a dependency on
84092         stdlib.h.
84093         (yyerror, yylex): Now accepts parser_control * arg.
84094         (main) [TEST]: Use '\0' rather than 0 for char.
84095
84096 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84097
84098         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
84099
84100 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84101
84102         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
84103         It's now the caller's responsibility to handle the case where
84104         !HAVE_GETPAGESIZE && !defined getpagesize.
84105
84106         * lib/mktime.c (leapyear): Arg is long int, not int.
84107
84108 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
84109
84110         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
84111
84112 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
84113
84114         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
84115         missing.  Problem reported by James Youngman.
84116
84117 2004-10-16  Simon Josefsson  <jas@extundo.com>
84118
84119         * gnulib-tool: Fix comments.  Fix parse problem.
84120         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
84121
84122 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
84123
84124         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
84125         implementation of getopt_long.  Problem reported by Alexander Taler in:
84126         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
84127
84128 2004-10-15  Bruno Haible  <bruno@clisp.org>
84129
84130         * gnulib-tool: Untabify. Initialize supplied_libname.
84131         (func_usage): More homogenous output.
84132         (func_modules_transitive_closure, func_modules_to_filelist,
84133         func_emit_lib_Makefile_am): New functions.
84134         (func_import): New function, extracted from big case statement. Use
84135         func_get_license, func_modules_transitive_closure,
84136         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
84137         opt_lgpl. Don't use test -a, as it's not portable.
84138         (func_create_testdir): Use func_modules_transitive_closure,
84139         func_modules_to_filelist, func_emit_lib_Makefile_am.
84140
84141 2004-10-15  Bruno Haible  <bruno@clisp.org>
84142
84143         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
84144
84145 2004-10-15  Bruno Haible  <bruno@clisp.org>
84146
84147         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
84148         the portions belonging to each module.
84149         Suggested by Derek Robert Price <derek@ximbiot.com>.
84150
84151 2004-10-12  Simon Josefsson  <jas@extundo.com>
84152
84153         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84154         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
84155         to real functions.
84156
84157 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84158
84159         * modules/vsnprintf: New file.
84160
84161 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84162
84163         * m4/vsnprintf.m4: New file.
84164
84165 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84166
84167         * lib/vsnprintf.h: New file.
84168         * lib/vsnprintf.c: New file.
84169
84170 2004-10-11  Bruno Haible  <bruno@clisp.org>
84171
84172         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
84173         vsnprintf.
84174
84175 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
84176
84177         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
84178
84179 2004-10-07  Bruno Haible  <bruno@clisp.org>
84180
84181         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
84182         fits into the provided buffer.
84183
84184 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
84185
84186         * lib/diacrit.c, diacrit.h: Add GPL notice.
84187
84188         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
84189         notice.
84190         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
84191         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
84192         This avoids a potential constant-folding bug.
84193
84194 2004-10-05  Bruno Haible  <bruno@clisp.org>
84195
84196         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
84197         for the declaration of strsep.
84198
84199 2004-10-05  Bruno Haible  <bruno@clisp.org>
84200
84201         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
84202
84203 2004-10-04  Simon Josefsson  <jas@extundo.com>
84204
84205         * modules/memmem: New file.
84206         * tests/test-memmem.c: New file.
84207         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
84208
84209 2004-10-04  Simon Josefsson  <jas@extundo.com>
84210
84211         * m4/memmem.m4: New file.
84212
84213 2004-10-04  Simon Josefsson  <jas@extundo.com>
84214
84215         * lib/memmem.h: New file.
84216         * lib/memmem.c: New file, taken from glibc.
84217
84218 2004-10-04  Simon Josefsson  <jas@extundo.com>
84219
84220         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
84221         '#ifdef USE_UNLOCKED_IO'.
84222
84223 2004-10-04  Simon Josefsson  <jas@extundo.com>
84224
84225         * config/srclist.txt: Add memmem from glibc.
84226
84227 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84228
84229         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
84230
84231         * modules/argmatch, modules/argp, modules/closeout, modules/error,
84232         modules/exclude, modules/getdate, modules/getline,
84233         modules/getndelim2, modules/getpass, modules/getpass-gnu,
84234         modules/getusershell, modules/linebuffer, modules/md5,
84235         modules/mountlist, modules/posixtm, modules/readtokens,
84236         modules/readutmp, modules/regex, modules/sha1,
84237         modules/version-etc, modules/yesno:
84238         Remove dependency on unlocked-io.
84239
84240 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84241
84242         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
84243
84244         * m4/unlocked-io.m4: Add copyright notice.
84245         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
84246
84247 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84248
84249         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
84250         * lib/xmalloc.c (xmemdup): Likewise.
84251         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
84252         XFREE): Remove these long-obsolescent macros.
84253         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
84254         * lib/xstrdup.c: Remove.
84255
84256         * lib/regex.c (re_comp): Cast gettext return value to char *,
84257         Problem reported by Martin Neitzel via Mark D. Baushke.
84258
84259 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84260
84261         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
84262         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
84263         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
84264         regex.c, sha1.c, version-etc.c, yesno.c:
84265         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
84266         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
84267         the includer's responsibility.
84268
84269         Sync from coreutils.
84270
84271         * lib/modechange.c (mode_compile): Don't decrement a pointer that
84272         points to the start of a string, as the C Standard says the
84273         resulting behavior is undefined.
84274
84275         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
84276         simple -> simple_backups, numbered_existing ->
84277         numbered_existing_backups, numbered -> numbered_backups
84278         to avoid shadowing problems.  All uses changed.
84279         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
84280         * lib/backupfile.c (check_extension, numbered_backup):
84281         Rename locals to avoid shadowing 'basename'.
84282         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
84283         once.
84284
84285         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
84286         * lib/.cvsignore: Add getopt.h.
84287
84288 2004-10-04  Bruno Haible  <bruno@clisp.org>
84289
84290         * modules/README: New file.
84291         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
84292         not a module.
84293
84294 2004-10-02  Jim Meyering  <jim@meyering.net>
84295
84296         * lib/dirfd.h, getpagesize.h: Add copyright notice.
84297
84298 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84299
84300         * modules/strsep: New file.
84301
84302 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84303
84304         * m4/strsep.m4: New file.
84305
84306 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84307
84308         * lib/strsep.h: New file.
84309         * lib/strsep.c: New file.
84310
84311 2004-10-01  Simon Josefsson  <jas@extundo.com>
84312
84313         * lib/snprintf.c (snprintf): Handle size==0.
84314
84315 2004-10-01  Simon Josefsson  <jas@extundo.com>
84316             Bruno Haible  <bruno@clisp.org>
84317
84318         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
84319         (snprintf): Declare 'args'.
84320
84321 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
84322
84323         * lib/snprintf.c: Remove comments as to why each header is needed.
84324
84325 2004-10-01  Bruno Haible  <bruno@clisp.org>
84326
84327         * MODULES.html.sh: Add strsep.
84328
84329 2004-09-30  Simon Josefsson  <jas@extundo.com>
84330
84331         * modules/snprintf: New file.
84332
84333 2004-09-30  Simon Josefsson  <jas@extundo.com>
84334
84335         * m4/snprintf.m4: New file.
84336
84337 2004-09-30  Simon Josefsson  <jas@extundo.com>
84338
84339         * lib/snprintf.h, lib/snprintf.c: New files.
84340
84341 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84342
84343         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
84344         (hol_entry_help): Never translate an empty string.
84345         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
84346         * lib/argp.h (OPTION_NO_TRANS): New option.
84347
84348 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84349
84350         * modules/argp (Maintainer): Replace Simon Josefsson
84351         by Sergey Poznyakoff.
84352
84353 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84354
84355         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
84356         changes merged back into glibc.
84357
84358 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84359
84360         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
84361
84362 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84363
84364         * lib/xvasprintf.c: Include xalloc.h.
84365         (xvasprintf): Use xalloc_die, not xmalloc_die.
84366
84367 2004-09-29  Bruno Haible  <bruno@clisp.org>
84368
84369         * modules/alloca-opt: New file, derived from modules/alloca.
84370         * modules/allocsa: Depend on alloca-opt instead of alloca.
84371         * modules/setenv: Likewise.
84372         * modules/vasnprintf: Likewise.
84373         * MODULES.html.sh: Add alloca-opt.
84374
84375 2004-09-28  Simon Josefsson  <jas@extundo.com>
84376
84377         * gnulib-tool: New parameter --lgpl, to asseert that modules are
84378         LGPL, and to replace license template from GPL to LGPL.
84379
84380 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84381
84382         * modules/dummy: Change license to LGPL.
84383
84384 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84385
84386         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
84387
84388 2004-09-24  Simon Josefsson  <jas@extundo.com>
84389
84390         * modules/minmax (License): Change from GPL to LGPL.
84391
84392 2004-09-23  Simon Josefsson  <jas@extundo.com>
84393
84394         * gnulib-tool (--import): Typo.
84395
84396 2004-09-23  Simon Josefsson  <jas@extundo.com>
84397
84398         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
84399
84400 2004-09-22  Bruno Haible  <bruno@clisp.org>
84401
84402         * modules/*: Add 'License' field.
84403         * gnulib-tool: Accept --extract-license option.
84404         (func_get_license): New function.
84405
84406 2004-09-21  Bruno Haible  <bruno@clisp.org>
84407
84408         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
84409         Reported by Simon Josefsson.
84410
84411 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84412
84413         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
84414         gl_AC_TYPE_LONG_LONG.
84415
84416 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84417
84418         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
84419
84420 2004-09-18  Simon Josefsson  <jas@extundo.com>
84421         and  Paul Eggert  <eggert@cs.ucla.edu>
84422
84423         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
84424         calls with autoreconf.  Define GL_LIB.
84425
84426 2004-09-14  Karl Berry  <karl@gnu.org>
84427
84428         * config/srclist.txt: unsync setenv.c, sigh.
84429
84430 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84431
84432         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
84433         Problem reported by Bruno Haible in:
84434         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
84435
84436 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84437
84438         * config/srclist.txt: Comment out argp-pvh.c.
84439
84440 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
84441
84442         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
84443         in case some system header has #define'd it.  Problem reported by
84444         Soeren D. Schulze in
84445         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
84446
84447 2004-09-09  Karl Berry  <karl@gnu.org>
84448
84449         * regex.[ch]: delete from the root.  These were supposed to be
84450                 synced with emacs cvs, but this has not happened for about
84451                 a year, and anyway nothing else uses emacs regex.[ch].
84452                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
84453                 lib/regex[.ch] is untouched.
84454
84455 2004-09-09  Bruno Haible  <bruno@clisp.org>
84456
84457         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
84458
84459 2004-09-09  Bruno Haible  <bruno@clisp.org>
84460
84461         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
84462         modifications.
84463         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
84464
84465 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84466
84467         * modules/xvasprintf: New file.
84468         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
84469
84470 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84471
84472         * lib/xvasprintf.h: New file.
84473         * lib/xvasprintf.c: New file.
84474         * lib/xasprintf.c: New file.
84475
84476 2004-09-08  Bruno Haible  <bruno@clisp.org>
84477
84478         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
84479
84480 2004-09-08  Bruno Haible  <bruno@clisp.org>
84481
84482         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
84483         length is > INT_MAX.
84484         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
84485         more.
84486
84487 2004-09-08  Bruno Haible  <bruno@clisp.org>
84488
84489         * lib/stdint_.h: New file, taken from GNU clisp.
84490
84491 2004-09-08  Bruno Haible  <bruno@clisp.org>
84492             Oskar Liljeblad  <oskar@osk.mine.nu>
84493
84494         * modules/stdint: New file.
84495         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
84496
84497 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84498
84499         Import from coreutils.
84500         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
84501         strings on unbounded length.  alloca's performance benefits aren't
84502         that important here.
84503         (V_STRDUP): Remove.
84504         (parse_with_separator): New function, with most of the internals
84505         of the old parse_user_spec.  Allow user to omit both user and group,
84506         for compatibility with FreeBSD.
84507         Clone only the user name, not the entire spec.
84508         Do not set *uid, *gid unless entirely successful.
84509         Avoid memory leak in some failing cases.
84510         Fix regression for USER.GROUP reported by Dmitry V. Levin in
84511         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
84512         (parse_user_spec): Rewrite to use parse_with_separator.
84513
84514 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84515
84516         * modules/userspec: Don't depend on alloca.
84517
84518 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84519
84520         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
84521
84522 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84523
84524         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
84525         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
84526         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
84527
84528 2004-08-16  Simon Josefsson  <jas@extundo.com>
84529
84530         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
84531         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
84532         Add --dry-run for --import.
84533         Let user provided command line parameters override configure.ac
84534         settings.
84535
84536 2004-08-12  Simon Josefsson  <jas@extundo.com>
84537
84538         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
84539         as discussed with Paul Eggert in threads rooted at
84540         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
84541         and
84542         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
84543         Before, the test was empty, and relied on ELIDE_CODE in source
84544         code.)
84545         (gl_PREREQ_GETOPT): New macro.
84546         (gl_GETOPT): Use them.
84547
84548 2004-08-12  Simon Josefsson  <jas@extundo.com>
84549
84550         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
84551         * lib/getopt_.h: Renamed from getopt.h.
84552
84553 2004-08-12  Simon Josefsson  <jas@extundo.com>
84554
84555         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
84556         Change default library name from libfoo to libgnu.
84557         Now, if you have a configure.ac that says:
84558                 gl_SOURCE_BASE(gl)
84559                 gl_M4_BASE(gl/m4)
84560                 gl_MODULES(error getopt etcetera)
84561                 gl_INIT
84562         you can import all you need by running:
84563                 ../gnulib/gnulib-tool --import
84564
84565         * modules/getopt (Files): Rename getopt.h to getopt_.h.
84566         (Makefile.am): Rewrite, use logic from argz.
84567         (Include): Use <getopt.h> instead of "getopt.h".
84568
84569 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84570
84571         * modules/argp (Files): Add m4/unlocked-io.m4.
84572         (Depends-on): Add extensions.
84573
84574 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84575
84576         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
84577         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
84578         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
84579         Check for program_invocation_name, program_invocation_short_name,
84580         flockfile, funlockfile, features.h, _getopt_long_only_r.
84581
84582 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84583
84584         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
84585         its complicated substitute.
84586         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
84587         and program_invocation_name.
84588         (__argp_basename) [!_LIBC]: Remove; the only use was
84589         replaced by its body.
84590         (__argp_short_program_name): Change condition from
84591         !defined __argp_short_program_name to
84592         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
84593         to match argp-namefrob.h.
84594         (__argp_failure): Don't assume strerror_r returns char *.
84595         * lib/argp-parse.c (N_): Define unconditionally.
84596         (argp_default_options): Fill out initializers with 0 to avoid
84597         gcc warnings.
84598
84599 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84600
84601         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
84602         getopt1.c.
84603
84604 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84605
84606         Merge from coreutils.
84607
84608         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
84609
84610         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
84611         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
84612
84613 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84614
84615         Merge from coreutils.
84616
84617         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
84618         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
84619         for Reliant Unix 5.43.
84620
84621         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
84622         (union fooround): Use uintmax_t, not long int.
84623         The rest is a merge from libc:
84624         [defined _LIBC]: Include <shlib-compat.h>.
84625         (_obstack) [defined _LIBC]: Remove after 2.3.4.
84626
84627         * lib/settime.c (settime): Recode to avoid warning with
84628         Sun Forte C 6U2.
84629
84630         * lib/strverscmp.c: Convert to UTF-8.
84631
84632 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84633
84634         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84635         m4/uintmax_t.m4.
84636
84637 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84638
84639         * modules/xalloc-die: New file.
84640         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
84641
84642         * modules/md5 (Files): Add m4/uint32_t.m4.
84643         * modules/sha1: Renamed from modules/sha.
84644         (Files):
84645         Rename lib/sha.h to lib/sha1.h.
84646         Rename lib/sha.c to lib/sha1.c.
84647         Rename m4/sha.m4 to m4/sha1.m4.
84648         (lib_SOURCES): Likewise.
84649         (configure.ac): Rename gl_SHA to gl_SHA1.
84650         (Include): sha.h -> sha1.h.
84651
84652 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84653
84654         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
84655         * m4/sha1.m4: Renamed from sha.m4.
84656         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
84657
84658 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84659
84660         * lib/obstack.h (obstack_empty_p):
84661         Don't assume that chunk->contents is suitably aligned.
84662         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
84663         Likewise. Problem reported by Benno in
84664         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
84665
84666         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
84667         readable.  This could be improved further but it'd take some work.
84668
84669 2004-08-08  Simon Josefsson  <jas@extundo.com>
84670
84671         * modules/xgethostname (Depends-on): Remove exit and error (not
84672         used).
84673
84674         * modules/getpass-gnu: Add getpass.h.
84675         (Depends-on): Add stdbool.
84676         * modules/getpass: Add getpass.h.
84677
84678 2004-08-08  Simon Josefsson  <jas@extundo.com>
84679
84680         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
84681         Check getpass declaration.
84682
84683 2004-08-08  Simon Josefsson  <jas@extundo.com>
84684
84685         * lib/xgethostname.c: Don't include error.h (not used).
84686
84687         * lib/getpass.h: Add.
84688         * lib/getpass.c: Include getpass.h first.
84689
84690 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
84691
84692         * lib/xalloc-die.c: New file.
84693         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
84694         All uses removed.
84695         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
84696         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
84697         xalloc-die.c.
84698         (_, N_, xalloc_die): Move to xalloc-die.c.
84699         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
84700         so that we needn't mess with xalloc_msg_memory_exhausted.
84701
84702         * lib/sha1.h: Renamed from sha.h.
84703         (SHA1_H): Renamed from _SHA_H.
84704         (sha1_ctx): Renamed from sha_ctx.
84705         (sha1_init_ctx): Renamed from sha_init_ctx.
84706         (sha1_process_block): Renamed from sha_process_block.
84707         (sha1_process_bytes): Renamed from sha_process_bytes.
84708         (sha1_finish_ctx): Renamed from sha_finish_ctx.
84709         (sha1_read_ctx): Renamed from sha_read_ctx.
84710         (sha1_stream): Renamed from sha_stream.
84711         (sha1_buffer): Renamed from sha_buffer.
84712         * lib/sha1.c: Likewise; renamed from sha.c.
84713         Do not include <sys/types.h>.
84714         Include <stddef.h> rather than <stdlib.h>.
84715
84716 2004-08-08  Bruno Haible  <bruno@clisp.org>
84717
84718         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
84719         FILESYSTEM_PREFIX_LEN.
84720         * lib/progreloc.c: Likewise.
84721         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
84722
84723 2004-08-06  Simon Josefsson  <jas@extundo.com>
84724
84725         * modules/progname (Depends-on): Don't depend on stdbool.
84726
84727 2004-08-06  Simon Josefsson  <jas@extundo.com>
84728
84729         * modules/getsubopt: New file.
84730         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84731         getsubopt.
84732
84733 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84734
84735         More merge from coreutils.
84736
84737         * m4/utimens.m4, m4/utimecmp.m4: New files.
84738         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
84739         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
84740         prereq.m4, sha.m4: Import changes from coreutils.
84741
84742 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84743
84744         More merge from coreutils.
84745         * modules/raise, modules/readtokens0, modules/utimens:
84746         * modules/utimecmp, module/xnanosleep: New files.
84747         * modules/strftime: Add lib/strftime.h.
84748         Change include from <time.h> to "strftime.h".
84749         * modules/yesno: Add lib/yesno.h.
84750         * modules/backupfile: Remove lib/addext.c.
84751         * modules/euidaccess: Add stat-macros.h.
84752         * modules/canonicalize, modules/euidaccess,
84753         modules/filemode, modules/lchown, modules/makepath,
84754         modules/rmdir, modules/stat: Likewise.
84755
84756 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84757
84758         Merge from tar.
84759         * lib/argp-help.c (make_hol, hol_append): Don't assume that
84760         SIZE_MAX is a valid preprocessor constant.
84761         (__argp_basename): Change from "#ifndef _LIBC"
84762         to "#ifndef __argp_short_program_name", so that
84763         we don't compile these functions for tar.
84764
84765         More merges from coreutils.
84766         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
84767         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
84768         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
84769         * lib/addext.c: Remove; no longer needed.
84770         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
84771         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
84772         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
84773         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
84774         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
84775         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
84776         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
84777         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
84778         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
84779         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
84780         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
84781         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
84782         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
84783         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
84784         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
84785         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
84786         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
84787         Import changes from coreutils.
84788
84789 2004-08-05  Simon Josefsson  <jas@extundo.com>
84790
84791         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
84792
84793 2004-08-05  Simon Josefsson  <jas@extundo.com>
84794
84795         * m4/getsubopt.m4: New file.
84796
84797 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84798
84799         Merge from coreutils.
84800
84801         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
84802         * m4/getcwd-path-max.m4: New files.
84803
84804         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
84805         FILESYSTEM_PREFIX_LEN ->
84806         FILE_SYSTEM_PREFIX_LEN.
84807         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
84808         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
84809         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
84810         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
84811
84812         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
84813         prerequisite modules now handle the DOS stuff.
84814         Don't check for unistd.h.
84815
84816 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84817
84818         Merge from coreutils.
84819
84820         * lib/.gdb-history: Remove; this doesn't belong here.
84821
84822         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
84823         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
84824         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
84825         * lib/getcwd.c: New files.
84826
84827         * lib/dirname.h: Include <stdbool.h>.
84828         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
84829         for consistency with POSIX terminology.  All uses changed.
84830         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
84831         (strip_trailing_slashes): Use bool for booleans.
84832         * lib/stripslash.c (strip_trailing_slashes): Likewise.
84833
84834         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
84835         sometimes returns a positive errno value even when it succeeds.
84836         (print_errno_message) [!LIBC]: Fall back on strerror if
84837         __strerror_r fails.
84838
84839         * lib/path-concat.c (mempcpy): Don't define if a system header defines
84840         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
84841         (longest_relative_suffix): New function.
84842         (path_concat): Use it.  Assume first argument is not NULL.
84843         Port to DOS.  Omit redundant separators.
84844         Report an error instead of returning NULL.
84845         Use mempcpy instead of memcpy.
84846         (xpath_concat): Remove: not declared or used.
84847
84848         * lib/same.h: Include <stdbool.h>
84849         (same_name): Return bool, not int.
84850         * lib/same.c (same_name): Likewise.
84851         (errno): Don't declare; we assume C89 or better now.
84852
84853         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
84854         if not already defined.
84855
84856         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
84857         * lib/dup-safer.c (errno): Likewise.
84858
84859 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84860
84861         Merge from coreutils.
84862         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
84863         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
84864         * modules/path-concat: Don't depend on strdup.
84865
84866 2004-08-03  Simon Josefsson  <jas@extundo.com>
84867
84868         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
84869         * lib/progname.h: Don't include stdbool.h.
84870
84871 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
84872
84873         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
84874         * MODULES.html.sh (func_all_modules): Remove fatal.
84875
84876 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
84877
84878         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
84879
84880 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
84881
84882         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
84883         working.
84884
84885 2004-08-02  Simon Josefsson  <jas@extundo.com>
84886
84887         * lib/getsubopt.h: New file, with comments from Bruno Haible.
84888         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
84889         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
84890
84891 2004-08-01  Simon Josefsson  <jas@extundo.com>
84892
84893         * lib/xgetdomainname.c: Include stdlib.h, for free().
84894
84895 2004-07-19  Bruno Haible  <bruno@clisp.org>
84896
84897         * MODULES.html.sh (func_all_modules): Add dummy.
84898
84899 2004-07-16  Simon Josefsson  <jas@extundo.com>
84900
84901         * modules/dummy: New file.
84902
84903 2004-07-16  Simon Josefsson  <jas@extundo.com>
84904
84905         * lib/dummy.c: New file.
84906
84907 2004-07-16  Bruno Haible  <bruno@clisp.org>
84908
84909         * lib/backupfile.h: Add extern "C" for C++.
84910         * lib/closeout.h: Likewise.
84911         * lib/copy-file.h: Likewise.
84912         * lib/findprog.h: Likewise.
84913         * lib/full-write.h: Likewise.
84914         * lib/pathname.h: Likewise.
84915         * lib/progname.h: Likewise.
84916         * lib/stpcpy.h: Likewise.
84917         * lib/stpncpy.h: Likewise.
84918         * lib/strcase.h: Likewise.
84919         * lib/strstr.h: Likewise.
84920         * lib/xalloc.h: Likewise.
84921
84922         * lib/mbswidth.h: Add extern "C" for C++.
84923         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
84924
84925 2004-07-13  Robert Millan  <robertmh@gnu.org>
84926
84927         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
84928
84929 2004-07-09  Simon Josefsson  <jas@extundo.com>
84930
84931         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
84932         failed without this.)
84933
84934 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
84935
84936         * modules/chown (Files): Add lib/fchown-stub.c, since
84937         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
84938
84939 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
84940
84941         * lib/fchown-stub.c: New file.
84942
84943 2004-06-24  Jim Meyering  <jim@meyering.net>
84944
84945         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
84946
84947 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84948
84949         * modules/argz: Omit "#include".
84950
84951         * MODULES.html.sh (func_all_modules): Add calloc, to match
84952         2004-06-01 addition of calloc module.
84953
84954 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84955
84956         * m4/argz.m4: New file, which is autoupdated from libtool.
84957
84958 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84959
84960         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
84961         libtool.
84962
84963 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84964
84965         * config/srclist-update: Don't insist on "USA." before the
84966         close-comment, as libtool omits the period and puts the */ on a
84967         separate line.
84968         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
84969         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
84970
84971 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
84972
84973         * modules/argz: New file.
84974         * MODULES.html.sh (func_all_modules): Add argz.
84975
84976 2004-06-12  Jim Meyering  <jim@meyering.net>
84977         and  Paul Eggert  <eggert@cs.ucla.edu>
84978
84979         * modules/hash (Files): Add lib/xalloc.h.
84980         * modules/pipe (Depends-on): Add wait-process.
84981         * modules/stat (Depends-on): Add xalloc.
84982         * modules/userspec (Files): Add lib/userspec.h.
84983         * modules/xstrto
84984
84985         Upgrade from gettext-0.13.
84986         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
84987         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
84988         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
84989
84990 2004-06-10  Jim Meyering  <jim@meyering.net>
84991
84992         * lib/calloc.c: New file.
84993
84994 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
84995
84996         * lib/getdate.y (yylex): Allow space between sign and number.
84997         Problem reported by Dan Jacobson.
84998
84999 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85000
85001         Merge from coreutils CVS.
85002
85003         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
85004         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
85005         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
85006         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
85007         xstrtol.m4: Fix copyright date and/or serial number.
85008
85009         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
85010         See if we need an fchown replacement.
85011         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
85012         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
85013         and use the replacement function if we detect either defect.
85014
85015         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
85016         gl_UTIMECMP.
85017
85018 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85019         and  Jim Meyering  <jim@meyering.net>
85020
85021         Merge from coreutils CVS.
85022
85023         * lib/stat-macros.h: New file, with contents from file-type.h
85024         and coreutils' system.h.
85025         * lib/file-type.c: Include "stat-macros.h".
85026         * lib/file-type.h (file_type): Move all macro definitions to new file,
85027         stat-macros.h.
85028
85029         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
85030         Wrap old code with this conditional.
85031         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
85032         function that does not dereference symlinks.
85033         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
85034
85035         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
85036         dependency problems.
85037         (xreadlink): Accept new arg SIZE, for efficiency.
85038         All decls and uses changed.
85039         * lib/xreadlink.h: Include <stddef.h>, for size_t.
85040
85041         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
85042         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
85043
85044         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
85045         sysexits.h.
85046
85047 2004-06-01  Jim Meyering  <jim@meyering.net>
85048
85049         * m4/calloc.m4: New file.
85050
85051 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
85052
85053         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
85054         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
85055         Also, fix a typo in a diagnostic.
85056
85057 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85058
85059         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
85060         or AC_FUNC_REALLOC.
85061
85062 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85063
85064         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
85065         macros to be defined.
85066         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
85067         the allocator returns NULL because the requested size is zero.
85068
85069 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85070
85071         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
85072         var.  Add comment explaining why libc still defines it.  This
85073         merges the following patch from glibc:
85074         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
85075
85076 2004-05-20  Andreas Schwab  <schwab@suse.de>
85077
85078         * m4/free.m4: Replace free if it not known to work, not the other
85079         way round.
85080
85081 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
85082
85083         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
85084         present in glibc since revision 1.1 of this file.
85085         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
85086         obstack_alignment_mask, obstack_alloc, obstack_base,
85087         obstack_blank, obstack_blank_fast, obstack_chunk_size,
85088         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
85089         obstack_grow0, obstack_init, obstack_int_grow,
85090         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
85091         obstack_next_free, obstack_object_size, obstack_ptr_grow,
85092         obstack_ptr_grow_fast, obstack_room): Remove declarations of
85093         nonexistent functions.
85094
85095 2004-05-18  Karl Berry  <karl@gnu.org>
85096
85097         * config/srclist.txt: break link for vasnprintf.c.
85098
85099 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85100
85101         Port obstack to the AS/400, where pointers are 16 bytes wide and
85102         you cannot cast an integer to a valid pointer.  This patch is
85103         currently waiting to be integrated into glibc; see
85104         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
85105
85106         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
85107         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
85108         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
85109         (struct obstack): temp member is now a union of a pointer and
85110         an integer, instead of an integer.  All integer uses changed.
85111         This does not affect the physical layout of struct obstack,
85112         except on hosts (like the AS/400) where the size or alignment of
85113         void * is greater than that of ptrdiff_t.
85114         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
85115         __STDC__)]: Store temporary in pointer member of union, not
85116         integer member.
85117         * lib/obstack.c: Include <stddef.h>, for offsetof.
85118         (struct fooalign): Remove; it doesn't need a name.
85119         (union fooround): Change double to long double, and add void *.
85120         (DEFAULT_ALIGNMENT): Use offsetof to compute.
85121         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
85122         not a macro.  Hence the values are always int; so remove all
85123         casts-to-int in uses.
85124
85125 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85126
85127         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
85128         we can get this patch merged into glibc.
85129
85130 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85131             Paul Eggert  <eggert@cs.ucla.edu>
85132
85133         * m4/argp: Depend on alloca.
85134
85135 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85136             Paul Eggert  <eggert@cs.ucla.edu>
85137
85138         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
85139         freecoding.
85140
85141 2004-05-17  Bruno Haible  <bruno@clisp.org>
85142
85143         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
85144         precision that consists of a '.' followed by an empty digit string.
85145         Patch by Tor Lillqvist <tml@iki.fi>.
85146
85147 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85148
85149         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
85150         for backward compatibility with older code.  We need our own
85151         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
85152         it under some other name, and our alloca.h will define it.
85153
85154 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85155             Derek Price  <derek@ximbiot.com>
85156
85157         * lib/alloca.c: Include <alloca.h>, to get our interface.
85158         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
85159         include <alloca.h> first.  Use C89 prototype for alloca; this
85160         requires including <stddef.h> for size_t.  Use extern "C" if C++.
85161         Use #elif for simplicity, since we can assume C89 now.
85162         Don't try to source the system alloca.h since it will not be found
85163         and to prevent recursively including its replacement.
85164         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
85165         * lib/regex.c: Likewise.
85166
85167 2004-05-16  Derek Price  <derek@ximbiot.com>
85168             Paul Eggert  <eggert@cs.ucla.edu>
85169
85170         getline cleanup.  This changes the getndelim2 API: both order of
85171         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
85172         no delimiter).
85173
85174         * lib/getline.c: Don't include stddef.h or stdio.h, since our
85175         interface does that.
85176         (getline): Always use getdelim, so that we don't have two
85177         copies of this code.
85178         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
85179         if available.
85180         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
85181         (GETNDELIM2_MAXIMUM): New macro.
85182         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
85183         instead of the old practice of delim2==0.  All callers changed.
85184         Return -1 on overflow, instead of returning junk.
85185         Do not set *linesize unless allocation succeeds.
85186         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
85187         that we include sys/types.h.
85188         * lib/getnline.h: Likewise.
85189         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
85190         (getndelim2): Reorder arguments.
85191         * lib/getnline.c (getnline, getndelim):
85192         Don't discard the NMAX argument.
85193         (getnline): Invoke getndelim, to avoid code duplication.
85194         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
85195         of (size_t) -1 by callers of the getnline family.
85196
85197 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85198
85199         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
85200         Check for gettimeofday.
85201         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
85202         Check for settimeofday, stime.
85203
85204 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85205
85206         * lib/nanosleep.c (suspended): Change its type from int to
85207         sig_atomic_t volatile.
85208         (first_call): Make it private to rpl_nanosleep, and have it
85209         be zero initially as that's a bit faster.
85210         (my_usleep): Round up fractional times instead of truncating them,
85211         as this is the usual meaning for 'sleep'.
85212
85213         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
85214         doesn't work.
85215         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
85216         (ENOSYS): Define if not defined.
85217         (settime): Fall back on stime if it exists and settimeofday fails.
85218         But don't bother with fallbacks if a method fails with errno == EPERM.
85219
85220 2004-05-11  Jim Meyering  <jim@meyering.net>
85221
85222         Prior to this change, the save_cwd caller required read access to the
85223         current directory on most systems (ones with the fchdir function).
85224
85225         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
85226         fails, try write-only, and finally, resort to using xgetcwd.
85227
85228 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
85229
85230         * lib/obstack.c, obstack.h: Import changes from libc.
85231
85232 2004-04-28  Bruno Haible  <bruno@clisp.org>
85233
85234         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
85235         also implicitly appends .exe to executables.
85236         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
85237         accepts Windows pathnames.
85238         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85239         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85240         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85241         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85242         Reported by Derek Robert Price <derek@ximbiot.com>.
85243
85244 2004-04-21  Karl Berry  <karl@gnu.org>
85245
85246         * config/srclist.txt (localcharset.c): break sync.
85247
85248 2004-04-20  Paul Eggert  <eggert@twinsun.com>
85249
85250         * m4/host-os.m4: Add a copyright notice.
85251
85252 2004-04-20  Jim Meyering  <jim@meyering.net>
85253
85254         Change UTILS_ to gl_ in AC_DEFINE'd names.
85255         Change utils_- and jm_-prefixed variables, too.
85256         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
85257         UTILS_FUNC_MKDIR_TRAILING_SLASH.
85258         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
85259
85260         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
85261         Don't emit trailing blanks.
85262         Also rename jm_-prefixed variables to have gl_ prefix.
85263
85264         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
85265         Also rename jm_-prefixed variables to have gl_ prefix.
85266
85267         * m4/jm-macros.m4: Reflect the renamings.
85268         * m4/prereq.m4: Likewise.
85269
85270 2004-04-20  Jim Meyering  <jim@meyering.net>
85271
85272         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
85273         memory.
85274
85275 2004-04-20  Jim Meyering  <jim@meyering.net>
85276             Bruno Haible  <bruno@clisp.org>
85277
85278         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
85279         memory when realloc fails.
85280
85281 2004-04-19  Jim Meyering  <jim@meyering.net>
85282
85283         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
85284         now that readutmp.c may call `free (0)'.
85285
85286 2004-04-19  Bruno Haible  <bruno@clisp.org>
85287
85288         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
85289         * m4/inttypes_h.m4: Likewise.
85290         * m4/stdint_h.m4: Likewise.
85291         * m4/intmax_t.m4: Likewise.
85292         * m4/uintmax_t.m4: Likewise.
85293
85294 2004-04-18  Jim Meyering  <jim@meyering.net>
85295
85296         * m4/prereq.m4: Don't forbid jm_ prefix.
85297
85298         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
85299         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
85300         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
85301         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
85302         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
85303         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
85304         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
85305         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
85306         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
85307         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
85308         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
85309         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
85310         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
85311         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
85312         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
85313         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
85314         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
85315         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
85316         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
85317
85318 2004-04-18  Jim Meyering  <jim@meyering.net>
85319
85320         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
85321         failure, don't leak memory and do call END_UTMP_ENT.
85322
85323 2004-04-16  Jim Meyering  <jim@meyering.net>
85324
85325         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
85326         coreutils' stat program.
85327         (gl_PREREQ): Don't require jm_PREREQ_STAT.
85328
85329 2004-04-11  Paul Eggert  <eggert@twinsun.com>
85330
85331         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
85332         C89.
85333         (CHAR_BIT): Remove, since we assume C89.
85334         Include <stdint.h> if available, as per current Autoconf CVS advice.
85335
85336 2004-03-31  Jim Meyering  <jim@meyering.net>
85337
85338         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
85339         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
85340         * m4/xalloc.m4: Likewise.
85341
85342 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85343
85344         Merge from coreutils.
85345
85346         * m4/inttostr.m4: New file.
85347         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
85348         Require AM_STDBOOL_H and gl_TIMESPEC instead.
85349         Require gl_CLOCK_TIME.
85350         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
85351
85352 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85353
85354         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
85355         not bool, to be more consistent with Unix conventions.
85356         Suggested by Bruno Haible.
85357
85358         Merge from coreutils.
85359
85360         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
85361         * lib/umaxtostr.c: New files.
85362
85363         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
85364         the usual <time.h> dance.
85365         (get_date): Change signature to support fractional time stamps.
85366         All callers changed.
85367         * lib/getdate.y: Include "getdate.h" first, as we can now
85368         assume C89 and don't need to worry about 'const'.
85369         Similarly, include "unlocked-io.h" near start, not in middle.
85370         Include <limits.h>.
85371         (textint.value): Use long int rather than int.
85372         (textint.digits): Use size_t rather than int.
85373         (BILLION, LOG10_BILLION): New constants.
85374         (parser_control): New member rel_ns.  Members day_ordinal,
85375         time_zone, month, day, hour, minutes, rel_year, rel_month,
85376         rel_day, rel_hour, rel_minutes, rel_seconds
85377         are now long int, not int.  Member seconds is now struct timespec,
85378         not int.  New member timespec_seen.  Members dates_seen, days_seen,
85379         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
85380         not int.
85381         (%union.intval): Now long int, not int.
85382         New member timespec.
85383         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
85384         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
85385         (spec): Now is a timespec or an item list.
85386         (timespec, items): New nonterminals.
85387         (time, rel, relunit, number, get_date):
85388         Add support for fractional seconds.
85389         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
85390         (gmtime, localtime, mktime): Remove decls; not needed with C89.
85391         (to_hour): First arg is now long int, not int.
85392         (to_year): Returns long int, not int.
85393         Don't treat year -70 like 70.
85394         (tm_diff): Returns long int, not int.
85395         (lookup_word): Use bool instead of int when appropriate.
85396         (yylex): Use size_t for count, not int.
85397         Detect overflow when parsing large integer constants.
85398         Add support for fractions.
85399         (get_date): Make pointers 'const' if possible.
85400         Use more-portable code to detect integer overflow.
85401         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
85402         Don't use ctime; it's not reliable if the year has >4 digits.
85403
85404         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
85405         This is for compatibility with BSD.
85406
85407         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
85408         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
85409         From coreutils' system.h.
85410
85411         * lib/userspec.c: Don't include "posixver.h".
85412         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
85413         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
85414         compatible extension.  Simplify code by removing a boolean int
85415         that was always nonzero if a string was nonnull.
85416
85417 2004-03-30  Jim Meyering  <jim@meyering.net>
85418
85419         Merge from coreutils.
85420
85421         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
85422         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
85423         on some systems one must include <grp.h> before it.
85424         Reported by Christian Krackowizer.
85425
85426 2004-03-30  Jim Meyering  <jim@meyering.net>
85427
85428         Merge from coreutils.
85429
85430         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
85431
85432         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
85433         an empty input stream.
85434
85435         * lib/readtokens.c: Include <stdbool.h>.
85436         (readtoken): Use `size_t' rather than int/long.
85437         All callers adjusted.
85438         Use `bool' rather than `int' where appropriate.
85439         Use memset rather than an explicit loop.
85440         Use x2nrealloc rather than xrealloc.
85441         Allow the use of `\0' as a delimiter.
85442         (readtokens): Likewise.
85443         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
85444
85445 2004-03-30  Jim Meyering  <jim@meyering.net>
85446
85447         * m4/realloc.m4: Remove file, since now it does no more than
85448         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
85449         the `configure.ac' section of module/realloc.
85450         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
85451
85452 2004-03-30  Bruno Haible  <bruno@clisp.org>
85453
85454         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
85455         nonnull.
85456
85457 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85458
85459         Merge changes to getloadavg.c from coreutils and Emacs.
85460
85461         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
85462         Define to an expression, not to the empty string.
85463         Include cloexec.h and xalloc.h.
85464         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
85465         Use set_cloexec_flag rather than rolling our own.
85466         * lib/cloexec.c, lib/cloexec.h: New files.
85467
85468 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85469
85470         * m4/cloexec.m4: New file.
85471
85472 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85473
85474         * lib/getopt.h: Sync with libc CVS.
85475
85476 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85477             Bruno Haible  <bruno@clisp.org>
85478
85479         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
85480         mbswidth.
85481
85482 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85483             Bruno Haible  <bruno@clisp.org>
85484
85485         * lib/mbswidth.h: Include <wchar.h> only if
85486         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
85487         <wchar.h>.
85488         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
85489
85490 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85491
85492         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
85493         Sync with libc CVS.
85494         * lib/getopt_int.h: New file, also synced from libc.
85495
85496 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85497
85498         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
85499         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
85500         Bring back getopt.c, getopt.h, getopt1.c.
85501
85502 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85503
85504         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
85505         All uses changed.  Check for sa_sigaction member; this fixes
85506         a bug first reported by Jason Andrade in
85507         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85508
85509 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85510
85511         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
85512         '#if' expressions.  Unlike the code it replaces, it does not
85513         depend on (defined _SC_PAGESIZE).  However, it does depend on
85514         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
85515         first reported by Jason Andrade in
85516         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85517
85518 2004-02-25  Simon Josefsson  <jas@extundo.com>
85519
85520         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
85521
85522 2004-02-25  Simon Josefsson  <jas@extundo.com>
85523
85524         * lib/strdup.h: New file.
85525         * lib/strdup.c: Include it.
85526         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
85527         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
85528
85529 2004-02-23  Karl Berry  <karl@gnu.org>
85530
85531         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
85532         (from fencepost.gnu.org:/gd/gnuorg).
85533
85534 2004-02-23  Karl Berry  <karl@gnu.org>
85535
85536         * config/srclistvars.sh (GNUORG) [karl]: redefine.
85537         * config/srclist.txt: add maintain/standards documents.
85538
85539 2004-02-18  Bruno Haible  <bruno@clisp.org>
85540
85541         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
85542         Reported by Derek Robert Price <derek@ximbiot.com>.
85543
85544 2004-02-16  Karl Berry  <karl@gnu.org>
85545
85546         * config/mkinstalldirs, install-sh: update from automake.
85547
85548 2004-02-06  Karl Berry  <karl@gnu.org>
85549
85550         * m4/po.m4: update from gettext 0.14.1.
85551
85552 2004-02-06  Karl Berry  <karl@gnu.org>
85553
85554         * lib/config.charset: update from gettext 0.14.1.
85555
85556 2004-02-05  Paul Eggert  <eggert@twinsun.com>
85557
85558         Add comments and code, prompted by suggestions from Bruno Haible
85559         for sh-quote.
85560         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
85561         describing the enum quoting_style values.
85562         * lib/quotearg.c (quotearg_alloc): New function.
85563         (quotearg_buffer_restyled): Treat lone { and } as special.
85564         Treat = as special.  Work around bug with older shells
85565         that "see" a '\' that is really the 2nd byte of a multibyte char.
85566         Quote empty string with shell_quoting_style.
85567
85568 2004-02-03  Bruno Haible  <bruno@clisp.org>
85569
85570         * m4/pipe.m4: New file, from GNU gettext.
85571
85572 2004-02-03  Bruno Haible  <bruno@clisp.org>
85573
85574         * lib/pipe.h: New file, from GNU gettext.
85575         * lib/pipe.c: New file, from GNU gettext.
85576
85577 2004-01-27  Bruno Haible  <bruno@clisp.org>
85578
85579         * m4/execute.m4: New file, from GNU gettext.
85580
85581 2004-01-27  Bruno Haible  <bruno@clisp.org>
85582
85583         * lib/execute.h: New file, from GNU gettext.
85584         * lib/execute.c: New file, from GNU gettext.
85585         * lib/w32spawn.h: New file, from GNU gettext.
85586
85587 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85588
85589         Merge from diffutils.
85590
85591         * lib/file-type.c (file_type): Add typed memory objects.
85592         * lib/file-type.h (S_TYPEISTMO): New macro.
85593
85594         * lib/c-stack.h (c_stack_action): Remove argv argument.
85595         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
85596         (die): Don't calculate message unless segv_action returns.
85597         (get_stack_location, min_address_from_argv, max_address_from_argv,
85598         volatile stack_base, volatile_stack_size): Remove.
85599         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
85600         that every segmentation violation is a stack overflow.  (Ouch!)
85601         See Debian bug 136249 (still outstanding) for more info about why
85602         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
85603
85604 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85605
85606         Exit-status fix from coreutils.
85607
85608         Use exit_failure consistently in place of EXIT_FAILURE,
85609         so that program exit statuses are consistent on failure.
85610
85611         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
85612         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
85613         * lib/argmatch.h: Comment fix to match the above.
85614         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
85615         Now a macro referring to exit_failure, instead of a separate
85616         variable.  Include "exitfail.h" to get it.
85617         * lib/xstrtol.h: Include "exitfail.h".
85618         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
85619
85620         * lib/long-options.c (parse_long_options): Use prototype
85621         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
85622         for clarity.
85623
85624 2004-01-21  Jim Meyering  <jim@meyering.net>
85625
85626         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
85627         so as not to conflict with a different-sized __mktime_internal
85628         function in GNU libc.
85629         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
85630         Problem building statically-linked `ls' reported by Michael Brunnbauer.
85631
85632 2004-01-20  Karl Berry  <karl@gnu.org>
85633
85634         * config/config.guess: update from config.
85635
85636         * config/srclistvars.sh: GNUWWWLICENSES for karl.
85637
85638 2004-01-20  Bruno Haible  <bruno@clisp.org>
85639
85640         Safer stack allocation.
85641         * lib/setenv.c: Include allocsa.h.
85642         (alloca): Remove fallback definition.
85643         (freea): Remove macro.
85644         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
85645         instead of freea.
85646
85647 2004-01-20  Bruno Haible  <bruno@clisp.org>
85648
85649         * m4/eealloc.m4: New file, from GNU gettext.
85650
85651 2004-01-20  Bruno Haible  <bruno@clisp.org>
85652
85653         * m4/allocsa.m4: New file, from GNU gettext.
85654
85655 2004-01-20  Bruno Haible  <bruno@clisp.org>
85656
85657         * lib/xallocsa.h: New file, from GNU gettext.
85658         * lib/xallocsa.c: New file, from GNU gettext.
85659
85660 2004-01-20  Bruno Haible  <bruno@clisp.org>
85661
85662         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
85663
85664 2004-01-20  Bruno Haible  <bruno@clisp.org>
85665
85666         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
85667         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
85668         specially.
85669
85670 2004-01-20  Bruno Haible  <bruno@clisp.org>
85671
85672         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
85673         patch.
85674
85675 2004-01-20  Bruno Haible  <bruno@clisp.org>
85676
85677         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
85678
85679 2004-01-20  Bruno Haible  <bruno@clisp.org>
85680
85681         * lib/eealloc.h: New file.
85682
85683 2004-01-20  Bruno Haible  <bruno@clisp.org>
85684
85685         * lib/binary-io.h: Avoid warnings on Cygwin.
85686
85687 2004-01-20  Bruno Haible  <bruno@clisp.org>
85688
85689         * lib/allocsa.h: New file, from GNU gettext.
85690         * lib/allocsa.c: New file, from GNU gettext.
85691
85692 2004-01-18  Karl Berry  <karl@gnu.org>
85693
85694         * doc/gpl.texi, doc/lgpl.texi: new files.
85695
85696 2004-01-18  Karl Berry  <karl@gnu.org>
85697
85698         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
85699         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
85700
85701 2004-01-15  Paul Eggert  <eggert@twinsun.com>
85702
85703         Merge from coreutils.
85704
85705         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
85706         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
85707         (gl_DEFAULT_POSIX2_VERSION): Move
85708         the documentation from 'configure' into 'config.hin',
85709         so that 'configure --help' isn't burdened by it and
85710         we don't have to worry about its formatting there.
85711         Reword the documentation so that it's more succinct
85712         and can be run together into a single paragraph.
85713         * m4/same.m4 (gl_SAME): Check for pathconf.
85714
85715 2004-01-15  Paul Eggert  <eggert@twinsun.com>
85716
85717         Merge from coreutils.
85718
85719         * lib/posixver.c: Include posixver.h.
85720
85721         * lib/same.c: Include <stdbool.h>, <limits.h>.
85722         (_POSIX_NAME_MAX): Define if not defined.
85723         (MIN): New macro.
85724         (same_name): If file names are silently truncated, report
85725         that the file names are the same if they are the same after
85726         the silent truncation.
85727
85728         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
85729         conversion function.
85730         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
85731         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
85732         longer needed.
85733
85734 2004-01-15  Jim Meyering  <jim@meyering.net>
85735
85736         Merge from coreutils.
85737
85738         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
85739         if no library is required.
85740         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
85741         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
85742         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
85743         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
85744         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
85745         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
85746         value, $ac_cv_search_crypt, if it's "none required".
85747         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
85748         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
85749         not gl_FUNC_GETLOADAVG.
85750         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
85751         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
85752
85753 2004-01-15  Jim Meyering  <jim@meyering.net>
85754
85755         Merge from coreutils.
85756
85757         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
85758         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
85759         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
85760
85761         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
85762         optional configure-time default.
85763
85764         * lib/version-etc.c (version_etc_copyright): Update copyright date.
85765
85766         * lib/xreadlink.c (xreadlink): Correct outdated comment.
85767
85768 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
85769
85770         Merge from coreutils.
85771
85772         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
85773         value, $ac_cv_search_nanosleep, if it's "none required".
85774
85775 2004-01-14  Paul Eggert  <eggert@twinsun.com>
85776
85777         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
85778         with like-named macro in fnmatch.c.
85779         (EXT): Use an internal constant instead.
85780
85781         Merge fnmatch patches from glibc.
85782         * lib/fnmatch.c (mbsinit): Remove define.
85783         Add libc_hidden_ver (__fnmatch, fnmatch).
85784         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
85785         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
85786
85787 2004-01-14  Karl Berry  <karl@gnu.org>
85788
85789         * config/install-sh: update from automake.
85790
85791 2004-01-13  Karl Berry  <karl@gnu.org>
85792
85793         * config/install-sh: update from automake.
85794
85795 2004-01-09  Karl Berry  <karl@gnu.org>
85796
85797         * config/install-sh: update from automake.
85798
85799 2004-01-05  Karl Berry  <karl@gnu.org>
85800
85801         * config/config.{sub,guess}: update from config.
85802
85803 2003-12-31  Karl Berry  <karl@gnu.org>
85804
85805         * config/depcomp: update from automake.
85806
85807 2003-12-14  Karl Berry  <karl@gnu.org>
85808
85809         * lib/config.charset: update from gettext-runtime.
85810
85811 2003-12-03  Paul Eggert  <eggert@twinsun.com>
85812
85813         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
85814         Bug reported by Alfred M. Szmidt.
85815
85816 2003-12-03  Bruno Haible  <bruno@clisp.org>
85817
85818         * m4/gettext.m4: Upgrade from gettext-0.13.
85819         * m4/po.m4: Upgrade from gettext-0.13.
85820         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
85821         * m4/intmax.m4: New file, from gettext-0.13.
85822         * m4/printf-posix.m4: New file, from gettext-0.13.
85823
85824 2003-11-29  Karl Berry  <karl@gnu.org>
85825
85826         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
85827
85828 2003-11-25  Paul Eggert  <eggert@twinsun.com>
85829             Bruno Haible  <bruno@clisp.org>
85830
85831         * lib/printf-parse.h: Don't include sys/types.h.
85832         (ARG_NONE): New macro.
85833         (char_directive): Change type of *arg_index fields to size_t.
85834         * lib/printf-parse.c: Don't include sys/types.h.
85835         (SSIZE_MAX): Remove macro.
85836         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
85837         Remove unnecessary overflow check.
85838         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
85839         fields.
85840
85841 2003-11-25  Bruno Haible  <bruno@clisp.org>
85842
85843         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
85844
85845 2003-11-25  Bruno Haible  <bruno@clisp.org>
85846
85847         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
85848         gt_TYPE_SSIZE_T.
85849
85850 2003-11-24  Paul Eggert  <eggert@twinsun.com>
85851
85852         * modules/alloca: Remove dependency on xalloc.
85853
85854 2003-11-24  Paul Eggert  <eggert@twinsun.com>
85855
85856         * lib/alloca.c: Remove dependency on xalloc module.
85857         (xalloc_die): Remove.
85858         (memory_full) [!defined emacs]: New macro.
85859         [!defined emacs]: Don't include xalloc.h.
85860         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
85861         address arithmetic overflows.  Change datatypes a bit to avoid
85862         unnecessary casts.
85863
85864 2003-11-22  Jim Meyering  <jim@meyering.net>
85865
85866         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
85867         s/size/size_t/.
85868
85869 2003-11-21  Karl Berry  <karl@gnu.org>
85870
85871         * config/config.{sub,guess}: update from config.
85872
85873 2003-11-18  Karl Berry  <karl@gnu.org>
85874
85875         * config/config.{sub,guess}: update from config.
85876
85877         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
85878
85879 2003-11-17  Paul Eggert  <eggert@twinsun.com>
85880
85881         * README: Mention that S+T cannot overflow if S is the size of
85882         an existing object and T is sufficiently small.
85883
85884 2003-11-17  Jim Meyering  <jim@meyering.net>
85885
85886         On systems without utime and without a utimes function capable of
85887         dealing with a NULL struct utimbuf* argument, this utime replacement
85888         could -- in unusual circumstances -- leak a file descriptor.
85889         * lib/utime.c: Include <unistd.h> and <errno.h>.
85890         (utime_null): Be sure to close `fd' and to preserve errno.
85891         Reported by Geoff Collyer via Arnold Robbins.
85892
85893 2003-11-17  Bruno Haible  <bruno@clisp.org>
85894
85895         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
85896         (Depends-on): Add xsize.
85897
85898 2003-11-17  Bruno Haible  <bruno@clisp.org>
85899
85900         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
85901
85902 2003-11-17  Bruno Haible  <bruno@clisp.org>
85903
85904         * lib/vasnprintf.c (alloca): Remove fallback definition.
85905         (freea): Remove definition.
85906         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
85907         Reported by Paul Eggert.
85908
85909 2003-11-16  Paul Eggert  <eggert@twinsun.com>
85910             Bruno Haible  <bruno@clisp.org>
85911
85912         Protect against address arithmetic overflow.
85913         * lib/printf-args.h: Include stddef.h.
85914         (arguments): Change type of field 'count' to size_t.
85915         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
85916         'unsigned int' where appropriate.
85917         * lib/printf-parse.h: Include sys/types.h.
85918         (char_directive): Change type of *arg_index fields to ssize_t.
85919         (char_directives): Change type of fields 'count', max_*_length to
85920         size_t.
85921         * lib/printf-parse.c: Include sys/types.h and xsize.h.
85922         (SSIZE_MAX): Define fallback value.
85923         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
85924         instead of 'int' where appropriate. Check a_allocated, d_allocated
85925         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
85926         * lib/vasnprintf.c: Include xsize.h.
85927         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
85928         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
85929         overflow. Avoid wraparound when converting a width or precision from
85930         decimal to binary.
85931
85932 2003-11-16  Bruno Haible  <bruno@clisp.org>
85933
85934         Update from GNU gettext.
85935         * lib/printf-parse.c: Generalize to it can be compiled for wide
85936         strings.
85937         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
85938         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
85939         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
85940         SNPRINTF): New macros.
85941         Don't include <alloca.h> if the file is used inside libintl.
85942         (local_wcslen): New function, for Solaris 2.5.1.
85943         (VASNPRINTF): Use it instead of wcslen.
85944
85945 2003-11-16  Bruno Haible  <bruno@clisp.org>
85946
85947         * lib/xsize.h (xmax): New function.
85948         (xsum, xsum3, xsum4): Declare as "pure" functions.
85949
85950 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85951
85952         * modules/xalloc (Files): Undo latest change, since xalloc.h
85953         no longer needs SIZE_MAX or PTRDIFF_MAX.
85954
85955 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85956
85957         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
85958         gl_PTRDIFF_MAX.
85959
85960 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85961
85962         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
85963         "return", to pacify some unknown compiler.  Problem reported
85964         by Joerg Schilling.
85965
85966 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85967
85968         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
85969         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
85970         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
85971         heuristic is just as accurate as far as we know, and it removes a
85972         dependency on size_max.m4 and ptrdiff_max.m4.
85973
85974 2003-11-11  Bruno Haible  <bruno@clisp.org>
85975
85976         * modules/xsize (Files): Add m4/size_max.m4.
85977         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
85978
85979 2003-11-11  Bruno Haible  <bruno@clisp.org>
85980
85981         * m4/size_max.m4: New file.
85982         * m4/ptrdiff_max.m4: New file.
85983         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
85984         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
85985         (gl_XALLOC): Invoke it.
85986
85987 2003-11-11  Bruno Haible  <bruno@clisp.org>
85988
85989         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
85990         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
85991         defined.
85992
85993 2003-11-10  Paul Eggert  <eggert@twinsun.com>
85994
85995         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
85996         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
85997         rejected some allocations of exactly SIZE_MAX - 2 bytes.
85998         From Bruno Haible.
85999         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
86000         not (size_t) -1, since it's defined here.
86001
86002 2003-11-09  Karl Berry  <karl@gnu.org>
86003
86004         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
86005
86006 2003-11-06  Paul Eggert  <eggert@twinsun.com>
86007
86008         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
86009         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
86010         Reject sizes of exactly SIZE_MAX bytes.
86011         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
86012         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
86013
86014 2003-11-05  Bruno Haible  <bruno@clisp.org>
86015
86016         * lib/xsize.h: Include limits.h, to avoid a possible collision with
86017         SIZE_MAX defined in <limits.h> on Solaris.
86018
86019 2003-11-04  Jim Meyering  <jim@meyering.net>
86020
86021         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
86022         variable names, rather than @VAR@.
86023         * modules/poll: Likewise.
86024
86025 2003-11-04  Bruno Haible  <bruno@clisp.org>
86026
86027         * modules/xsize: New file.
86028         * modules/linebreak: Depend on xsize.
86029         * MODULES.html.sh (func_all_modules): Add xsize.
86030
86031 2003-11-04  Bruno Haible  <bruno@clisp.org>
86032
86033         * m4/xsize.m4: New file.
86034
86035 2003-11-04  Bruno Haible  <bruno@clisp.org>
86036
86037         * lib/xsize.h: New file.
86038         * lib/linebreak.c: Include xsize.h.
86039         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
86040         argument for overflow.
86041         Suggested by Paul Eggert.
86042
86043 2003-11-03  Karl Berry  <karl@gnu.org>
86044
86045         * config/config.{guess,sub}: update from config.
86046
86047 2003-11-03  Jim Meyering  <jim@meyering.net>
86048
86049         * modules/userspec (lib_SOURCES): Add userspec.h.
86050         (Include): Add "userspec.h".
86051         Improve description.
86052
86053 2003-11-03  Jim Meyering  <jim@meyering.net>
86054
86055         * lib/userspec.c: Include "userspec.h".
86056         * lib/userspec.h: New file.
86057
86058 2003-11-03  Bruno Haible  <bruno@clisp.org>
86059
86060         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
86061
86062 2003-11-03  Bruno Haible  <bruno@clisp.org>
86063
86064         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
86065         available, to avoid (extremely rare) race condition.
86066         Suggested by Paul Eggert.
86067
86068 2003-11-02  Karl Berry  <karl@gnu.org>
86069
86070         * config/srclist.txt (vasprintf.c): sync broken, sigh.
86071
86072 2003-10-31  Paul Eggert  <eggert@twinsun.com>
86073
86074         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
86075         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
86076         (read_filesystem_list): Set and use me_type_malloced.
86077         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
86078         whatever the type happens to be), for brevity and consistency.
86079         Check for size calculation overflow on Alphas running OSF/1.
86080
86081 2003-10-31  Jim Meyering  <jim@meyering.net>
86082
86083         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
86084
86085         * lib/linebuffer.c: Include <string.h> for declaration of memset.
86086
86087 2003-10-30  Paul Eggert  <eggert@twinsun.com>
86088             Bruno Haible  <bruno@clisp.org>
86089
86090         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
86091         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
86092
86093 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
86094
86095         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
86096         netbsd*-gnu*.  Suggested by Robert Millan.
86097
86098 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86099
86100         * modules/group-member: Depend on stdbool.
86101
86102 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86103
86104         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
86105
86106 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86107
86108         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
86109         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
86110         after the 'gnu' in these cases.  This fixes some bugs in the
86111         previous change, and is based on suggestions by Robert Millan.
86112
86113 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86114
86115         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
86116         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
86117         no longer needed.
86118         * lib/quotearg.c (quotearg_n_options): Use it.
86119         * lib/group-member.c: Include <stdbool.h>.
86120         (free_group_info): Arg is now const *; don't free arg.
86121         (get_group_info): Now returns bool and accepts struct group_info *,
86122         rather than returning a malloc'ed struct group_info *.
86123         All uses changed.  Check for overflow in internal size calculation.
86124
86125         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
86126         rather than xmalloc/xrealloc.
86127         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
86128         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
86129         conformance bug: the old code used a pointer after freeing the
86130         storage that it addressed.
86131         * lib/hash.c (hash_initialize): Simplify the code by using
86132         xalloc_oversized rather than doing it by hand.
86133         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
86134         the buffer preserved.  Use free and xmalloc instead.
86135         * lib/quotearg.c (quotearg_n_options): Likewise.
86136         Use a simpler test for size overflow.  Don't use xalloc_oversized
86137         because unsigned int might be wider than size_t (!); this suggests
86138         that we should switch from unsigned int to size_t for slot numbers.
86139
86140 2003-10-28  Paul Eggert  <eggert@twinsun.com>
86141
86142         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
86143         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
86144         NetBSD kernels.  Requested by Richard Stallman.
86145
86146 2003-10-27  Paul Eggert  <eggert@twinsun.com>
86147
86148         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
86149         to allocate the returned structure.  Do not allocate a subarray,
86150         as x2nrealloc will do that.
86151         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
86152         instead of xnrealloc.
86153         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
86154
86155 2003-10-27  Bruno Haible  <bruno@clisp.org>
86156
86157         * lib/stdbool_.h: Better support for BeOS.
86158
86159 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86160
86161         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
86162         now uses inline.
86163
86164 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86165
86166         * lib/xalloc.h (xalloc_oversized): New static inline function, for
86167         callers that want to do their own size-overflow checking.  Include
86168         <stdbool.h>, since xalloc_oversized returns bool.
86169         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
86170         to use xalloc_oversized.
86171
86172         Add two functions x2realloc, x2nrealloc, for programs that grow
86173         arrays dynamically by doubling their sizes.
86174         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
86175         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
86176         New functions.
86177
86178         Port to C99 semantics for 'inline' of external functions.
86179         Bug reported by Bruno Haible.
86180         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
86181         with the old contents of xnmalloc.
86182         (xnmalloc, xmalloc): Use it.
86183         (xnrealloc_inline): New static inline function,
86184         with the old contents of xnrealloc.
86185         (xnrealloc, xrealloc): Use it.
86186
86187         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
86188         that.
86189
86190 2003-10-26  Karl Berry  <karl@gnu.org>
86191
86192         * config/srclist.txt (COPYING.DOC): no longer available from
86193         /gd/gnuorg; don't know where the ultimate source is.
86194
86195 2003-10-25  Paul Eggert  <eggert@twinsun.com>
86196
86197         Fix several address-calculation bugs in the hash modules,
86198         plus some minor code cleanup.
86199
86200         * lib/hash.h: Include <stdbool.h>, for bool.
86201         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
86202         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
86203         hash_get_n_entries, hash_get_max_bucket_length,
86204         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
86205         hash_rehash): Use size_t rather than unsigned.
86206         * lib/hash.c (struct hash_table, hash_get_n_buckets,
86207         hash_get_n_buckets_used, hash_get_n_entries,
86208         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
86209         hash_get_entries, hash_do_for_each, hash_string, is_prime,
86210         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
86211         Likewise.
86212         (SIZE_MAX): Define if not defined.
86213         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
86214         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
86215         hash_print):
86216         Use const * when possible.
86217         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
86218         (check_tuning): Fix bug: if tuning parameters were very close to
86219         0 or 1, rounding errors could have caused subscript violations.
86220         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
86221         (hash_initialize): Add 'fail:' label
86222         to free table and return NULL, and use it to simplify code.
86223         Use calloc rather than clearing the storage ourself.
86224         (hash_initialize, hash_rehash): Check for arithmetic overflow in
86225         buffer size calculations.
86226         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
86227         Include <stddef.h>, for size_t.
86228         * lib/hash-pjw.c (hash_pjw): Likewise.
86229         Switch to method described by Bruno Haible.
86230         Include <limits.h>, for CHAR_BIT.
86231         (SIZE_BITS): New macro.
86232
86233 2003-10-23  Paul Eggert  <eggert@twinsun.com>
86234
86235         * m4/getline.m4 (AM_FUNC_GETLINE):
86236         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
86237         hosts.  Problem reported by Derek Robert Price in
86238         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
86239         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
86240         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
86241
86242 2003-10-21  Paul Eggert  <eggert@twinsun.com>
86243
86244         * lib/getndelim2.c (getndelim2): When size calculation overflows,
86245         ceiling the allocation at NMAX bytes rather than silently
86246         discarding input bytes before NMAX is reached.  This makes
86247         a difference only if NMAX exceeds SIZE_MAX / 2.
86248
86249         * lib/obstack.c: Merge from glibc.
86250         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
86251         Add libc_hidden_def (_obstack_newchunk).
86252         (_obstack_free) [! defined _LIBC]: Remove.
86253         [defined _LIBC]: Make a strong alias from obstack_free, rather than
86254         a clone of the function body.
86255         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
86256         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
86257
86258         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
86259         glibc.
86260         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
86261         arg to memcpy.
86262
86263         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
86264         (obstack_ptr_grow_fast, obstack_int_grow_fast):
86265         Don't use lvalue casts, as GCC plans to remove support for them
86266         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
86267         was also present in the non-GCC version, indicating that this
86268         code had always been buggy and had never been widely used.
86269         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
86270         Use the fast variant of each macro, rather than copying the
86271         definiens of the fast variant; that way, we'll be more likely to
86272         catch future bugs in the fast variants.
86273
86274 2003-10-20  Bruno Haible  <bruno@clisp.org>
86275
86276         * modules/wait-process: New file.
86277         * MODULES.html.sh (func_all_modules): Add wait-process.
86278
86279 2003-10-20  Bruno Haible  <bruno@clisp.org>
86280
86281         * m4/wait-process.m4: New file.
86282
86283 2003-10-20  Bruno Haible  <bruno@clisp.org>
86284
86285         * lib/wait-process.h: New file, from GNU gettext.
86286         * lib/wait-process.c: New file, from GNU gettext.
86287
86288 2003-10-19  Jim Meyering  <jim@meyering.net>
86289
86290         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
86291         HPUX 10.20.
86292
86293 2003-10-18  Karl Berry  <karl@gnu.org>
86294
86295         * config/config.guess: update from config.
86296
86297 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86298
86299         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
86300         (getgroups): First arg is int, not size_t.
86301         Don't let 'free' mangle errno.
86302
86303 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86304
86305         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
86306
86307 2003-10-16  Karl Berry  <karl@gnu.org>
86308
86309         * config/config.{guess,sub}: update from config.
86310
86311 2003-10-16  Jim Meyering  <jim@meyering.net>
86312
86313         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
86314         memcpy.
86315
86316 2003-10-15  Paul Eggert  <eggert@twinsun.com>
86317
86318         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
86319         (SIZE_MAX): Remove.
86320         (new_exclude, add_exclude_file): Initial size no longer needs to
86321         be a power of 2.
86322         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
86323         our own address arithmetic overflow checking.
86324
86325         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
86326         (fnmatch): Do not alloca more than 2000 wide characters;
86327         instead, use malloc for large buffers.
86328         Check for address arithmetic overflow, and return -1
86329         with errno set to ENOMEM in that case.
86330         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
86331         (NEW_PATTERN): Do not alloca more than 8000 bytes;
86332         instead, return -1.  Check for address arithmetic overflow.
86333
86334 2003-10-14  Paul Eggert  <eggert@twinsun.com>
86335
86336         Handle invalid suffixes and overflow independently, so that
86337         callers can treat them independently as needed.  Fix some bugs in
86338         suffix handling, e.g., "100k@" was not diagnosed as an invalid
86339         suffix for a human-readable blocksize.  The major caller-visible
86340         change is the addition of a new
86341         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
86342         that both overflow and suffix chars were found.
86343
86344         * lib/human.c (humblock): Don't check separately for invalid suffix
86345         char; that is xstrtoumax's job (now that its bug is fixed).
86346         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
86347         INTMAX_MAX]: New macros.
86348         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
86349         TYPE_MAXIMUM): New macros.
86350         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
86351         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
86352         if overflow occurs, as it's what __strtol does and it's more useful
86353         in practice.
86354         (__xstrtol): If __strtol reports some error other than ERANGE,
86355         reflect it to the caller as LONGINT_INVALID.  If it reports
86356         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
86357         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
86358         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
86359         value.
86360         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
86361         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
86362         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
86363         [defined UINTMAX_MAX]: New macros.
86364
86365 2003-10-14  Bruno Haible  <bruno@clisp.org>
86366
86367         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
86368
86369 2003-10-14  Bruno Haible  <bruno@clisp.org>
86370
86371         * m4/sig_atomic_t: New file, from GNU gettext.
86372         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
86373
86374 2003-10-14  Bruno Haible  <bruno@clisp.org>
86375
86376         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
86377         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
86378         Also use volatile where needed.
86379
86380 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86381
86382         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
86383         Change maintainer from Bruno Haible to 'all'.
86384
86385 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86386
86387         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
86388
86389 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86390
86391         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
86392         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
86393         and define in terms of the other primitives.
86394         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
86395         (SIZE_MAX): Define if not already defined.
86396         (array_size_overflow): New function.
86397         (xalloc_die): Abort instead of exiting if 'error' returns.
86398         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
86399         (xmalloc, xrealloc): Use them.
86400         (xcalloc): Check for address arithmetic overflow.
86401         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
86402         a bit faster than strcpy.
86403
86404 2003-10-10  Simon Josefsson  <jas@extundo.com>
86405
86406         * modules/argp (Depends-on): Add restrict and strcase.
86407
86408 2003-10-10  Simon Josefsson  <jas@extundo.com>
86409
86410         * m4/argp.m4: Add AC_C_INLINE.
86411
86412 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86413
86414         Merge getpass from libc, plus a few fixes.
86415
86416         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
86417         Include <stdbool.h>.
86418         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
86419         __fsetlocking to empty.
86420         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
86421         do include <bits/libc-lock.h>.
86422         Do not include <fcntl.h>; not needed.
86423         [_LIBC]: Include <wchar.h>.
86424         (NOTCANCEL_MODE): New macro.
86425         (flockfile, funlockfile) [_LIBC]: New macros.
86426         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
86427         [!_LIBC]: New macros.
86428         (call_fclose): New function.
86429         (getpass): Use it.  Save tty stream separately; this simplifies the
86430         code and makes it more reliable if stdin happens to equal stdout.
86431         Invoke __fsetlocking on tty.
86432         Handle thread cancellation if needed.
86433         Namespace cleanup (use __tcgetattr, __getline).
86434         Use bool for Booleans.
86435         [USE_IN_LIBIO]: Handle wide streams.
86436         [!_LIBC]: Unconditionally do the fseek, since we don't know what
86437         stream might go where.
86438
86439         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
86440         doesn't have to include <stdio.h> before us.
86441         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
86442         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
86443         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
86444         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
86445         if not declared, so that we can use getpass.c code from libc without
86446         rewriting it.
86447         (flockfile, ftrylockfile, funlockfile): New macros.
86448
86449 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86450
86451         * modules/getpass: Depend on stdbool.
86452
86453 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86454
86455         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
86456
86457 2003-10-07  Karl Berry  <karl@gnu.org>
86458
86459         * config/config.{guess,sub}: update from config.
86460
86461 2003-10-06  Jim Meyering  <jim@meyering.net>
86462             Bruno Haible  <bruno@clisp.org>
86463
86464         This lets translators provide better translations for the
86465         "Written by ..." part of --version output.
86466         * lib/version-etc.h: Include stdarg.h.
86467         (version_etc_copyright): Declare as readonly.
86468         (version_etc): Make this function variadic with a NULL-terminated list
86469         of author name strings.
86470         (version_etc_va): New declaration.
86471         * lib/version-etc.c: Include stdarg.h, stdlib.h.
86472         (version_etc_copyright): Declare as readonly.
86473         (version_etc_va): New function. Provide a different translatable string
86474         for each possible number of authors < 10. Abbreviate when there are 10
86475         authors or more.
86476         (version_etc): Make this function variadic. Call version_etc_va.
86477         Suggestion from Gary V. Vaughan.
86478
86479         * lib/long-options.h (parse_long_options): Change prototype: the
86480         authors string is moved to the end and becomes variadic.
86481         * lib/long-options.c: Include stdarg.h.
86482         (parse_long_options): Make this function variadic, too.
86483         Call version_etc_va, not version_etc.
86484
86485 2003-10-06  Bruno Haible  <bruno@clisp.org>
86486
86487         * modules/version-etc-2: Remove file.
86488         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
86489
86490 2003-10-06  Bruno Haible  <bruno@clisp.org>
86491
86492         * modules/fatal-signal: New file.
86493         * MODULES.html.sh (func_all_modules): Add fatal-signal.
86494
86495 2003-10-06  Bruno Haible  <bruno@clisp.org>
86496
86497         * m4/fatal-signal.m4: New file.
86498         * m4/signalblocking.m4: New file, from GNU gettext.
86499
86500 2003-10-06  Bruno Haible  <bruno@clisp.org>
86501
86502         * lib/version-etc-2.h: Remove file.
86503         * lib/version-etc-2.c: Remove file.
86504
86505 2003-10-06  Bruno Haible  <bruno@clisp.org>
86506
86507         * lib/fatal-signal.h: New file, from GNU gettext.
86508         * lib/fatal-signal.c: New file, from GNU gettext.
86509
86510 2003-10-05  Paul Eggert  <eggert@twinsun.com>
86511
86512         * README: Rework advice for preventing empty .o files.
86513         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
86514         not <sys/types.h>.
86515
86516 2003-10-04  Karl Berry  <karl@gnu.org>
86517
86518         * lib/argp*: update from libc.
86519
86520 2003-10-04  Karl Berry  <karl@gnu.org>
86521
86522         * config/config.{guess,sub}: update from config.
86523
86524 2003-10-02  Bruno Haible  <bruno@clisp.org>
86525
86526         * modules/lchown (Include): Add lchown.h.
86527         * modules/time_r (Include): Use "..." syntax.
86528         * modules/xgetdomainname (Include): Add xgetdomainname.h.
86529
86530 2003-10-01  Simon Josefsson  <jas@extundo.com>
86531
86532         * MODULES.html.sh (func_all_modules): Move gethostname from section
86533         'based on' to section 'lacking' POSIX:2001.
86534
86535 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
86536
86537         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
86538         to output mode on the same stream.
86539
86540 2003-09-29  Paul Eggert  <eggert@twinsun.com>
86541
86542         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
86543         Fix arg typo in previous patch.
86544
86545 2003-09-28  Jim Meyering  <jim@meyering.net>
86546
86547         * lib/error.c: Correct cpp indentation.
86548
86549 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86550
86551         * modules/free: New file.
86552
86553 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86554
86555         * m4/free.m4: New file.
86556
86557 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86558
86559         * lib/minmax.h (MIN, MAX)
86560         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
86561         Omit the special code that used __typeof__, since we worry that
86562         it could be more trouble than it's worth.  See:
86563         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
86564         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
86565
86566         * lib/free.c: New file.
86567
86568 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
86569
86570         Trivial fixes to Makefile.am parts of module listings.
86571         * modules/strstr: Append strstr.h to lib_SOURCES.
86572         * modules/strcase: Likewise, for strcase.h.
86573
86574 2003-09-27  Karl Berry  <karl@gnu.org>
86575
86576         * config/mkinstalldirs: update from automake.
86577
86578 2003-09-26  Paul Eggert  <eggert@twinsun.com>
86579
86580         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
86581         (error_tail): Do not loop, reallocating temporary buffer, since
86582         the output cannot contain more wide characters than the input
86583         contains bytes, the size must be big enough already.  This avoids
86584         one potential size overflow calculation.  Check for size overflow
86585         when calculating temporary buffer size.  Free temporary buffer
86586         when done, if it was allocated with malloc; this plugs a memory
86587         leak.  Remove casts from void * to pointers, that are no longer
86588         needed now that we're assuming C89 or better.
86589
86590         Merge error changes from glibc.
86591
86592         * lib/error.c, error.h: Update copyright notice header to match glibc.
86593         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
86594         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
86595         Disable cancellation while printing error.
86596         * lib/error.h: Prepend __ to parameter names.
86597
86598 2003-09-26  Jim Meyering  <jim@meyering.net>
86599
86600         * lib/error.c (error_tail): Move some declarations
86601         into inner scope where the local variables are used.
86602
86603 2003-09-26  Bruno Haible  <bruno@clisp.org>
86604
86605         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
86606         stpncpy().
86607         Don't define stpncpy through config.h; it's now done through stpncpy.h.
86608
86609 2003-09-26  Bruno Haible  <bruno@clisp.org>
86610
86611         * lib/stpncpy.h (gnu_stpncpy): New declaration.
86612         (stpncpy): Define as alias for gnu_stpncpy.
86613         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
86614
86615 2003-09-25  Simon Josefsson  <jas@extundo.com>
86616
86617         * lib/xgetdomainname.h: New file.
86618         * lib/xgetdomainname.c: New file.
86619
86620 2003-09-25  Simon Josefsson  <jas@extundo.com>
86621             Bruno Haible  <bruno@clisp.org>
86622
86623         * modules/getdomainname: New file.
86624         * modules/xgetdomainname: New file.
86625         * MODULES.html.sh (func_all_modules): Add getdomainname,
86626         xgetdomainname.
86627
86628 2003-09-25  Simon Josefsson  <jas@extundo.com>
86629             Bruno Haible  <bruno@clisp.org>
86630
86631         * m4/getdomainname.m4: New file.
86632
86633 2003-09-25  Simon Josefsson  <jas@extundo.com>
86634             Bruno Haible  <bruno@clisp.org>
86635
86636         * lib/getdomainname.h: New file.
86637         * lib/getdomainname.c: New file.
86638
86639 2003-09-25  Karl Berry  <karl@gnu.org>
86640
86641         * lib/argp-fmtstream.c, argp-help.c: update from libc.
86642
86643 2003-09-25  Karl Berry  <karl@gnu.org>
86644
86645         * config/install-sh: update from automake.
86646
86647 2003-09-25  Bruno Haible  <bruno@clisp.org>
86648
86649         * modules/version-etc-2: New file, from modules/version-etc with
86650         modifications.
86651         * MODULES.html.sh (func_all_modules): Add version-etc-2.
86652
86653 2003-09-25  Bruno Haible  <bruno@clisp.org>
86654
86655         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
86656         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
86657
86658 2003-09-24  Simon Josefsson  <jas@extundo.com>
86659
86660         * modules/xgethostname: Add xgethostname.h.
86661
86662 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86663
86664         * lib/linebuffer.c (freebuffer): Don't free the argument, just
86665         the buffer associated with the argument.  Bug reported by
86666         Simon Josefsson.
86667
86668 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86669
86670         * README: Document assumptions that 'int' is at least 32 bits
86671         wide, that integer arithmetic is 2's complement without overflow,
86672         that there are no holes in integer values, that adding sizes of
86673         two nonoverlapping objects can't overflow, and that all-bits-zero
86674         yields scalar zero.  Fix spelling and capitalization typos.
86675
86676 2003-09-19  Karl Berry  <karl@gnu.org>
86677
86678         * lib/argp.h: update from libc.
86679
86680 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86681
86682         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
86683         to avoid spurious warnings like "AC_RUN_IFELSE was called before
86684         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
86685
86686 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86687
86688         * gnulib-tool: Use "test -h", not "test -L", for portability
86689         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
86690         (tags_regexp): Remove, since \| doesn't conform to POSIX.
86691         (sed_extract_prog): Issue s commands one-by-one, rather than
86692         using \| in one s command.
86693
86694 2003-09-16  Paul Eggert  <eggert@twinsun.com>
86695
86696         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
86697         input error, instead of returning NULL the next time we are called
86698         (and therefore losing track of errno).
86699
86700 2003-09-16  Bruno Haible  <bruno@clisp.org>
86701
86702         * gnulib-tool (func_create_testdir): Warn about duplicated
86703         dependencies.
86704
86705 2003-09-15  Paul Eggert  <eggert@twinsun.com>
86706
86707         * modules/argmatch, modules/fatal, modules/obstack,
86708         modules/xalloc, modules/xgethostname: Sort dependencies by
86709         importance, not alphabetically.
86710
86711 2003-09-15  Paul Eggert  <eggert@twinsun.com>
86712
86713         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
86714         fails, so that the caller gets the proper errno.
86715
86716         * lib/readutmp.c (read_utmp): Likewise.
86717         Check for fstat error.  Close stream and free storage
86718         when failing.
86719
86720 2003-09-14  Karl Berry  <karl@gnu.org>
86721
86722         * config/srclist.txt (strdup.c): disable for c89 changes.
86723
86724 2003-09-14  Jim Meyering  <jim@meyering.net>
86725
86726         * lib/getloadavg.c: Correct cpp indentation.
86727         * lib/strdup.c: Likewise.
86728         * lib/vasnprintf.c: Likewise.
86729
86730 2003-09-14  Bruno Haible  <bruno@clisp.org>
86731
86732         * modules/fwriteerror: New file.
86733         * MODULES.html.sh (func_all_modules): Add fwriteerror.
86734
86735 2003-09-14  Bruno Haible  <bruno@clisp.org>
86736
86737         * lib/fwriteerror.h: New file.
86738         * lib/fwriteerror.c: New file.
86739
86740 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86741
86742         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
86743         modules/xgethostname, modules/xalloc: Depend on exit.
86744
86745 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86746
86747         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
86748
86749         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
86750         and AC_MINIX, too, so that their extensions are available.
86751
86752         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
86753         This macro has been superseded by gl_BACKUPFILE.
86754
86755         More patches to assume C89 or better.
86756
86757         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
86758
86759         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
86760         unconditionally.
86761         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
86762         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
86763         Include <string.h>, <stdlib.h> unconditionally.
86764         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
86765         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
86766         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
86767         headers or for string.h.
86768         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
86769         or strtoul.
86770
86771         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
86772         headers.
86773         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
86774         * m4/userspec.m4 (gl_USERSPEC): Likewise.
86775         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
86776         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
86777         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
86778         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
86779         memcpy, memset.
86780         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
86781         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
86782         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
86783         strtol.
86784         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
86785         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
86786         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
86787         strtoul.
86788
86789 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86790
86791         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
86792         * lib/obstack.c [!defined _LIBC]: Likewise.
86793         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
86794         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
86795         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
86796
86797         More changes to assume C89 or better.
86798
86799         * lib/error.c (error_tail): Assume vprintf.
86800
86801         * lib/argmatch.c (getenv): Remove decl.
86802         * lib/progreloc.c (get_full_program_name): Define via prototype.
86803         * lib/setenv.c (clearenv): Likewise.
86804         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
86805         needed.
86806         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
86807         (malloc, memcpy): Remove decls.
86808         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
86809         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
86810         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
86811         (memcpy): Remove macro.
86812         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
86813         (__P): Remove.  All uses removed.
86814         (PTR): Remove.  All uses changed to void *.
86815         (CHAR_BIT, NULL): Remove.
86816         (spaces, zeros, memset_space, memset_zero)
86817         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
86818         Remove.
86819         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
86820         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
86821         Define with prototype.
86822         Remove now-unnecessary prototype decl.
86823         (extra_args_spec): Assume ANSI C.  All uses changed.
86824         (extra_args_spec_iso): Remove.
86825         (my_strftime, emacs_strftimeu): Define via prototype.
86826         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
86827         unconditionally.
86828         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
86829         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
86830         (strtoul, strtol): Remove decls.
86831         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
86832         LONG_MAX): Remove.
86833         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
86834         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
86835         (LOCALE_PARAM_PROTO): New macro.
86836         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
86837         (INTERNAL (strtol), strtol): Define with a prototype.
86838         (PARAMS): Remove.  All uses removed.
86839         * lib/tempname.c: Include <string.h> unconditionally.
86840         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
86841         * lib/xgethostname.c (main): Define with a prototype.
86842         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
86843         Include <stdlib.h> unconditionally.
86844         (calloc, malloc, realloc, free): Remove decls.
86845         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
86846         Include <stdlib.h> unconditionally.  Sort include file names.
86847         (strtod): Remove.
86848         (xstrtod): Define with a prototype.
86849         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
86850         (strtol, strtoul): Remove decls.
86851
86852 2003-09-11  Paul Eggert  <eggert@twinsun.com>
86853
86854         More patches to assume C89 or better.
86855         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
86856         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
86857         string.h, memchr, STDC_HEADERS.
86858
86859 2003-09-11  Paul Eggert  <eggert@twinsun.com>
86860
86861         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
86862         Include <stdlib.h>, <string.h> unconditionally.
86863         Remove now-unnecessary cast to char *.
86864         * lib/strnlen.c: Include <string.h> unconditionally.
86865         * lib/yesno.c (yesno): Define with a prototype.
86866
86867 2003-09-11  Bruno Haible  <bruno@clisp.org>
86868
86869         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
86870
86871 2003-09-10  Jim Meyering  <jim@meyering.net>
86872
86873         * lib/error.c: Correct indentation of cpp directives.
86874
86875 2003-09-10  Bruno Haible  <bruno@clisp.org>
86876
86877         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
86878         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
86879         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
86880         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
86881         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
86882         <stdlib.h> and <string.h> checks.
86883         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
86884         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
86885
86886 2003-09-10  Bruno Haible  <bruno@clisp.org>
86887
86888         * lib/strcspn.c: Include <string.h> unconditionally.
86889         * lib/strpbrk.c: Include <string.h> unconditionally.
86890         * lib/strstr.c: Include <string.h> unconditionally.
86891         * lib/unicodeio.c: Include <string.h> unconditionally.
86892         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
86893         * lib/unsetenv.c: Likewise.
86894         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
86895         * lib/yesno.c: Include <stdlib.h> unconditionally.
86896         (rpmatch): Add prototype.
86897
86898 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86899
86900         More patches to assume C89 or better.
86901         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
86902         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
86903         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
86904         or for string.h.
86905         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
86906         stdlib.h.
86907         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
86908         C headers.
86909         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
86910         string.h.
86911         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
86912         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
86913         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
86914         or for string.h.
86915         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
86916         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
86917         C headers.
86918         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
86919         memcpy.
86920         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
86921         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
86922         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
86923         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
86924         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
86925         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
86926         string.h, free.
86927         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
86928         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
86929         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
86930         C headers, or for string.h.
86931         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
86932         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
86933         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
86934         headers, memory.h, stdlib.h, string.h, strings.h.
86935         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
86936         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
86937         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
86938         strchr.
86939         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
86940         headers, memory.h, string.h.
86941         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
86942         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
86943         free.
86944         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
86945         headers.
86946         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
86947         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
86948         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
86949         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
86950         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
86951
86952 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86953
86954         More K&R removal.
86955
86956         * lib/acosl.c (main): Use a prototype.
86957         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
86958         tanl.c: Likewise.
86959
86960         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
86961
86962         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
86963         (getopt, etopt_long, getopt_long_only, _getopt_internal)
86964         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
86965         with a prototype.
86966         * lib/getopt.c (const): Remove macro.
86967         Include <string.h> unconditionally.
86968         (my_index): Remove; all uses changed to strchr.
86969         (strlen): Remove decl.
86970         (exchange): Remove forward decl; no longer needed.
86971         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
86972         Define with prototype.
86973         * lib/getopt1.c (const): Remove macro.
86974         (getopt_long, getopt_long_only, main): Define with prototype.
86975
86976         * lib/getugroups.c: Include <string.h> unconditionally.
86977
86978         * lib/getusershell.c: Include <stdlib.h> unconditionally.
86979         (getusershell, setusershell, endusershell, readname, main):
86980         Define with prototypes.
86981
86982         * lib/group-member.c: Include group-member.h first.
86983         Include <stdlib.h> unconditionally.
86984
86985         * lib/hard-locale.c: Include hard-locale.h first.
86986         Include <stdlib.h>, <string.h> unconditionally.
86987
86988         * lib/hash.c (free, malloc): Remove decls.
86989         Include <stdlib.h> unconditionally.
86990
86991         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
86992         (getenv): Do not declare.
86993
86994         * lib/idcache.c: Include <string.h> unconditionally.
86995
86996         * lib/long-options.c: Include long-options.h first, to test interface.
86997         Include <stdlib.h> unconditionally.
86998
86999         * lib/makepath.c: Include makepath.h first, to test interface.
87000         Include <stdlib.h> and <string.h> unconditionally.
87001
87002         * lib/linebuffer.c: Include <stdlib.h>.
87003         (free): Remove decl.
87004
87005         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
87006         stddef.h. rpl_malloc returns void *, not char *.
87007         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
87008         prototype.
87009
87010         * lib/md5.h: Include <limits.h> unconditionally.
87011         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
87012         (__P): Remove; all uses removed.
87013         * lib/md5.c: Include "md5.h" first.
87014         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
87015         md5_buffer, md5_process_bytes, md5_process_block):
87016         Define with prototypes.
87017         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
87018         * lib/sha.c: Include "sha.h" first.
87019         Include <stdlib.h>, <string.h> unconditionally.
87020
87021         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
87022         * lib/memcmp.c (__ptr_t): Likewise.
87023         * lib/memrchr.c (__ptr_t): Likewise.
87024         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
87025         Include <string.h> unconditionally.
87026         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
87027         * lib/memchr.c: Include <stdlib.h> unconditionally.
87028         * lib/memchr.c (LONG_MAX): Remove.
87029         * lib/memrchr.c (LONG_MAX): Likewise.
87030         * lib/memchr.c (__memchr): Define via a prototype.
87031         * lib/memrchr.c (__memrchr): Likewise.
87032         * lib/memcmp.c (__P): Remove, and remove all uses.
87033         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
87034         Remove forward decls; no longer needed.
87035         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
87036         Use types required by C89 in prototype.
87037
87038         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
87039         * lib/savedir.c: Likewise.
87040         * lib/mkdir.c (free): Remove decl.
87041         * lib/rmdir.c (rmdir): Define with a prototype.
87042         * lib/savedir.c: Include savedir.h first, to test interface.
87043
87044         * lib/mktime.c (STDC_HEADERS): Remove.
87045         Include <stdlib.h>, <string.h> unconditionally.
87046
87047         * lib/modechange.c: Include <stdlib.h> unconditionally.
87048         (malloc): Remove decl.
87049
87050         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
87051         (free): Remove decl.
87052
87053         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
87054         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
87055         (This type really should be intptr_t, but that's a C99ism.)
87056         (_obstack_memcpy): Remove: all uses changed to memcpy.
87057         Include <string.h> unconditionally.
87058         (struct obstack): Assume __STDC__ for types of members
87059         chunkfun, freefun, extra_arg.
87060         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
87061         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
87062         obstack_begin, obstack_specify_allocation,
87063         obstack_specify_allocation_with_arg, obstack_chunkfun,
87064         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
87065         Remove unprototyped decls and the macros that use them.
87066         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
87067         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
87068         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
87069         (defined __STDC__ && __STDC__)]:
87070         Remove nonprototyped code.
87071         Include <stdlib.h> unconditionally.
87072         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
87073         _obstack_allocated_p, _obstack_free, obstack_free,
87074         _obstack_memory_used, print_and_abort):
87075         Define using prototypes.
87076         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
87077         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
87078         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
87079         obstack_next_free, obstack_object_size, obstack_room) [0]:
87080         Remove unused, unprototyped code.
87081
87082         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
87083
87084         * lib/physmem.c (physmem_total, physmem_available, main): Define
87085         with prototypes.
87086
87087         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
87088         (main): Define with a prototype.
87089
87090         * lib/posixver.c (getenv): Remove decl.
87091
87092         * lib/putenv.c (malloc): Returns void *, not char *.
87093         Include <string.h> unconditionally.
87094         (strchr, memcpy, NULL): Do not define.
87095
87096         * lib/readtokens.c: Include readtokens.h first, to test interface.
87097         Include <stdlib.h>, <string.h> unconditionally.
87098         (init_tokenbuffer): Define with a prototype.
87099
87100         * lib/regex.c (PARAMS): Remove.  All uses removed.
87101         All uses of _RE_ARGS removed, too.
87102         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87103         unconditionally.
87104         (bzero): Assume memset exists.
87105         (memcmp, memcpy, NULL): Remove.
87106         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
87107         char, or assignments to local vars of type signed char.
87108         (init_syntax_once, PREFIX(extract_number_and_incr),
87109         PREFIX(print_partial_compiled_pattern),
87110         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
87111         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
87112         PREFIX(regex_grow_registers), PREFIX(regex_compile),
87113         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
87114         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
87115         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
87116         wcs_compile_range, byte_compile_range, truncate_wchar,
87117         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
87118         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
87119         count_mbs_length, wcs_re_match_2_internal,
87120         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
87121         PREFIX(alt_match_null_string_p),
87122         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
87123         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
87124         regfree, PREFIX(extract_number)): Define with prototype.  Remove
87125         now-unnecessary declaration, if any.
87126         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
87127         regcomp, regexec):
87128         Remove now-unnecessary casts among pointer types.
87129         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
87130
87131         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
87132         (free): Remove decl.
87133
87134         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
87135
87136         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
87137         (free): Remove decl.
87138
87139         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
87140         * lib/xgetcwd.c: Likewise.
87141
87142         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
87143         (free): Remove decl.
87144
87145         * lib/strchrnul.c (strchrnul): Define with a prototype.
87146         Fix bug: c_in was not converted to char before searching.
87147
87148         The following changes are not K&R related:
87149
87150         * lib/group-member.h: Include <sys/types.h>, so that this file is
87151         self-contained.
87152         * lib/makepath.h: Likewise.
87153
87154         * lib/getusershell.c (readname, default_index, line_size, readname):
87155         Use size_t, not int, for sizes.
87156         (readname): If the size overflows, report an error instead of
87157         looping forever.
87158
87159 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87160
87161         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
87162         libc.
87163
87164 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87165
87166         * README: New section: portability guidelines.
87167
87168 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87169
87170         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
87171         C89 spec.
87172
87173 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87174
87175         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
87176
87177 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87178
87179         Assume C89 or better; remove K&R cruft.
87180         A few of these changes were first proposed by Derek Robert Price
87181         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
87182
87183         * lib/addext.c: Include <string.h> unconditionally.
87184         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
87185         Don't declare getenv or malloc.
87186
87187         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
87188         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
87189         (NULL): Remove.
87190         (find_stack_direction, alloca): Use prototypes.
87191
87192         * lib/atexit.c (atexit): Define using a prototype.
87193
87194         * lib/basename.c, dirname.c, stripslash.c:
87195         Include <string.h> unconditionally.
87196
87197         * lib/bcopy.c: Include <stddef.h>.
87198         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
87199
87200         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
87201
87202         * lib/error.h (error, error_at_line, error_print_progname)
87203         [! (defined (__STDC__) && __STDC__)]: Remove decls.
87204         * lib/error.c: Include error.h first, to check interface.
87205         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87206         (VA_START): Remove; all uses changeed to va_start.
87207         (exit, strerror): Remove decls.
87208         (error_print_progname): Prototype uncondionally.
87209         Don't include <errno.h>; no longer needed.
87210         (private_strerror): Remove.
87211         (error_tail): Always define.
87212         (error, error_at_line): Assume C89 or better; always use prototypes.
87213         * lib/fatal.c: Include "fatal.h" first, to test interface.
87214         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87215         (VA_START): Remove; all uses changed to va_start.
87216         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
87217         this case.
87218         (exit): Remove decl.
87219         (fatal): Prototype unconditionally.  Assume va_start works.
87220         Abort at end, to pacify gcc.
87221
87222         * lib/euidaccess.c (main): Define with a prototype.
87223
87224         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
87225
87226         * lib/exitfail.c: Include <stdlib.h> unconditionally.
87227
87228         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
87229         prototypes.
87230         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
87231         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
87232         (getenv): Remove decl.
87233         (fnmatch): Define using a prototype.
87234         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
87235         (FCT): Define using a prototype.
87236
87237         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
87238
87239         * lib/gethostname.c: Include <stddef.h>.
87240         (gethostname): Define with prototype.  Length is size_t, not int.
87241
87242 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87243
87244         Assume C89 or better; remove K&R cruft.
87245         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
87246         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
87247         string.h, getenv, malloc.
87248         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
87249         headers.
87250         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
87251         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
87252         do not check for strerror.
87253         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
87254         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
87255         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
87256         do not check for doprnt or vprintf.
87257         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
87258         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
87259
87260 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87261
87262         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
87263         getversion.c should have been removed then, but was accidentally
87264         preserved.
87265
87266         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
87267         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
87268
87269 2003-09-08  Karl Berry  <karl@gnu.org>
87270
87271         * config/config.sub, config.guess, srclistvars.sh: update from savannah
87272                 config, forget about prep.
87273
87274         * config/depcomp, missing: update from automake.
87275
87276 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87277
87278         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
87279         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87280
87281 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87282
87283         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
87284         copy_tm_result.  Bug reported by Simon Josefsson in
87285         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87286
87287 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87288
87289         * m4/time_r.m4: New file.
87290         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
87291         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
87292         is. Check for timegm declaration.
87293         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
87294         Do not check for gmtime_r.
87295         Replace mktime if __mktime_internal does not exist and if mktime
87296         hasn't been replaced already.
87297
87298 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87299
87300         * lib/time_r.c, lib/time_r.h: New files.
87301
87302         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
87303         __localtime_r.
87304         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
87305         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
87306
87307         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
87308         __gmtime_r.
87309         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
87310         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
87311         Include <time_r.h>.
87312
87313         * lib/timegm.c: Switch to glibc implementation, with the following
87314         changes:
87315         [defined HAVE_CONFIG_H]: Include <config.h>.
87316         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
87317         (__mktime_internal) [!defined _LIBC]: New decl.
87318         (__gmtime_r) [!defined _LIBC]: New macro and function.
87319         (timegm): Use a prototype, since gnulib assumes C89.
87320         Do not bother declaring tmp to be const, as it's not really usefu.
87321         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
87322         (timegm): Declare only if HAVE_DECL_TIMEGM.
87323
87324 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87325
87326         * MODULES.html.sh (func_all_modules): Add time_r.
87327         * modules/time_r: New file.
87328         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
87329         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
87330
87331 2003-09-03  Paul Eggert  <eggert@twinsun.com>
87332
87333         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
87334         Bug reported by Lute Kamstra in
87335         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
87336
87337         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
87338         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
87339         course with correspondingly smaller numbers for tomorrow and
87340         yesterday.  From Tadayoshi Funaba.  Originally installed into
87341         sh-utils on 1999-08-07, but the patch got lost (I guess during the
87342         coreutils merge?).
87343
87344 2003-08-31  Simon Josefsson  <jas@extundo.com>
87345
87346         * modules/timegm: New file.
87347         * MODULES.html.sh (func_all_modules): Add timegm.
87348
87349 2003-08-31  Simon Josefsson  <jas@extundo.com>
87350
87351         * m4/timegm.m4: New file.
87352
87353 2003-08-31  Simon Josefsson  <jas@extundo.com>
87354
87355         * lib/timegm.h: New file.
87356         * lib/timegm.c: New file.  Based on
87357         wget-1.8.2/src/http.c:mktime_from_utc.
87358
87359 2003-08-31  Karl Berry  <karl@gnu.org>
87360
87361         * lib/argp.h: update from libc.
87362
87363 2003-08-28  Bruno Haible  <bruno@clisp.org>
87364
87365         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
87366         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
87367         followed by '#define fnmatch fnmatch_posix' gives an error.
87368
87369 2003-08-28  Bruno Haible  <bruno@clisp.org>
87370
87371         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
87372         warning on QNX, which defines O_BINARY to 000000.
87373
87374 2003-08-27  Jim Meyering  <jim@meyering.net>
87375
87376         * m4/mkstemp.m4: Require that the system mkstemp be able to create
87377         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
87378         would fail after 32.  Reported by Danny Levinson.  Details here:
87379         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
87380
87381 2003-08-24  Bruno Haible  <bruno@clisp.org>
87382
87383         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
87384         MSVC7 <stdio.h> is included later.
87385
87386 2003-08-22  Simon Josefsson  <jas@extundo.com>
87387
87388         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
87389
87390 2003-08-20  Karl Berry  <karl@gnu.org>
87391
87392         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
87393
87394 2003-08-20  Bruno Haible  <bruno@clisp.org>
87395
87396         * modules/progname: New file.
87397         * MODULES.html.sh (func_all_modules): Add progname.
87398
87399 2003-08-20  Bruno Haible  <bruno@clisp.org>
87400
87401         * lib/progname.h: New file, from GNU gettext.
87402         * lib/progname.c: New file, from GNU gettext.
87403         * lib/progreloc.c: New file, from GNU gettext.
87404
87405 2003-08-19  Jim Meyering  <jim@meyering.net>
87406
87407         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
87408         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
87409
87410 2003-08-19  Bruno Haible  <bruno@clisp.org>
87411
87412         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
87413         more.
87414
87415 2003-08-19  Bruno Haible  <bruno@clisp.org>
87416
87417         * lib/xstrdup.c: Assume <string.h> exists.
87418
87419 2003-08-18  Paul Eggert  <eggert@twinsun.com>
87420
87421         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
87422         in makefile rules.
87423
87424 2003-08-18  Jim Meyering  <jim@meyering.net>
87425
87426         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
87427         * m4/lib-ld.m4: Likewise.
87428
87429 2003-08-18  Jim Meyering  <jim@meyering.net>
87430
87431         * lib/setenv.h: Indent nested cpp directive.
87432         * lib/vasnprintf.c: Remove trailing blanks.
87433
87434 2003-08-17  Simon Josefsson  <jas@extundo.com>
87435
87436         * modules/xstrndup: New file.
87437         * MODULES.html.sh (func_all_modules): Add xstrndup.
87438
87439 2003-08-17  Simon Josefsson  <jas@extundo.com>
87440
87441         * modules/argp: Fix autoconf macro name. Add more dependencies.
87442
87443 2003-08-17  Simon Josefsson  <jas@extundo.com>
87444
87445         * m4/xstrndup.m4: New file.
87446
87447 2003-08-17  Simon Josefsson  <jas@extundo.com>
87448
87449         * m4/argp.m4: New file.
87450
87451 2003-08-17  Simon Josefsson  <jas@extundo.com>
87452             Bruno Haible  <bruno@clisp.org>
87453
87454         * lib/xstrndup.h: New file.
87455         * lib/xstrndup.c: New file.
87456
87457 2003-08-17  Bruno Haible  <bruno@clisp.org>
87458
87459         * modules/strndup (Files, Include): Add lib/strndup.h.
87460
87461 2003-08-17  Bruno Haible  <bruno@clisp.org>
87462
87463         * modules/euidaccess (Files): Add lib/euidaccess.h.
87464
87465 2003-08-17  Bruno Haible  <bruno@clisp.org>
87466
87467         * lib/strndup.h: New file.
87468
87469 2003-08-17  Bruno Haible  <bruno@clisp.org>
87470
87471         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
87472         like AC_GNU_SOURCE.
87473         * modules/extensions (configure.ac): Comment out the invocation of
87474         gl_USE_SYSTEM_EXTENSIONS.
87475
87476 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87477
87478         Merges from coreutils, etc.
87479         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
87480         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
87481         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
87482         fixing a typo.
87483         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
87484         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
87485
87486 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87487
87488         Document merge from coreutils.
87489         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
87490         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
87491         * modules/utime: Add m4/utimes-null.m4.
87492
87493 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87494
87495         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
87496         space, undoing this 2003-08-12 change:
87497         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87498
87499 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87500
87501         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
87502         strtoul.c from libc, undoing this 2003-08-12 change:
87503         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87504
87505 2003-08-16  Jim Meyering  <jim@meyering.net>
87506
87507         Merges from coreutils.
87508         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
87509         prefix.  Adjust cache variables similarly.  Create 500 rather than
87510         just 300 files, to exercise bug on Darwin6.5, too.
87511         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
87512         $missing_dir.
87513         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
87514         AM_SYS_POSIX_TERMIOS.
87515         Reported by mkc@mathdogs.com.
87516         Also change use of $am_cv_sys_posix_termios
87517         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
87518         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
87519         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
87520         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
87521         in /proc/mounts until it finds one with matching device number.  This
87522         is unnecessary when the FILE argument *is* a mount point.  No stat call
87523         is necessary in that case.  So, disable the statvfs-testing code on
87524         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
87525         as RedHat bug# 84846.
87526         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87527         to 1MB, so as not to render systems with no stack size limit (e.g.,
87528         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87529         Include <unistd.h>.  On some systems,
87530         it is required for the definition of _SC_PAGESIZE.
87531
87532 2003-08-16  Jim Meyering  <jim@meyering.net>
87533
87534         Merge from coreutils.
87535         * lib/xstrtoimax.c: #else #if -> #elif.
87536         * lib/xstrtoumax.c: Likewise.
87537
87538 2003-08-16  Jim Meyering  <jim@meyering.net>
87539
87540         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
87541         * m4/utimes.m4: Removed.
87542         * m4/utimes-null.m4: Renamed from utimes.m4.
87543
87544         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87545         to 1MB, so as not to render systems with no stack size limit (e.g.,
87546         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87547         Include <unistd.h>.  On some systems,
87548         it is required for the definition of _SC_PAGESIZE.
87549
87550 2003-08-16  Jim Meyering  <jim@meyering.net>
87551         and Paul Eggert  <eggert@cs.ucla.edu>
87552
87553         Merges from coreutils, etc.
87554
87555         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
87556         using the latest version from cvs.  This avoids problems with #line
87557         directives using a vendor (Sun) compiler.
87558         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
87559         Don't set GETGROUPS_LIB here; now it's
87560         done via getgroups.m4's wrapper function.
87561         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
87562         rather than just in sh-util/configure.in, so that the
87563         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
87564         same.
87565         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
87566         AC_FUNC_GETLOADAVG where to find getloadavg.c.
87567         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
87568         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
87569         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
87570         Remove code that is now done by the newly-required macros.
87571         Append $(EXEEXT) to DF_PROG.
87572         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
87573         Do not invoke or require the following here,
87574         since prereq.m4 or some gnulib .m4 now does this for us:
87575         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
87576         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
87577         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
87578         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
87579         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
87580         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
87581         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
87582         AC_FUNC_OBSTACK.
87583         Do not replace the following functions, as this is now the job
87584         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
87585         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
87586         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
87587         atexit getpass, strdup, getpagesize.
87588         Replace 'raise'.
87589         Do not check for the following functions, as this is now the job
87590         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
87591         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
87592         setregid.
87593         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
87594         Check for sys/sysctl.h.
87595         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
87596         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
87597         of checking for ssize_t ourselves.
87598
87599         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
87600         Require every macro that gnulib/modules/* suggests for us.
87601         (jm_PREREQ_ADDEXT): New macro.
87602         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
87603         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
87604
87605         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
87606         (gl_PHYSMEM): Use it.
87607         Also check for `table' function.
87608         Check for new headers and functions.
87609         Add check for sys/sysmp.h.
87610         With suggestions from Kaveh Ghazi.
87611         Ignore headers that are present but cannot be compiled.  This
87612         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
87613         C 5.4.
87614
87615 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87616
87617         Document merge from coreutils.
87618         * modules/userspec: Depend on posixver.
87619         * modules/strftime: Depend on tzset.
87620
87621 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87622
87623         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
87624         rather than tab, after '#' in shell-script copyright notices.
87625         Suggested by Bruno Haible.
87626
87627 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87628
87629         * config/srclist-update: Use three spaces, rather than tab, after '#'
87630         in shell-script copyright notices.  Suggested by Bruno Haible.
87631         Remove unnecessary parenthesization in regular expression.
87632
87633 2003-08-15  Jim Meyering  <jim@meyering.net>
87634
87635         Merge from coreutils.
87636         * lib/xgethostname.c: Include <stdlib.h>.
87637         (xghostname): Don't exit for anything other than memory-related
87638         failure; just return NULL.
87639         * lib/userspec.c: Include "posixver.h".
87640         (parse_user_spec): Accept `.' as a separator only
87641         in pre-POSIX-200112 mode.
87642         * lib/strtoimax.c: Use #elif rather than #else #if.
87643         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
87644         Remove function, now that we can rely on a working tzset function.
87645         [!_LIBC]: Ensure that the required autoconf test has been run.
87646         [!defined _NL_CURRENT && HAVE_STRFTIME]:
87647         Use underlying_strftime for %r.
87648         * lib/sha.c: Merge in some clean-up and optimization changes from
87649         glibc.
87650         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
87651         Ensure that it is a multiple of 64.
87652         Rearrange loop exit tests so as to avoid performing an
87653         additional fread after encountering an error or EOF.
87654         * lib/realloc.c: Update copyright date.
87655
87656 2003-08-15  Jim Meyering  <jim@meyering.net>
87657         and Paul Eggert  <eggert@twinsun.com>
87658
87659         Merge from coreutils.
87660         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
87661         member but strut utmpx does not.  Needed for AIX 4.3.3.
87662         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
87663
87664 2003-08-15  Jim Meyering  <jim@meyering.net>
87665         and Paul Eggert  <eggert@cs.ucla.edu>
87666
87667         Merges from coreutils, etc.
87668         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
87669         Require gl_FUNC_TZSET_CLOBBER.
87670         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
87671         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
87672         members.
87673
87674 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87675
87676         Help the merge from coreutils.
87677         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
87678         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
87679         * m4/tzset.m4: Use it too.
87680
87681 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87682
87683         * modules/tzset: New file.
87684
87685 2003-08-14  Jim Meyering  <jim@meyering.net>
87686
87687         Merges from coreutils.
87688         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
87689         variable names, rather than @FNMATCH_H@.
87690         * modules/alloca: Likewise for $(ALLOCA_H).
87691
87692         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
87693         the three copies of the literal target, `fnmatch.h'.
87694         * modules/alloca (alloca.h): Likewise.
87695
87696 2003-08-14  Jim Meyering  <jim@meyering.net>
87697
87698         Merge from coreutils.
87699         * m4/tzset.m4: New file.
87700         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
87701         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
87702         otherwise, AIX 5.1 systems would end up using the latter.
87703         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
87704         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
87705         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
87706         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
87707
87708 2003-08-14  Jim Meyering  <jim@meyering.net>
87709
87710         Merge from coreutils.
87711         * lib/obstack.h: Whitespace changes.
87712         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
87713         and xcalloc return values.
87714         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
87715         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
87716         hang on OSF/1 5.1 for DIR on both local and remote file systems.
87717         Reported by (and fix confirmed by) Nelson H. F. Beebe.
87718         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
87719         error from mntctl.
87720         Use mntctl's return value to drive the entry-processing loop, since
87721         we can't rely on the value of the vmt_length member in the last
87722         entry.  On some systems doing so could result in exhausting
87723         virtual memory.  Based in part on a patch from Mike Jetzer.
87724
87725 2003-08-14  Jim Meyering  <jim@meyering.net>
87726         and Paul Eggert  <eggert@twinsun.com>
87727
87728         Merges from coreutils, plus other fixes.
87729         * lib/physmem.c: Merge in portability changes from gcc/libiberty
87730         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
87731         for credits and details.  Thanks to Kaveh Ghazi for helping
87732         to keep these files in sync.
87733         (ARRAY_SIZE): Define it.
87734         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
87735         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
87736         (memcasecmp): Don't assume size_t fits in unsigned int.
87737         Remove casts and duplicate code.
87738         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
87739         (memcpy): Remove definition.
87740         Merge in some clean-up and optimization changes from glibc.
87741         [BLOCKSIZE]: Move definition to top of file.
87742         Ensure that it is a multiple of 64.
87743         Rearrange loop exit tests so as to avoid performing an
87744         additional fread after encountering an error or EOF.
87745         * lib/md5.h (md5_uintptr): Define.
87746         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
87747         return to the initial working directory.  Preserve errno
87748         for caller.
87749         * lib/idcache.c: Include "xalloc.h".
87750         (xmalloc, xrealloc): Remove decls.
87751         (getuser): Remove casts no longer required in C89.
87752         * lib/human.c: Include stdio.h, for sprintf.
87753         * lib/group-member.c: Include "xalloc.h".
87754         (xmalloc, xrealloc): Remove decls.
87755         (get_group_info): Remove casts no longer required in C89.
87756         * lib/getusershell.c (readname): Remove casts no longer required in
87757         C89.
87758         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
87759         * lib/getline.c: Whitespace fix, from coreutils.
87760
87761 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87762
87763         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
87764         Check for isascii.
87765
87766         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
87767         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
87768         Undo previous (whitespace-only) change.
87769
87770 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87771
87772         * lib/exclude.c: Include <ctype.h>
87773         (IN_CTYPE_DOMAIN): New macro.
87774         (is_space): New fn.
87775         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
87776         and empty lines.
87777
87778         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
87779         Undo previous (whitespace-only) change.
87780
87781 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87782
87783         * config/srclist-update: Change update back to the old behavior,
87784         leaving whitespace alone.  Use one 'sed' command rather than a
87785         pipeline.
87786         (fixlicense): Now a variable, not a function.
87787         (remove_trailing_blanks): Remove.
87788         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
87789         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
87790         Undo previous (whitespace-only) change.
87791
87792 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87793
87794         Merge from coreutils.
87795         * modules/euidaccess: Add lib_SOURCES, include for new
87796         file euidaccess.h
87797
87798 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87799
87800         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
87801         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
87802         Normalize leading white space and remove trailing white space.
87803
87804         Merge from coreutils
87805         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
87806
87807         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
87808         0.12.1.  These files are now being upgraded automatically by
87809         ../config/srclist-update.
87810
87811 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87812
87813         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
87814         Normalize leading white space and remove trailing white space.
87815         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
87816         notice, as per ../config/srclist-update.
87817
87818         Merge from coreutils.
87819         * lib/euidaccess.h: New file.
87820         * lib/euidaccess.c: Include it.
87821         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
87822         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
87823         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
87824
87825 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87826
87827         * config/srclist-update: Add copyright notice.
87828         (remove_id_lines, remove_trailing_blanks): New constants.
87829         (fixfile): Use them to normalize spacing a bit in copied files.
87830         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
87831         Normalize leading white space and remove trailing white space.
87832
87833         * config/texinfo.tex: Sync with texinfo.
87834
87835         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
87836         strtoul.c from libc, to merge coreutils whitespace changes.
87837
87838         * config/srclist.txt: Get the following m4 files from gettext:
87839         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
87840         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
87841         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
87842         wint_t.m4.
87843
87844 2003-08-12  Karl Berry  <karl@gnu.org>
87845
87846         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
87847         been made.
87848
87849 2003-08-11  Paul Eggert  <eggert@twinsun.com>
87850
87851         * modules/gnu-source, m4/gnu-source.m4:
87852         Remove; we're assuming Autoconf 2.54 or later now.
87853         Suggested by Bruno Haible.
87854         * MODULES.html.sh (func_all_modules): Remove gnu-source.
87855
87856 2003-08-11  Bruno Haible  <bruno@clisp.org>
87857
87858         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
87859
87860 2003-08-11  Bruno Haible  <bruno@clisp.org>
87861
87862         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
87863         (vasnprintf): Use it instead of wcslen.
87864
87865 2003-08-11  Bruno Haible  <bruno@clisp.org>
87866
87867         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
87868         value to ensure that _Bool promotes to int. Use #define for _Bool when
87869         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
87870
87871 2003-08-10  Karl Berry  <karl@gnu.org>
87872
87873         * lib/regex.h: update from libc (whitespace fix).
87874
87875 2003-08-09  Paul Eggert  <eggert@twinsun.com>
87876
87877         Merge some files from coreutils.  These changes were
87878         originally made by Jim Meyering.
87879         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
87880         many older Unixes require this.
87881         * lib/alloca.c (alloca): Remove cast to argument of free;
87882         no longer needed in C89.
87883         * lib/alloca_.h, regex.h: Fix white space to match
87884         what GNU indent does.
87885
87886 2003-08-09  Paul Eggert  <eggert@twinsun.com>
87887
87888         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
87889         apparently Emacs's Unicode mode got confused before my 2003-08-05
87890         checkin.
87891
87892 2003-08-08  Paul Eggert  <eggert@twinsun.com>
87893
87894         * m4/extensions.m4: New file.
87895         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
87896         Require gl_USE_SYSTEM_EXTENSIONS.
87897         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
87898         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
87899
87900 2003-08-08  Paul Eggert  <eggert@twinsun.com>
87901
87902         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
87903         * modules/extensions, modules/gnu-source: New files.
87904         * modules/timespec, modules/unlocked-io: Depend on extensions.
87905
87906 2003-08-07  Paul Eggert  <eggert@twinsun.com>
87907
87908         * modules/restrict: New file.
87909         * MODULES.html.sh (func_all_modules): Add restrict.
87910         * modules/regex: Depend on restrict.
87911
87912 2003-08-07  Paul Eggert  <eggert@twinsun.com>
87913
87914         * m4/restrict.m4: New file.
87915         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
87916
87917 2003-08-07  Bruno Haible  <bruno@clisp.org>
87918
87919         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
87920         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
87921
87922 2003-08-07  Bruno Haible  <bruno@clisp.org>
87923
87924         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
87925         makes the module 'getndelim2' compatible with the module 'getline'.
87926
87927 2003-08-05  Paul Eggert  <eggert@twinsun.com>
87928
87929         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
87930         byte with "\201" to avoid glitches when editing that source file
87931         with multi-gnome-terminal.
87932
87933 2003-08-05  Paul Eggert  <eggert@twinsun.com>
87934
87935         * lib/bumpalloc.h: Remove.
87936
87937 2003-08-05  Paul Eggert  <eggert@twinsun.com>
87938
87939         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
87940         * modules/bumpalloc: Remove.
87941
87942 2003-08-04  Paul Eggert  <eggert@twinsun.com>
87943
87944         * lib/getloadavg.c: Change copyright notice and spacing to conform to
87945         GNU coding style.
87946
87947         Merge from coreutils.
87948         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
87949         1. From glibc.
87950         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
87951         from Karl Berry, implemented by Jim Meyering.
87952         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
87953         from Dmitry V. Levin.
87954         Remove anachronistic cast of xrealloc.
87955         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
87956         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
87957         type. Otherwise, it wouldn't compile with at least /bin/cc on
87958         ymp-cray-unicos9.0.2.X.
87959         Combine two mostly-identical uses of alloca into one.
87960         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
87961
87962 2003-08-04  Dave Love  <d.love@dl.ac.uk>
87963
87964         [From Emacs.]
87965
87966         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
87967         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
87968         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
87969         obsolete NLIST_NAME_UNION.
87970         [__GNU__]: Undef BSD and FSCALE.
87971         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
87972
87973 2003-08-03  Paul Eggert  <eggert@twinsun.com>
87974
87975         * lib/stdbool_.h (_Bool): Make it signed char, instead of
87976         an enum type, so that it's guaranteed to promote to int.  See:
87977         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
87978
87979 2003-08-03  Karl Berry  <karl@gnu.org>
87980
87981         * config/depcomp: update from automake.
87982
87983 2003-07-31  Paul Eggert  <eggert@twinsun.com>
87984
87985         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
87986         (strerror): Don't assume that a printable int fits in 14 bytes.
87987
87988 2003-07-31  Bruno Haible  <bruno@clisp.org>
87989
87990         * modules/getpass-gnu: New file.
87991         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
87992
87993 2003-07-31  Bruno Haible  <bruno@clisp.org>
87994
87995         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
87996
87997 2003-07-24  Karl Berry  <karl@gnu.org>
87998
87999         * config/missing: update from automake.
88000
88001 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
88002             Bruno Haible  <bruno@clisp.org>
88003
88004         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
88005         * lib/getline.c (getline, getdelim): Likewise.
88006         Remove _GNU_SOURCE define; now it's defined in config.h through
88007         m4/getline.m4.
88008
88009 2003-07-23  Karl Berry  <karl@gnu.org>
88010
88011         * config/config.sub: update from prep.
88012
88013 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88014
88015         * modules/xalloc (Depends-on): Add exitfail.
88016         * modules/xmemcoll: Likewise.
88017
88018 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88019
88020         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
88021         over-parenthesization in macros.
88022
88023         Sync with coreutils.
88024
88025         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
88026         required by C99.
88027
88028         Use `exit_failure' for xalloc and xmemcoll instead of their own
88029         private exit-failure variables.
88030         * lib/xalloc.h (xalloc_exit_failure): Remove.
88031         * lib/xmalloc.c: Likewise.  Include exitfail.h.
88032         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
88033         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
88034         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
88035         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
88036
88037 2003-07-20  Jim Meyering  <jim@meyering.net>
88038
88039         * modules/closeout (Depends-on): Add exitfail.
88040         Suggestion from Bruno Haible.
88041
88042 2003-07-19  Karl Berry  <karl@gnu.org>
88043
88044         * config/config.sub: update from prep.
88045
88046 2003-07-18  Paul Eggert  <eggert@twinsun.com>
88047
88048         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
88049         Remove.
88050         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
88051         to test that it can stand by itself.  Include "exitfail.h".
88052         Clients should set exit_failure instead.
88053         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
88054
88055 2003-07-18  Bruno Haible  <bruno@clisp.org>
88056
88057         * modules/getndelim2: New file.
88058         * modules/getline: Share files with module getndelim2.
88059         * modules/getnline: Depend on getndelim2 instead of sharing files with
88060         it. Add getnline.c to lib_SOURCES.
88061         * MODULES.html.sh (func_all_modules): Add getndelim2.
88062
88063 2003-07-18  Bruno Haible  <bruno@clisp.org>
88064
88065         * m4/getndelim2.m4: New file.
88066         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
88067         invoke gl_PREREQ_GETNDELIM2.
88068         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
88069         gl_PREREQ_GETNDELIM2.
88070         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
88071         gl_GETNDELIM2.
88072
88073 2003-07-18  Bruno Haible  <bruno@clisp.org>
88074
88075         * lib/getndelim2.h: New file.
88076         * lib/getndelim2.c: Make into a module of its own. Include config.h,
88077         getndelim2.h.
88078         (getndelim2): Make non-static. Change return type to ssize_t.
88079         * lib/getline.h: Change argument names.
88080         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
88081         * lib/getnline.c: Include getndelim2.h.
88082
88083 2003-07-18  Andreas Schwab  <schwab@suse.de>
88084
88085         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
88086
88087 2003-07-17  Karl Berry  <karl@gnu.org>
88088
88089         * config/config.sub: update from prep.
88090
88091 2003-07-17  Bruno Haible  <bruno@clisp.org>
88092
88093         * modules/getnline: New file.
88094         * modules/getline: Add lib/getndelim2.c to source file list.
88095         * MODULES.html.sh (func_all_modules): Add getnline.
88096
88097 2003-07-17  Bruno Haible  <bruno@clisp.org>
88098
88099         * m4/getnline.m4: New file.
88100
88101 2003-07-17  Bruno Haible  <bruno@clisp.org>
88102
88103         * m4/Makefile.am.in: Remove file.
88104         * m4/Makefile.am: Remove file.
88105         * m4/Makefile.in: Remove file.
88106
88107 2003-07-17  Bruno Haible  <bruno@clisp.org>
88108
88109         * lib/getnline.h: New file.
88110         * lib/getnline.c: New file.
88111         * lib/getndelim2.c: New file, extracted from getline.c.
88112         (getndelim2): Renamed from getdelim2, with added nmax argument.
88113         * lib/getline.c: Include getndelim2.c.
88114         (getdelim2): Moved out to getndelim2.c.
88115         (getline, getdelim): Update.
88116
88117 2003-07-17  Bruno Haible  <bruno@clisp.org>
88118
88119         * lib/Makefile.am: Remove file.
88120         * lib/Makefile.in: Remove file.
88121
88122 2003-07-17  Bruno Haible  <bruno@clisp.org>
88123
88124         * configure.in: Remove file.
88125         * Makefile.in: Remove file.
88126
88127 2003-07-17  Bruno Haible  <bruno@clisp.org>
88128
88129         * MODULES.html.sh: Put the </BODY> right before </HTML>.
88130
88131 2003-07-16  Karl Berry  <karl@gnu.org>
88132
88133         * config/srclist-update: was running fixlicense twice, which caused
88134                 texinfo.tex to be nullified for some reason.  Simplify,
88135                 $gplsrc is no longer needed as far as I can see?
88136
88137 2003-07-16  Jim Meyering  <jim@meyering.net>
88138
88139         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
88140
88141 2003-07-15  Paul Eggert  <eggert@twinsun.com>
88142
88143         * config/srclist.txt: Get the following files from gettext-runtime/intl
88144         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
88145         ref-del.sin.  From Bruno Haible.
88146         * config/srclist-update (fixfile): Change grep pattern again, since the
88147         previous fix didn't work (there was another trailing $).  Use
88148         '[$]' to escape the $s.
88149
88150 2003-07-15  Karl Berry  <karl@gnu.org>
88151
88152         * lib/vasnprintf.c: update from gettext.
88153
88154 2003-07-15  Karl Berry  <karl@gnu.org>
88155
88156         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
88157         gets expanded when surrounded by '$'.
88158
88159 2003-07-15  Jim Meyering  <jim@meyering.net>
88160
88161         * modules/save-cwd: Don't depend on error.  From Derek Price.
88162
88163 2003-07-15  Jim Meyering  <jim@meyering.net>
88164
88165         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
88166
88167 2003-07-14  Simon Josefsson  <jas@extundo.com>
88168
88169         * modules/mempcpy: New file.
88170         * MODULES.html.sh (func_all_modules): Add mempcpy.
88171
88172 2003-07-14  Simon Josefsson  <jas@extundo.com>
88173
88174         * m4/mempcpy.m4: New file.
88175
88176 2003-07-14  Simon Josefsson  <jas@extundo.com>
88177
88178         * lib/mempcpy.h: New file.
88179         * lib/mempcpy.c: New file.
88180
88181 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88182
88183         * modules/getdate, modules/posixtm: Depend on mktime.
88184
88185 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88186
88187         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
88188         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
88189         unicodeio.c, unicodeio.h, unlocked-io.h:
88190         Switch from LGPL to GPL.
88191
88192 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88193
88194         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
88195         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
88196         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
88197         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
88198         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
88199         updated automatically by ../config/srclist-update.  This changes
88200         their license from LPGL to GPL.
88201
88202 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88203
88204         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
88205         assumed to refer to the root of the most recent stable gettext version.
88206         * config/srclistvars.sh: Add defaults for eggert.
88207         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
88208         Match "This program" as well as "The program".  This is needed
88209         for gettext.
88210
88211 2003-07-14  Jim Meyering  <jim@meyering.net>
88212
88213         Don't emit diagnostics.  Let callers do that.
88214         * lib/save-cwd.c: Don't include "error.h".
88215         (save_cwd): Don't call error.  Ensure that errno is valid
88216         when returning nonzero.
88217
88218         * lib/save-cwd.h (restore_cwd): Update prototype.
88219         * lib/save-cwd.c (restore_cwd): Remove two parameters.
88220         Simplify.  Don't call error upon failure.  Let callers do that.
88221         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
88222         when auditing is enabled.  But don't bother updating the #if.
88223
88224 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
88225
88226         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
88227         it breaks C++ compilation.
88228         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
88229
88230 2003-07-10  Simon Josefsson  <jas@extundo.com>
88231
88232         * modules/strchrnul (Makefile.am): Add strchrnul.h.
88233
88234 2003-07-10  Jim Meyering  <jim@meyering.net>
88235
88236         * m4/clock_time.m4: Remove trailing blank.
88237         * m4/intmax_t.m4: Likewise.
88238
88239 2003-07-10  Jim Meyering  <jim@meyering.net>
88240
88241         * lib/vasnprintf.c: Remove trailing blanks.
88242         Make cpp indentation consistent.
88243
88244 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88245
88246         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
88247         posixver.c, strftime.c, strnlen.c, strverscmp.c:
88248         Switch from LGPL to GPL.
88249
88250 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88251
88252         * config/srclist.txt: Sort sublists.  Add
88253         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
88254         that differ from gnulib for one reason or another; we'd like this list
88255         to be smaller but for now let's document what we have.
88256
88257 2003-07-08  Paul Eggert  <eggert@twinsun.com>
88258
88259         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
88260         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
88261         and sweeter "eval x=$x".
88262         * config/srclist.txt: Get lib/argp* from glibc.
88263
88264 2003-07-07  Paul Eggert  <eggert@twinsun.com>
88265
88266         * lib/mktime.c: Fix some boundary cases and remove need for floating
88267         point.
88268
88269         Issue a compile-time diagnostic if time_t is floating point, or if
88270         two's complement arithmetic is not in effect, or if arithmetic
88271         right shift does not propagate the sign.  These assumptions were
88272         all in the original code but they weren't checked.
88273
88274         (TIME_T_MIDPOINT, verify): New macros.
88275         (__isleap): Remove; it has integer overflow problems.
88276         (leapyear): New function, without those problems.
88277         (ydhms_tm_diff): Remove; splitting into two parts.
88278         (ydhms_diff): New function, containing the arithmetic part of
88279         the old ydhms_tm_diff function.  Issue a compile-time
88280         diagnostic if we are not using C99 integer division.
88281         Avoid casts when possible.
88282         (guess_time_tm): New function, containing the checking part of
88283         the old ydhms_tm_diff function.  Return the new value, rather than
88284         the difference between it and the old.  Accept a new argument T
88285         so that *T specifies the old value.  Check for overflow in the result.
88286
88287         (__mktime_internal): Use a time_t offset, not a long int offset.
88288         This undoes the 2003-06-04 change, which is no longer needed now
88289         that we have better overflow checking.
88290         (localtime_offset): Likewise.
88291
88292         (__mktime_internal): Avoid harmful overflow on hosts where time_t
88293         and long are 64-bit but int is only 32-bit.
88294         (ydhms_diff): Use long int to store year1 and yday1.
88295         Issue a compile-time diagnostic if long int is not wide enough.
88296
88297         (__mktime_internal): Use long int to store adjusted year and yday.
88298         Use plain C rather than preprocessor commands, if that doesn't
88299         affect efficiency.
88300         Check for overflow (and try to repair) after each probe
88301         rather than checking only at the very end.  This avoids some bugs
88302         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
88303         does not equal GMT offset at maximum time).
88304         Use integer to check for overflow rather than floating point; this
88305         is more portable to non-IEEE hosts, and is a tad faster.
88306         When we detect that we are oscillating between two values,
88307         don't check whether tm_isdst has the requested value, since
88308         we already know the answer.  When tm_isdst has the wrong value,
88309         use a different heuristic to find the right one, based on the
88310         extreme values actually observed in practice in tz2003a,
88311         rather than the (overly optimistic) "previous 3 calendar quarters".
88312
88313         (not_equal_tm, print_tm, check_result): Use "const T" rather than
88314         "T const" to accommodate glibc style.
88315         (check_result): Use less-confusing report format.  "long" -> "long int.
88316         (main): Likewise.
88317         Don't loop if the iteration overflows time_t.
88318         Allow a negative step in the iteration.
88319
88320 2003-07-06  Karl Berry  <karl@gnu.org>
88321
88322         * config/depcomp: update from automake.
88323         * config/config.sub: update from prep.
88324
88325 2003-07-03  Karl Berry  <karl@gnu.org>
88326
88327         * config/config.guess: update from prep.
88328
88329 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88330
88331         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
88332         xreadlink.c now includes it unconditionally.
88333
88334 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88335
88336         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
88337         having it depend on HAVE_SYS_TYPES_H.
88338
88339 2003-07-01  Bruno Haible  <bruno@clisp.org>
88340
88341         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
88342         <sys/types.h> should be sufficient.
88343         Reported by Paul Eggert.
88344
88345 2003-06-26  Karl Berry  <karl@gnu.org>
88346
88347         * config/depcomp: update from automake.
88348
88349 2003-06-26  Bruno Haible  <bruno@clisp.org>
88350
88351         * modules/human: Depend on module stdbool.
88352
88353 2003-06-25  Bruno Haible  <bruno@clisp.org>
88354
88355         * modules/readlink: New file.
88356         * modules/xreadlink: Depend on it.
88357         * MODULES.html.sh (func_all_modules): Add readlink.
88358
88359 2003-06-25  Bruno Haible  <bruno@clisp.org>
88360
88361         * m4/readlink.m4: New file.
88362
88363 2003-06-25  Bruno Haible  <bruno@clisp.org>
88364
88365         * lib/readlink.c: New file.
88366
88367 2003-06-22  Karl Berry  <karl@gnu.org>
88368
88369         * config/srclist.txt: update mkinstalldirs from automake.
88370         * config/mkinstalldirs: update.
88371
88372 2003-06-22  Bruno Haible  <bruno@clisp.org>
88373
88374         Portability to mingw32.
88375         * m4/ssize_t.m4: New file, from GNU gettext.
88376         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
88377         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
88378
88379 2003-06-22  Bruno Haible  <bruno@clisp.org>
88380
88381         * modules/safe-read: Add m4/ssize_t.m4.
88382         * modules/xreadlink: Add m4/ssize_t.m4.
88383
88384 2003-06-20  Bruno Haible  <bruno@clisp.org>
88385
88386         Assume C89, so PARAMS isn't needed.
88387         * lib/unicodeio.h (PARAMS): Remove.
88388         * lib/unicodeio.c: Don't use PARAMS.
88389
88390 2003-06-18  Karl Berry  <karl@gnu.org>
88391
88392         * config/config.{guess,sub}: update from prep.
88393
88394 2003-06-18  Jim Meyering  <jim@meyering.net>
88395
88396         Merge changes from coreutils.
88397         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
88398         Remove explicit declarations of xmalloc and realloc.
88399         Include xalloc.h.
88400         (read_utmp): Remove anachronistic cast of xmalloc.
88401
88402 2003-06-17  Paul Eggert  <eggert@twinsun.com>
88403
88404         Assume C89, so PARAMS isn't needed.
88405         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
88406         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
88407         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
88408         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
88409         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
88410         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
88411         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
88412         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
88413         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
88414         lib/xstrtod.h, lib/xstrtol.h: Likewise.
88415         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
88416         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
88417         no longer needed. Anyway, config.h should always be included before any
88418         other file.
88419
88420 2003-06-11  Simon Josefsson  <jas@extundo.com>
88421
88422         * modules/sysexits: New file.
88423         * MODULES.html.sh (func_all_modules): Add sysexits.
88424
88425 2003-06-11  Simon Josefsson  <jas@extundo.com>
88426
88427         * lib/sysexit_.h: New file.
88428
88429 2003-06-11  Derek Price  <derek@ximbiot.com>
88430
88431         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
88432         necessary.
88433
88434 2003-06-11  Bruno Haible  <bruno@clisp.org>
88435
88436         * m4/sysexits.m4: New file.
88437
88438 2003-06-10  Simon Josefsson  <jas@extundo.com>
88439
88440         * lib/argp.h: New file, from glibc.
88441         * lib/argp-ba.c: New file, from glibc.
88442         * lib/argp-eexst.c: New file, from glibc.
88443         * lib/argp-fmtstream.c: New file, from glibc.
88444         * lib/argp-fmtstream.h: New file, from glibc.
88445         * lib/argp-fs-xinl.c: New file, from glibc.
88446         * lib/argp-help.c: New file, from glibc.
88447         * lib/argp-namefrob.h: New file, from glibc.
88448         * lib/argp-parse.c: New file, from glibc.
88449         * lib/argp-pv.c: New file, from glibc.
88450         * lib/argp-pvh.c: New file, from glibc.
88451         * lib/argp-xinl.c: New file, from glibc.
88452
88453 2003-06-10  Simon Josefsson  <jas@extundo.com>
88454
88455         * modules/strchrnul: New file.
88456
88457 2003-06-10  Simon Josefsson  <jas@extundo.com>
88458
88459         * modules/argp: New file.
88460
88461 2003-06-10  Simon Josefsson  <jas@extundo.com>
88462
88463         * m4/strchrnul.m4: New file.
88464
88465 2003-06-10  Simon Josefsson  <jas@extundo.com>
88466
88467         * lib/strchrnul.h: New file.
88468         * lib/strchrnul.c: New file.
88469
88470 2003-06-10  Bruno Haible  <bruno@clisp.org>
88471
88472         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
88473
88474 2003-06-07  Karl Berry  <karl@gnu.org>
88475
88476         * config/config.{guess,sub}: update from prep.
88477
88478 2003-06-07  Jim Meyering  <jim@meyering.net>
88479
88480         * modules/strtod: Use $(...) notation, not @...@ for
88481         AC_REPLACE'd variables.
88482         * modules/localcharset: Likewise.
88483
88484 2003-06-07  Jim Meyering  <jim@meyering.net>
88485
88486         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
88487         in place of my name in the copyright comment.
88488         Remove definition and uses of __P.
88489
88490         From coreutils.
88491         * lib/stat.c: Don't declare xmalloc explicitly.
88492         Instead, include "xalloc.h".
88493         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
88494         xrealloc, and xcalloc return values.
88495         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
88496         Improve comment.
88497         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
88498
88499 2003-06-07  Bruno Haible  <bruno@clisp.org>
88500
88501         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
88502         avoid AC_CONFIG_LINKS.
88503         * modules/fnmatch (Makefile.am): Use explicit creation rule for
88504         fnmatch.h, to avoid AC_CONFIG_LINKS.
88505         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
88506
88507 2003-06-07  Bruno Haible  <bruno@clisp.org>
88508
88509         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
88510         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
88511         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88512         directory.
88513         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
88514         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88515         directory.
88516
88517 2003-06-06  Jim Meyering  <jim@meyering.net>
88518
88519         Merge from coreutils.
88520         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
88521         Consolidate declarations and initializations of *_base* locals.
88522
88523         Merge from coreutils.
88524         This avoids a core dump on systems without GNU putenv,
88525         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
88526         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
88527         (unsetenv): New static function, from GNU libc.
88528         (rpl_putenv): Use it.
88529
88530         * lib/modechange.c: Remove trailing blanks.
88531
88532         Merge from coreutils.
88533         * lib/fsusage.c: Remove declaration of statfs.
88534         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
88535
88536         * lib/posixtm.c: Include <stdbool.h> unconditionally.
88537
88538 2003-06-06  Jim Meyering  <jim@meyering.net>
88539
88540         * lib/stdbool_.h: Renamed from stdbool.h.in.
88541
88542 2003-06-06  Jim Meyering  <jim@meyering.net>
88543             Bruno Haible  <bruno@clisp.org>
88544
88545         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
88546         Adjust Makefile.am snippet not to redirect directly to target.
88547         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
88548
88549 2003-06-05  Paul Eggert  <eggert@twinsun.com>
88550
88551         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
88552         mismatch, look in future quarters as well as past.  This fixes a
88553         bug when processing fall-backwards gaps immediately after a long
88554         period of daylight-saving time.
88555
88556         * lib/mktime.c: Assume freestanding C89 or better.
88557         (HAVE_LIMITS_H): Remove.  Assume it's 1.
88558         (__P): Remove; not used.
88559         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
88560         (mktime, not_equal_tm, print_tm, check_result,
88561         main): Use prototypes.  Use const * where appropriate.
88562         (main): Fix typo in testing code that uncovered by above changes.
88563         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
88564
88565 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88566
88567         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
88568         locale.h, localeconv.  This merges changes from coreutils.
88569
88570         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
88571         It can be removed after the next Autoconf is released.
88572         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
88573         needed.
88574
88575 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88576
88577         * lib/mktime.c: Fix Debian bug 177940
88578         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
88579         (localtime_offset): Now long int, not time_t, because we want it
88580         to be guaranteed to be signed.  All uses changed.
88581         (__mktime_internal): If overflow would occur when adding offset,
88582         don't add it.
88583
88584         Merge 'human' changes from coreutils.  Rewrite to support
88585         locale-specific notations like thousands separators.
88586         * lib/human.c: Simplify authorship notice.
88587         Include human.h immediately after config.h.
88588         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
88589         <limits.h>: Do not include, since human.h does.
88590         (SIZE_MAX, UINTMAX_MAX): New macros.
88591         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
88592         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
88593         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
88594         (power_letter): Renamed from suffixes.
88595         (generate_suffix_backwards): Remove.
88596         (adjust_value): Now takes int style (because of human.h changes)
88597         and long double value (for greater precision on some platforms).
88598         (group_number): New function.
88599         (human_readable): Use it.  Use integer options, not enum.
88600         Put the options before the sizes in the arg list.
88601         Support all the new options.
88602         The old human_readable function has been removed;
88603         use inttostr.h instead.
88604         (human_readable, default_block_size, humblock):
88605         Use uintmax_t, not int, for block sizes.
88606         (human_readable_inexact, block_size_types): Remove.
88607         (block_size_opts): New constant.
88608         (human_options): Renamed from human_block_size, with new signature
88609         that allows block sizes up to UINTMAX_MAX.  All callers changed.
88610         * lib/human.h: Add copyright and authorship notice.
88611         Include <limits.h> and <stdbool.h> unconditionally.
88612         (PARAMS): Remove.  All uses removed.
88613         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
88614         (enum human_inexact_style): Remove tag; now a nameless enum.
88615         (human_floor, human_ceiling, human_round_to_even): Now have
88616         values 2, 0, 1 rather than -1, 1, 0.
88617         (human_group_digits, human_suppress_point_zero, human_autoscale,
88618         human_base_1024, human_SI, human_B): New constants.
88619         (human_readable_inexact, human_block_size): Remove.
88620         (human_readable): Size args are now uintmax_t, not int.
88621         (human_options): New decl.
88622
88623         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
88624         unnecessary now that we assume C89 or better.  This change
88625         imported from coreutils.
88626
88627         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
88628         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
88629         in the 2003-05-30 sync from glibc.
88630
88631         .h files should stand alone, but we shouldn't include <sys/types.h>
88632         if we can get away with just <stddef.h>.
88633
88634         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
88635         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
88636         rather than <sys/types.h>, as we merely need size_t.
88637         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
88638         to get size_t.
88639         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
88640         Include <stdio.h>, to get FILE.
88641         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
88642         memcasecmp.h has included <stddef.h> and all we need is size_t.
88643         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
88644         our interface, instead of including <sys/types.h>
88645
88646 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88647
88648         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
88649         now, as glibc mktime is buggy on non-glibc systems.
88650
88651 2003-06-03  Karl Berry  <karl@gnu.org>
88652
88653         * config/config.sub: update from prep.
88654
88655 2003-06-02  Paul Eggert  <eggert@twinsun.com>
88656
88657         [from coreutils]
88658         Fix some minor time-related bugs with POSIX time arguments.
88659         Some valid time stamps were being rejected (notably -1, and
88660         time stamps before 1900 on 64-bit hosts).  And some invalid
88661         time stamps were being accepted, e.g. September 31.
88662
88663         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
88664         that we can return (time_t) -1 successfully.
88665         * lib/posixtm.c: Likewise.
88666         [HAVE_STDBOOL_H]: Include <stdbool.h>.
88667         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
88668         (t): Remove static var.
88669         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
88670         of static var.  All uses changed.
88671         (year): Do not reject years before 1900; they can occur with
88672         64-bit time_t.
88673         (posix_time_parse): Do not check for out-of-range components;
88674         that is now the caller's responsibility, since our checks were
88675         only approximations.
88676         (posixtime): Use mktime to check for out-of-range components,
88677         since it knows them exactly.
88678         If mktime returns (time_t) -1, check whether an error actually occurred
88679         by invoking localtime on -1.
88680         (main) [TEST_POSIXTIME]: Check for input data errors, and report
88681         posixtime failures better.
88682         Improve the test data (in comments only).
88683
88684 2003-06-02  Karl Berry  <karl@gnu.org>
88685
88686         * config/mkinstalldirs (version): new variable.
88687         (--version): new option.
88688         (usage): improve message.
88689
88690 2003-05-30  Karl Berry  <karl@gnu.org>
88691
88692         * lib/mktime.c: update from libc.
88693
88694 2003-05-30  Bruno Haible  <bruno@clisp.org>
88695
88696         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
88697         * config/config.rpath: Upgrade to gettext-0.12.1.
88698
88699 2003-05-30  Bruno Haible  <bruno@clisp.org>
88700
88701         * m4/gettext.m4: Upgrade to gettext-0.12.1.
88702         * m4/nls.m4: New file, from gettext-0.12.1.
88703         * m4/po.m4: New file, from gettext-0.12.1.
88704         * m4/progtest.m4: Upgrade to gettext-0.12.1.
88705
88706 2003-05-30  Bruno Haible  <bruno@clisp.org>
88707
88708         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
88709         * lib/localcharset.h: Likewise.
88710         * lib/localcharset.c: Likewise.
88711
88712 2003-05-29  Karl Berry  <karl@gnu.org>
88713
88714         * config/config.rpath: update from gettext.
88715
88716 2003-05-28  Paul Eggert  <eggert@twinsun.com>
88717
88718         Assume the headers required for C89 freestanding compilers.
88719         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
88720         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
88721         * m4/human.m4 (gl_HUMAN): Likewise.
88722         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
88723         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
88724         * m4/userspec.m4 (gl_USERSPEC): Likewise.
88725         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
88726         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
88727         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
88728
88729 2003-05-28  Paul Eggert  <eggert@twinsun.com>
88730
88731         Assume the headers required for C89 freestanding compilers.
88732         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
88733         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
88734         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
88735         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
88736         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
88737         define, since <limits.h> is guaranteed to do that.
88738         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
88739         * lib/exclude.c: Include <stdbool.h> unconditionally.
88740         * lib/tempname.c: Include <stddef.h> unconditionally.
88741         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
88742         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
88743         <stddef.h> does that.
88744         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
88745         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
88746         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
88747         needed.
88748         * lib/xstrtol.c: Likewise.
88749         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
88750         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
88751
88752         * lib/addext.c (addext): Use assignment rather than cast, to avoid
88753         warnings on some platforms.
88754
88755         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
88756         arbitrarily.
88757
88758 2003-05-26  Jim Meyering  <jim@meyering.net>
88759
88760         Merge in a change from coreutils:
88761         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
88762         that is guaranteed to be `no'.  Use `no_such_member' to indicate
88763         that condition, rather than `-1' which is slightly misleading.
88764         Change the name of the cache variable to have the gl_ prefix.
88765         Prompted by a patch from Richard Dawe for DJGPP.
88766
88767 2003-05-24  Karl Berry  <karl@gnu.org>
88768
88769         * config/config.guess: update from prep.
88770
88771 2003-05-22  Karl Berry  <karl@gnu.org>
88772
88773         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
88774
88775 2003-05-20  Karl Berry  <karl@gnu.org>
88776
88777         * config/config.guess: update from prep.
88778
88779 2003-05-18  Karl Berry  <karl@gnu.org>
88780
88781         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
88782         might actually be set by the user.
88783
88784         * config/depcomp, install-sh, mdate-sh: update from automake.
88785
88786 2003-05-17  Bruno Haible  <bruno@clisp.org>
88787
88788         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
88789         invalid expansion for AC_EGREP_CPP.
88790         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
88791         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
88792         Suggested by Akim Demaille <akim@epita.fr> in
88793         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
88794
88795 2003-05-12  Jim Meyering  <jim@meyering.net>
88796
88797         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
88798         the space-padded-by-default conversion specifiers, %e, %k, %l.
88799
88800 2003-05-12  Bruno Haible  <bruno@clisp.org>
88801
88802         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
88803         the string is longer than 4 KB.
88804
88805 2003-05-11  Karl Berry  <karl@gnu.org>
88806
88807         * config/config.{guess,sub}: update from prep.
88808
88809 2003-05-09  Bruno Haible  <bruno@clisp.org>
88810
88811         * modules/error: Add m4/strerror_r.m4 to file list.
88812
88813 2003-05-03  Bruno Haible  <bruno@clisp.org>
88814
88815         Upgrade to Unicode-4.0.
88816         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
88817         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
88818         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
88819         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
88820         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
88821         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
88822         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
88823         Change width of U+E0100..U+E01EF from 1 to 0.
88824
88825 2003-04-25  Jim Meyering  <jim@meyering.net>
88826
88827         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
88828         of type size_t, not int.
88829
88830 2003-04-25  Bruno Haible  <bruno@clisp.org>
88831
88832         * lib/copy-file.c: Include <stddef.h>, for size_t.
88833
88834 2003-04-21  Paul Eggert  <eggert@twinsun.com>
88835
88836         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
88837         code which expansion is under static control.  Patch imported from
88838         Akim Demaille's patch to Bison; see
88839         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
88840
88841 2003-04-14  Bruno Haible  <bruno@clisp.org>
88842
88843         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
88844
88845 2003-04-11  Jim Meyering  <jim@meyering.net>
88846
88847         Merge changes from Coreutils.
88848
88849         2003-03-22  Jim Meyering  <jim@meyering.net>
88850
88851         * lib/strftime.c (widen): Cast alloca return value to proper type.
88852
88853         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
88854
88855         From GNU libc.
88856         * lib/strftime.c (my_strftime): Handle very large width
88857         specifications for numeric values correctly.  Improve checks for
88858         overflow.
88859
88860         2003-01-19  Jim Meyering  <jim@meyering.net>
88861
88862         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
88863         definitions.
88864         (nl_get_alt_digit) [! defined my_strftime]: Define.
88865         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
88866         _nl_get_alt_digit and _nl_get_walt_digit.
88867
88868         * lib/strftime.c (my_strftime): Merge in locale-related changes from
88869         libc. These changes have no effect outside of _LIBC.
88870
88871 2003-04-10  Bruno Haible  <bruno@clisp.org>
88872
88873         * modules/findprog: New file.
88874         * MODULES.html.sh (func_all_modules): Add it.
88875
88876 2003-04-10  Bruno Haible  <bruno@clisp.org>
88877
88878         * m4/findprog.m4: New file.
88879         * m4/eaccess.m4: New file.
88880
88881 2003-04-10  Bruno Haible  <bruno@clisp.org>
88882
88883         * lib/findprog.h: New file, from GNU gettext.
88884         * lib/findprog.c: New file, from GNU gettext.
88885
88886 2003-04-05  Jim Meyering  <jim@meyering.net>
88887
88888         Merge changes from Coreutils.
88889
88890         * lib/exclude.h (PARAMS): Remove definition and uses.
88891         * lib/exclude.c: Remove uses of `PARAMS'.
88892
88893         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
88894         Add test-cases for DOS filenames. Declare program_name.
88895         (main): Set up program_name.  Patch by Rich Dawe.
88896
88897         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88898         error from mntctl.
88899         Use mntctl's return value to drive the entry-processing loop, since
88900         we can't rely on the value of the vmt_length member in the last
88901         entry.  On some systems doing so could result in exhausting
88902         virtual memory.  Based in part on a patch from Mike Jetzer.
88903
88904 2003-04-04  Bruno Haible  <bruno@clisp.org>
88905
88906         * modules/linebreak: New file.
88907         * MODULES.html.sh (func_all_modules): Add it.
88908
88909 2003-04-04  Bruno Haible  <bruno@clisp.org>
88910
88911         * m4/linebreak.m4: New file.
88912
88913 2003-04-04  Bruno Haible  <bruno@clisp.org>
88914
88915         * lib/linebreak.h: New file, from GNU gettext.
88916         * lib/linebreak.c: New file, from GNU gettext with slight
88917         modifications.
88918         * lib/lbrkprop.h: New file, from GNU gettext.
88919
88920 2003-04-03  Bruno Haible  <bruno@clisp.org>
88921
88922         * modules/utf8-ucs4: New file.
88923         * modules/utf16-ucs4: New file.
88924         * modules/ucs4-utf8: New file.
88925         * modules/ucs4-utf16: New file.
88926         * MODULES.html.sh (func_all_modules): Add them.
88927
88928 2003-04-03  Bruno Haible  <bruno@clisp.org>
88929
88930         * m4/utf-ucs4.m4: New file.
88931         * m4/ucs4-utf.m4: New file.
88932
88933 2003-04-03  Bruno Haible  <bruno@clisp.org>
88934
88935         * lib/utf8-ucs4.h: New file, from GNU gettext.
88936         * lib/utf16-ucs4.h: New file, from GNU gettext.
88937         * lib/ucs4-utf8.h: New file, from GNU gettext.
88938         * lib/ucs4-utf16.h: New file, from GNU gettext.
88939
88940 2003-04-02  Bruno Haible  <bruno@clisp.org>
88941
88942         * modules/binary-io: New file.
88943         * MODULES.html.sh (func_all_modules): Add it.
88944
88945 2003-04-02  Bruno Haible  <bruno@clisp.org>
88946
88947         * lib/binary-io.h: New file, from GNU gettext.
88948
88949 2003-04-01  Bruno Haible  <bruno@clisp.org>
88950
88951         * modules/pathname: New file.
88952         * MODULES.html.sh (func_all_modules): Add it.
88953
88954 2003-04-01  Bruno Haible  <bruno@clisp.org>
88955
88956         * lib/pathname.h: New file, from GNU gettext.
88957         * lib/concatpath.c: New file, from GNU gettext.
88958
88959 2003-03-30  Bruno Haible  <bruno@clisp.org>
88960
88961         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
88962
88963 2003-03-30  Bruno Haible  <bruno@clisp.org>
88964
88965         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
88966         function chown() doesn't exist.
88967
88968 2003-03-28  Bruno Haible  <bruno@clisp.org>
88969
88970         * modules/copy-file: New file.
88971         * MODULES.html.sh (func_all_modules): Add it.
88972
88973 2003-03-28  Bruno Haible  <bruno@clisp.org>
88974
88975         * m4/copy-file.m4: New file.
88976
88977 2003-03-28  Bruno Haible  <bruno@clisp.org>
88978
88979         * lib/copy-file.h: New file, from GNU gettext.
88980         * lib/copy-file.c: New file, from GNU gettext.
88981
88982 2003-03-18  Jim Meyering  <jim@meyering.net>
88983
88984         * lib/quote.c (quote_n): Fix typo in comment.
88985
88986 2003-03-18  Bruno Haible  <bruno@clisp.org>
88987
88988         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
88989         checking.
88990         * m4/onceonly_2_57.m4: Likewise.
88991
88992 2003-03-17  Bruno Haible  <bruno@clisp.org>
88993
88994         * m4/onceonly.m4: Require autoconf 2.54 or newer.
88995         (m4_quote): Remove macro.
88996         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
88997
88998 2003-03-14  Jim Meyering  <jim@meyering.net>
88999
89000         Merge changes from Coreutils.
89001         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
89002         to be const, in order to avoid warnings.
89003         (obstack_room): Likewise.
89004         (obstack_empty_p): Likewise.
89005
89006 2003-03-14  Bruno Haible  <bruno@clisp.org>
89007
89008         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
89009         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
89010
89011 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89012
89013         Merge changes from Bison.
89014         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
89015         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
89016         when compiling Bison 1.875's `bitset bset = obstack_alloc
89017         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
89018         * lib/hash.c: Include <stdbool.h> unconditionally.
89019
89020 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89021
89022         * m4/onceonly.m4 (m4_quote): New macro.
89023         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
89024         Quote AC_FOREACH variable-expansions properly.
89025
89026 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89027
89028         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
89029
89030 2003-03-09  Paul Eggert  <eggert@twinsun.com>
89031
89032         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
89033         Reported by Bruce Becker; see:
89034         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
89035
89036 2003-03-03  Paul Eggert  <eggert@twinsun.com>
89037             Bruno Haible  <bruno@clisp.org>
89038
89039         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
89040         Reported by John Hughes, see
89041         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
89042
89043 2003-02-20  Bruno Haible  <bruno@clisp.org>
89044
89045         * MODULES.html.sh (func_all_modules): Add poll.
89046
89047 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89048
89049         * modules/poll: New file.
89050
89051 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89052
89053         * lib/poll_.h: New file.
89054         * lib/poll.c: New file.
89055
89056 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89057
89058         * m4/poll.m4: New file.
89059
89060 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89061
89062         * modules/mathl: New file.
89063
89064 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89065
89066         * lib/mathl.h: New file.
89067         * lib/acosl.c: New file.
89068         * lib/asinl.c: New file.
89069         * lib/atanl.c: New file.
89070         * lib/ceill.c: New file.
89071         * lib/cosl.c: New file.
89072         * lib/expl.c: New file.
89073         * lib/floorl.c: New file.
89074         * lib/frexpl.c: New file.
89075         * lib/ldexpl.c: New file.
89076         * lib/logl.c: New file.
89077         * lib/sincosl.c: New file.
89078         * lib/sinl.c: New file.
89079         * lib/sqrtl.c: New file.
89080         * lib/tanl.c: New file.
89081         * lib/trigl.c: New file.
89082         * lib/trigl.h: New file.
89083
89084 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89085
89086         * m4/mathl.m4: New file.
89087
89088 2003-02-18  Bruno Haible  <bruno@clisp.org>
89089
89090         * MODULES.html.sh (func_all_modules): Add mathl.
89091
89092 2003-02-17  Bruno Haible  <bruno@clisp.org>
89093
89094         * modules/mkdtemp: New module.
89095         * MODULES.html.sh (func_all_modules): Add it.
89096
89097 2003-02-17  Bruno Haible  <bruno@clisp.org>
89098
89099         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
89100
89101 2003-02-17  Bruno Haible  <bruno@clisp.org>
89102
89103         * lib/mkdtemp.h: New file, from GNU gettext.
89104         * lib/mkdtemp.c: New file, from GNU gettext.
89105
89106 2003-02-02  Jim Meyering  <jim@meyering.net>
89107
89108         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
89109         e.g. glibc-2.2.93.
89110
89111 2003-01-31  Bruno Haible  <bruno@clisp.org>
89112
89113         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
89114         'rpl_rename'.
89115         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
89116         'rpl_strnlen'.
89117         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
89118         'rpl_strtod'.
89119         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
89120         'rpl_utime'.
89121
89122 2003-01-31  Bruno Haible  <bruno@clisp.org>
89123
89124         * lib/rename.c: #undef rename before defining rpl_rename.
89125         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
89126
89127 2003-01-30  Bruno Haible  <bruno@clisp.org>
89128
89129         * modules/vasnprintf, modules/vasprintf: New modules.
89130         * MODULES.html.sh (func_all_modules): Add them.
89131
89132 2003-01-30  Bruno Haible  <bruno@clisp.org>
89133
89134         * m4/signed.m4: New file, from GNU gettext.
89135         * m4/longdouble.m4: New file, from GNU gettext.
89136         * m4/wchar_t.m4: New file, from GNU gettext.
89137         * m4/wint_t.m4: New file, from GNU gettext.
89138         * m4/vasnprintf.m4: New file.
89139         * m4/vasprintf.m4: New file.
89140
89141 2003-01-30  Bruno Haible  <bruno@clisp.org>
89142
89143         * lib/printf-args.h: New file, from GNU gettext.
89144         * lib/printf-args.c: New file, from GNU gettext.
89145         * lib/printf-parse.h: New file, from GNU gettext.
89146         * lib/printf-parse.c: New file, from GNU gettext.
89147         * lib/vasnprintf.h: New file, from GNU gettext.
89148         * lib/vasnprintf.c: New file, from GNU gettext.
89149         * lib/asnprintf.c: New file, from GNU gettext.
89150         * lib/vasprintf.h: New file, from GNU gettext with modifications.
89151         * lib/vasprintf.c: New file, from GNU gettext.
89152         * lib/asprintf.c: New file, from GNU gettext.
89153
89154 2003-01-29  Bruno Haible  <bruno@clisp.org>
89155
89156         * modules/stpncpy: New module.
89157         * MODULES.html.sh (func_all_modules): Add it.
89158
89159 2003-01-29  Bruno Haible  <bruno@clisp.org>
89160
89161         * m4/stpncpy.m4: New file.
89162
89163 2003-01-29  Bruno Haible  <bruno@clisp.org>
89164
89165         * lib/stpncpy.h: New file, from GNU gettext with modifications.
89166         * lib/stpncpy.c: New file, from GNU gettext with modifications.
89167
89168 2003-01-28  Bruno Haible  <bruno@clisp.org>
89169
89170         * modules/c-ctype: New module.
89171         * MODULES.html.sh (func_all_modules): Add it.
89172
89173 2003-01-28  Bruno Haible  <bruno@clisp.org>
89174
89175         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
89176         Paul Eggert.
89177         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
89178         Paul Eggert.
89179
89180 2003-01-27  Bruno Haible  <bruno@clisp.org>
89181
89182         * modules/xsetenv: New module.
89183         * MODULES.html.sh (func_all_modules): Add it.
89184
89185 2003-01-27  Bruno Haible  <bruno@clisp.org>
89186
89187         * lib/xsetenv.h: New file, from GNU gettext.
89188         * lib/xsetenv.c: New file, from GNU gettext.
89189
89190 2003-01-23  Jim Meyering  <jim@meyering.net>
89191
89192         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
89193         from working on systems without dirfd (at least Irix and OSF1/Tru64).
89194
89195 2003-01-23  Bruno Haible  <bruno@clisp.org>
89196
89197         * modules/minmax: New module.
89198         * MODULES.html.sh (func_all_modules): Add it.
89199
89200 2003-01-23  Bruno Haible  <bruno@clisp.org>
89201
89202         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
89203         Eggert.
89204
89205 2003-01-22  Bruno Haible  <bruno@clisp.org>
89206
89207         * modules/exit: New module.
89208         * MODULES.html.sh (func_all_modules): Add it.
89209
89210 2003-01-22  Bruno Haible  <bruno@clisp.org>
89211
89212         * lib/exit.h: New file, from GNU gettext.
89213
89214 2003-01-19  Bruno Haible  <bruno@clisp.org>
89215
89216         * gnulib-tool: Recognize option --extract-maintainer.
89217         (func_get_maintainer): New function.
89218         * modules/*: Add Maintainer entry.
89219
89220 2003-01-16  Jim Meyering  <jim@meyering.net>
89221
89222         * m4/regex.m4: The `regex' struct is both input and output.
89223         Initialize it before each use.  Patch by Tim Waugh.
89224
89225 2003-01-16  Bruno Haible  <bruno@clisp.org>
89226
89227         * MODULES.html.sh: Add a table of contents. Add the module name as
89228         leftmost column. Add hyperlinks.
89229
89230 2003-01-15  Bruno Haible  <bruno@clisp.org>
89231
89232         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
89233
89234 2003-01-15  Bruno Haible  <bruno@clisp.org>
89235
89236         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
89237         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
89238         suffix.
89239
89240 2003-01-15  Bruno Haible  <bruno@clisp.org>
89241
89242         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
89243
89244 2003-01-15  Bruno Haible  <bruno@clisp.org>
89245
89246         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
89247         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
89248
89249 2003-01-14  Jim Meyering  <jim@meyering.net>
89250
89251         * lib/same.c (same_name): Tweak a comment.
89252
89253 2003-01-14  Bruno Haible  <bruno@clisp.org>
89254
89255         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
89256         when a string comparison is sufficient.
89257
89258 2003-01-14  Bruno Haible  <bruno@clisp.org>
89259
89260         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
89261         'unsigned int'.
89262
89263 2003-01-14  Bruno Haible  <bruno@clisp.org>
89264
89265         * lib/hash-pjw.c: Add comment about low quality of this function.
89266
89267 2003-01-13  Bruno Haible  <bruno@clisp.org>
89268
89269         * modules/stpcpy: Distribute lib/stpcpy.h.
89270         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
89271
89272 2003-01-13  Bruno Haible  <bruno@clisp.org>
89273
89274         * modules/*: Add a description.
89275         * modules/strpbrk: Fix Makefile.am snippet.
89276         * modules/strtoimax: Fix dependencies.
89277         * modules/strtoumax: Likewise.
89278
89279 2003-01-13  Bruno Haible  <bruno@clisp.org>
89280
89281         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
89282         * modules/alloca (Makefile.am): All object files depend on alloca.h.
89283         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
89284
89285 2003-01-13  Bruno Haible  <bruno@clisp.org>
89286
89287         * gnulib-tool (func_create_testdir): Store config/* files in the main
89288         directory.
89289         * config.rpath: Move to ...
89290         * config/config.rpath: ... here.
89291         * modules/gettext: Contains config/config.rpath, not config.rpath.
89292         * modules/iconv: Likewise.
89293
89294 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89295
89296         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89297         to avoid collisions with libcurses and libreadline.
89298
89299         * m4/getstr.m4: Remove.
89300         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
89301
89302 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89303
89304         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89305         to avoid collisions with libcurses and libreadline.
89306
89307         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
89308         * lib/getstr.h, getstr.c: Remove.
89309         * lib/getline.c: Include "getline.h", to check interface.
89310         Move body of old getstr.c here: this defines MIN_CHUNK and
89311         declares getdelim2, which is renamed from getstr.
89312         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
89313
89314         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
89315         All uses changed.
89316         * lib/linebuffer.h: Likewise.
89317         (readline): Remove backward-compatibility macro.
89318
89319 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89320
89321         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89322         to avoid collisions with libcurses and libreadline.
89323         * getstr: Remove.
89324         * MODULES.html.sh: Remove getstr.
89325         * modules/getline: Depend on unlocked-io, not getstr.
89326
89327 2003-01-12  Jim Meyering  <jim@meyering.net>
89328
89329         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
89330
89331 2003-01-10  Bruno Haible  <bruno@clisp.org>
89332
89333         * modules/alloca: Change Makefile.am requirements. Simplify Include
89334         requirements. Add lib/alloca_.h to file list.
89335
89336 2003-01-10  Bruno Haible  <bruno@clisp.org>
89337
89338         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
89339
89340 2003-01-10  Bruno Haible  <bruno@clisp.org>
89341
89342         * lib/alloca_.h: New file.
89343         * lib/getdate.y: Unconditionally include alloca.h.
89344         * lib/makepath.c: Likewise.
89345         * lib/setenv.c: Likewise.
89346         * lib/userspec.c: Likewise.
89347
89348 2003-01-09  Karl Berry  <karl@gnu.org>
89349
89350         * MODULES.html.sh: include `dirname $0` in PATH, to find
89351         gnulib-tool.
89352
89353 2003-01-09  Bruno Haible  <bruno@clisp.org>
89354
89355         * modules/stdbool: Change configure.ac, Makefile.am requirements.
89356         Simplify Include requirements. Add lib/stdbool.h.in to file list.
89357
89358 2003-01-09  Bruno Haible  <bruno@clisp.org>
89359
89360         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
89361
89362 2003-01-09  Bruno Haible  <bruno@clisp.org>
89363
89364         * lib/stdbool.h.in: New file.
89365
89366 2003-01-09  Bruno Haible  <bruno@clisp.org>
89367
89368         * gnulib-tool (func_all_modules): Ignore files ending in ~.
89369         * MODULES.html.sh: Likewise.
89370
89371 2003-01-08  Jim Meyering  <jim@meyering.net>
89372
89373         * lib/full-write.c: Undefine and define-away `const' after inclusion
89374         of errno.h, not before.  Suggestion from Bruno Haible.
89375
89376 2003-01-08  Bruno Haible  <bruno@clisp.org>
89377
89378         * modules/full-read: Depend on full-write.
89379
89380 2003-01-08  Bruno Haible  <bruno@clisp.org>
89381
89382         * lib/safe-read.c: Include specification header first, to ensure its
89383         selfcontainedness.
89384         * lib/full-write.c: Likewise.
89385
89386 2003-01-07  Jim Meyering  <jim@meyering.net>
89387
89388         * lib/full-write.c: Rework so that it may serve to define full_read,
89389         too.
89390         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
89391
89392 2003-01-07  Bruno Haible  <bruno@clisp.org>
89393
89394         * lib/strtoimax.c: Include <stdint.h> as an alternative to
89395         <inttypes.h>.
89396         * lib/xstrtol.h: Likewise.
89397         * lib/xstrtoimax.c: Likewise.
89398         * lib/xstrtoumax.c: Likewise.
89399         * lib/human.h: Likewise.
89400
89401         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
89402         on systems that have <inttypes.h> but not <stdint.h>.
89403
89404 2003-01-07  Bruno Haible  <bruno@clisp.org>
89405
89406         * MODULES.html.sh: Add copyright notice.
89407         (missed_files): Omit CVS directory entries.
89408         (func_module): Make it work with sed-3.02.
89409         * MODULES.txt: Remove file.
89410
89411 2003-01-06  Jim Meyering  <jim@meyering.net>
89412
89413         * lib/version-etc.c: Update year in translatable copyright string.
89414
89415 2003-01-03  Karl Berry  <karl@gnu.org>
89416
89417         * config/config.{guess,sub}: update from prep.
89418
89419 2003-01-02  Karl Berry  <karl@gnu.org>
89420
89421         * doc/COPYING.DOC: belatedly updated to 1.2.
89422
89423 2003-01-01  Karl Berry  <karl@gnu.org>
89424
89425         * gnulib-tool (func_verify_module): report module name $module in
89426         error message, not $1.
89427         * gnulib-tool (create-testdir): don't complain if destdir couldn't
89428         be created, only if it doesn't exist.
89429         * gnulib-tool (last_checkin_date): don't expand the $Date here.
89430
89431 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89432
89433         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
89434
89435 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89436
89437         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
89438         memcmp if strcoll doesn't work.
89439
89440 2002-12-31  Bruno Haible  <bruno@clisp.org>
89441
89442         * lib/utime.c (utime_null): No need to call ftruncate if the file was
89443         nonempty.
89444
89445 2002-12-31  Bruno Haible  <bruno@clisp.org>
89446
89447         * lib/memcoll.c (STRCOLL): New macro.
89448         (memcoll): Use it.
89449
89450 2002-12-31  Bruno Haible  <bruno@clisp.org>
89451
89452         * lib/localcharset.h: New file.
89453         * lib/localcharset.c: Include it.
89454         * lib/unicodeio.c: Likewise.
89455
89456 2002-12-31  Bruno Haible  <bruno@clisp.org>
89457
89458         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
89459         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
89460
89461 2002-12-31  Bruno Haible  <bruno@clisp.org>
89462
89463         * lib/getline.h: Include <stddef.h>, for size_t.
89464
89465         * lib/unicodeio.h: Include <stddef.h>, for size_t.
89466         * lib/unicodeio.c: Don't include <stddef.h>.
89467
89468 2002-12-31  Bruno Haible  <bruno@clisp.org>
89469
89470         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
89471         HAVE_TM_ZONE.
89472
89473 2002-12-24  Karl Berry  <karl@gnu.org>
89474
89475         * config/config.guess: update from prep.
89476
89477 2002-12-24  Bruno Haible  <bruno@clisp.org>
89478
89479         General infrasructure.
89480         * m4/README: Rewritten.
89481         * m4/onceonly.m4: New file.
89482         * m4/onceonly_2_57.m4: New file.
89483
89484         Module atexit.
89485         * m4/atexit.m4: New file.
89486
89487         Module strtod.
89488         * m4/strtod.m4: New file.
89489
89490         Module strtol.
89491         * m4/strtol.m4: New file.
89492
89493         Module strtoul.
89494         * m4/strtoul.m4: New file.
89495
89496         Module memchr.
89497         * m4/memchr.m4: New file.
89498
89499         Module memcmp.
89500         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
89501         (jm_FUNC_MEMCMP): Invoke it.
89502
89503         Module memcpy.
89504         * m4/memcpy.m4: New file.
89505
89506         Module memmove.
89507         * m4/memmove.m4: New file.
89508
89509         Module memset.
89510         * m4/memset.m4: New file.
89511
89512         Module strcspn.
89513         * m4/strcspn.m4: New file.
89514
89515         Module strpbrk.
89516         * m4/strpbrk.m4: New file.
89517
89518         Module strstr.
89519         * m4/strstr.m4: New file.
89520
89521         Module strerror.
89522         * m4/strerror.m4: New file.
89523
89524         Module mktime.
89525         * m4/mktime.m4: Renamed from jm-mktime.m4.
89526         (gl_PREREQ_MKTIME): New macro.
89527         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
89528
89529         Module malloc.
89530         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
89531         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
89532         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
89533
89534         Module realloc.
89535         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
89536         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
89537         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
89538
89539         Module strftime.
89540         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
89541         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
89542         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
89543         gl_TM_GMTOFF.
89544         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
89545
89546         Module xalloc.
89547         * m4/xalloc.m4: New file.
89548
89549         Module alloca.
89550         * m4/alloca.m4: New file.
89551
89552         Module putenv.
89553         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
89554         (jm_FUNC_PUTENV): Invoke it.
89555
89556         Module setenv.
89557         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
89558         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
89559         when invoked twice.
89560         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
89561         gt_FUNC_SETENV.
89562
89563         Module memrchr.
89564         * m4/memrchr.m4: New file.
89565
89566         Module stpcpy.
89567         * m4/stpcpy.m4: New file.
89568
89569         Module strcase.
89570         * m4/strcase.m4: New file.
89571
89572         Module strdup.
89573         * m4/strdup.m4: New file.
89574
89575         Module strnlen.
89576         * m4/strnlen.m4: New file.
89577
89578         Module strndup.
89579         * m4/strndup.m4: New file.
89580
89581         Module xstrtod.
89582         * m4/xstrtod.m4: New file.
89583
89584         Module xstrtol.
89585         * m4/xstrtol.m4: New file.
89586
89587         Module getdate.
89588         * m4/getdate.m4: New file.
89589
89590         Module unlocked-io.
89591         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
89592         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
89593         * m4/jm-glibc-io.m4n: Remove file.
89594
89595         Module long-options.
89596         * m4/long-options.m4: New file.
89597
89598         Module md5.
89599         * m4/md5.m4: New file.
89600
89601         Module sha.
89602         * m4/sha.m4: New file.
89603
89604         Module getstr.
89605         * m4/getstr.m4: New file.
89606
89607         Module getline.
89608         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
89609         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
89610         <sys/types.h>, for size_t. Use the function name gnu_getline, not
89611         simply getline. Infoke gl_PREREQ_GETLINE.
89612
89613         Module obstack.
89614         * m4/obstack.m4: New file.
89615
89616         Module hash.
89617         * m4/hash.m4: New file.
89618
89619         Module readtokens.
89620         * m4/readtokens.m4: New file.
89621
89622         Module strverscmp.
89623         * m4/strverscmp.m4: New file.
89624
89625         Module stdbool.
89626         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
89627         OSF/1.
89628
89629         Module strtoll.
89630         * m4/strtoll.m4: New file.
89631
89632         Module strtoull.
89633         * m4/strtoull.m4: New file.
89634
89635         Module strtoimax.
89636         * m4/strtoimax.m4: New file.
89637
89638         Module strtoumax.
89639         * m4/strtoumax.m4: New file.
89640
89641         Module xstrtoimax.
89642         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
89643         jm_AC_PREREQ_XSTRTOIMAX.
89644         Moved the strtol prerequisites to strtol.m4.
89645         Moved the strtoll prerequisites to strtoll.m4.
89646         Moved the strtoimax prerequisites to strtoimax.m4.
89647
89648         Module xstrtoumax.
89649         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
89650         jm_AC_PREREQ_XSTRTOUMAX.
89651         Moved the strtoul prerequisites to strtoul.m4.
89652         Moved the strtoull prerequisites to strtoull.m4.
89653         Moved the strtoumax prerequisites to strtoumax.m4.
89654
89655         Module chown.
89656         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
89657         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
89658
89659         Module dup2.
89660         * m4/dup2.m4: New file.
89661
89662         Module ftruncate.
89663         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
89664         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
89665
89666         Module getgroups.
89667         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
89668         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
89669
89670         Module gettimeofday.
89671         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
89672         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
89673         gl_PREREQ_GETTIMEOFDAY.
89674
89675         Module mkdir.
89676         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
89677         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
89678
89679         Module mkstemp.
89680         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
89681         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
89682         jm_AC_TYPE_UINTMAX_T.
89683         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
89684
89685         Module stat.
89686         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
89687         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
89688
89689         Module lstat.
89690         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
89691         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
89692
89693         Module timespec.
89694         * m4/timespec.m4 (gl_TIMESPEC): New macro.
89695         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
89696         * m4/st_mtim.m4: Indentation.
89697
89698         Module nanosleep.
89699         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
89700         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
89701         gl_PREREQ_NANOSLEEP.
89702
89703         Module regex.
89704         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
89705         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
89706         (gl_REGEX): New macro.
89707
89708         Module rename.
89709         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
89710         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
89711
89712         Module rmdir.
89713         * m4/rmdir.m4: New file.
89714
89715         Module utime.
89716         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
89717         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
89718         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
89719
89720         Module dirname.
89721         * m4/dirname.m4: New file.
89722
89723         Module getopt.
89724         * m4/getopt.m4: New file.
89725
89726         Module unistd-safer.
89727         * m4/unistd-safer.m4: New file.
89728
89729         Module fnmatch.
89730         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
89731         declaration.
89732         (gl_PREREQ_FNMATCH_EXTRA): New macro.
89733         (gl_FUNC_FNMATCH_POSIX): New macro.
89734         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
89735         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
89736         simply fnmatch.
89737
89738         Module exclude.
89739         * m4/exclude.m4: New file.
89740
89741         Module human.
89742         * m4/human.m4: New file.
89743
89744         Module acl.
89745         * m4/acl.m4: Nop.
89746
89747         Module backupfile.
89748         * m4/backupfile.m4: New file.
89749         * m4/d-ino.m4: Indentation.
89750
89751         Module fsusage.
89752         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
89753         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
89754         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
89755
89756         Module dirfd.
89757         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
89758         requirements.
89759
89760         Module euidaccess.
89761         * m4/euidaccess.m4: New file.
89762
89763         Module file-type.
89764         * m4/file-type.m4: New file.
89765
89766         Module fileblocks.
89767         * m4/fileblocks.m4: New file.
89768
89769         Module filemode.
89770         * m4/filemode.m4: New file.
89771
89772         Module isdir.
89773         * m4/isdir.m4: New file.
89774
89775         Module lchown.
89776         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
89777         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
89778
89779         Module makepath.
89780         * m4/makepath.m4: New file.
89781
89782         Module modechange.
89783         * m4/modechange.m4: New file.
89784
89785         Module mountlist.
89786         * m4/mountlist.m4: New file.
89787         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
89788         Indentation.
89789
89790         Module path-concat.
89791         * m4/path-concat.m4: New file.
89792
89793         Module pathmax.
89794         * m4/pathmax.m4: New file.
89795
89796         Module same.
89797         * m4/same.m4: New file.
89798
89799         Module save-cwd.
89800         * m4/save-cwd.m4: New file.
89801
89802         Module savedir.
89803         * m4/savedir.m4: New file.
89804
89805         Module xgetcwd.
89806         * m4/xgetcwd.m4: New file.
89807         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
89808
89809         Module xreadlink.
89810         * m4/xreadlink.m4: New file.
89811
89812         Module safe-read.
89813         * m4/safe-read.m4: New file.
89814
89815         Module safe-write.
89816         * m4/safe-write.m4: New file.
89817
89818         Module closeout.
89819         * m4/closeout.m4: New file.
89820
89821         Module stdio-safer.
89822         * m4/stdio-safer.m4: New file.
89823
89824         Module getpass.
89825         * m4/getpass.m4: New file.
89826
89827         Module getugroups.
89828         * m4/getugroups.m4: New file.
89829
89830         Module group-member.
89831         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
89832         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
89833
89834         Module idcache.
89835         * m4/idcache.m4: New file.
89836
89837         Module userspec.
89838         * m4/userspec.m4: New file.
89839
89840         Module gettime.
89841         * m4/clock_time.m4: New file.
89842         * m4/gettime.m4: New file.
89843
89844         Module settime.
89845         * m4/settime.m4: New file.
89846
89847         Module posixtm.
89848         * m4/posixtm.m4: New file.
89849
89850         Module gethostname.
89851         * m4/gethostname.m4: New file.
89852
89853         Module canon-host.
89854         * m4/canon-host.m4: New file.
89855
89856         Module gettext.
89857         * m4/codeset.m4: New file, from gettext-0.11.5.
89858         * m4/gettext.m4: New file, from gettext-0.11.5.
89859         * m4/glibc21.m4: New file, from gettext-0.11.5.
89860         * m4/iconv.m4: New file, from gettext-0.11.5.
89861         * m4/intdiv0.m4: New file, from gettext-0.11.5.
89862         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
89863         * m4/inttypes.m4: New file, from gettext-0.11.5.
89864         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
89865         * m4/isc-posix.m4: New file, from gettext-0.11.5.
89866         * m4/lcmessage.m4: New file, from gettext-0.11.5.
89867         * m4/lib-ld.m4: New file, from gettext-0.11.5.
89868         * m4/lib-link.m4: New file, from gettext-0.11.5.
89869         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
89870         * m4/progtest.m4: New file, from gettext-0.11.5.
89871         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
89872         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
89873         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
89874
89875         Module localcharset.
89876         * m4/localcharset.m4: New file.
89877
89878         Module hard-locale.
89879         * m4/hard-locale.m4: New file.
89880
89881         Module mbswidth.
89882         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
89883         onceonly macros.
89884         * m4/mbrtowc.m4: Add comment.
89885
89886         Module memcasecmp.
89887         * m4/memcasecmp.m4: New file.
89888
89889         Module memcoll.
89890         * m4/memcoll.m4: New file.
89891
89892         Module unicodeio.
89893         * m4/unicodeio.m4: New file.
89894
89895         Module rpmatch.
89896         * m4/rpmatch.m4: New file.
89897
89898         Module yesno.
89899         * m4/yesno.m4: New file.
89900
89901         Module exitfail.
89902         * m4/exitfail.m4: New file.
89903
89904         Module c-stack.
89905         * m4/c-stack.m4 (gl_C_STACK): New macro.
89906         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
89907
89908         Module error.
89909         * m4/error.m4 (gl_ERROR): New macro.
89910         (jm_PREREQ_ERROR): Use onceonly macros.
89911
89912         Module fatal.
89913         * m4/fatal.m4: New file.
89914
89915         Module getloadavg.
89916         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
89917         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
89918
89919         Module getpagesize.
89920         * m4/getpagesize.m4: New file.
89921
89922         Module getusershell.
89923         * m4/getusershell.m4: New file.
89924
89925         Module physmem.
89926         * m4/physmem.m4: New file.
89927
89928         Module posixver.
89929         * m4/posixver.m4: New file.
89930
89931         Module quotearg.
89932         * m4/quotearg.m4: New file.
89933
89934         Module quote.
89935         * m4/quote.m4: New file.
89936
89937         Module readutmp.
89938         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
89939
89940         Module sig2str.
89941         * m4/sig2str.m4: New file.
89942
89943         Other.
89944         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
89945         ulonglong.m4.
89946         * m4/intmax_t.m4: New file.
89947         * m4/d-type.m4: Indentation.
89948         * m4/jm-macros.m4: Update.
89949         * m4/prereq.m4 (jm_PREREQ): Update.
89950         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
89951         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
89952         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
89953         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
89954         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
89955         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
89956         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
89957         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
89958         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
89959         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
89960         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
89961         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
89962         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
89963         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
89964         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
89965         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
89966         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
89967         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
89968         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
89969
89970 2002-12-24  Bruno Haible  <bruno@clisp.org>
89971
89972         * MODULES.txt: Update according to m4/ changes.
89973
89974         Module gettext.
89975         * config.rpath: New file, from gettext-0.11.5.
89976
89977         * modules/*: New module descriptions.
89978         * gnulib-tool: New file.
89979         * MODULES.html.sh: New file.
89980
89981 2002-12-21  Karl Berry  <karl@gnu.org>
89982
89983         * doc/fdl.texi: update to version 1.2.
89984
89985 2002-12-19  Karl Berry  <karl@gnu.org>
89986
89987         * config/config.guess: update from prep.
89988
89989 2002-12-18  Bruno Haible  <bruno@clisp.org>
89990
89991         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
89992         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
89993
89994 2002-12-17  Bruno Haible  <bruno@clisp.org>
89995
89996         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
89997         stdlib.h, string.h.
89998
89999 2002-12-17  Bruno Haible  <bruno@clisp.org>
90000
90001         * lib/canon-host.c (strdup): Remove unused declaration.
90002
90003         * lib/fsusage.c: Include full_read.h.
90004         (get_fs_usage): Use full_read instead of safe_read.
90005
90006         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
90007
90008 2002-12-12  Karl Berry  <karl@gnu.org>
90009
90010         * config/config.guess: update from prep.
90011
90012 2002-12-11  Bruno Haible  <bruno@clisp.org>
90013
90014         * m4/setenv.m4: New file, from gettext-0.11.5.
90015
90016 2002-12-11  Bruno Haible  <bruno@clisp.org>
90017
90018         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
90019         not unsetenv().
90020         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
90021         modifications:
90022
90023         2002-12-11  Bruno Haible  <bruno@clisp.org>
90024
90025                 * setenv.c (alloca): Fall back to malloc.
90026                 (freea): New macro.
90027                 (setenv): Use freea() to free memory allocated with alloca().
90028
90029         2002-11-13  Bruno Haible  <bruno@clisp.org>
90030
90031                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
90032                 function declarations.
90033                 * unsetenv.c (unsetenv): Likewise.
90034
90035         2002-03-04  Bruno Haible  <bruno@clisp.org>
90036
90037                 Portability to AIX 4.3.3.
90038                 * unsetenv.c: New file, extracted from setenv.c.
90039                 * setenv.c: Move the unsetenv() function to unsetenv.c.
90040
90041         2001-12-20  Bruno Haible  <bruno@clisp.org>
90042
90043                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
90044                 use malloc instead. For SunOS 4.
90045
90046         2001-12-11  Bruno Haible  <bruno@clisp.org>
90047
90048                 * setenv.c: Declare alloca.
90049                 (compar_fn_t): New typedef.
90050                 (KNOWN_VALUE, STORE_VALUE): Use it.
90051
90052         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
90053         setenv.h.
90054
90055 2002-12-10  Paul Eggert  <eggert@twinsun.com>
90056
90057         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
90058         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
90059         Choose values that are less likely to collide with system fnmatch
90060         options.
90061         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
90062         defined (e.g., a pure POSIX system).
90063         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
90064         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
90065
90066 2002-12-06  Paul Eggert  <eggert@twinsun.com>
90067
90068         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
90069         a pain in practice to deal with generated m4 files.  This change
90070         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
90071
90072         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
90073         and jm-glibc-io.m4, as they are no longer a special case.
90074         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
90075         kludge and the auto-generation stuff.  Check only whether the
90076         functions are declared, not whether they exist, since older hosts
90077         that don't declare the functions can't use the optimization anyway.
90078
90079 2002-12-06  Jim Meyering  <jim@meyering.net>
90080
90081         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
90082
90083         Merge in changes from libc's misc/error.c, in preparation
90084         for the merge of gnulib's changes back into libc.
90085
90086         * lib/error.c (_): Define only if not already defined.
90087         Move definition to follow all #include directives.
90088         Include unlocked-io.h only if !_LIBC.
90089         [_LIBC]: Include <libio/libioP.h>.
90090         [USE_IN_LIBIO]: Include <libio/iolibio.h>
90091         (fflush): Tweak definition to use INTUSE.
90092         (putc): Define.
90093
90094 2002-12-05  Paul Eggert  <eggert@twinsun.com>
90095
90096         * lib/alloca.c [defined emacs]: Include "lisp.h".
90097         (xalloc_die) [defined emacs]: New macro.
90098         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
90099         [! defined emacs]: Include <xalloc.h>.
90100         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
90101         (pointer): Typedef to POINTER_TYPE *.
90102         (malloc): Remove decl; we now always use xmalloc.
90103         (alloca): Use old-style definition, since Emacs needs this.
90104         Check for arithmetic overflow when computing combined size.
90105
90106 2002-12-04  Paul Eggert  <eggert@twinsun.com>
90107
90108         Do not generate unlocked-io.h automatically, since it's easier to
90109         maintain it by hand.
90110
90111         * lib/unlocked-io.h: New file, from GNU diffutils,
90112         but with proper copyright notice and attribution.
90113         * lib/gen-uio: Remove.
90114         * lib/Makefile.am: Add copyright notice.
90115         (libfetish_a_SOURCES): Add unlocked-io.h.
90116         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
90117         (DISTCLEANFILES, io_functions): Remove macros.
90118         (EXTRA_DIST): Remove gen_uio.
90119         (unlocked-io.h): Remove rule.
90120
90121 2002-12-04  Jim Meyering  <jim@meyering.net>
90122
90123         Reflect the fact that stat.c and lstat.c are no longer generated.
90124         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
90125         (DISTCLEANFILES): Likewise.
90126         (EXTRA_DIST): Likewise.
90127         (all_local): Don't depend on stat.c or lstat.c.
90128         (stat.c, lstat.c): Remove rules.
90129         (EXTRA_DIST): Remove xstat.in.
90130
90131         * lib/xstat.in: Remove file.  Contents moved into stat.c.
90132         * lib/stat.c: New file.  Contents mostly from xstat.in.
90133         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
90134         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
90135
90136         * lib/safe-read.c: Rework so that it may serve to define safe_write,
90137         too.
90138         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
90139
90140 2002-12-03  Jim Meyering  <jim@meyering.net>
90141
90142         * lib/safe-read.c, safe-write.c: Change variable names and comments,
90143         but not semantics, to minimize the differences between these two files.
90144         (safe_read): Change comment to mention SAFE_READ_ERROR.
90145
90146         * lib/safe-read.c (IS_EINTR): Define.
90147         (safe_read): Use IS_EINTR in place of in-function cpp directives.
90148
90149 2002-12-02  Jim Meyering  <jim@meyering.net>
90150
90151         * lib/safe-read.c (EINTR): Define.
90152         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
90153         (INT_MAX): Provide fallback.
90154         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
90155
90156         * lib/safe-read.h (SAFE_READ_ERROR): Define.
90157
90158 2002-12-02  Bruno Haible  <bruno@clisp.org>
90159
90160         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
90161         Define, taken from safe-read.c.
90162         (INT_MAX): Provide fallback.
90163         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
90164         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
90165
90166         * lib/safe-read.c (EINTR): Remove definition.
90167         (safe_read): Don't use EINTR if it is absent.
90168
90169 2002-12-01  Jim Meyering  <jim@meyering.net>
90170
90171         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
90172         zero.
90173         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
90174
90175 2002-11-27  Paul Eggert  <eggert@twinsun.com>
90176
90177         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
90178         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
90179         with `if (! (value < limit)) abort ();', for readability.
90180
90181 2002-11-26  Karl Berry  <karl@gnu.org>
90182
90183         * lib/strdup.c: copy from libc again, with jim's ok.
90184         * lib/.cppi-disable: re-add strdup.c
90185
90186 2002-11-25  Karl Berry  <karl@gnu.org>
90187
90188         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
90189         instead of "strtol.c".
90190
90191 2002-11-25  Karl Berry  <karl@gnu.org>
90192
90193         * config/install-sh: update from automake for variable quoting, $0 in
90194         error msgs, etc.
90195
90196         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
90197         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
90198         entry.
90199
90200 2002-11-25  Jim Meyering  <jim@meyering.net>
90201
90202         * lib/mktime.c: Sync from libc, now that it has the latest fix.
90203
90204 2002-11-24  Karl Berry  <karl@gnu.org>
90205
90206         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
90207         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
90208
90209 2002-11-24  Jim Meyering  <jim@meyering.net>
90210
90211         Update from coreutils:
90212
90213         * lib/mktime.c: Merge in changes from libc.
90214
90215         Avoid a link-time failure on some Linux systems.
90216         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
90217         (otherwise).
90218         (__mon_yday): Declare with the STATIC attribute.
90219         (__mktime_internal): Likewise.
90220         Based on a report from Greg Schafer.
90221
90222 2002-11-23  Jim Meyering  <jim@meyering.net>
90223
90224         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
90225         Use `unsigned', not `int', as type of index.
90226
90227         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
90228
90229         * lib/fsusage.c: Remove unneeded parentheses around operands of
90230         `defined'.
90231
90232 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90233
90234         * lib/quotearg.h: Allow multiple inclusion by surrounding with
90235         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
90236         so that we can be included first.
90237         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
90238         * lib/quotearg.c: Include quotearg.h immediately after config.h.
90239         No need to include stddef.h or sys/types.h any more.
90240         Surround local include files with "", not "<>".
90241         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
90242         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
90243         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
90244         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
90245         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
90246         (ISPRINT): Remove; no longer needed now that we assume C89.
90247
90248         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
90249         Preserve errno.
90250
90251         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
90252         quotearg_char): Use SIZE_MAX rather than
90253         (size_t) -1 when we are talking about "infinity".
90254
90255         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
90256
90257 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90258
90259         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
90260         hint that one should use `if (! x) abort ();' rather than `assert
90261         (x);', and anyway it's one less thing to worry about configuring.
90262         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
90263         hash_rehash, hash_insert): Use abort rather than assert.
90264
90265 2002-11-22  Bruno Haible  <bruno@clisp.org>
90266
90267         * lib/safe-read.h: Assume C89. Add comments.
90268         (safe_read): Change return type to size_t.
90269         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
90270         byte counts > SSIZE_MAX correctly.
90271         * lib/safe-write.h: New file.
90272         * lib/safe-write.c: New file.
90273         * lib/full-read.h: New file.
90274         * lib/full-read.c: New file.
90275         * lib/full-write.h: Assume C89. Add comments.
90276         * lib/full-write.c: Include safe-write.h.
90277         (full_write): Rewritten to use safe_write.
90278         Suggested by Jim Meyering and Paul Eggert.
90279
90280 2002-11-21  Jim Meyering  <jim@meyering.net>
90281
90282         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
90283
90284         Merge in changes from the coreutils.
90285
90286         2002-09-25  Paul Eggert  <eggert@twinsun.com>
90287         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
90288         <stdint.h>.
90289         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
90290         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
90291         int.  Work more efficiently if X is the same width as uintmax_t.
90292         Do not compare X to -1, to avoid bogus compiler warning.
90293         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
90294         Don't assume that f_frsize and f_bsize are the same type.
90295
90296         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
90297         warning on FreeBSD.
90298
90299         * lib/makepath.c (make_path): Restore umask *before* creating the final
90300         component.
90301         (make_path): Minor reformatting.
90302
90303         * lib/xmalloc.c: Adjust to work with new autoconf macros,
90304         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
90305         HAVE_MALLOC/HAVE_REALLOC.
90306
90307         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
90308         dummy ones.  At least on GNU/Linux systems, `auto' means something
90309         else.
90310         From Michael Stone.
90311
90312 2002-11-21  Bruno Haible  <bruno@clisp.org>
90313
90314         Remove case insensitive option matching.
90315         * lib/argmatch.h (argcasematch): Remove declaration.
90316         (ARGCASEMATCH): Remove macro.
90317         (__xargmatch_internal): Remove case_sensitive argument.
90318         (XARGMATCH): Update.
90319         (XARGCASEMATCH): Remove macro.
90320         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
90321         case_sensitive argument.
90322         (argcasematch): Remove function.
90323         (__xargmatch_internal): Remove case_sensitive argument.
90324         (main): Use XARGMATCH instead of XARGCASEMATCH.
90325
90326         * lib/xmalloc.c: Change compile-time error message. Add comment about
90327         required autoconf version.
90328
90329 2002-11-20  Paul Eggert  <eggert@twinsun.com>
90330
90331         Merge argmatch cleanups from Bison.  Assume C89.
90332
90333         * lib/argmatch.c: Include config.h here, not in argmatch.h.
90334         Include stdlib.h, for EXIT_FAILURE.
90335         Always include <string.h>, since we assume C89.
90336         (EXIT_FAILURE): Remove pre-C89 bug workaround.
90337         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
90338         Include <stddef.h> instead, since it's all we need for size_t.
90339         (PARAMS): Remove.  All uses removed.
90340         (ARRAY_CARDINALITY): Do not bother to #undef.
90341         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
90342         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90343         Remove unnecessary parentheses.
90344         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90345         Insert necessary parentheses.
90346         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
90347         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
90348
90349 2002-11-19  Bruno Haible  <bruno@clisp.org>
90350
90351         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
90352         * lib/mbswidth.h: Include <stddef.h>, for size_t.
90353
90354         * lib/mbswidth.h (PARAMS): Remove macro.
90355         (mbswidth, mbsnwidth): Use ANSI C function declarations.
90356         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
90357
90358         * lib/gcd.h (PARAMS): Remove macro.
90359         (gcd): Use ANSI C function declarations.
90360         * lib/gcd.c (gcd): Likewise.
90361
90362 2002-11-15  Bruno Haible  <bruno@clisp.org>
90363
90364         * lib/strcspn.c: Include <stddef.h>.
90365         (strcspn): Use ANSI C function declaration. Change return type to
90366         size_t. Use NULL.
90367         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
90368         (strpbrk): Use NULL.
90369         * lib/strpbrk.h (PARAMS): Remove macro.
90370         (strpbrk): Use ANSI C function declaration.
90371         * lib/strstr.c: Don't include <sys/types.h>.
90372         * lib/strstr.h (PARAMS): Remove macro.
90373         (strstr): Use ANSI C function declarations.
90374
90375 2002-11-14  Karl Berry  <karl@gnu.org>
90376
90377         * config/mkinstalldirs: `do' on separate line, instead of
90378         `for var; do'.
90379
90380 2002-11-06  Bruno Haible  <bruno@clisp.org>
90381
90382         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
90383         * lib/gcd.c (gcd): Likewise.
90384
90385 2002-11-05  Bruno Haible  <bruno@clisp.org>
90386
90387         * lib/gcd.h: New file, from gettext-0.11.5.
90388         * lib/gcd.c: New file, from gettext-0.11.5.
90389
90390 2002-11-05  Bruno Haible  <bruno@clisp.org>
90391
90392         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90393         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90394         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90395         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90396
90397         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
90398         <libintl.h>.
90399         * lib/makepath.c: Include gettext.h instead of <locale.h> and
90400         <libintl.h>.
90401
90402         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
90403         * lib/human.c: Include gettext.h instead of <libintl.h>.
90404         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
90405         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
90406         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
90407         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
90408         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
90409         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
90410         (textdomain): Remove definition.
90411         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
90412
90413         * lib/long-options.c: Remove include of <libintl.h> and definition of
90414         _.
90415         * lib/same.c: Remove include of <libintl.h> and definition of _.
90416
90417 2002-11-04  Owen Taylor  <otaylor@redhat.com>
90418
90419         * lib/config.charset: A few additions for Solaris.
90420
90421 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90422
90423         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
90424         * lib/localcharset.c (locale_charset): Declare as extern "C".
90425
90426 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90427
90428         * lib/config.charset: msdos in uk_UA uses CP1125.
90429
90430 2002-11-04  Bruno Haible  <bruno@clisp.org>
90431
90432         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
90433         * lib/strcase.h: New file, from GNU gettext-0.11.5.
90434         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
90435         * lib/strstr.h: New file, from GNU gettext-0.11.5.
90436         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
90437
90438 2002-11-04  Bruno Haible  <bruno@clisp.org>
90439
90440         * lib/localcharset.c (locale_charset): Don't return an empty string.
90441
90442 2002-11-04  Bruno Haible  <bruno@clisp.org>
90443
90444         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
90445         aliases.
90446
90447 2002-11-04  Bruno Haible  <bruno@clisp.org>
90448
90449         * lib/config.charset: Update for newest glibc. Add canonical names
90450         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
90451
90452 2002-11-04  Bruno Haible  <bruno@clisp.org>
90453
90454         * lib/config.charset: Add support for NetBSD.
90455
90456 2002-11-04  Bruno Haible  <bruno@clisp.org>
90457
90458         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
90459
90460 2002-11-01  Bruno Haible  <bruno@clisp.org>
90461
90462         * configure.in: Add AC_CONFIG_AUX_DIR call.
90463         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
90464         test/Makefile.
90465         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
90466
90467 2002-09-28  Karl Berry  <karl@gnu.org>
90468
90469         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
90470         installed automake until the next release, since changes have been
90471         made.
90472
90473 2002-09-25  Karl Berry  <karl@gnu.org>
90474
90475         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
90476         * lib/getopt*: copy from libc/posix.
90477         * lib/gettext.h: copy from gettext.
90478         * lib/.cppi-disable: add strdup.c, gettext.h.
90479
90480 2002-09-25  Karl Berry  <karl@gnu.org>
90481
90482         * config/srclist.txt: enable gettext.h check.
90483         * config/config.{guess,sub}: update from prep.
90484         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
90485                 from automake 1.6.3.
90486         See srclist*.
90487
90488 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
90489
90490         * regex.c (PATFETCH): Remove the translating fetch.
90491         (PATFETCH_RAW): Rename to PATFETCH.
90492         (set_image_of_range): New fun.
90493         (SET_RANGE_TABLE_WORK_AREA): Use it.
90494         (regex_compile): Don't translate the pattern chars so eagerly.
90495         Only do it when inserting an `exactn' bytecode or when handling
90496         a char-range.
90497         (mutually_exclusive_p): Avoid empty statement.
90498
90499 2002-07-06  Jim Meyering  <meyering@lucent.com>
90500
90501         * m4/README: Don't mention Makefile.am.in.
90502         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
90503
90504 2002-07-01  Jim Meyering  <meyering@lucent.com>
90505
90506         * lib/c-stack.c: Include sys/time.h.
90507         From Volker Borchert.
90508
90509 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90510
90511         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
90512
90513 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90514
90515         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
90516         New macro.  Use it uniformly instead of
90517         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
90518         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
90519         reported by Vin Shelton.
90520
90521 2002-06-22  Paul Eggert  <eggert@twinsun.com>
90522
90523         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
90524         Do not assume SA_SIGINFO behavior.
90525         Bug reported by Jim Meyering on NetBSD 1.5.2.
90526
90527 2002-06-22  Jim Meyering  <meyering@lucent.com>
90528
90529         * m4/c-stack.m4: New file, from diffutils-2.8.2.
90530         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
90531
90532         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
90533         now that configure.ac uses AC_GNU_SOURCE.
90534         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
90535         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
90536
90537         Update to latest tools.  Suggestions from Paul Eggert.
90538         * m4/stdbool.m4: New file, from diffutils-2.8.2.
90539         * m4/gnu-source.m4: Update from diffutils-2.8.2.
90540         * m4/fnmatch.m4: Likewise.
90541         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
90542         to AC_HEADER_STDBOOL
90543
90544 2002-06-22  Jim Meyering  <meyering@lucent.com>
90545
90546         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
90547         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
90548
90549 2002-06-22  Jim Meyering  <meyering@lucent.com>
90550
90551         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
90552
90553         * lib/exitfail.c, exitfail.h: Likewise.
90554         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
90555
90556         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
90557         of fnmatch.h.
90558         (EXTRA_DIST): Add fnmatch_loop.c.
90559         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
90560
90561         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
90562         * lib/fnmatch.c: Update from diffutils-2.8.2.
90563         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
90564         * lib/fnmatch.h: Remove file.
90565
90566 2002-06-21  Jim Meyering  <meyering@lucent.com>
90567
90568         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
90569         * m4/mbrtowc.m4: Likewise.
90570
90571         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
90572         * m4/mbswidth.m4: Reflect name change:
90573         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
90574         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
90575
90576         * m4/lib-link.m4: Update from gettext-0.11.2.
90577         * m4/gettext.m4: Likewise.
90578
90579         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
90580         From Alfred M. Szmidt.
90581
90582 2002-06-18  Paul Eggert  <eggert@twinsun.com>
90583
90584         * lib/file-type.h: Report an error if neither S_ISREG nor
90585         S_IFREG is defined, instead of using a test specific to glibc
90586         2.2.  This should be safe, since POSIX requires S_ISREG and
90587         Unix Version 7 had S_IFREG.  We don't need to check for
90588         <sys/types.h> since we don't use any symbols that it defines.
90589
90590 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
90591
90592         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
90593         $@-t, so that each temporary file name is unique and valid in the first
90594         8 characters, for operation under DOS.
90595
90596 2002-06-15  Paul Eggert  <eggert@twinsun.com>
90597
90598         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
90599
90600 2002-06-15  Jim Meyering  <meyering@lucent.com>
90601
90602         Work even with DJGPP 2.03, which lacks support for symlinks.
90603         From Richard Dawe.
90604         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
90605         is defined.
90606         * lib/lchown.c (S_ISLNK): Likewise.
90607
90608 2002-06-15  Jim Meyering  <meyering@lucent.com>
90609
90610         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
90611         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
90612         have been included before this file.
90613
90614 2002-06-14  Jim Meyering  <meyering@lucent.com>
90615
90616         * lib/file-type.h: Use the version from diffutils-2.8.2.
90617         * lib/file-type.c: Likewise.
90618
90619 2002-06-07  Jim Meyering  <meyering@lucent.com>
90620
90621         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
90622         They're needed at least for NetBSD 1.5.2.
90623         ($statxfs_includes): Include those same headers.
90624         ($statxfs_includes): Include sys/vfs.h if available.
90625         ($statxfs_includes): Likewise for sys/statvfs.h.
90626         Check for the following members in both structs statfs and statvfs:
90627         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
90628
90629 2002-06-01  Jim Meyering  <meyering@lucent.com>
90630
90631         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
90632         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
90633
90634 2002-05-28  Jim Meyering  <meyering@lucent.com>
90635
90636         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
90637         Reported by Volker Borchert.
90638
90639 2002-05-27  Jim Meyering  <meyering@lucent.com>
90640
90641         Fix a problem seen only on nonconforming systems whereby ls.c's
90642         use of localtime, and then of gettimeofday would cause trouble:
90643         the localtime call used to initialize rpl_gettimeofday's save
90644         mechanism would clobber ls's current local time information so
90645         that in any long listing the first file would always be listed
90646         with date 1970-01-01.  Analysis by Volker Borchert.
90647
90648         * lib/gettimeofday.c (localtime): Undefine.
90649         (rpl_localtime): New function.
90650
90651 2002-05-27  Jim Meyering  <meyering@lucent.com>
90652
90653         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
90654         localtime.
90655
90656         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
90657         use the replacement function; it wouldn't resolve at link time.
90658         Reported by Volker Borchert.
90659
90660 2002-05-22  Jim Meyering  <meyering@lucent.com>
90661
90662         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
90663         file-type.h.
90664         * lib/file-type.h: New file.
90665         * lib/file-type.c (file_type): New file/function.  Extracted from
90666         diffutils.
90667
90668 2002-04-30  Jim Meyering  <meyering@lucent.com>
90669
90670         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
90671
90672 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90673
90674         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
90675
90676 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90677
90678         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
90679         Do not check for alloca.h (no longer used) or stdbool.h (was never
90680         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
90681
90682 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90683
90684         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
90685
90686 2002-04-29  Jim Meyering  <meyering@lucent.com>
90687
90688         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
90689         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
90690         Use AC_FUNC_STRNLEN here instead.
90691
90692         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
90693         With autoconf-2.53a, it's part of AC_PROG_CC.
90694
90695 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90696
90697         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
90698         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
90699
90700 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90701
90702         * lib/sig2str.h, lib/sig2str.c: New files.
90703         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
90704
90705 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90706
90707         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
90708         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
90709         of 127, since 64 is the largest conceivable number for ancient
90710         nonstandard hosts.
90711         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
90712
90713 2002-04-28  Jim Meyering  <meyering@lucent.com>
90714
90715         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
90716
90717 2002-04-24  Jim Meyering  <meyering@lucent.com>
90718
90719         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
90720         (jm_PREREQ): Use it.
90721
90722         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
90723         mach/mach.h fcntl.h.
90724         Check for this function: setlocale.
90725
90726 2002-04-24  Jim Meyering  <meyering@lucent.com>
90727
90728         * lib/gettext.h: New file, from Gettext.
90729         * lib/Makefile.am (INCLUDES): Remove -I../intl.
90730         (libfetish_a_SOURCES): Add gettext.h.
90731
90732 2002-04-16  Jim Meyering  <meyering@lucent.com>
90733
90734         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
90735         ut_pid, ut_id, ut_exit.
90736
90737 2002-04-16  Jim Meyering  <meyering@lucent.com>
90738
90739         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
90740         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
90741         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
90742
90743 2002-04-12  Jim Meyering  <meyering@lucent.com>
90744
90745         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
90746         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
90747         existence of the getmntinfo function.  Needed for Darwin 5.3.
90748
90749         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
90750         This is necessary at least on Darwin 5.3.
90751
90752         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
90753         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
90754         strnlen.o in the library, and that makes some versions of ranlib
90755         object.
90756
90757 2002-04-12  Jim Meyering  <meyering@lucent.com>
90758
90759         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
90760
90761 2002-04-09  Jim Meyering  <meyering@lucent.com>
90762
90763         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
90764         to be more precise.  Rather than saying we're checking whether the
90765         function `works', say what we're testing.
90766         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
90767         Reported by Bruno Haible.
90768
90769 2002-03-10  Jim Meyering  <meyering@lucent.com>
90770
90771         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
90772         Suggestion from Santiago Vila.
90773
90774 2002-03-08  Jim Meyering  <meyering@lucent.com>
90775
90776         * lib/rename.c: Mention that this wrapper is needed also on
90777         mips-dec-ultrix4.4 systems.
90778
90779 2002-03-02  Jim Meyering  <meyering@lucent.com>
90780
90781         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
90782         not HAVE_CLOCK_SETTIME.
90783
90784 2002-02-27  Paul Eggert  <eggert@twinsun.com>
90785
90786         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
90787         Check for clock_settime.
90788
90789 2002-02-27  Paul Eggert  <eggert@twinsun.com>
90790
90791         * lib/nanosleep.h: Rename to....
90792         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
90793
90794         * lib/gettime.c: New file.
90795         * lib/settime.c: New file.
90796         * lib/stime.c: Remove.
90797
90798         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
90799         timespec.h.  Remove nanosleep.h.
90800
90801 2002-02-25  Paul Eggert  <eggert@twinsun.com>
90802
90803         * m4/acl.m4: New file.
90804         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
90805         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
90806
90807 2002-02-25  Paul Eggert  <eggert@twinsun.com>
90808
90809         * lib/acl.c, lib/acl.h: New files.
90810         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
90811
90812 2002-02-24  Jim Meyering  <meyering@lucent.com>
90813
90814         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
90815         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
90816         cause trouble.  Reported by Nelson Beebe.
90817
90818 2002-02-23  Paul Eggert  <eggert@twinsun.com>
90819
90820         * lib/path-concat.c (xpath_concat): Reorder code to pacify
90821         compilers that don't know that xalloc_die never returns.
90822
90823 2002-02-20  Jim Meyering  <meyering@lucent.com>
90824
90825         * lib/getdate.c: Regenerate using bison-1.33.
90826
90827 2002-02-17  Jim Meyering  <meyering@lucent.com>
90828
90829         * config/config.guess (main): Don't use `head -1'; it's no longer
90830         portable. Use `sed 1q' instead.
90831
90832 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
90833
90834         * m4/codeset.m4: Upgrade to gettext-0.11.
90835         * m4/gettext.m4: Upgrade to gettext-0.11.
90836         * m4/glibc21.m4: Upgrade to gettext-0.11.
90837         * m4/iconv.m4: Upgrade to gettext-0.11.
90838         * m4/isc-posix.m4: Upgrade to gettext-0.11.
90839         * m4/lcmessage.m4: Upgrade to gettext-0.11.
90840         * m4/lib-ld.m4: New file, from gettext-0.11.
90841         * m4/lib-link.m4: New file, from gettext-0.11.
90842         * m4/lib-prefix.m4: New file, from gettext-0.11.
90843         * m4/progtest.m4: Upgrade to gettext-0.11.
90844
90845 2002-02-15  Paul Eggert  <eggert@twinsun.com>
90846
90847         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
90848         (jm_PREREQ): Use it.
90849
90850 2002-02-15  Paul Eggert  <eggert@twinsun.com>
90851
90852         * lib/posixver.c, lib/posixver.h: New files.
90853         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
90854
90855 2002-02-02  Paul Eggert  <eggert@twinsun.com>
90856             Bruno Haible  <bruno@clisp.org>
90857
90858         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
90859         (fwrite_success_callback): New declaration.
90860         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
90861         print_unicode_char. Call failure callback instead of error.
90862         (fwrite_success_callback): New function.
90863         (exit_failure_callback): New function.
90864         (fallback_failure_callback): New function.
90865         (print_unicode_char): Call unicode_to_mb.
90866
90867 2002-01-26  Jim Meyering  <meyering@lucent.com>
90868
90869         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
90870         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
90871
90872 2002-01-26  Jim Meyering  <meyering@lucent.com>
90873
90874         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
90875
90876 2002-01-22  Paul Eggert  <eggert@twinsun.com>
90877
90878         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
90879
90880 2002-01-22  Jim Meyering  <meyering@lucent.com>
90881
90882         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
90883         Otherwise, some versions of automake would omit the rule that makes
90884         Makefile from Makefile.in.
90885
90886 2002-01-21  Paul Eggert  <eggert@twinsun.com>
90887
90888         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
90889         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
90890         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
90891         (memcoll): Set errno to zero if there is no error.
90892
90893         * lib/quotearg.c (quotearg_buffer_restyled):
90894         Fix bug with quoting buffers containing NUL when backslashing escapes.
90895         This bug was exposed by the other changes in this patch.
90896         (quotearg_n_options): New arg ARGSIZE.
90897         All callers changed.
90898         (quoting_options_from_style): New function.
90899         (quotearg_n_style): Use it.
90900         (quotearg_n_style_mem): New function.
90901
90902         * lib/quotearg.h (quotearg_n_style_mem): New function.
90903
90904 2002-01-19  Jim Meyering  <meyering@lucent.com>
90905
90906         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
90907         Remove useless quotes: DF_PROG="df".
90908         * m4/strnlen.m4: New file.
90909
90910 2002-01-16  Paul Eggert  <eggert@twinsun.com>
90911
90912         * lib/backupfile.c (ISDIGIT): Comment fix.
90913         * lib/getdate.y (ISDIGIT): Likewise.
90914         * lib/posixtm.c (ISDIGIT, year): Likewise.
90915         * lib/strverscmp.c (ISDIGIT): Likewise.
90916         * lib/userspec.c (ISDIGIT): Likewise.
90917
90918 2002-01-16  Jim Meyering  <meyering@lucent.com>
90919
90920         * lib/getdate.y: Add three semicolons, each just before a closing
90921         brace. Bison (as of version 1.31) no longer papers over that mistake.
90922
90923 2002-01-05  Jim Meyering  <meyering@lucent.com>
90924
90925         * lib/version-etc.c (version_etc_copyright): Update copyright year.
90926
90927 2001-12-19  Paul Eggert  <eggert@twinsun.com>
90928
90929         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
90930         not silently exit merely because the output buffer happens to
90931         have nothing pending.
90932
90933 2001-12-18  Paul Eggert  <eggert@twinsun.com>
90934
90935         See the big note in ../ChangeLog.
90936         * lib/human.c (suffixes): Prefer K to k for 1024.
90937         (generate_suffix_backwards): New function.
90938         (human_readable_inexact): Use it.
90939         * lib/xstrtol.c (__xstrtol): If there is no number but there
90940         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
90941         Accept 'K' as well as 'k'.
90942
90943 2001-12-15  Jim Meyering  <meyering@lucent.com>
90944
90945         * lib/regex.h (__restrict_arr): Update from libc.
90946
90947         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
90948         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
90949         (STREQ): Define.
90950
90951 2001-12-14  Jim Meyering  <meyering@lucent.com>
90952
90953         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
90954         Suggestion from Bruno Haible.
90955
90956 2001-12-10  Jim Meyering  <meyering@lucent.com>
90957
90958         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
90959         xrealloc, Instead, include "xalloc.h".
90960         (initbuffer): Don't cast xmalloc return value to char*.
90961         (readline): Reword comment.
90962         Don't cast xrealloc return value to char*
90963         Return NULL, not 0.
90964
90965 2001-12-09  Jim Meyering  <meyering@lucent.com>
90966
90967         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
90968         about `signed and unsigned type in conditional expression'.
90969         * lib/posixtm.c (posix_time_parse): Likewise.
90970
90971         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
90972
90973         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
90974         to avoid a pedantic warning.
90975
90976         * lib/getstr.c: Don't include assert.h.
90977         (getstr): Remove warning-evoking assertions.
90978         Return -1 if offset parameter is out of bounds.
90979         Change the type of a local from int to size_t.
90980
90981         * lib/strftime.c (my_strftime_localtime_r): Include this function
90982         definition in the `#if ! HAVE_TM_GMTOFF' block.
90983
90984         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
90985         Include xalloc.h instead.
90986
90987 2001-12-02  Jim Meyering  <meyering@lucent.com>
90988
90989         * lib/tempname.c: Don't declare getenv, thus reverting the change of
90990         2001-11-18.  It's no longer necessary, now that stdlib.h is always
90991         included.
90992
90993         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
90994         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
90995
90996 2001-11-30  Akim Demaille  <akim@epita.fr>
90997
90998         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
90999         before being defined.
91000
91001 2001-11-27  Paul Eggert  <eggert@twinsun.com>
91002
91003         * lib/quotearg.h (quotearg_n, quotearg_n_style):
91004         First arg is int, not unsigned.
91005         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
91006         (SIZE_MAX, UINT_MAX): New macros.
91007         (quotearg_n_options): Abort if N is negative.
91008         Avoid overflow check on hosts where size_t is 64 bits and int
91009         is 32 bits, as overflow is impossible there.
91010         Fix off-by-one typo that caused unnecessary reallocation.
91011
91012 2001-11-27  Jim Meyering  <meyering@lucent.com>
91013
91014         * lib/tempname.c: Merge with version from libc.
91015         * lib/regex.c: Likewise.
91016
91017         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
91018         systems for which STDC_HEADERS is 0, it was not included, resulting in
91019         a warning about an integer-to-pointer conversion problem with getenv.
91020         Reported by Volker Borchert.
91021
91022 2001-11-26  Jim Meyering  <meyering@lucent.com>
91023
91024         * lib/gtod.h: Remove file.
91025         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
91026         * lib/gettimeofday.c: Don't include gtod.h.
91027         (GTOD_init): Remove function.
91028         (rpl_gettimeofday): Do its job here instead, rather than aborting.
91029         Suggestion from Volker Borchert.
91030
91031 2001-11-23  Jim Meyering  <meyering@lucent.com>
91032
91033         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
91034         it.
91035         * lib/hash.c (struct hash_table): Define it here instead.
91036
91037 2001-11-22  Jim Meyering  <meyering@lucent.com>
91038
91039         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
91040
91041 2001-11-20  Jim Meyering  <meyering@lucent.com>
91042
91043         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
91044         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
91045
91046 2001-11-19  Jim Meyering  <meyering@lucent.com>
91047
91048         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
91049         directory.  Use "conftestXXXXXX" as the template.
91050         Suggestion from Paul Eggert.
91051
91052         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
91053         immediately, so the test doesn't mistakenly hit the max-open-files
91054         limit.
91055
91056 2001-11-18  Paul Eggert  <eggert@twinsun.com>
91057
91058         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
91059         (TEMPORARIES): New macro.
91060         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
91061         removes an artificial limitation (e.g. HP-UX 10.20, where
91062         TMP_MAX is 17576).
91063
91064 2001-11-18  Jim Meyering  <meyering@lucent.com>
91065
91066         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
91067
91068 2001-11-18  Jim Meyering  <meyering@lucent.com>
91069
91070         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
91071         on SunOS 4.
91072
91073         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
91074         files will be created before anything else.
91075
91076 2001-11-17  Paul Eggert  <eggert@twinsun.com>
91077
91078         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
91079         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
91080
91081 2001-11-17  Jim Meyering  <meyering@lucent.com>
91082
91083         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
91084         Prompted by a report from Bob Proulx.
91085
91086         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
91087         Instead, require UTILS_FUNC_MKSTEMP.
91088
91089 2001-11-17  Jim Meyering  <meyering@lucent.com>
91090
91091         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
91092         Now, that's done as part of AC_FUNC_STRTOD.
91093
91094 2001-11-17  Jim Meyering  <meyering@lucent.com>
91095
91096         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
91097         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
91098         rather than group writable.  Patch by Juan F. Codagnone.
91099
91100         * lib/readtokens.c: Remove explicit declarations of xmalloc and
91101         xrealloc, Instead, include "xalloc.h".
91102
91103         * lib/mountlist.c: Include unlocked-io.h after all system headers.
91104         Remove explicit declarations of xmalloc, xrealloc,
91105         and xstrdup.  Instead, include "xalloc.h".
91106
91107         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
91108         unlocked-io.h.
91109         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
91110         Likewise.
91111         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
91112
91113         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
91114         Reported by Padraig Brady.
91115
91116         * lib/mkstemp.c: #undef mkstemp.
91117         Include config.h.
91118         (rpl_mkstemp): Rename from mkstemp.
91119         Protoize.
91120
91121 2001-11-16  Jim Meyering  <meyering@lucent.com>
91122
91123         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
91124         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
91125         determine the amount of total physical memory, use pstat_getstatic.
91126         HPUX-11 doesn't define _SC_PHYS_PAGES.
91127         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
91128         If sysconf couldn't be used to determine the amount of available
91129         physical memory, use both pstat_getstatic and pstat_getdynamic.
91130         Based on a patch from Bob Proulx.
91131
91132 2001-11-10  Jim Meyering  <meyering@lucent.com>
91133
91134         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
91135         (jm_PREREQ): Use it.
91136
91137 2001-11-09  Jim Meyering  <meyering@lucent.com>
91138
91139         * m4/jm-macros.m4: Require autoconf-2.52f.
91140         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
91141         Use these AC_-prefixed names, not the AM_-prefixed ones.
91142
91143         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
91144
91145 2001-11-05  Jim Meyering  <meyering@lucent.com>
91146
91147         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
91148
91149 2001-11-04  Jim Meyering  <meyering@lucent.com>
91150
91151         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
91152         $DEFS.
91153
91154 2001-11-03  Jim Meyering  <meyering@lucent.com>
91155
91156         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
91157         of AC_DEFUN.
91158
91159         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
91160         know the name of the variable in the macro definition.
91161
91162 2001-11-03  Jim Meyering  <meyering@lucent.com>
91163
91164         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
91165         in argmatch_to_argument call.
91166
91167         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
91168         argument.
91169
91170         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
91171         e.g., a fault due to an attempt to free a NULL pointer.
91172
91173 2001-11-01  Jim Meyering  <meyering@lucent.com>
91174
91175         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
91176         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
91177
91178 2001-11-01  Jim Meyering  <meyering@lucent.com>
91179
91180         * lib/dirfd.c, lib/dirfd.h: New files.
91181         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
91182
91183         * lib/hash.c (hash_print) [TESTING]: Clean up.
91184
91185 2001-10-22  Paul Eggert  <eggert@twinsun.com>
91186
91187         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
91188         to avoid a warning if -Wall.
91189
91190 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
91191
91192         * README: New file
91193         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
91194         (per RMS's instructions, this is now the canonical source)
91195         * lgpl/, gpl/: New directories.
91196
91197 2001-10-21  Paul Eggert  <eggert@twinsun.com>
91198
91199         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
91200
91201 2001-10-21  Jim Meyering  <meyering@lucent.com>
91202
91203         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
91204         this code would end up calling gettext even in packages built
91205         with --disable-nls.
91206         * lib/getopt.c (_): Likewise.
91207         * lib/regex.c (_): Likewise.
91208
91209 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91210
91211         * m4/error.m4 (jm_PREREQ_ERROR):
91212         Do not invoke AC_CHECK_FUNCS with strerror_r, as
91213         AC_FUNC_STRERROR_R does that.
91214         Check for strerror declaration.
91215
91216         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
91217         are supposed to have them these days.
91218         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
91219         Merge changes from latest Autoconf CVS.
91220         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
91221         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
91222         POSIX decided to standardize on the int flavor of strerror_r.
91223
91224 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91225
91226         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
91227         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
91228         Use strerror_r that is only a macro, even if it is not a function.
91229         (strerror): Check for HAVE_DECL_STRERROR before declaring.
91230         (private_strerror): Use prototypes, not old-style function definition.
91231         (print_errno_message): New function.
91232         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
91233         char*-flavored one.
91234         (error_tail, error, error_at_line): Use it.
91235
91236 2001-10-11  Jim Meyering  <meyering@lucent.com>
91237
91238         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
91239         and quote_n (1, ... to avoid clobbering a buffer.
91240
91241 2001-10-05  Jim Meyering  <meyering@lucent.com>
91242
91243         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
91244         hash-pjw.h.
91245         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
91246         * lib/hash-pjw.h: New file.
91247
91248 2001-09-30  Jim Meyering  <meyering@lucent.com>
91249
91250         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
91251         `struct fsstat' has the `f_fstypename' member.
91252         Use that to define FS_TYPE, which is now used to make
91253         the getfsstat link test tighter.
91254
91255 2001-09-30  Jim Meyering  <meyering@lucent.com>
91256
91257         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
91258         Include <sys/ucred.h>, for Apple Darwin.
91259         Include sys/mount.h and sys/fs_types.h only if available.
91260         (FS_TYPE): Define.
91261         (read_filesystem_list): Use FS_TYPE.
91262
91263 2001-09-29  Paul Eggert  <eggert@twinsun.com>
91264
91265         * lib/exclude.c (excluded_filename): 0 -> false, since it's
91266         a boolean context.
91267
91268 2001-09-29  Jim Meyering  <meyering@lucent.com>
91269
91270         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91271         [one-argument getmntent function]): Include stdio.h before mntent.h.
91272         SunOS 4.1.x needs it for the declaration of `FILE'.
91273         Patch by Volker Borchert.
91274
91275         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91276         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
91277         sys/fs_types.h, and make the link-test for getfsstat guard #include
91278         directives with appropriate #if HAVE_*_H tests so that we can
91279         detect getfsstat on Apple Darwin1.3.7 systems.
91280         Reported by Nelson Beebe.
91281         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
91282
91283 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91284
91285         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91286         #defines strtoimax.  Also treat the other strto* functions
91287         like strtoimax.
91288
91289         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91290         Check for strtoul and strtoumax,
91291         as those declarations are made even in the signed case.
91292         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
91293         Likewise, for strtol and strtoimax.
91294
91295 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91296
91297         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91298         #defines strtoimax.  Also treat the other strto* functions
91299         like strtoimax.
91300
91301         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
91302         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
91303         (strtoimax, strtoumax): Do not declare if already defined as a macro.
91304
91305 2001-09-26  Jim Meyering  <meyering@lucent.com>
91306
91307         Most macros in unlocked-io.h had the wrong number of arguments.
91308         * lib/gen-uio: New script.
91309         (USE_UNLOCKED_IO): Define to 1 if not already defined.
91310         * lib/unlocked-io.hin: Remove file.
91311         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
91312         rather than trying to embed it here.
91313         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
91314         Reported by Padraig Brady.
91315
91316 2001-09-25  Volker Borchert  <bt@teknon.de>
91317
91318         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
91319         `result'.
91320
91321 2001-09-24  Jim Meyering  <meyering@lucent.com>
91322
91323         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
91324
91325 2001-09-23  Jim Meyering  <meyering@lucent.com>
91326
91327         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
91328         instead of the mere test for existence of mntent.h.  The latter
91329         would get a false-positive on AIX 3.4 systems.
91330         In the outer getmntent if-block, don't die if neither of the getmntent
91331         tests succeeds.  Instead, just fall through and continue with the
91332         remaining tests.
91333
91334 2001-09-23  Jim Meyering  <meyering@lucent.com>
91335
91336         * lib/mountlist.c: Remove useless parentheses in #if directives.
91337         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
91338         the deprecated MOUNTED symbol is no longer defined in mntent.h.
91339
91340 2001-09-22  Jim Meyering  <meyering@lucent.com>
91341
91342         * m4/gettext.m4: New file.  From gettext.
91343         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
91344         * m4/progtest.m4: Likewise
91345         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
91346         * m4/glibc21.m4: Likewise.
91347
91348         * m4/libintl.m4: Remove.  No longer used.
91349
91350 2001-09-22  Jim Meyering  <meyering@lucent.com>
91351
91352         * lib/localcharset.c: Update from latest gettext.
91353         * lib/config.charset: Likewise.
91354
91355 2001-09-20  Jim Meyering  <meyering@lucent.com>
91356
91357         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
91358         strtoimax.
91359         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
91360         strtoumax.
91361
91362 2001-09-20  Jim Meyering  <meyering@lucent.com>
91363
91364         * lib/xstrtol.c (strtoimax): Guard declaration with
91365         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
91366         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
91367         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
91368         (strtoumax): Likewise, for completeness (it wasn't necessary).
91369
91370 2001-09-17  Paul Eggert  <eggert@twinsun.com>
91371
91372         * lib/strtoimax.c (HAVE_LONG_LONG):
91373         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
91374         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
91375         to work around bug in IBM C compiler.
91376
91377 2001-09-17  Jim Meyering  <meyering@lucent.com>
91378
91379         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
91380         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
91381         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
91382         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
91383         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
91384         whenever the right hand side need not be expanded by the shell.
91385
91386 2001-09-16  Paul Eggert  <eggert@twinsun.com>
91387
91388         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
91389         library.  It's not correct, as some older glibcs are buggy.
91390         fnmatch wasn't fixed until glibc 2.2.
91391
91392         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
91393         special shell magic here.
91394
91395 2001-09-16  Jim Meyering  <meyering@lucent.com>
91396
91397         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
91398         * m4/jm-macros.m4: Require it.
91399
91400 2001-09-16  Jim Meyering  <meyering@lucent.com>
91401
91402         * lib/mkdir.c: New file.
91403
91404 2001-09-15  Jim Meyering  <meyering@lucent.com>
91405
91406         * m4/jm-macros.m4: Check for help2man.
91407
91408 2001-09-11  Jim Meyering  <meyering@lucent.com>
91409
91410         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
91411         The body, by Paul Eggert, was moved here from configure.in.
91412         * m4/jm-macros.m4: Require UTILS_HOST_OS.
91413
91414 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91415
91416         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
91417         (jm_PREREQ): Use it.
91418
91419 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91420
91421         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
91422         Use ssize_t, not int, to store result of readlink.
91423         Check for ssize_t overflow as well as size_t overflow,
91424         as POSIX says the result of readlink is implementation-defined
91425         when ssize_t overflows.
91426         Remove unnecessary cast to char*.
91427         Use free+malloc instead of realloc, as the storage doesn't need
91428         to be preserved and it's clearer and can be more efficient that way.
91429         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
91430         * lib/xreadlink.h (xreadlink): Update prototype.
91431
91432 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91433
91434         * lib/xgetcwd.c: Revert some of the previous change; intead,
91435         fix the HAVE_GETCWD_NULL code to behave more like the
91436         !HAVE_GETCWD_NULL code used to.
91437
91438         Include "xalloc.h".
91439         (xgetcwd): Do not return NULL when memory is exhausted; instead,
91440         invoke xalloc_die.
91441
91442 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91443
91444         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
91445         sys/param.h, as pathmax.h includes them.
91446
91447 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91448
91449         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
91450         (jm_PREREQ_XGETCWD): New macro.
91451
91452         * m4/getcwd.m4: New file.
91453
91454 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91455
91456         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
91457         like the HAVE_GETCWD_NULL code.
91458         Include pathmax.h if not HAVE_GETCWD.
91459         Do not include xalloc.h.
91460         (INITIAL_BUFFER_SIZE): New symbol.
91461         Do not use xmalloc / xrealloc, since the caller is responsible for
91462         handling errors.  Preserve errno around `free' during failure.
91463         Do not overrun buffer when using getwd.
91464
91465 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91466
91467         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
91468         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
91469         getcwd (NULL, 0).
91470
91471 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91472
91473         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
91474         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
91475         spotted by Jim Meyering.
91476
91477 2001-09-03  Jim Meyering  <meyering@lucent.com>
91478
91479         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
91480         failure.
91481
91482 2001-09-02  Jim Meyering  <meyering@lucent.com>
91483
91484         * lib/error.c: Update from GNU libc.
91485
91486 2001-09-01  Jim Meyering  <meyering@lucent.com>
91487
91488         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
91489         Used by df.
91490
91491 2001-09-01  Jim Meyering  <meyering@lucent.com>
91492
91493         * lib/xreadlink.c: New file.
91494         * lib/xreadlink.h: New file.
91495         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
91496         xreadlink.h.
91497
91498         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
91499         doesn't conflict with sparc Solaris 7's definition in
91500         /usr/include/sys/int_types.h.
91501
91502         * lib/exclude.c: Use `""', not `<>' to #include non-system header
91503         files.
91504         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
91505         and strncasecmp as r-values.  Unixware didn't have declarations.
91506
91507 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91508
91509         * lib/xstrtol.h: Add copyright notice.
91510         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
91511         LONGINT_INVALID_SUFFIX_CHAR.
91512
91513 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91514
91515         * lib/xstrtol.c (strtoimax): New decl.
91516
91517 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91518
91519         * lib/xgetcwd.c: Don't include pathmax.h.
91520         Include stdlib.h and unistd.h if available.
91521         Include xalloc.h.
91522         (xmalloc, xstrdup, free): Remove decls.
91523         (xgetcwd): Don't assume sizes fit in unsigned.
91524         Check for overflow when computing sizes.
91525         Simplify reallocation code.
91526
91527 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91528
91529         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
91530         a directory's st_size can have an arbitrary value, so the old
91531         usage could waste an arbitrary amount of memory.  All uses
91532         changed.
91533         * lib/savedir.h: Update prototype.
91534
91535 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91536
91537         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
91538
91539         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
91540         old strtoimax.c.
91541
91542         Also, make the following further changes to make this file's
91543         configuration more similar to that of strtol.c:
91544         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
91545         (strtoumax, uintmax_t, strtoull, strtol): Remove.
91546         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
91547         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
91548         changed to signed values.
91549
91550         And make the following changes as well:
91551         Fix copyright notice, as 1999 was missing.
91552         (verify): New macro.
91553         (strtoimax): Check sizes at compile-time, not run-time.
91554         Prefer strtol to strtoll if both work.
91555         (main): Remove; it was not that useful and was a pain to maintain.
91556
91557         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
91558
91559 2001-08-31  Jim Meyering  <meyering@lucent.com>
91560
91561         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
91562         Use an initial, malloc'd, buffer of length 128 rather than
91563         a statically allocated one of length 1024.
91564
91565 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91566
91567         Simplify code, partly by assuming autoconf 2.52 semantics.
91568
91569         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
91570
91571         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
91572         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
91573         All uses removed.
91574         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
91575         Move AC_REQUIRE to next-to-top level, to avoid confusion.
91576         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
91577         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
91578         jm_AC_HEADER_INTTYPES_H.
91579         * m4/jm-macros.m4 (jm_MACROS): Likewise.
91580
91581         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
91582
91583         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91584         Quote first arg of AC_DEFUN.
91585         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
91586         since they are needed to parse the include file even if we need
91587         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
91588         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
91589         but with opposite signedness.
91590
91591 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91592
91593         Merge 'exclude' changes from tar 1.13.22.
91594         This fixes one or two unlikely storage allocation overflow bugs,
91595         but doesn't change user-visible behavior otherwise.
91596
91597 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91598
91599         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
91600         (jm_PREREQ_EXCLUDE): New macro.
91601
91602 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91603
91604         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
91605         tm to be declared.
91606
91607 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91608
91609         * lib/hash.c: Remove '2001' from copyright notice.
91610
91611 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91612
91613         * lib/full-write.h: New file.
91614         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
91615         * lib/full-write.c: Correct credits, as cccp.c no longer
91616         exists and anyway it was so heavily changed from the old cccp
91617         code as to be unrecognizable.  Include full-write.h.
91618         (full_write): Return size_t, with short writes meaning failure.
91619         All callers changed.  This fixes a bug with large buffers
91620         on 64-bit hosts.
91621         * lib/utime.c: Include full-write.h.
91622
91623 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91624
91625         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
91626         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
91627         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
91628         Include if available.
91629         (<xalloc.h>): Include
91630         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
91631         (verify): New macro.  Use it to verify that EXCLUDE macros do not
91632         collide with FNM macros.
91633         (struct patopts): New struct.
91634         (struct exclude): Use it, as exclude patterns now come with options.
91635         (new_exclude): Support above changes.
91636         (new_exclude, add_exclude_file):
91637         Initial size must now be a power of two to simplify overflow checking.
91638         (free_exclude, fnmatch_no_wildcards): New function.
91639         (excluded_filename): No longer requires options arg, as the options
91640         are determined by add_exclude.  Now returns bool, not int.
91641         (excluded_filename, add_exclude):
91642         Add support for the fancy new exclusion options.
91643         (add_exclude, add_exclude_file): Now takes int options arg.
91644         Check for arithmetic overflow when computing sizes.
91645         (add_exclude_file): xrealloc might modify errno, so don't
91646         realloc until after errno might be used.
91647
91648         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
91649         New macros.
91650         (free_exclude): New decl.
91651         (add_exclude, add_exclude_file): Now takes int options arg.
91652         (excluded_filename): No longer requires options arg, as the options
91653         are determined by add_exclude.  Now returns bool, not int.
91654
91655 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91656
91657         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
91658
91659 2001-08-27  Jim Meyering  <meyering@lucent.com>
91660
91661         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
91662
91663         * lib/version-etc.c (N_): Remove definition.
91664         Revert most of last change.
91665         Instead, simply don't mark the `Copyright...' string for translation.
91666         Based on advice from Paul Eggert.
91667
91668         * lib/strtoxmax.c: Tweak comment.
91669
91670 2001-08-26  Jim Meyering  <meyering@lucent.com>
91671
91672         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
91673
91674         * m4/xstrtoimax.m4: New file.
91675         * m4/xstrtoumax.m4: Add comments explaining why we
91676         AC_REPLACE_FUNCS(strtol).
91677
91678 2001-08-26  Jim Meyering  <meyering@lucent.com>
91679
91680         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
91681         of copyright with `%s' so translators don't get an untranslated
91682         message in 2002.
91683         (COPYRIGHT_YEAR): Define.
91684         (version_etc): Use fprintf rather than fputs.
91685         Suggestion from Ulrich Drepper.
91686
91687         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
91688
91689         * lib/strtoll.c: New file, from GNU libc.
91690         * lib/xstrtoimax.c: New file.
91691
91692         * lib/xstrtol.h: Add xstrtoimax.
91693         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
91694         * lib/strtoimax.c: New file.  Likewise, but first define
91695         STRTOUXMAX_SIGNED.
91696
91697         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
91698         ...
91699         * lib/strtoxmax.c: ... then renamed to this.
91700
91701 2001-08-18  Paul Eggert  <eggert@twinsun.com>
91702
91703         * m4/inttypes.m4: Add AC_PREREQ(2.13).
91704         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
91705         (jm_AC_TYPE_INTMAX_T): New macro.
91706         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
91707
91708         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
91709
91710         * m4/longlong.m4: Renamed from ulonglong.m4.
91711         * m4/inttypes.m4: Renamed from inttypes_h.m4.
91712         * m4/uintmax_t.m4: Removed.
91713
91714 2001-08-13  Paul Eggert  <eggert@twinsun.com>
91715
91716         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
91717         Port to Solaris 8, where 'sed' requires a space after the 'r'
91718         command, and where sh dislikes "$/".  Clean up the spacing a bit.
91719         Redirect output to $tmp just once.
91720
91721 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
91722
91723         * lib/addext.c (<errno.h>): Include.
91724         (errno): Declare if not defined.
91725         (addext): Work correctly when pathconf returns -1 and leaves
91726         errno alone because there is no limit.  Also, work even if
91727         pathconf returns a value greater than SIZE_MAX.
91728
91729 2001-08-12  Jim Meyering  <meyering@lucent.com>
91730
91731         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
91732         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
91733         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
91734         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
91735         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
91736         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
91737         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
91738         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
91739         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
91740         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
91741         utime.m4, utimes.m4, xstrtoumax.m4:
91742         Quote the first argument in each use of AC_DEFUN.
91743
91744 2001-08-12  Jim Meyering  <meyering@lucent.com>
91745
91746         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
91747         Simply `return getcwd (NULL, 0);'.
91748         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
91749         Use 1300 as initial value for length, not PATH_MAX.
91750
91751         * lib/pathmax.h: Clean up cpp syntax.
91752
91753 2001-08-12  Jim Meyering  <meyering@lucent.com>
91754
91755         * lib/gettimeofday.c: New file.
91756         * lib/gtod.h: New file.
91757         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
91758
91759 2001-08-05  Jim Meyering  <meyering@lucent.com>
91760
91761         * m4/jm-macros.m4: Require autoconf-2.52.
91762
91763 2001-08-04  Jim Meyering  <meyering@lucent.com>
91764
91765         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
91766         stmt, to get in sync with glibc.
91767
91768 2001-08-03  Paul Eggert  <eggert@twinsun.com>
91769
91770         The following changes are from gettext 0.10.39 as maintained by
91771         Bruno Haible.
91772
91773         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
91774         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
91775         with inverted sense.  All uses changed.
91776
91777         * lib/mbswidth.c: Don't include <limits.h>.
91778         Include <stdlib.h> and <string.h> unconditionally.
91779         (iswcntrl, mbsinit, ISCNTRL): New macros.
91780         (mbsnwidth): Use K&R style function declarations.
91781         Don't bother checking for MB_LEN_MAX == 1, since the compiler
91782         can optimize it when MB_CUR_MAX == 1.
91783         The width of control characters is zero, not 1.
91784
91785 2001-08-03  Paul Eggert  <eggert@twinsun.com>
91786
91787         The following changes are from gettext 0.10.39 as maintained by
91788         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
91789
91790         * m4/codeset.m4: Upgrade to serial AM1.
91791         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
91792         all uses changed.  Quote first arg of AC_DEFUN.
91793         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
91794
91795         * m4/iconv.m4: Upgrade to serial AM2.
91796         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
91797         Add --with-libconv-prefix.
91798         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
91799         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
91800         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
91801         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
91802         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
91803
91804         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
91805         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
91806         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
91807         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
91808         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
91809         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
91810         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
91811         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
91812         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
91813
91814         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
91815         string.h any more.
91816
91817         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
91818         not the default value.
91819
91820         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
91821         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
91822         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
91823         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
91824         Also check for iswcntrl, used for wcwidth fallback.
91825         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
91826         to Autoconf 2.13.
91827
91828 2001-08-03  Jim Meyering  <meyering@lucent.com>
91829
91830         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
91831         as it was in the original.  Reported by Paul Eggert.
91832
91833 2001-07-16  Jim Meyering  <meyering@lucent.com>
91834
91835         * m4/gettimeofday.m4: New file.
91836         Prompted by a report from Bernhard Baehr.
91837
91838 2001-07-15  Jim Meyering  <meyering@lucent.com>
91839
91840         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
91841         stuff. Now it's in ../Makefile.cfg.
91842
91843 2001-07-15  Jim Meyering  <meyering@lucent.com>
91844
91845         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
91846         (BUILT_SOURCES): Add unlocked-io.h.
91847         (io_functions): Define.
91848         (unlocked-io.h): New rule.
91849         (DISTCLEANFILES): Add unlocked-io.h.
91850         (all-local): Depend on unlocked-io.h, to ensure it is created.
91851
91852         * lib/unlocked-io.hin: New file
91853
91854         * lib/regex.c: Update from glibc.
91855
91856 2001-07-05  Jim Meyering  <meyering@lucent.com>
91857
91858         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
91859         recommendation.
91860         (libfetish_a_SOURCES): Put all .h files here instead.
91861         Remove a thus-exposed (better checks in automake) duplicate and
91862         two unnecessary .h files.
91863
91864 2001-07-04  Jim Meyering  <meyering@lucent.com>
91865
91866         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
91867         that generates jm-glibc-io.m4 so that it doesn't trigger any make
91868         distcheck failure.
91869
91870 2001-07-02  Jim Meyering  <meyering@lucent.com>
91871
91872         The following changes were prompted by suggestions from Bruno Haible.
91873
91874         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
91875         is now generated.
91876         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
91877         definition of EXTRA_DIST.
91878         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
91879         ensure that the generated file is created/updated whenever the list
91880         of $(unlocked_functions) is changed.
91881         (jm-glibc-io.m4): New rule.
91882         (unlocked-io.h): New rule -- currently unused.
91883
91884 2001-06-24  Jim Meyering  <meyering@lucent.com>
91885
91886         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
91887         unmatched right bracket, rather than kludging it with an extra,
91888         falsely-matching quote in a comment.  Patch by Akim Demaille.
91889
91890 2001-06-11  Jim Meyering  <meyering@lucent.com>
91891
91892         * lib/regex.c: Update from GNU libc.
91893
91894 2001-05-27  Jim Meyering  <meyering@lucent.com>
91895
91896         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
91897         Check for ut_type in struct utmp.
91898
91899 2001-05-27  Jim Meyering  <meyering@lucent.com>
91900
91901         * lib/readutmp.h (UT_TYPE): Define.
91902
91903 2001-05-24  Jim Meyering  <meyering@lucent.com>
91904
91905         * lib/argmatch.c: Include "quote.h".
91906         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
91907         quote function.  Reported by Göran Uddeborg.
91908
91909 2001-05-22  Jim Meyering  <meyering@lucent.com>
91910
91911         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
91912         now that we use the package-supplied version unconditionally.
91913         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
91914
91915 2001-05-21  Jim Meyering  <meyering@lucent.com>
91916
91917         * m4/regex.m4: Change a couple backticks to single quotes to avoid
91918         shell syntax errors.
91919
91920 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
91921
91922         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
91923
91924 2001-05-20  Paul Eggert  <eggert@twinsun.com>
91925
91926         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
91927         Don't bother to check library strftime, since
91928         we'll be using our own my_strftime function anyway.
91929         Define my_strftime instead of strftime.
91930
91931 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
91932
91933         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
91934         which is not yet declared.
91935
91936 2001-05-15  Jim Meyering  <meyering@lucent.com>
91937
91938         * m4/regex.m4: Use proper quoting so brackets appear in the test
91939         program.
91940         Reported by, and with help from, Bruno Haible.
91941
91942 2001-05-13  Jim Meyering  <meyering@lucent.com>
91943
91944         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
91945         undefined.
91946
91947 2001-05-11  Paul Eggert  <eggert@twinsun.com>
91948
91949         dirname code cleanup.  base_name now behaves more compatibly
91950         with POSIX basename when given file names that have trailing
91951         slashes, and similarly for dir_name.  Add new primitives
91952         base_len and dir_len.  Put the directory-name-related decls
91953         into dirname.h.
91954
91955         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
91956         * lib/backupfile.c (base_name): Likewise.
91957         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
91958         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
91959         * lib/makepath.c (strip_trailing_slashes): Likewise.
91960         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
91961         ISSLASH): Likewise.
91962         * lib/rename.c (strip_trailing_slashes): Likewise.
91963         * lib/same.c (base_name): Likewise.
91964         * lib/stripslash.c (ISSLASH): Likewise.
91965
91966         * lib/addext.c: Include <dirname.h> after size_t is defined.
91967         * lib/backupfile.c: Likewise.
91968
91969         * lib/addext.c (addext): Use base_len to trim redundant
91970         trailing slashes instead of doing it ourselves.
91971         But do not trim the last slash if it is not redundant.
91972
91973         * lib/backupfile.c (find_backup_file_name,
91974         max_backup_version): Use base_len instead of rolling it ourselves.
91975         Handle the case of "" and (on DOS) "C:" correctly.
91976
91977         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
91978         needed. Include <string.h>, <dirname.h>.
91979         (base_name): Allow file names ending in slashes, other than names
91980         that are all slashes.  In this case, return the basename followed
91981         by the slashes.  This is more general, and can be used in places
91982         where the original base_name purposely had an assertion failure.
91983         (base_len): New function.
91984
91985         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
91986         Do not include <assert.h>; no longer needed.
91987         Include xalloc.h.
91988         (memrchr): Remove decl.
91989         (dir_name_r): Remove.
91990         (dir_len): Renamed from dirlen.  All callers changed.
91991         Rewrite in terms of base_name, for simplicity and consistency.
91992         (dir_name): Never return NULL.  All callers changed.
91993         Do not include <stdlib.h> in test program; no longer needed.
91994         return 0; is fine for test program.
91995
91996         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
91997         New macros.
91998         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
91999
92000         * lib/path-concat.c (path_concat): Use base_len to compute
92001         base length, not strlen; this means we cannot rely on memcpy
92002         to null-terminate.
92003
92004         * lib/same.c (STREQ): Remove.
92005         (same_name): Handle the case where the basename ends in trailing '/'.
92006
92007         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
92008         a slash was stripped.  Do not strip the last slash after a
92009         file system prefix.
92010
92011 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92012
92013         * lib/Makefile.am (libfetish_a_SOURCES):
92014         Add strftime.c, since we now compile it on all hosts.
92015
92016         * lib/strftime.c (my_strftime):
92017         Define to nstrftime if emacs, but only if my_strftime is not defined.
92018         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
92019         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
92020         Add one more extra argument: a nanoseconds value.
92021         All uses changed.
92022         (ns): New macro.
92023         (my_strftime function): Add %N format.
92024         (emacs_strftimeu): Renamed from emacs_strftime,
92025         with extra ut argument.
92026
92027 2001-05-09  Paul Eggert  <eggert@twinsun.com>
92028
92029         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
92030
92031 2001-04-21  Jim Meyering  <meyering@lucent.com>
92032
92033         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
92034         doesn't interfere.
92035
92036 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92037
92038         * m4/ftruncate.m4: Check for chsize.
92039         Link with ftruncate.o unconditionally if ftruncate is missing.
92040         This was required when cross-compiling to i586-mingw32msvc.
92041
92042 2001-04-08  Jim Meyering  <meyering@lucent.com>
92043
92044         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
92045         recomputed; that's necessary when the offset spans a DST transition.
92046         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
92047
92048 2001-04-02  Jim Meyering  <meyering@lucent.com>
92049
92050         * lib/regex.h, regex.c: Update from GNU libc.
92051
92052 2001-03-24  Jim Meyering  <meyering@lucent.com>
92053
92054         * m4/jm-macros.m4: Require autoconf-2.49d.
92055
92056 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
92057
92058         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
92059
92060 2001-03-19  Paul Eggert  <eggert@twinsun.com>
92061
92062         * lib/version-etc.c (version_etc_copyright): Update to 2001.
92063
92064 2001-03-17  Jim Meyering  <meyering@lucent.com>
92065
92066         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
92067         now that the version in autoconf is equivalent.
92068         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
92069
92070         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
92071         Suggestion from Akim Demaille.
92072
92073         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
92074         (jm_PREREQ_TEMPNAME): New function.
92075
92076 2001-03-16  Paul Eggert  <eggert@twinsun.com>
92077
92078         * lib/tempname.c (uint64_t): Define to uintmax_t if
92079         not defined, and if UINT64_MAX is not defined.
92080         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
92081         Reported by John David Anglin.
92082
92083 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
92084
92085         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
92086         resolve alias if codeset is empty.
92087         * lib/config.charset (BeOS): Use wildcard syntax.
92088
92089 2001-03-13  Jim Meyering  <meyering@lucent.com>
92090
92091         * lib/path-concat.c (path_concat)
92092         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
92093         concatenating e.g., `C:' and `foo'.
92094         From Bruno Haible.
92095
92096 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92097
92098         * lib/localcharset.c (locale_charset): Don't use
92099         setlocale(LC_CTYPE,NULL). Don't return NULL.
92100         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
92101
92102 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92103
92104         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
92105         support for DOS/DJGPP.
92106
92107 2001-03-01  Paul Eggert  <eggert@twinsun.com>
92108
92109         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
92110         lacks mkstemp.  Compile our own tempname.c if we compile our own
92111         mkstemp.c, as mkstemp relies on tempname.
92112
92113 2001-03-01  Jim Meyering  <meyering@lucent.com>
92114
92115         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
92116         AH_VERBATIM really does output its argument verbatim.
92117
92118 2001-02-28  Paul Eggert  <eggert@twinsun.com>
92119
92120         * lib/Makefile.am (libfetish_a_SOURCES):
92121         Add dup-safer.c, fopen-safer.c.
92122         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
92123
92124         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
92125         * lib/unistd-safer.h: New files.
92126
92127 2001-02-25  Paul Eggert  <eggert@twinsun.com>
92128
92129         The mkstemp replacement is taken from glibc 2.2.2, with some
92130         portability fixes for use outside glibc, as follows:
92131
92132         * lib/tempname.c (struct_stat64): New macro.
92133         (direxists, __gen_tempname): Use it.
92134         This avoids a portability problem with Solaris 8.
92135
92136         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
92137         (<stddef.h>, <stdint.h>, <string.h>):
92138         Include only if STDC_HEADERS || _LIBC.
92139         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
92140         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
92141         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
92142         (__set_errno): Define this macro if <errno.h> doesn't.
92143         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
92144         Define these macros if <stdio.h> doesn't.
92145         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
92146         Define these macros if <sys/stat.h>
92147         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
92148         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
92149         __xstat64): Define if not _LIBC.
92150         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
92151         (__gen_tempname): Invoke gettimeofday only if
92152         HAVE_GETTIMEOFDAY || _LIBC;
92153         otherwise, fall back on plain "time".
92154         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
92155
92156         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
92157
92158         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
92159
92160 2001-02-18  Paul Eggert  <eggert@twinsun.com>
92161
92162         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
92163
92164 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92165
92166         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
92167         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
92168         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
92169         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92170
92171 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92172
92173         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
92174         Remove workaround macros for hosts that have mbrtowc but not
92175         mbstate_t, as we now insist on proper declarations for both
92176         before using mbrtowc.
92177
92178 2001-02-17  Jim Meyering  <meyering@lucent.com>
92179
92180         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
92181         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
92182         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
92183         UnixWare 7.1.1.
92184
92185         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
92186         rather than AC_CACHE_VAL.
92187
92188 2001-02-17  Jim Meyering  <meyering@lucent.com>
92189
92190         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
92191         around included file name.
92192
92193         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
92194
92195         * lib/strftime.c: Update from GNU libc (the only changes were to
92196         comments).
92197
92198 2001-02-17  Jim Meyering  <meyering@lucent.com>
92199
92200         * lib/regex.c: Update from libc.
92201
92202 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
92203
92204         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
92205         clash.
92206
92207 2001-02-16  Paul Eggert  <eggert@twinsun.com>
92208
92209         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
92210         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
92211         Reported by Mark Hounschell via Paul Eggert.
92212
92213 2001-02-07  Jim Meyering  <meyering@lucent.com>
92214
92215         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
92216
92217 2001-02-05  Jim Meyering  <meyering@lucent.com>
92218
92219         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
92220         it includes the patch required for `large file' support with at least
92221         HP-UX's 10.20 /bin/cc.
92222
92223 2001-02-03  Jim Meyering  <meyering@lucent.com>
92224
92225         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
92226         AS_IF, now that it works once again (mysteriously).
92227         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92228
92229 2001-01-30  Jim Meyering  <meyering@lucent.com>
92230
92231         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
92232         * m4/chown.m4: Rename conftestchown to conftest.chown.
92233         * m4/rename.m4: s/conftestdir/conftest.d1/ and
92234         s/conftestdir2/conftest.d2/.
92235         * m4/utimes.m4: s/conftestdata/conftest.data/
92236         Inspired by Pavel Roskin's change in autoconf.
92237
92238 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
92239
92240         * lib/config.charset: Update for FreeBSD 4.2.
92241
92242 2001-01-27  Jim Meyering  <meyering@lucent.com>
92243
92244         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
92245         a use of AS_IF.
92246         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92247
92248 2001-01-26  Jim Meyering  <meyering@lucent.com>
92249
92250         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
92251         quotearg.c includes it.
92252
92253 2001-01-26  Jim Meyering  <meyering@lucent.com>
92254
92255         * lib/quotearg.c: Include stddef.h.
92256         * lib/quote.c: Include stddef.h.
92257         Reported by Axel Kittenberger.
92258
92259         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
92260         line in double quotes so that it evokes a better diagnostic.
92261         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
92262         Reported by Axel Kittenberger.
92263
92264 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
92265
92266         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
92267         as if it was a `charset'.
92268
92269 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92270
92271         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
92272         has const.
92273
92274 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92275
92276         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
92277         to avoid a warning.  Add back 'const' to inptr.
92278
92279 2001-01-20  Jim Meyering  <meyering@lucent.com>
92280
92281         Be sure that headers are checked before used in code compiled
92282         for the type checks.
92283         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
92284         In place of that, invoke jm_CHECK_ALL_TYPES.
92285         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
92286         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
92287         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
92288         The check for ssize_t was mistakenly run before the test for unistd.h.
92289
92290         The configure-time check for stdbool.h was missing.
92291         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
92292         (jm_PREREQ_HASH): New function.
92293
92294 2001-01-17  Jim Meyering  <meyering@lucent.com>
92295
92296         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
92297         for autoconf-2.49c.
92298         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
92299
92300 2001-01-16  Jim Meyering  <meyering@lucent.com>
92301
92302         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
92303         From Bruno Haible.
92304
92305 2001-01-14  Jim Meyering  <meyering@lucent.com>
92306
92307         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
92308         foo and bar.  Create conftestdir/ in the script, not in the C code.
92309         Remove directories in the script, not in the C code.
92310         Remove conftestdir{,2} before trying to create the directory.
92311         Make the entire configure script fail if the mkdir fails.
92312
92313 2001-01-14  Jim Meyering  <meyering@lucent.com>
92314
92315         * lib/rename.c: New file.  From Volker Borchert.
92316         Include stdlib.h, string.h or strings.h, and xalloc.h.
92317         Use strip_trailing_slashes rather than open-coding it.
92318
92319 2001-01-03  Paul Eggert  <eggert@twinsun.com>
92320
92321         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
92322
92323 2001-01-03  Jim Meyering  <meyering@lucent.com>
92324
92325         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
92326         of local `inptr' to avoid warning with some system declarations of
92327         iconv.
92328
92329 2001-01-02  Volker Borchert  <bt@teknon.de>
92330
92331         * m4/rename.m4: New file.
92332         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
92333
92334 2001-01-01  Jim Meyering  <meyering@lucent.com>
92335
92336         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
92337         even on systems with utmpx.h.  It's necessary for the declaration of
92338         utmp's ut_user member.  Reported by Andreas Jaeger.
92339
92340         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
92341         available. They are required for the declarations of getgrgid and
92342         getpwuid resp.
92343         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
92344         Reported by Andreas Jaeger.
92345
92346 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
92347
92348         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
92349         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
92350         so `make install' also works in VPATH builds.
92351
92352 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
92353
92354         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
92355         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
92356         can be used in subdirectories.
92357
92358 2000-12-29  Paul Eggert  <eggert@twinsun.com>
92359
92360         * lib/modechange.c: Do not assume that mode_t uses the
92361         traditional octal encoding.  E.g. "chmod 1 FOO" should set
92362         the other-execute bit of FOO even if S_IXOTH != 1.
92363
92364         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
92365         WOTH, XOTH, ALLM): New macros.
92366         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
92367          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
92368         Use them.
92369         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
92370         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
92371         (mode_compile):
92372         No need to use uintmax_t; unsigned long is long enough.
92373         Don't bother to get suffix since we don't use it.
92374
92375 2000-12-26  Jim Meyering  <meyering@lucent.com>
92376
92377         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
92378         better with autoheader.
92379
92380 2000-12-24  Jim Meyering  <meyering@lucent.com>
92381
92382         * lib/hash.c (is_prime): Return explicit boolean values.
92383         (hash_get_first): Return NULL to appease Irix5.6's 89.
92384         Reported by Nelson Beebe.
92385
92386 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
92387
92388         * lib/localcharset.c (locale_charset): Add support for Win32.
92389
92390 2000-12-18  Paul Eggert  <eggert@twinsun.com>
92391
92392         * lib/physmem.h, lib/physmem.c: New files.
92393
92394         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
92395         (noinst_HEADERS): Add physmem.h.
92396
92397         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
92398         't' for compatibility with Solaris 8 sort.
92399
92400 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
92401
92402         * lib/config.charset: Add support for BeOS.
92403
92404 2000-12-17  Jim Meyering  <meyering@lucent.com>
92405
92406         * m4/dos.m4 (jm_AC_DOS): New file and macro.
92407         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
92408
92409 2000-12-16  Jim Meyering  <meyering@lucent.com>
92410
92411         This bug had a serious impact on chown: `chown N:M FILE' (for integer
92412         N and M) would have treated it like `chown N:N FILE'.
92413
92414         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
92415
92416 2000-12-16  Jim Meyering  <meyering@lucent.com>
92417
92418         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
92419         SHELLS_FILE to a file name that's useful on djgpp systems.
92420         Include stdlib.h.
92421         (ADDITIONAL_DEFAULT_SHELLS): Define.
92422         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
92423         Based mostly on a patch from Prashant TR.
92424
92425 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
92426
92427         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
92428         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
92429         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
92430
92431 2000-12-08  Andreas Schwab  <schwab@suse.de>
92432
92433         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
92434         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
92435
92436 2000-12-07  Jim Meyering  <meyering@lucent.com>
92437
92438         * lib/stripslash.c (ISSLASH): Define.
92439         (strip_trailing_slashes): Use ISSLASH rather than comparing against
92440         `/'.
92441         From Prashant TR.
92442
92443         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
92444         (dir_name_r): Declare this function as static.
92445         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
92446         manifest itself on a name containing a mix of slashes and
92447         backslashes.
92448         Make this function work with names starting with a DOS-style
92449         drive letter and colon prefix.
92450         (dir_name): Append `.' if necessary.
92451         Based mostly on patches from Prashant TR and Eli Zaretskii.
92452
92453         * lib/dirname.h (dir_name_r): Remove prototype.
92454
92455 2000-12-06  Paul Eggert  <eggert@twinsun.com>
92456
92457         * m4/off_t-format.m4: Remove this file.
92458         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
92459
92460 2000-12-06  Jim Meyering  <meyering@lucent.com>
92461
92462         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
92463         replacement strtoull, we may well need the replacement strtoul, too.
92464         Check for declarations of strtoul and strtoull.
92465         Check for strtol.  Mainly as a cue to cause automake to include
92466         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
92467         Check for limits.h -- strtol.c needs it.
92468
92469 2000-12-05  Jim Meyering  <meyering@lucent.com>
92470
92471         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
92472
92473 2000-12-04  Jim Meyering  <meyering@lucent.com>
92474
92475         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
92476         Also include memory.h, stdlib.h, unistd.h if appropriate.
92477         Reported by Andreas Jaeger (conflicting declaration of malloc).
92478
92479 2000-12-02  Jim Meyering  <meyering@lucent.com>
92480
92481         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
92482         * m4/jm-macros.m4 (jm_MACROS): require it.
92483
92484 2000-12-02  Jim Meyering  <meyering@lucent.com>
92485
92486         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
92487
92488 2000-12-01  Paul Eggert  <eggert@twinsun.com>
92489
92490         * lib/memrchr.c: Include <config.h> before any system include file.
92491
92492 2000-11-30  Jim Meyering  <meyering@lucent.com>
92493
92494         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
92495
92496 2000-11-30  Jim Meyering  <meyering@lucent.com>
92497
92498         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
92499
92500 2000-11-29  Paul Eggert  <eggert@twinsun.com>
92501
92502         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
92503
92504 2000-11-26  Jim Meyering  <meyering@lucent.com>
92505
92506         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
92507
92508 2000-11-22  Paul Eggert  <eggert@twinsun.com>
92509
92510         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
92511         size of (size_t) -1; it's not portable.
92512
92513 2000-11-17  Jim Meyering  <meyering@lucent.com>
92514
92515         * lib/strstr.c: Update from GNU libc.
92516
92517 2000-11-17  Akim Demaille  <akim@epita.fr>
92518
92519         * lib/obstack.h: Formatting changes.
92520         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
92521         prevent type checking.
92522         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
92523         cast the value to (void *): assigning a `foo *' to a `void *'
92524         variable is valid.
92525         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
92526
92527 2000-11-16  Jim Meyering  <meyering@lucent.com>
92528
92529         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
92530
92531 2000-11-11  Jim Meyering  <meyering@lucent.com>
92532
92533         * lib/error.c: Add a couple #includes, merging from GNU libc version.
92534
92535 2000-11-10  Jim Meyering  <meyering@lucent.com>
92536
92537         * lib/obstack.h: Update from GNU libc.
92538         * lib/obstack.c: Likewise.
92539
92540 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
92541
92542         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
92543
92544 2000-11-06  Paul Eggert  <eggert@twinsun.com>
92545
92546         * lib/getusershell.c (setusershell): Use rewind rather than
92547         fseek/fseeko, to avoid configuration hassles with fseeko.
92548         Don't bother opening SHELLS_FILE if shellstream is NULL;
92549         it's not necessary.
92550
92551 2000-11-05  Jim Meyering  <meyering@lucent.com>
92552
92553         * lib/makepath.h (make_dir): Declare.
92554         * lib/makepath.c (make_dir): Remove `static' attribute.
92555         Tweak a comment.
92556
92557 2000-11-04  Jim Meyering  <meyering@lucent.com>
92558
92559         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
92560
92561 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
92562
92563         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
92564         last one in a bucket, advance to the next bucket.
92565
92566 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
92567
92568         * lib/fnmatch.c: Do not comment out all the code if we are using
92569         the GNU C library, because in some cases we are replacing buggy
92570         code in the GNU C library itself.
92571
92572 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
92573
92574         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
92575         (regex_compile): Catch bogus \(\1\).
92576
92577 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92578
92579         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
92580         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
92581         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
92582
92583 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92584
92585         * lib/error.h, getline.h, modechange.h:
92586         Remove "2000" from Copyright line, as the file hasn't been
92587         changed this year other than in the copyright notice.
92588
92589         * lib/xalloc.h: Add "2000" to Copyright line, as this file
92590         was changed this year.
92591
92592 2000-10-29  Jim Meyering  <meyering@lucent.com>
92593
92594         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
92595         renaming.
92596         * m4/ls-mntd-fs.m4: Likewise
92597
92598 2000-10-29  Jim Meyering  <meyering@lucent.com>
92599
92600         * lib/xstat.in: Fix grammar in comment.
92601
92602 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
92603
92604         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
92605         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
92606         doesn't define __restrict_arr.
92607
92608 2000-10-28  Jim Meyering  <meyering@lucent.com>
92609
92610         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
92611         (jm_PREREQ_MEMCHR): New function.
92612
92613 2000-10-28  Jim Meyering  <meyering@lucent.com>
92614
92615         * lib/memchr.c: Update from libc.
92616         Adjust for portability:
92617         [HAVE_STDLIB_H]: Include stdlib.h.
92618         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
92619         Undef __memchr, too.
92620         [!weak_alias]: Define __memchr to memchr.
92621
92622         * lib/regex.c: Update from libc.
92623         * lib/regex.h: Likewise.
92624         * lib/getopt1.c: Likewise.
92625         * lib/memcmp.c: Likewise.
92626
92627         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
92628         Avoid using fseek, when possible -- it's broken by design.
92629         Patch by Ulrich Drepper.
92630
92631 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
92632
92633         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
92634         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
92635         Giving in to popular pressure to shut up the compiler with casts.
92636
92637 2000-10-26  Jim Meyering  <meyering@lucent.com>
92638
92639         * lib/strftime.c: Update from libc.
92640
92641 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
92642
92643         * regex.c: More `unsigned char' -> `re_char' changes.
92644         Also change several `int' into `re_wchar_t'.
92645         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
92646         (PUSH_FAILURE_POINTER): Don't cast any more.
92647         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
92648         We want GCC to complain, since this piece of code makes
92649         re_match non-reentrant, which *should* be fixed.
92650         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
92651         (EXTEND_BUFFER): Use RETALLOC.
92652         (SET_LIST_BIT): Don't cast.
92653         (re_wchar_t): New type.
92654         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
92655         that those two functions will always properly return.
92656         (IMMEDIATE_QUIT_CHECK): Cast to void.
92657         (analyse_first): Use recursion rather than an explicit stack.
92658         (re_compile_fastmap): Can't fail anymore.
92659         (re_search_2): Don't check re_compile_fastmap for failure.
92660         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
92661         Now also sets the new value (passed in a new argument).
92662         (re_match_2_internal): Use it.
92663         Also, use a new var `reg' of type size_t when looping through regs
92664         rather than reuse the inappropriate `mcnt'.
92665
92666 2000-10-25  Jim Meyering  <meyering@lucent.com>
92667
92668         * lib/obstack.c: Update from libc.
92669
92670 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
92671
92672         * regex.c (regex_compile): Change the way of handling a range from
92673         a char less than 256 to a char not less than 256.
92674
92675 2000-10-24  Andrew Innes  <andrewi@gnu.org>
92676
92677         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
92678         NT-Emacs only.
92679         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
92680         so that re_search functions only quit when callers expect them to.
92681
92682 2000-10-23  Jim Meyering  <meyering@lucent.com>
92683
92684         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
92685         wrong.  That set_locale call must not have any side effects.
92686         From Paul Eggert.
92687
92688 2000-10-22  Jim Meyering  <meyering@lucent.com>
92689
92690         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
92691         [CYCLIC]: Remove now-unused definition.
92692
92693         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
92694         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
92695         Suggestion from Ulrich Drepper.
92696
92697 2000-10-21  Jim Meyering  <meyering@lucent.com>
92698
92699         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
92700         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
92701         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
92702
92703 2000-10-21  Jim Meyering  <meyering@lucent.com>
92704
92705         * lib/dirname.c (memrchr): Declare if necessary.
92706         (dir_name): Remove the restriction that there be no
92707         trailing slashes.  Now, this code skips past them, effectively
92708         ignoring them.
92709         [TEST_DIRNAME] (main): New unit tests.
92710
92711         * lib/memrchr.c: New file from GNU libc.
92712         Undef __memrchr, too.
92713         [!weak_alias]: Define __memrchr to memrchr.
92714         Guard weak_alias use with `#ifdef weak_alias'.
92715
92716 2000-10-21  Jim Meyering  <meyering@lucent.com>
92717
92718         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
92719         (dir_name): Use dir_name_r.
92720         * lib/dirname.h (dir_name_r): Declare it.
92721
92722 2000-10-17  Jim Meyering  <meyering@lucent.com>
92723
92724         * lib/quote.h (PARAMS): Define and use.
92725         Reported by Akim Demaille.
92726
92727         * lib/getopt.c: Update from libc.
92728
92729 2000-10-16  Jim Meyering  <meyering@lucent.com>
92730
92731         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
92732         setlocale.
92733         From Jan Fedak.
92734
92735 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
92736
92737         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
92738
92739 2000-09-25  Jim Meyering  <meyering@lucent.com>
92740
92741         * lib/md5.h (rol): Define (from GnuPG).
92742
92743         * lib/sha.c: Give credit (GnuPG) where due.
92744         (M): Use rol rather than open-coding it.
92745         Add a FIXME comment.
92746
92747 2000-09-21  Jim Meyering  <meyering@lucent.com>
92748
92749         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
92750         Reported by Michael Stone.
92751
92752 2000-09-20  Jim Meyering  <meyering@lucent.com>
92753
92754         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
92755         (noinst_HEADERS): Add sha.h.
92756         Based on code from Scott G. Miller and from GnuPG.
92757
92758 2000-09-18  Jim Meyering  <meyering@lucent.com>
92759
92760         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
92761         LIBS. Otherwise, everyone ends up linking with -lelf for some
92762         configurations.
92763         Reported by Mike Stone.
92764
92765 2000-09-15  Jim Meyering  <meyering@lucent.com>
92766
92767         * lib/regex.c: Update from libc.
92768
92769 2000-09-10  Jim Meyering  <meyering@lucent.com>
92770
92771         * lib/getopt.c (_getopt_internal): Update from glibc.
92772
92773 2000-09-09  Jim Meyering  <meyering@lucent.com>
92774
92775         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
92776         think it should be used as a general replacement for isascii.
92777         * lib/fnmatch.c: Likewise.
92778         * lib/mbswidth.c: Likewise
92779         * lib/regex.c: Likewise.
92780
92781         Don't use atoi.
92782         * lib/userspec.c: Include sys/param.h and limits.h.
92783         Include xstrtol.h.
92784         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
92785         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
92786         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
92787         UID, GID.  Check range.
92788
92789 2000-09-06  Jim Meyering  <meyering@lucent.com>
92790
92791         * lib/getopt.c (_getopt_internal): Update from glibc.
92792
92793 2000-08-30  Jim Meyering  <meyering@lucent.com>
92794
92795         * lib/strftime.c: Merge in changes from GNU libc.
92796
92797 2000-08-26  Jim Meyering  <meyering@lucent.com>
92798
92799         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
92800         * m4/fpending.m4: New file.
92801
92802 2000-08-26  Jim Meyering  <meyering@lucent.com>
92803
92804         * lib/closeout.c: Include "__fpending.h".
92805         (close_stdout_status): Return right away if there's nothing to flush.
92806
92807         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
92808         * lib/__fpending.c: New file.
92809         * lib/__fpending.h: New file.
92810
92811 2000-08-20  Jim Meyering  <meyering@lucent.com>
92812
92813         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
92814         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
92815         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
92816
92817 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
92818
92819         Improve fileutils installation on systems where running
92820         programs (like install) can't be unlinked.
92821         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
92822         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
92823
92824 2000-08-07  Paul Eggert  <eggert@twinsun.com>
92825
92826         Standardize on "memory exhausted" instead of "Memory exhausted"
92827         or "virtual memory exhausted".
92828         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
92829         "virtual memory exhausted".
92830         * lib/same.c (same_name): Invoke xalloc_die instead of printing
92831         our own message.
92832         * lib/userspec.c (parse_user_spec): Likewise.
92833         * lib/bumpalloc.h: comment fix
92834         * lib/same.c, userspec.c: Include xalloc.h.
92835
92836         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
92837         not char *const and pointing to a constant array.
92838         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
92839         (xrealloc): Comment fix.
92840
92841         * lib/userspec.c (parse_user_spec):
92842         Don't translate a message until just before returning,
92843         to avoid unnecessary translation.
92844
92845 2000-08-07  Jim Meyering  <meyering@lucent.com>
92846
92847         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
92848         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
92849         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
92850         getgroups.c, gethostname.c, getopt.h, group-member.c,
92851         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
92852         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
92853         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
92854         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
92855         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
92856         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
92857         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
92858         yesno.c: Back out Copyright date changes for each file with no change
92859         this year.  This eases coordination with other programs using the same
92860         source code modules.  From Paul Eggert.
92861
92862 2000-08-06  Paul Eggert  <eggert@twinsun.com>
92863
92864         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
92865         not char, for compatibility with glibc 2.1.3 strftime.c.
92866
92867 2000-08-03  Greg McGary  <greg@mcgary.org>
92868
92869         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
92870         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
92871         (EXTEND_BUFFER): Use them.
92872
92873 2000-08-01  Jim Meyering  <meyering@lucent.com>
92874
92875         * lib/dirname.c (ISSLASH): Define.
92876         (BACKSLASH_IS_PATH_SEPARATOR): Define.
92877         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
92878         both `\' and `/' may be use as path separators.
92879         Based on a patch from Prashant TR.
92880
92881 2000-07-31  Paul Eggert  <eggert@twinsun.com>
92882
92883         * lib/quotearg.c (quotearg_n_options): Don't make the initial
92884         slot vector a constant, since it might get modified.
92885
92886 2000-07-31  Jim Meyering  <meyering@lucent.com>
92887
92888         * lib/xmalloc.c: Use `virtual memory exhausted', not
92889         `Memory exhausted'.
92890         * lib/obstack.c (print_and_abort): Likewise.
92891
92892 2000-07-30  Paul Eggert  <eggert@twinsun.com>
92893
92894         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
92895         buffer, so that the caller can always quote one small
92896         component of a "memory exhausted" message in slot 0.
92897         From a suggestion by Jim Meyering.
92898
92899 2000-07-30  Jim Meyering  <meyering@lucent.com>
92900
92901         * lib/makepath.c (make_path): Quote the other instance, too.
92902
92903         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
92904         (STATIC_BUF_SIZE): Define.
92905         (quotearg_n_options): Use only statically allocated storage when
92906         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
92907         than STATIC_BUF_SIZE.
92908
92909 2000-07-29  Jim Meyering  <meyering@lucent.com>
92910
92911         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
92912         * lib/dirname.c (dir_name): Likewise.
92913
92914         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
92915         `/'.
92916
92917         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
92918         (dir_name): Assert that there are no trailing slashes.
92919
92920 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
92921
92922         * lib/mbswidth.h (mbswidth): Add a flags argument.
92923         (mbswidth): New declaration.
92924         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
92925         * lib/mbswidth.c (mbswidth): Add a flags argument.
92926         (mbsnwidth): New function.
92927
92928 2000-07-24  Jim Meyering  <meyering@lucent.com>
92929
92930         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
92931
92932 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92933
92934         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
92935
92936 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92937
92938         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
92939         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
92940         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
92941         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
92942         invoke multibyte primitives.
92943
92944 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92945
92946         * lib/quotearg.c:
92947         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
92948         so that mbstate_t is always defined.
92949
92950         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
92951         be 1 in at least one GCC installation, and this configuration
92952         error is likely to be common.  Ignoring MB_LEN_MAX hurts
92953         performance on hosts that have mbrtowc but have only unibyte
92954         locales, but I assume these hosts are rare.
92955
92956 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92957
92958         * lib/mbswidth.c (_XOPEN_SOURCE):
92959         Don't define; this causes problems on Solaris 7.
92960         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
92961
92962 2000-07-23  Jim Meyering  <meyering@lucent.com>
92963
92964         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
92965         too: getgrgid, getpwuid, getuid.
92966
92967 2000-07-23  Jim Meyering  <meyering@lucent.com>
92968
92969         * lib/basename.c (base_name): Add an assertion.
92970
92971 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
92972
92973         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
92974         shadow its mbsinit function.
92975
92976 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
92977
92978         * lib/mbswidth.h: New file.
92979         * lib/mbswidth.c: New file.
92980         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
92981         (noinst_HEADERS): Add mbswidth.h.
92982
92983 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
92984
92985         * lib/config.charset: Add support for FreeBSD. Improve support for
92986         HP-UX and IRIX 6.
92987
92988 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
92989
92990         * m4/mbswidth.m4: New file.
92991         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
92992
92993 2000-07-15  Jim Meyering  <meyering@lucent.com>
92994
92995         * lib/makepath.c: Include quote.h.
92996         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
92997         corresponding argument in a `quote (...)' call.
92998         Give better diagnostics.
92999
93000         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
93001         (noinst_HEADERS): Add quote.h.
93002
93003         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
93004         from tar's src/misc.c.
93005         * lib/quote.h: New file.  Prototypes for same.
93006
93007 2000-07-14  Paul Eggert  <eggert@twinsun.com>
93008
93009         From a suggestion by Bruno Haible.
93010         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
93011         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
93012         to decide whether to define the BeOS workaround macro;
93013         this adjusts to the change to AC_MBSTATE_T.
93014
93015 2000-07-14  Jim Meyering  <meyering@lucent.com>
93016
93017         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
93018         jm_AC_TYPE_UINTMAX_T.
93019
93020 2000-07-13  Paul Eggert  <eggert@twinsun.com>
93021
93022         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
93023
93024         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
93025         quotearg_buffer_restyled): Add support for
93026         clocale_quoting_style.  Undo previous change to
93027         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
93028         and "{RIGHT QUOTATION MARK}" msgids.
93029
93030 2000-07-10  Paul Eggert  <eggert@twinsun.com>
93031
93032         From a suggestion by Bruno Haible.
93033         * m4/mbstate_t.m4 (AC_MBSTATE_T):
93034         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
93035         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
93036         and mbstate_t, to a single-part test that simply defines mbstate_t.
93037         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
93038         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
93039
93040 2000-07-10  Jim Meyering  <meyering@lucent.com>
93041
93042         * m4/strerror_r.m4: Mirror the correction made in autoconf.
93043
93044         * m4/gnu-source.m4: Output to confdefs.h directly.
93045         Suggestion from Akim Demaille.
93046
93047 2000-07-09  Paul Eggert  <eggert@twinsun.com>
93048
93049         The old behavior of quoting `like this' doesn't look good with
93050         newer, ISO-style fonts.  See:
93051         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
93052
93053         Instead, quote "like this" by default.  Let the translator
93054         tailor the locale-specific quoting behavior by providing
93055         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
93056
93057         * lib/quotearg.c (N_): New macro.
93058         (gettext_default): New function.
93059         (quotearg_buffer_restyled): Use
93060         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
93061         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
93062
93063 2000-07-09  Jim Meyering  <meyering@lucent.com>
93064
93065         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
93066         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
93067
93068         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
93069         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
93070
93071 2000-07-09  Jim Meyering  <meyering@lucent.com>
93072
93073         * lib/Most files: Update copyright dates to include 2000.
93074
93075 2000-07-08  Jim Meyering  <meyering@lucent.com>
93076
93077         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
93078         if not defined.
93079         (xgethostname): Remove now-unnecessary #ifdef.
93080         Move declaration of `err' into loop where it's used.
93081
93082 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93083         and Bruno Haible  <haible@clisp.cons.org>
93084
93085         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
93086         only if the test for an object-type mbstate_t fails.  This
93087         prevents us from mistakenly reporting that mbstate_t is a
93088         system object type after we "#define mbstate_t int" to work
93089         around its lack.
93090
93091 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93092         and Bruno Haible  <haible@clisp.cons.org>
93093
93094         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
93095
93096 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93097
93098         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
93099         to strerror_r.
93100         Include <ctype.h> for use of isalpha.
93101
93102 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93103
93104         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
93105         by allocating a larger buffer. Test the gethostname return value for
93106         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
93107         returns an error and ENAMETOOLONG isn't defined.
93108
93109 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93110
93111         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
93112         dimension.
93113
93114 2000-07-04  Jim Meyering  <meyering@lucent.com>
93115
93116         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
93117         of the deprecated AC_CHECKING.
93118
93119 2000-07-04  Jim Meyering  <meyering@lucent.com>
93120
93121         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
93122         Reported by Bruno Haible.
93123
93124 2000-07-04  Jim Meyering  <meyering@lucent.com>
93125
93126         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
93127         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
93128         lacks mbrtowc.
93129
93130 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93131
93132         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
93133         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
93134
93135 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93136         and Bruno Haible  <haible@clisp.cons.org>
93137
93138         * lib/quotearg.c (mbrtowc):
93139         Assign to *pwc, and return 1 only if result is nonzero.
93140         (iswprint): Use ISPRINT when substituting our own mbrtowc.
93141
93142 2000-07-03  Jim Meyering  <meyering@lucent.com>
93143
93144         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
93145
93146 2000-07-03  Jim Meyering  <meyering@lucent.com>
93147
93148         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
93149         This is necessary to get a definition of e.g., UTMP_FILE on
93150         HP-UX 10.20.
93151         From Bob Proulx.
93152
93153 2000-07-02  Jim Meyering  <meyering@lucent.com>
93154
93155         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
93156
93157         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
93158         AC_LIBOBJ(function_name).
93159         * m4/chown.m4: Likewise.
93160         * m4/fnmatch.m4: Likewise.
93161         * m4/ftruncate.m4: Likewise.
93162         * m4/getgroups.m4: Likewise.
93163         * m4/getline.m4: Likewise.
93164         * m4/group-member.m4: Likewise.
93165         * m4/jm-macros.m4: Likewise.
93166         * m4/lstat.m4: Likewise.
93167         * m4/malloc.m4: Likewise.
93168         * m4/memcmp.m4: Likewise.
93169         * m4/nanosleep.m4: Likewise.
93170         * m4/putenv.m4: Likewise.
93171         * m4/realloc.m4: Likewise.
93172         * m4/regex.m4: Likewise.
93173         * m4/stat.m4: Likewise.
93174         * m4/strftime.m4: Likewise.
93175
93176 2000-07-02  Jim Meyering  <meyering@lucent.com>
93177
93178         * lib/quotearg.c (mbstate_t): Don't define here.
93179
93180 2000-07-02  Jim Meyering  <meyering@lucent.com>
93181
93182         * lib/nanosleep.c (SIGCONT): Define if not already defined.
93183
93184 2000-07-01  Jim Meyering  <meyering@lucent.com>
93185
93186         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
93187
93188 2000-07-01  Jim Meyering  <meyering@lucent.com>
93189
93190         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
93191         problem.
93192
93193 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93194
93195         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
93196         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
93197
93198 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93199
93200         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
93201         per change in ../m4/ls-mntd-fs.m4.
93202         (read_filesystem_list): Ignore symbolic links.
93203
93204 2000-06-29  Jim Meyering  <meyering@lucent.com>
93205
93206         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
93207         for declaration of strcmp.
93208
93209         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
93210
93211         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
93212         Avoid warning by casting result to `char *' to remove `const'.
93213
93214 2000-06-28  Jim Meyering  <meyering@lucent.com>
93215
93216         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
93217         included by quotearg.c, for which we perform this test.  From
93218         Bruno Haible.
93219
93220 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93221
93222         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
93223         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
93224         <utmpx.h> exists, put readutmp.o into LIBOBJS.
93225
93226 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93227
93228         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
93229
93230 2000-06-26  Paul Eggert  <eggert@twinsun.com>
93231
93232         savedir now sets errno on failure and invokes xmalloc to get memory.
93233         Fix a couple of other minor bugs while we're at it.
93234
93235         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
93236         (NAMLEN): Remove macro.
93237         (malloc, realloc): Remove decls.
93238         (stpcpy): Likewise.
93239         ("xalloc.h"): Include.
93240         (NAME_SIZE_DEFAULT): New macro.
93241         (savedir): Use xmalloc / xrealloc to allocate memory.
93242         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
93243         Skip "" directory entries.
93244         Use strlen to calculate directory entry length, since the old method
93245         is rarely used these days and isn't worth supporting.
93246         Don't use a pointer after freeing it.
93247         Check for integer overflow when calculating allocation size.
93248         Use memcpy to copy entries, instead of stpcpy.
93249         Set errno properly when returning NULL.
93250         Check for readdir error.
93251
93252 2000-06-26  Jim Meyering  <meyering@lucent.com>
93253
93254         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
93255
93256 2000-06-25  Jim Meyering  <meyering@lucent.com>
93257
93258         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
93259         Linux header bug when _XOPEN_SOURCE is defined to 500.
93260
93261 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93262
93263         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
93264         deficiency.
93265
93266 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93267
93268         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
93269         Include xalloc.h.
93270         Don't include <stdlib.h>.  Don't declare malloc, realloc.
93271
93272 2000-06-24  Jim Meyering  <meyering@lucent.com>
93273
93274         * m4/strerror_r.m4: Revive this file -- to try out an experimental
93275         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
93276         for which strerror does return char*, but which lacks a conveniently
93277         accessible declaration of the function.  If the compile-test says
93278         strerror_r doesn't work, then resort to a `run'-test that works on
93279         BeOS and segfaults on DEC Unix.
93280
93281 2000-06-24  Jim Meyering  <meyering@lucent.com>
93282
93283         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
93284
93285 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93286
93287         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
93288         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
93289
93290 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93291
93292         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
93293         (mbrtowc, mbstate_t): Define substitutes if
93294         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
93295         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
93296         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
93297
93298 2000-06-23  Jim Meyering  <meyering@lucent.com>
93299
93300         * m4/afs.m4: Add missing AC_MSG_RESULT.
93301         Reported by Bruno Haible.
93302
93303         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
93304         Suggestion from Bruno Haible.
93305
93306 2000-06-23  Jim Meyering  <meyering@lucent.com>
93307
93308         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
93309
93310 2000-06-21  Jim Meyering  <meyering@lucent.com>
93311
93312         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
93313
93314 2000-06-21  Jim Meyering  <meyering@lucent.com>
93315
93316         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
93317         (noinst_HEADERS): Add getstr.h.
93318
93319         * lib/getline.c (getstr): Move into a separate file.
93320         * lib/getstr.c (getstr): New file, extracted from getline.c, with
93321         the following changes: new parameter, delim2; both delim[12]
93322         parameters have type `int', not `char'.  The latter would lose
93323         with 8-bit delimiters.
93324         * lib/getstr.h: New file.
93325
93326 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93327
93328         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
93329         than 1024, return a memory chunk of least possible size, instead
93330         of size PATH_MAX + 2. In the loop, increment the size proportionally.
93331         Use free/xmalloc instead of xrealloc to avoid copying for very long
93332         paths.
93333
93334 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93335
93336         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
93337         the empty string.
93338
93339 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93340
93341         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
93342         address, not strdup.  Include <stdlib.h> and don't declare free().
93343
93344 2000-06-19  Jim Meyering  <meyering@lucent.com>
93345
93346         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
93347
93348 2000-06-18  Jim Meyering  <meyering@lucent.com>
93349
93350         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
93351
93352         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
93353         `checking whether...' message to be consistent with that of the
93354         lstat test.
93355
93356 2000-06-18  Jim Meyering  <meyering@lucent.com>
93357
93358         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
93359         Besides, these days every porting target provides a mkdir function.
93360
93361         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
93362         needed. (this snippet comes from src/system.h).
93363
93364 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
93365
93366         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
93367
93368 2000-06-15  Paul Eggert  <eggert@twinsun.com>
93369
93370         * lib/human.c (adjust_value): New function.
93371         (human_readable_inexact): Apply rounding style even when
93372         printing approximate values.
93373
93374 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93375
93376         * lib/human.c (human_readable_inexact): Allow an input block
93377         size that is not a multiple of the output block size, and vice versa.
93378         Reported by Piergiorgio Sartor.
93379
93380 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93381
93382         * lib/getdate.y (get_date): Apply relative times after time
93383         zone indicator, not before.  Reported by Todd A. Jacobs.
93384
93385 2000-06-13  Jim Meyering  <meyering@lucent.com>
93386
93387         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
93388
93389         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
93390
93391 2000-06-12  Paul Eggert  <eggert@twinsun.com>
93392
93393         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
93394
93395 2000-06-12  Jim Meyering  <meyering@lucent.com>
93396
93397         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
93398         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
93399         optional argument.
93400         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
93401         the optional argument, `lib'.
93402
93403 2000-06-08  Jim Meyering  <meyering@lucent.com>
93404
93405         * m4/largefile.m4: Remove file (now that it's part of autoconf).
93406
93407 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93408
93409         Rewrite largefile configuration so that we don't need to run
93410         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
93411         AC_CANONICAL_HOST in configure.in -- jmm]
93412
93413         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
93414         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
93415         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
93416         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
93417         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
93418         All uses changed.
93419         Instead of inspecting the output of getconf, try to compile the
93420         test program without and with the macro definition.
93421         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
93422         for getconf.  Instead, check for the needed flags by compiling
93423         test programs.
93424
93425 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93426
93427         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
93428
93429 2000-06-04  Jim Meyering  <meyering@lucent.com>
93430
93431         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
93432         SunOS 4.1.4 for which gid_t is an unsigned type.
93433
93434 2000-06-03  Jim Meyering  <meyering@lucent.com>
93435
93436         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
93437         now that autoconf requires that.
93438
93439         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
93440         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
93441         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
93442
93443 2000-06-03  Jim Meyering  <meyering@lucent.com>
93444
93445         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
93446
93447 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93448
93449         * m4/glibc21.m4: New file.
93450         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
93451
93452 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93453
93454         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
93455         newer, don't install charset.alias.
93456         * lib/config.charset: Change the Linux/glibc rules so they become empty
93457         on glibc-2.1 or newer.
93458
93459 2000-06-02  Jim Meyering  <meyering@lucent.com>
93460
93461         * lib/mountlist.c: Back out last change.  Instead, do this...
93462         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
93463         me_dummy member using the same `ignore'-testing code.
93464         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
93465         fs_type strings.
93466         From Mark D. Roth.
93467
93468 2000-05-29  Jim Meyering  <meyering@lucent.com>
93469
93470         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
93471         mounts with the `ignore' attribute.  Based on a patch from
93472         Mark D. Roth.
93473
93474 2000-05-28  Jim Meyering  <meyering@lucent.com>
93475
93476         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
93477         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93478         * m4/stat.m4: Likewise.
93479         * m4/lstat.m4: Likewise.
93480         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
93481
93482         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
93483         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
93484
93485 2000-05-26  Jim Meyering  <meyering@lucent.com>
93486
93487         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
93488
93489 2000-05-24  Jim Meyering  <meyering@lucent.com>
93490
93491         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
93492         autoconf requires that.
93493         * m4/lib-check.m4: Likewise.
93494         * m4/jm-macros.m4: Likewise.
93495         * m4/strftime.m4: Likewise.
93496
93497         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
93498         AC_CHECK_DECLS, now that autoconf requires that.
93499
93500 2000-05-22  Jim Meyering  <meyering@lucent.com>
93501
93502         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93503         * m4/lstat.m4: Likewise.
93504
93505 2000-05-22  Jim Meyering  <meyering@lucent.com>
93506
93507         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
93508
93509 2000-05-20  Jim Meyering  <meyering@lucent.com>
93510
93511         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
93512         (jm_PREREQ): Use it.
93513
93514 2000-05-18  Jim Meyering  <meyering@lucent.com>
93515
93516         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
93517         back, too, since it may have been modified by allocate_entry.
93518         (hash_delete): Rewrite to use neither the assignment operator
93519         nor the comma operator in an if-expression.
93520
93521 2000-05-15  Paul Eggert  <eggert@twinsun.com>
93522
93523         * lib/closeout.c:
93524         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
93525         Remove; no longer needed.
93526         "quotearg.h": Add include.
93527         (file_name): Do not bother to explicitly initialize to NULL; it's less
93528         efficient on some hosts.
93529         (close_stdout_status): Remove test as to whether stdout was already
93530         closed; it breaks for the case "echo x | sort >&-".
93531         Quote file name colons.
93532         Do not assume that _("write error") lacks format strings.
93533
93534 2000-05-15  Jim Meyering  <meyering@lucent.com>
93535
93536         * lib/version-etc.c (version_etc_copyright): Update the copyright
93537         string used in all --version output.
93538
93539 2000-05-14  Jim Meyering  <meyering@lucent.com>
93540
93541         * lib/closeout.c (close_stdout_set_file_name): New function.
93542         (close_stdout_status): Use new file-scoped global.
93543         Return right away if fstat says the stdout file descriptor is invalid.
93544         * lib/closeout.h (close_stdout_set_file_name): Declare.
93545
93546 2000-05-10  Jim Meyering  <meyering@lucent.com>
93547
93548         * lib/closeout.c [default_exit_status]: New file-scoped variable.
93549         (close_stdout_set_status): New function.
93550         * lib/closeout.h (close_stdout_set_status): Declare.
93551
93552 2000-05-09  Jim Meyering  <meyering@lucent.com>
93553
93554         * m4/gettext.m4: Rename this...
93555         * m4/libintl.m4: ...to this.
93556
93557 2000-05-08  Jim Meyering  <meyering@lucent.com>
93558
93559         * lib/long-options.c: Don't include closeout.h.
93560         (parse_long_options): Don't call close_stdout for --version.
93561
93562 2000-05-06  Paul Eggert  <eggert@twinsun.com>
93563
93564         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
93565         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
93566         2.1.3 bug.  This avoids a clash when files like regex.c define
93567         _GNU_SOURCE.
93568
93569 2000-05-06  Jim Meyering  <meyering@lucent.com>
93570
93571         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
93572         (AC_REPLACE_FUNCS): Add strnlen.
93573
93574         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
93575         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
93576
93577         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
93578         AC_SEARCH_LIBS call for nanosleep.
93579         (LIB_NANOSLEEP): Set and AC_SUBST.
93580
93581 2000-05-06  Jim Meyering  <meyering@lucent.com>
93582
93583         * lib/strnlen.c: Undefine __strnlen and strnlen.
93584         [!weak_alias]: Define __strnlen to strnlen.
93585
93586         * lib/atexit.c: New file, from libiberty.
93587
93588 2000-05-06  Jim Meyering  <meyering@lucent.com>
93589
93590         * lib/closeout.c (close_stdout_status): Also check for errors on the
93591         stderr stream.
93592
93593 2000-05-05  Jim Meyering  <meyering@lucent.com>
93594
93595         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
93596         AC_SEARCH_LIBS call for clock_gettime.
93597         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
93598
93599         * m4/search-libs.m4: Update from autoconf.
93600
93601         su doesn't work on Solaris 2.6.
93602         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
93603         <shadow.h>.  Reported by Dragos Harabor.
93604
93605 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
93606
93607         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
93608         memcpy instead of xmalloc, xrealloc, path_concat.
93609         (locale_charset): Treat empty environment variables as absent.
93610         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
93611
93612 2000-05-04  Jim Meyering  <meyering@lucent.com>
93613
93614         * lib/getopt.c: Update from glibc.
93615         * lib/obstack.c: Likewise.
93616         * lib/obstack.h: Likewise.
93617         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
93618         file
93619
93620         * lib/regex.h: Likewise.
93621         * lib/strndup.c: Likewise.
93622         * lib/strnlen.c: New file, from glibc.
93623
93624 2000-05-03  Jim Meyering  <meyering@lucent.com>
93625
93626         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
93627
93628 2000-05-02  Paul Eggert  <eggert@twinsun.com>
93629
93630         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
93631         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
93632         compile-time test, rather than inspecting host and OS, to
93633         decide whether to define _LARGEFILE_SOURCE.
93634
93635 2000-05-01  Jim Meyering  <meyering@lucent.com>
93636
93637         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
93638
93639         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
93640         Based on a patch from Bruno Haible.
93641
93642 2000-05-01  Jim Meyering  <meyering@lucent.com>
93643
93644         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
93645
93646 2000-04-29  Jim Meyering  <meyering@lucent.com>
93647
93648         * lib/path-concat.c: Declare strdup only if it's not defined.
93649         * lib/canon-host.c: Likewise.
93650
93651 2000-04-28  Jim Meyering  <meyering@lucent.com>
93652
93653         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
93654         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
93655         is included first, then limits.h is included by locale.h by libintl.h.
93656         From John David Anglin.
93657
93658 2000-04-25  Jim Meyering  <meyering@lucent.com>
93659
93660         * lib/makepath.c (S_IRWXUGO): Define.
93661         (make_path): Always perform explicit chmod if MODE specifies any
93662         of the `special' permission bits.  Prompted by a bug report against
93663         install from Mate Wierdl and Joost van Baal.
93664
93665 2000-04-18  Jim Meyering  <meyering@lucent.com>
93666
93667         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
93668         (jm_PREREQ): Use it.
93669
93670 2000-04-18  Jim Meyering  <meyering@lucent.com>
93671
93672         * lib/README: New file.
93673
93674         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
93675         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
93676
93677 2000-04-17  Jim Meyering  <meyering@lucent.com>
93678
93679         Get it right :-)
93680         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
93681         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
93682         Suggestion from Akim Demaille.
93683
93684 2000-04-17  Jim Meyering  <meyering@lucent.com>
93685
93686         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
93687         the definition of it to rpl_strftime also defined-away the system's
93688         declaration.
93689
93690 2000-04-15  Jim Meyering  <meyering@lucent.com>
93691
93692         Use `C' to denote so-called `contiguous' files, the same way
93693         that tar does.
93694         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
93695         (ftypelet): Use S_ISCTG.
93696         From Michael Deutschmann.
93697
93698 2000-04-14  Jim Meyering  <meyering@lucent.com>
93699
93700         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
93701         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
93702         clobbered.
93703
93704 2000-04-14  Jim Meyering  <meyering@lucent.com>
93705
93706         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
93707
93708 2000-04-13  Jim Meyering  <meyering@lucent.com>
93709
93710         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
93711         AH_VERBATIM to insert required #ifndef into config.h.in.
93712         Suggestion from Akim Demaille.
93713
93714 2000-04-12  Jim Meyering  <meyering@lucent.com>
93715
93716         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
93717         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
93718         Christian Krackowizer.
93719
93720         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
93721         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
93722         (AC_SYS_LARGEFILE): Require.
93723         (AM_C_PROTOTYPES): Require.
93724
93725 2000-04-08  Jim Meyering  <meyering@lucent.com>
93726
93727         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
93728         names don't conflict.  Reported by Eli Zaretskii.
93729
93730 2000-04-07  Jim Meyering  <meyering@lucent.com>
93731
93732         * lib/putenv.c: Move inclusion of errno.h so it follows that of
93733         sys/types.h, to work around system header problems on AIX 3.2.5.
93734         From Bruno Haible.
93735
93736 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
93737
93738         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
93739         bug.  Deal with the different error behavior of Irix iconv.
93740
93741 2000-04-05  Paul Eggert  <eggert@twinsun.com>
93742
93743         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
93744         IRIX if the installer said otherwise.
93745
93746 2000-04-05  Jim Meyering  <meyering@lucent.com>
93747
93748         Portability tweaks required for ultrix4.3.
93749         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
93750         (jm_CHECK_DECLS): Add getutent to the list of functions.
93751         (_jm_DECL_HEADERS): Add utmpx.h.
93752         From John David Anglin.
93753
93754         * m4/strftime.m4: Back out the 2000-04-02 change.
93755         Instead of that change, simply undefine putenv in the test program.
93756
93757 2000-04-05  Jim Meyering  <meyering@lucent.com>
93758
93759         Portability tweaks required for ultrix4.3.
93760         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
93761         getutent.
93762         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
93763         * lib/canon-host.c: Declare strdup.
93764         * lib/path-concat.c: Likewise.
93765         From John David Anglin.
93766
93767 2000-04-04  Jim Meyering  <meyering@lucent.com>
93768
93769         Be more DOS 8.3-friendly.
93770         * lib/ref-add.sin: Renamed from ref-add.sed.in.
93771         * lib/ref-del.sin: Renamed from ref-del.sed.in.
93772         * lib/Makefile.am: Reflect renaming.
93773         Reported by Eli Zaretskii.
93774
93775         Use a temporary file name that won't clash with `charset.alias'
93776         in the DOS 8.3 name space.
93777         * lib/Makefile.am (charset_tmp): Define.
93778         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
93779         (uninstall-local): Likewise.
93780         Reported by Eli Zaretskii.
93781
93782 2000-04-03  Jim Meyering  <meyering@lucent.com>
93783
93784         * m4/gettext.m4: Fix typo in comment.
93785
93786         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
93787         textutils/configure.in).  Suggestion from Paul Eggert.
93788         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
93789
93790 2000-04-02  Paul Eggert  <eggert@twinsun.com>
93791
93792         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
93793         variable in the shell rather than using putenv, which isn't
93794         portable.  This avoids the configure-time inter-test dependency
93795         on the potentially-renamed putenv function.
93796
93797 2000-03-30  Paul Eggert  <eggert@twinsun.com>
93798
93799         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
93800         before checking struct stat.st_blksize, so that
93801         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
93802
93803 2000-03-29  Paul Eggert  <eggert@twinsun.com>
93804
93805         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
93806         since strftime.c uses HAVE_STRFTIME to decide whether to use
93807         the underlying strftime.
93808
93809 2000-03-29  Paul Eggert  <eggert@twinsun.com>
93810
93811         * lib/time/strftime.c (my_strftime): Make sure we call the system
93812         strftime, not ourselves, when invoking the underlying strftime.
93813
93814 2000-03-24  Jim Meyering  <meyering@lucent.com>
93815
93816         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
93817         (charset_alias): Define.
93818         (install-exec-local): Factor out common code.
93819         (uninstall-local): Split lines longer than 80.
93820         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
93821         (SUFFIXES): Define.
93822         (.sed.in.sed): New rule.  Don't redirect directly to $@.
93823         (CLEANFILES): Add ref-add.sed and ref-del.sed.
93824
93825 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
93826
93827         * lib/config.charset: Output a line containing "Packages using this
93828         file".
93829         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
93830         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
93831         ref-del.sed): New rules.
93832
93833 2000-03-17  Jim Meyering  <meyering@lucent.com>
93834
93835         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
93836         Otherwise, include <strings.h>
93837
93838 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
93839
93840         * lib/unicodeio.c (utf8_wctomb): New function.
93841         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
93842         format instead of in UCS-4 with platform dependent endianness.
93843
93844 2000-03-10  Jim Meyering  <meyering@lucent.com>
93845
93846         * m4/lib-check.m4: Look for getspnam in -lgen, too.
93847         From Marco Franzen.
93848
93849 2000-03-07  Paul Eggert  <eggert@twinsun.com>
93850
93851         * lib/savedir.c (savedir): Work even if directory size is
93852         negative; this can happen with some screwy NFS configurations.
93853
93854 2000-03-06  Jim Meyering  <meyering@lucent.com>
93855
93856         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
93857         if it's NULL (because we ran out of memory).  From Bruno Haible.
93858
93859 2000-03-05  Jim Meyering  <meyering@lucent.com>
93860
93861         * lib/localcharset.c ("path-concat.h"): Include.
93862         (get_charset_aliases): Use path_concat instead of ANSI string
93863         concatenation.
93864
93865         * lib/unicodeio.h (PARAMS): Define.
93866         Use it to guard prototype.
93867
93868 2000-03-04  Jim Meyering  <meyering@lucent.com>
93869
93870         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
93871         for lib/localcharset.c.
93872
93873 2000-03-04  Jim Meyering  <meyering@lucent.com>
93874
93875         * lib/Makefile.am (install-exec-local): Create $(libdir) before
93876         installing into it.
93877         (uninstall-local): Uncomment this rule so `make distcheck' works
93878         once again.
93879
93880         * lib/unicodeio.c (<errno.h>): Include it.
93881         (errno): Declare if not defined.
93882
93883         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
93884
93885         * lib/config.charset: New version, incorporating remarks from a linux
93886         i18n mailing list.  From Bruno Haible.
93887
93888 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
93889
93890         * m4/codeset.m4: New file.
93891         * m4/iconv.m4: New file.
93892         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
93893
93894 2000-03-03  Jim Meyering  <meyering@lucent.com>
93895
93896         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
93897
93898 2000-03-02  Jim Meyering  <meyering@lucent.com>
93899
93900         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
93901         the messages come out on separate lines.
93902
93903         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
93904         rather than jm_CHECK_DECLARATIONS.
93905         * m4/decl.m4: Remove now-unused file.
93906
93907         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
93908         geteuid.
93909
93910 2000-03-02  Jim Meyering  <meyering@lucent.com>
93911
93912         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
93913
93914 2000-03-01  Jim Meyering  <meyering@lucent.com>
93915
93916         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
93917         * lib/unicodeio.c: Likewise.
93918
93919 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
93920
93921         * lib/config.charset: New file.
93922         * lib/localcharset.c: New file.
93923         * lib/unicodeio.h, lib/unicodeio.c: New files.
93924         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
93925         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
93926         (noinst_HEADERS): Add unicodeio.h.
93927         (all-local, install-exec-local, charset.alias): New targets.
93928
93929 2000-02-28  Paul Eggert  <eggert@twinsun.com>
93930
93931         * lib/quotearg.c (ALERT_CHAR): New macro.
93932         (quotearg_buffer_restyled): Use it.
93933
93934 2000-02-27  Jim Meyering  <meyering@lucent.com>
93935
93936         * m4/check-decl.m4: Add getenv to the list.
93937
93938 2000-02-27  Jim Meyering  <meyering@lucent.com>
93939
93940         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
93941         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
93942
93943         * lib/backupfile.c: Guard inclusion of stdlib.h with
93944         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
93945         Declare malloc if needed.
93946
93947         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
93948         `#ifndef HAVE_DECL..'
93949         now that autoconf always defines the HAVE_DECL_ symbols.
93950         * lib/human.c: Likewise.
93951         * lib/same.c: Likewise.
93952         * lib/strtoumax.c: Likewise.
93953
93954         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
93955         declaration check was not run.
93956         * lib/hash.c: Likewise.
93957         * lib/human.c: Likewise.
93958         * lib/same.c: Likewise.
93959         * lib/strtoumax.c: Likewise.
93960
93961         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
93962         `.', then first look up the entire `.'-containing string as a login
93963         name.
93964
93965 2000-02-23  Jim Meyering  <meyering@lucent.com>
93966
93967         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
93968         in place of my hack.
93969
93970 2000-02-18  Paul Eggert  <eggert@twinsun.com>
93971
93972         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
93973         (textint): New typedef.
93974         (parser_control): Member year changed from int to textint.
93975         All uses changed.
93976         (YYSTYPE): Removed; replaced by %union with int and textint members.
93977         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
93978         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
93979         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
93980         (tSNUMBER, tUNUMBER): Now of type <textintval>.
93981         (date, number, to_year): Use width of number in digits, not its value,
93982         to determine whether it's a 2-digit year, or a 2-digit time.
93983         (yylex): Store number of digits of numeric tokens.
93984         Reported by John Kendall.
93985
93986         (parser_control): Changed from struct parser_control to typedef (for
93987         consistency).  All uses changed.
93988
93989         (tID): Removed; not used.
93990         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
93991
93992 2000-02-14  Paul Eggert  <eggert@twinsun.com>
93993
93994         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
93995         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
93996
93997 2000-02-12  Jim Meyering  <meyering@lucent.com>
93998
93999         * lib/userspec.c (ISDIGIT): Define it.
94000         (isdigit): Remove definition.
94001         (is_number): Use ISDIGIT, not isdigit.
94002         <libintl.h>: Include.
94003         (_ and N_): Define.
94004         (parse_user_spec): Mark translatable strings.
94005
94006 2000-02-10  Jim Meyering  <meyering@lucent.com>
94007
94008         With these changes, nanosleep.[ch] are finally enough like the other
94009         lib/* replacement files to compile on a few more losing systems.
94010
94011         * lib/nanosleep.h: Don't include config.h.
94012         Remove prototype from declaration of nanosleep.
94013         (PARAMS): Remove now-unneeded definition.
94014         * lib/nanosleep.c: #undef nanosleep.
94015         (rpl_nanosleep): Rename from nanosleep.
94016
94017 2000-02-10  Jim Meyering  <meyering@lucent.com>
94018
94019         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
94020         gnu_nanosleep to rpl_nanosleep.
94021
94022 2000-02-09  Jim Meyering  <meyering@lucent.com>
94023
94024         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
94025         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
94026
94027 2000-02-08  Akim Demaille  <akim@epita.fr>
94028
94029         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
94030         `[' and `]' and remove uses of `changequote'.
94031         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
94032         (AC_SYS_LARGEFILE): Likewise.
94033         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
94034         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
94035         of changequote.
94036         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
94037         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
94038         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
94039         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
94040
94041 2000-02-05  Jim Meyering  <meyering@lucent.com>
94042
94043         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
94044         Remove explicit use of AC_HEADER_TIME.  It is required by
94045         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
94046         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
94047         in autoconf whereby the expansion of the latter ended up preceding
94048         the expansion of its prerequisite, AC_HEADER_TIME.
94049         Reported by Volker Borchert.
94050
94051 2000-02-03  Jim Meyering  <meyering@lucent.com>
94052
94053         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
94054
94055 2000-02-03  Jim Meyering  <meyering@lucent.com>
94056
94057         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
94058         rather than with `#if HAVE_UTMPNAME'.
94059
94060 2000-02-02  Jim Meyering  <meyering@lucent.com>
94061
94062         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
94063         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
94064         Reported by Eli Zaretskii.
94065
94066 2000-02-01  Jim Meyering  <meyering@lucent.com>
94067
94068         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
94069
94070 2000-01-31  Jim Meyering  <meyering@lucent.com>
94071
94072         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
94073         functions.  Add the time.h and sys/time.h headers along with the
94074         AC_REQUIRE'ment of AC_HEADER_TIME.
94075
94076 2000-01-31  Jim Meyering  <meyering@lucent.com>
94077
94078         * lib/nanosleep.h (nanosleep): Guard declaration with
94079         `#if ! HAVE_DECL_NANOSLEEP'.
94080         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
94081         the declaration in that vendor's sys/timers.h.
94082         Reported by Christian Krackowizer.
94083
94084         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
94085         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
94086         (ISPRINT): Likewise.
94087         Reported by Tom Tromey.
94088
94089 2000-01-30  Jim Meyering  <meyering@lucent.com>
94090
94091         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
94092
94093         * m4/prereq.m4 (utmp_includes): Define.
94094         Check for ut_user and ut_name members in both struct utmpx
94095         and struct utmp.
94096
94097 2000-01-30  Jim Meyering  <meyering@lucent.com>
94098
94099         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
94100         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
94101         header files where only utmpx.ut_user is declared.
94102
94103         * lib/readutmp.h (UT_USER): Define.
94104
94105 2000-01-29  Jim Meyering  <meyering@lucent.com>
94106
94107         * m4/lib-check.m4: New file containing library-related checks from
94108         fileutils and sh-utils (textutils had none).
94109
94110 2000-01-28  Jim Meyering  <meyering@lucent.com>
94111
94112         * m4/perl.m4: Change format of warning message to look more like that
94113         from the missing script.  Suggestion from François Pinard.
94114
94115 2000-01-25  Jim Meyering  <meyering@lucent.com>
94116
94117         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
94118         well as time.h in the compile check.
94119         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
94120         Fix typo in cross-compiling case: s/yes/no/.
94121
94122 2000-01-23  Jim Meyering  <meyering@lucent.com>
94123
94124         * m4/jm-macros.m4: Move df-related tests here from
94125         fileutils/configure.in
94126
94127         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
94128         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
94129
94130         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
94131         s/space/ac_fsusage_space/.
94132         (jm_FILE_SYSTEM_USAGE): Take two parameters.
94133
94134         * m4/ftruncate.m4: New file (derived from part of
94135         fileutils/configure.in).
94136         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
94137         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
94138
94139         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
94140         AC_SUBST these here, rather than just in sh-util/configure.in, so
94141         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
94142         all the same.
94143         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
94144         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
94145         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
94146         (AC_SUBST(POW_LIBM)): Likewise.
94147         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
94148
94149 2000-01-23  Jim Meyering  <meyering@lucent.com>
94150
94151         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
94152         obstack.c.
94153
94154 2000-01-22  Jim Meyering  <meyering@lucent.com>
94155
94156         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
94157
94158         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
94159
94160         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
94161         configure.in
94162         (AC_CHECK_HEADERS): Likewise for sh-utils.
94163         (AC_CHECK_HEADERS): Likewise for textutils.
94164         Merge the three lists of headers.
94165
94166         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
94167         from fileutils' configure.in.
94168
94169         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
94170         code. Moved tests into their own function (_jm_DECL_HEADERS) in
94171         check-decl.m4.
94172
94173         * m4/check-decl.m4: Use #if rather than #ifdef.
94174         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
94175         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
94176         (_jm_DECL_HEADERS): Define new function.
94177         (jm_CHECK_DECLARATIONS): Require it.
94178
94179 2000-01-22  Jim Meyering  <meyering@lucent.com>
94180
94181         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
94182         [! HAVE_DECL_STRTOULL]: Declare strtoull.
94183         Required for some AIX systems.  Reported by Christian Krackowizer.
94184         [TESTING] (main): New function.
94185
94186         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
94187         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
94188         letters.
94189
94190         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
94191         iswprint.
94192
94193         * lib/strverscmp.c (ISDIGIT): Define.
94194         (strverscmp): Use ISDIGIT, not isdigit.
94195
94196 2000-01-19  Jim Meyering  <meyering@lucent.com>
94197
94198         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
94199         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
94200         defines `struct timespec' in <sys/time.h>
94201
94202         * m4/c-bs-a.m4: Remove uses of changequote altogether.
94203         Thanks to Akim for explaining.
94204
94205 2000-01-17  Paul Eggert  <eggert@twinsun.com>
94206
94207         * lib/nanosleep.c (nanosleep):
94208         Don't use SA_INTERRUPT to decide whether to call sigaction, as
94209         POSIX.1 doesn't require SA_INTERRUPT and some systems
94210         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
94211         it's been part of POSIX.1 since day 1 (in 1988).
94212
94213 2000-01-17  Jim Meyering  <meyering@lucent.com>
94214
94215         * lib/interlock: Remove unused file.  Reported by François Pinard.
94216
94217 2000-01-16  Paul Eggert  <eggert@twinsun.com>
94218
94219         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
94220         alert, backslash, formfeed, and vertical tab unnecessarily in
94221         shell quoting style.
94222
94223 2000-01-16  Jim Meyering  <meyering@lucent.com>
94224
94225         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
94226         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
94227         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
94228         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
94229
94230 2000-01-16  Jim Meyering  <meyering@lucent.com>
94231
94232         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
94233         because the latter didn't work.
94234
94235 2000-01-15  Jim Meyering  <meyering@lucent.com>
94236
94237         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
94238         (AC_REPLACE_FUNCS): Add memcpy and memset.
94239         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
94240         Add strpbrk.
94241         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
94242
94243 2000-01-12  Jim Meyering  <meyering@lucent.com>
94244
94245         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
94246         (jm_PREREQ): Use it.
94247         (jm_PREREQ_READUTMP): New macro.
94248         (jm_PREREQ): Use it.
94249
94250 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94251
94252         Quote multibyte characters correctly.
94253         * m4/c-bs-a.m4: New file.
94254         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
94255         (jm_PREREQ): Use it.
94256
94257 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94258
94259         * m4/uintmax_t.m4: Port to autoconf 2.13.
94260
94261 2000-01-08  Jim Meyering  <meyering@ascend.com>
94262
94263         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
94264         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
94265
94266 2000-01-04  Jim Meyering  <meyering@ascend.com>
94267
94268         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
94269         jm_STRUCT_DIRENT_D_TYPE.
94270         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
94271         jm_STRUCT_DIRENT_D_INO.
94272         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
94273         jm_STRUCT_UTIMBUF.
94274         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
94275         renamings.
94276         * m4/utime.m4: Likewise.
94277
94278         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
94279         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
94280
94281 2000-01-03  Paul Eggert  <eggert@twinsun.com>
94282
94283         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
94284         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
94285
94286 2000-01-02  Jim Meyering  <meyering@ascend.com>
94287
94288         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
94289         remember if this is necessary.
94290
94291 1999-12-26  Jim Meyering  <meyering@ascend.com>
94292
94293         * m4/jm-macros.m4: Use it here.
94294         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
94295
94296 1999-12-23  Jim Meyering  <meyering@ascend.com>
94297
94298         * m4/jm-macros.m4: Check for clock_gettime (moved from
94299         fileutils/configure.in)
94300         Check for gettimeofday.
94301
94302 1999-12-20  Jim Meyering  <meyering@ascend.com>
94303
94304         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
94305         autoconf-2.14a-1999-12-20.
94306
94307 1999-12-19  Jim Meyering  <meyering@ascend.com>
94308
94309         * m4/lstat-slash.m4: New file.
94310         * m4/jm-macros.m4: Use the new macro:
94311         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94312
94313 1999-12-07  Jim Meyering  <meyering@ascend.com>
94314
94315         * m4/perl.m4: Require that File::Compare be available, too.
94316         Too many systems seem to lack it.
94317
94318         * m4/strftime.m4: Add checks for most of the cpp macros tested in
94319         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
94320
94321 1999-11-18  Paul Eggert  <eggert@twinsun.com>
94322
94323         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
94324         problem with the QNX 4.25 shell, which doesn't propagate exit
94325         status of failed commands inside shell assignments.
94326
94327 1999-11-17  Jim Meyering  <meyering@ascend.com>
94328
94329         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
94330
94331 1999-11-07  Jim Meyering  <meyering@ascend.com>
94332
94333         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
94334
94335 1999-11-06  Jim Meyering  <meyering@ascend.com>
94336
94337         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
94338         * m4/jm-macros.m4 (jm_MACROS): Use it here.
94339
94340 1999-11-05  Jim Meyering  <meyering@ascend.com>
94341
94342         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
94343         configure.in of textutils, fileutils, and sh-utils into this one
94344         (shared between those packages) file.
94345         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
94346         AC_STRUCT_ST_BLKSIZE.
94347
94348 1999-11-03  Jim Meyering  <meyering@ascend.com>
94349
94350         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
94351         of AC_CHECK_TYPE checks includes unistd.h.
94352         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
94353         Suggestion from Akim Demaille.
94354
94355 1999-10-30  Jim Meyering  <meyering@ascend.com>
94356
94357         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
94358         m4-quoted string.
94359         * m4/ls-mntd-fs.m4: Likewise.
94360         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
94361         * m4/jm-winsz1.m4: Likewise.
94362
94363         * m4/const.m4: Remove file, since the fix made it into the experimental
94364         version of autoconf.
94365         * m4/mktime.m4: Likewise.
94366
94367         * m4/check-type.m4: Remove file, now that the latest version of
94368         AC_CHECK_TYPE takes a third arg to specify additional #includes.
94369
94370         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
94371         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
94372         AC_CHECK_TYPE.
94373
94374 1999-10-04  Jim Meyering  <meyering@ascend.com>
94375
94376         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
94377
94378 1999-09-22  Paul Eggert  <eggert@twinsun.com>
94379
94380         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
94381         2.95.1 bug with HP-UX 10.20.
94382
94383 1999-09-17  Jim Meyering  <meyering@ascend.com>
94384
94385         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
94386         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
94387         due to missing strdup (against sh-utils-2.0).
94388
94389 1999-08-29  Jim Meyering  <meyering@ascend.com>
94390
94391         * m4/jm-macros.m4: Require jm_BISON.
94392         * m4/bison.m4: New file.
94393
94394 1999-08-17  Paul Eggert  <eggert@twinsun.com>
94395
94396         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
94397         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
94398
94399 1999-08-05  Jim Meyering  <meyering@ascend.com>
94400
94401         * m4/getline.m4: Rename test file from conftestdata to conftest.data
94402         to avoid conflicts with `conftest' on 8+3 filesystems.
94403         Suggestion from Eli Zaretskii.
94404
94405 1999-08-04  Jim Meyering  <meyering@ascend.com>
94406
94407         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
94408         fileutils and sh-utils (textutils's getline test was inadequate).
94409         (AM_FUNC_GETLINE): Run this test.
94410         (AC_CHECK_FUNCS): Check for getdelim.
94411         Reported by Bob Proulx.
94412
94413 1999-08-02  Jim Meyering  <meyering@ascend.com>
94414
94415         * m4/jm-macros.m4: Add a comment.
94416
94417 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94418
94419         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
94420         <inttypes.h> defines strtoumax as a macro (and not as a
94421         function).
94422
94423 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94424
94425         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
94426         that we can shift, multiply and divide unsigned long long
94427         values; Ultrix cc can't do it.
94428
94429 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94430
94431         * m4/mktime.m4: New file, which is a preview of what should appear
94432         in the next public autoconf release.
94433
94434 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94435
94436         * m4/lfs.m4: Remove this file.
94437         * m4/largefile.m4: New file.  It contains the old contents of
94438         lfs.m4, except that all names with prefix AC_LFS have been
94439         changed to use the prefix AC_SYS_LARGEFILE instead, to be
94440         compatible with future autoconf versions.  Also, some minor m4
94441         quoting problems have been fixed.
94442
94443 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94444
94445         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
94446         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
94447         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
94448         and simplify the shell code.
94449
94450 1999-08-01  Jim Meyering  <meyering@ascend.com>
94451
94452         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
94453         m4.
94454
94455 1999-07-20  Jim Meyering  <meyering@ascend.com>
94456
94457         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
94458
94459 1999-07-15  Jim Meyering  <meyering@ascend.com>
94460
94461         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
94462
94463 1999-05-22  Jim Meyering  <meyering@ascend.com>
94464
94465         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
94466
94467 1999-05-20  Jim Meyering  <meyering@ascend.com>
94468
94469         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
94470         Add a colon after each `then' in case $4 is empty.
94471
94472 1999-05-16  Jim Meyering  <meyering@ascend.com>
94473
94474         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
94475
94476 1999-05-10  Jim Meyering  <meyering@ascend.com>
94477
94478         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
94479
94480         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
94481         AC_FUNC_MKTIME.
94482
94483 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
94484
94485         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
94486
94487 1999-05-04  Paul Eggert  <eggert@twinsun.com>
94488
94489         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
94490         not CPPFLAGS, so that linking works correctly in IRIX.
94491
94492 1999-04-30  Paul Eggert  <eggert@twinsun.com>
94493
94494         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
94495
94496 1999-04-20  Paul Eggert  <eggert@twinsun.com>
94497
94498         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
94499         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
94500         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
94501         jm_AC_TYPE_UNSIGNED_LONG_LONG.
94502         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
94503
94504         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
94505
94506 1999-04-20  Jim Meyering  <meyering@ascend.com>
94507
94508         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
94509         AC_REPLACE xstroull if necessary.  From Paul Eggert.
94510         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
94511
94512 1999-04-18  Jim Meyering  <meyering@ascend.com>
94513
94514         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
94515         * m4/jm-macros.m4: Use it.
94516
94517 1999-04-06  Jim Meyering  <meyering@ascend.com>
94518
94519         * m4/strftime.m4: Remove test for %f.
94520
94521 1999-03-29  Jim Meyering  <meyering@ascend.com>
94522
94523         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
94524         superset of the AC_TYPE_* checks in the textutils, fileutils,
94525         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
94526         AC_TYPE_PID_T.
94527
94528 1999-03-28  Jim Meyering  <meyering@ascend.com>
94529
94530         * m4/jm-macros.m4: Define GNU_PACKAGE here.
94531         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
94532         replaced e.g., in the *.sh files of the sh-utils.
94533
94534 1999-03-20  Jim Meyering  <meyering@ascend.com>
94535
94536         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
94537         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
94538         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
94539
94540 1999-03-19  Jim Meyering  <meyering@ascend.com>
94541
94542         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
94543
94544 1999-03-12  Jim Meyering  <meyering@ascend.com>
94545
94546         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
94547
94548 1999-03-07  Jim Meyering  <meyering@ascend.com>
94549
94550         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
94551         declared.
94552
94553 1999-02-17  Jim Meyering  <meyering@ascend.com>
94554
94555         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
94556         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
94557
94558 1999-02-07  Jim Meyering  <meyering@ascend.com>
94559
94560         * m4/group-member.m4: New file -- extracted from sh-utils'
94561         configure.in.
94562
94563         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
94564         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
94565
94566 1999-02-06  Jim Meyering  <meyering@ascend.com>
94567
94568         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
94569         * m4/fnmatch.m4: Likewise.
94570         * m4/getgroups.m4: Likewise.
94571         * m4/lstat.m4: Likewise.
94572         * m4/malloc.m4: Likewise.
94573         * m4/putenv.m4: Likewise.
94574         * m4/realloc.m4: Likewise.
94575         * m4/regex.m4: Likewise.
94576         * m4/stat.m4: Likewise.
94577         * m4/strftime.m4: Likewise.
94578         Suggestion from Alain Magloire.
94579
94580         * m4/chown.m4: Use `.$ac_objext', not `.o'.
94581         * m4/fnmatch.m4: Likewise.
94582         * m4/getgroups.m4: Likewise.
94583         * m4/getline.m4: Likewise.
94584         * m4/lstat.m4: Likewise.
94585         * m4/malloc.m4: Likewise.
94586         * m4/memcmp.m4: Likewise.
94587         * m4/putenv.m4: Likewise.
94588         * m4/realloc.m4: Likewise.
94589         * m4/regex.m4: Likewise.
94590         * m4/stat.m4: Likewise.
94591         * m4/strftime.m4: Likewise.
94592         Suggestion from Alain Magloire.
94593
94594         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
94595         an argument.
94596
94597         * m4/regex.m4: Add a run-time Test for proper operation of
94598         re_compile_pattern.
94599
94600 1999-01-31  Jim Meyering  <meyering@ascend.com>
94601
94602         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
94603
94604 1999-01-30  Jim Meyering  <meyering@ascend.com>
94605
94606         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
94607
94608         * m4/jm-mktime.m4: Make this a wrapper around the official
94609         AM_FUNC_MKTIME rather than my private copy, now that the official one
94610         is up to date.
94611         * m4/mktime.m4: Remove file.
94612
94613         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
94614         * m4/uptime.m4: Likewise.
94615         * m4/uintmax_t.m4: Likewise.
94616
94617 1999-01-28  Jim Meyering  <meyering@ascend.com>
94618
94619         * m4/jm-macros.m4: Use jm_AFS.
94620         * m4/afs.m4: New file (from fileutils' configure.in).
94621
94622         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
94623         * m4/chown.m4: Likewise.
94624         * m4/d-ino.m4: Likewise.
94625         * m4/d-type.m4: Likewise.
94626         * m4/fnmatch.m4: Likewise.
94627         * m4/getgroups.m4: Likewise.
94628         * m4/gettext.m4: Likewise.
94629         * m4/jm-mktime.m4: Likewise.
94630         * m4/jm-winsz2.m4: Likewise.
94631         * m4/lcmessage.m4: Likewise.
94632         * m4/ls-mntd-fs.m4: Likewise.
94633         * m4/malloc.m4: Likewise.
94634         * m4/memcmp.m4: Likewise.
94635         * m4/putenv.m4: Likewise.
94636         * m4/realloc.m4: Likewise.
94637         * m4/st_mtim.m4: Likewise.
94638         * m4/strftime.m4: Likewise.
94639
94640 1999-01-16  Jim Meyering  <meyering@ascend.com>
94641
94642         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
94643         (ARGMATCH_DIE_DECL): Define.
94644
94645 1999-01-12  Jim Meyering  <meyering@ascend.com>
94646
94647         * m4/Makefile.am.in: Rewrite to avoid using fmt.
94648         Reported by Lars Hecking.
94649
94650 1999-01-10  Jim Meyering  <meyering@ascend.com>
94651
94652         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
94653         gross kludge.
94654         * m4/inttypes_h.m4: Likewise.
94655         * m4/lstat.m4: Likewise.
94656         * m4/malloc.m4: Likewise.
94657         * m4/readdir.m4: Likewise.
94658         * m4/realloc.m4: Likewise.
94659         * m4/st_dm_mode.m4: Likewise.
94660         * m4/stat.m4: Likewise.
94661         * m4/utimbuf.m4: Likewise.
94662         * m4/utimes.m4: Likewise.
94663
94664         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
94665         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
94666         comments in config.h.in are meaningful.
94667
94668         * m4/jm-macros.m4: Require autoconf-2.13 here.
94669
94670         * m4/regex.m4: By default, don't use the included regex.c on systems
94671         with glibc 2.  Suggestion from Uli Drepper.
94672
94673 1999-01-02  Jim Meyering  <meyering@ascend.com>
94674
94675         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
94676
94677 1998-12-18  Jim Meyering  <meyering@ascend.com>
94678
94679         * m4/Makefile.am.in (Makefile.am): Simplify rule.
94680         Based on a suggestion from Lars Hecking.
94681
94682 1998-11-16  Paul Eggert  <eggert@twinsun.com>
94683
94684         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
94685
94686 1998-11-16  Jim Meyering  <meyering@ascend.com>
94687
94688         * m4/lfs.m4: Double-quote the `uname...` expression.
94689
94690 1998-11-14  Jim Meyering  <meyering@ascend.com>
94691
94692         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
94693         * m4/stat.m4: Likewise.
94694
94695 1998-11-03  Jim Meyering  <meyering@ascend.com>
94696
94697         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
94698         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
94699
94700 1998-10-18  Jim Meyering  <meyering@ascend.com>
94701
94702         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
94703
94704 1998-10-17  Jim Meyering  <meyering@ascend.com>
94705
94706         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
94707         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
94708         calls for those previously hard-coded headers.  Instead, take a new
94709         parameter.
94710         (jm_CHECK_DECLARATIONS): Reflect interface change.
94711         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
94712         (jm_CHECK_DECL_LOCALTIME_R): New macro.
94713
94714         * m4/mktime.m4: Test for spring-forward gap before long-running test.
94715
94716 1998-10-14  Jim Meyering  <meyering@ascend.com>
94717
94718         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
94719         instead of "TZ=America/Vancouver".  From Paul Eggert.
94720
94721 1998-10-11  Jim Meyering  <meyering@ascend.com>
94722
94723         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
94724         This adds a test for a recently added compatibility fix for mktime.c.
94725         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
94726
94727 1998-09-27  Jim Meyering  <meyering@ascend.com>
94728
94729         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
94730
94731         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
94732         ../configure.in, including a change from Gordon Matzigkeit to allow
94733         cross-compiling for the Hurd.
94734
94735         * m4/glibc.m4: New file/macro to test for the GNU C Library
94736         versions 1 and 2.  From Gordon Matzigkeit.
94737         Indent.
94738
94739 1998-09-21  Jim Meyering  <meyering@ascend.com>
94740
94741         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
94742
94743 1998-08-18  Paul Eggert  <eggert@twinsun.com>
94744
94745         Port nanosecond-resolution times to UnixWare 2.1.2 and
94746         pedantic Solaris 2.6.
94747
94748         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
94749         AC_STRUCT_ST_MTIM.
94750         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
94751         Generate name of ns member, instead of just 1 or undef.
94752         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
94753
94754 1998-08-15  Jim Meyering  <meyering@ascend.com>
94755
94756         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
94757         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
94758         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
94759         instead of jm_TYPE_SSIZE_T.
94760
94761 1998-08-12  Jim Meyering  <meyering@ascend.com>
94762
94763         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
94764
94765 1998-08-02  Jim Meyering  <meyering@ascend.com>
94766
94767         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
94768         in acconfig.h manually.
94769
94770 1998-07-31  Paul Eggert  <eggert@twinsun.com>
94771
94772         * m4/st_mtim.m4: New file.
94773
94774 1998-07-28  Jim Meyering  <meyering@ascend.com>
94775
94776         * m4/utimes.m4: Undef stat.
94777
94778 1998-07-25  Jim Meyering  <meyering@ascend.com>
94779
94780         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
94781         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
94782
94783 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
94784
94785         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
94786         uid and gid actually remain unchanged.
94787
94788 1998-07-07  Jim Meyering  <meyering@ascend.com>
94789
94790         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
94791
94792 1998-07-04  Jim Meyering  <meyering@ascend.com>
94793
94794         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
94795         to prove that this macro can be used in packages without regex.c.
94796
94797 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
94798
94799         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
94800         is to be used.
94801
94802 1998-07-03  Jim Meyering  <meyering@ascend.com>
94803
94804         * m4/gettext.m4: Add -lintl if it's found to be necessary.
94805
94806         * m4/gettext.m4: New file -- from gettext-0.10.35.
94807         * m4/lcmessage.m4: Likewise.
94808         * m4/progtest.m4: Likewise.
94809
94810         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
94811         * m4/jm-macros.m4: Require the new macro.
94812
94813 1998-06-29  Jim Meyering  <meyering@ascend.com>
94814
94815         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
94816         for the definition of NGROUPS (used in a system header included
94817         by sys/mount.h).
94818
94819 1998-06-28  Jim Meyering  <meyering@ascend.com>
94820
94821         * m4/ls-mntd-fs.m4: New file.
94822         * m4/fstypename.m4: New file.
94823
94824         * m4/jm-macros.m4: Require the new macro.
94825         * m4/jm-glibc-io.m4: New file.
94826
94827 1998-05-19  Jim Meyering  <meyering@ascend.com>
94828
94829         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
94830         * m4/lchown.m4: New file.
94831
94832         * m4/Makefile.am.in: New file.
94833         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
94834
94835 1998-05-14  Jim Meyering  <meyering@ascend.com>
94836
94837         * m4/Makefile.am (EXTRA_DIST): Add them.
94838         * m4/jm-macros.m4: New file.
94839         * m4/utimbuf.m4: New file.
94840
94841 1998-05-12  Jim Meyering  <meyering@ascend.com>
94842
94843         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
94844
94845 1998-05-11  Jim Meyering  <meyering@ascend.com>
94846
94847         * m4/isc-posix.m4: New file.
94848
94849 1998-05-10  Jim Meyering  <meyering@ascend.com>
94850
94851         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
94852
94853 1998-05-09  Jim Meyering  <meyering@ascend.com>
94854
94855         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
94856         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
94857         with automake.
94858
94859         * m4/ssize_t.m4: New file.
94860         * m4/mktime.m4: Remove file -- the new automake has this now.
94861
94862 1998-04-26  Jim Meyering  <meyering@ascend.com>
94863
94864         * m4/assert.m4: New file.
94865         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
94866
94867 1998-04-05  Jim Meyering  <meyering@ascend.com>
94868
94869         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
94870         (jm_PREREQ): Use it here.
94871
94872 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
94873
94874         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
94875         in acconfig.h.
94876
94877 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
94878
94879         * m4/prereq.m4: New file.
94880         * m4/error.m4: New file.
94881         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
94882
94883 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
94884
94885         * m4/getline.m4: Don't set am_cv_func_working_getline before the
94886         cache-check for the same variable -- that defeated the purpose of
94887         the test; the test program was never run.  This was a problem only
94888         on systems with losing getline functions -- HP-UX 10.20 is one.
94889         Reported by Bjorn Helgaas.
94890
94891 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
94892
94893         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
94894
94895 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
94896
94897         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
94898
94899         * m4/const.m4: New file.  Use an initializer in this declaration
94900         typedef int charset[2]; const charset x;
94901         Reported by Bob Glickstein.
94902
94903 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
94904
94905         * m4/chown.m4: Fix reversed types on -1 args to chown.
94906         From Kaveh Ghazi.
94907
94908 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
94909
94910         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
94911         Add lseek and memchr.
94912
94913         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
94914         T.E.Dickey <dickey@clark.net> said that some older preprocessors
94915         have a 20-character limit on names.
94916
94917 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
94918
94919         * m4/inttypes_h.m4: New file.
94920         * m4/uintmax_t.m4: New file.
94921         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
94922
94923
94924         -----
94925
94926         Local Variables:
94927         coding: utf-8
94928         End:
94929
94930         Copyright (C) 1997-2012 Free Software Foundation, Inc.
94931
94932         Copying and distribution of this file, with or without
94933         modification, are permitted provided the copyright notice
94934         and this notice are preserved.